/* Andie Mechanic, fourth version. Laid over v3.css: quieter type, a pink, powder blue and butter palette in place of
   orange and brown, and rooms that look like real paper from the 1960s rather than drawings of it. */

:root {
  --ink: #3e3b52;
  --ink-soft: #6c6880;
  --pen: #2c3f6b;
  --tomato: #c9688b;          /* the old names now carry the new palette, so every v3 rule picks it up */
  --tangerine: #e7a8bd;
  --yolk: #f4dc8a;
  --pink: #e79bb4;
  --sky: #8fbfe3;
  --leaf: #9cbf8a;
  --lilac: #b8a6d9;
  --paper: #fbf6ee;
  --paper-2: #f2e9dc;
  --line: rgba(62, 59, 82, .22);
  --f-display: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --f-hand: 'Cormorant Garamond', Garamond, Georgia, serif;
  --f-pen: 'Homemade Apple', 'Snell Roundhand', cursive;
}
body[data-room="listening"] { --bg: #fbe7ee; --accent: #c9688b; --accent-2: #f4dc8a; }
body[data-room="stage"] { --bg: #e6f0f8; --accent: #4f7fb0; --accent-2: #e79bb4; }
body[data-room="reading"] { --bg: #fbf3df; --accent: #8a6f9e; --accent-2: #e79bb4; }
body[data-room="wall"] { --bg: #f3ece2; --accent: #4f7fb0; --accent-2: #e79bb4; }
body[data-room="archives"] { --bg: #ece9e4; --accent: #3e3b52; --accent-2: #e79bb4; }
body[data-room="about"] { --bg: #fbeef1; --accent: #c9688b; --accent-2: #8fbfe3; }
body[data-room^="wing-"] { --bg: #fbe7ee; --accent: #c9688b; --accent-2: #8fbfe3; }
body[data-room="wing-truman"], body[data-room="wing-cosmic"] { --bg: #e6f0f8; --accent: #4f7fb0; }
body[data-room="wing-instate"], body[data-room="wing-singles"] { --bg: #fbf3df; --accent: #b8913a; }

/* ---------- type ---------- */
body { font-family: var(--f-read); }
.mark { font: 400 38px/1 var(--f-sig) !important; color: var(--ink) !important; text-shadow: none !important; letter-spacing: 0; padding-top: 6px; }
.mark span { color: inherit !important; }
body.on-walk .mark { color: #fffdf8 !important; text-shadow: 0 1px 10px rgba(30, 30, 40, .45) !important; }
.room-title, .menu__card h2, .walk__end h2, .letter-title, .walk__card b {
  font-family: var(--f-display) !important; font-style: normal !important; font-weight: 500 !important;
  text-shadow: none !important; letter-spacing: .01em; color: var(--ink) !important;
}
.room-title { font-size: clamp(46px, 7vw, 92px) !important; line-height: 1 !important; }
.rooms-nav a, .menu-btn, .walk__hint, .walk__tally, .walk__prompt p, .walk__prompt .btn, .walk__end .btn, .walk__card a,
.walk__load, .btn, .back-walk, .back-room, .pc-styles legend, .threshold__how, .menu__card nav a, .menu .close {
  font-family: var(--f-display) !important; font-weight: 600 !important; letter-spacing: .02em;
}
.rooms-nav a { font-size: 16px !important; }
.walk__hint { font-size: 18px !important; }
.threshold__name { font: 400 clamp(54px, 11vw, 92px)/1 var(--f-sig) !important; color: var(--ink) !important; text-shadow: none !important; }
.threshold__how { font-size: 22px !important; }
.about__bio p:first-child::first-letter { font-family: var(--f-display) !important; font-style: normal !important; font-weight: 500 !important; text-shadow: none !important; color: var(--accent) !important; }
.walk__end h2 { font-size: 30px !important; }
.rooms-nav a.is-here { --rc: #f6dbe4 !important; color: var(--ink) !important; }
.rooms-nav a:hover, .rooms-nav a:focus-visible { --rc: #fbf0c9 !important; }
.walk__tally { --rc: #fbf0c9 !important; }

/* ---------- the player: a plain bar ---------- */
.dock__title { font: 600 18px var(--f-display) !important; }
.dock__btns .play { background: #f6dbe4 !important; border: 1.5px solid var(--ink) !important; }

/* ---------- the Rooms card: a real letter on aged paper ---------- */
.menu { background: rgba(40, 38, 52, .35); }
.menu__card {
  border: 0 !important; border-image: none !important; transform: rotate(-.8deg);
  background: #f4ead8 url(../img/v4/paper.jpg) center / cover !important;
  box-shadow: 0 2px 2px rgba(60, 50, 40, .18), 0 24px 50px -18px rgba(40, 35, 30, .55) !important;
  padding: 40px 34px 32px;
}
.menu__card::after { content: ""; position: absolute; right: 22px; top: 20px; width: 54px; height: 64px; background: url(../img/v4/stamp-1.webp) center / contain no-repeat; transform: rotate(4deg); }
.menu__card h2 { font: 400 52px/1 var(--f-sig) !important; margin: 0 0 18px !important; }
.menu__card nav a { font-size: 24px !important; font-weight: 500 !important; border-bottom: 1px solid rgba(62, 59, 82, .18) !important; }
.menu__card nav a:hover { color: var(--tomato) !important; }

/* ---------- the Listening Room: pink frames ---------- */
.record__art img, .hung img { box-shadow: 7px 9px 0 #e79bb4 !important; }
.record__art img { outline: 1.5px solid #c9688b; }

/* ---------- the Reading Room ---------- */
.reading-foot { grid-template-columns: minmax(0, 1fr) !important; max-width: 520px; }

/* ---------- the Wall: genuine 1960s postcards ---------- */
.penny { font: italic 500 clamp(26px, 3vw, 36px)/1.2 var(--f-display); margin: 6px 0 0; color: var(--ink); }
.pc-styles label { font: 500 13px var(--f-display) !important; letter-spacing: .04em !important; border: 1px solid rgba(62, 59, 82, .35) !important; border-radius: 3px !important; background: #fbf6ee !important; }
.pc-styles label:has(input:checked) { background: #f6dbe4 !important; box-shadow: none !important; border-color: var(--ink) !important; }
.sw { border: 1px solid rgba(62, 59, 82, .4) !important; border-radius: 1px !important; background-blend-mode: multiply !important; }
.sw--botanical { background: #fffaf0 url(../img/v4/pc-back.jpg) center / cover !important; }
.sw--sunset { background: #e9cfa4 url(../img/v4/pc-back.jpg) center / cover !important; }
.sw--meadow { background: #d6e6ee url(../img/v4/pc-back.jpg) center / cover !important; }
.sw--rainbow { background: #f4d9dd url(../img/v4/pc-back.jpg) center / cover !important; }
.postcard, .postcard[data-card] {
  --tint: #fffaf0;
  background: var(--tint) url(../img/v4/pc-back.jpg) center / 100% 100% !important; background-blend-mode: multiply !important;
  border: 0 !important; border-image: none !important; outline: 0 !important; padding: 9% 5% 5% !important;
  box-shadow: 0 1px 1px rgba(60, 50, 40, .25), 4px 8px 16px -8px rgba(40, 35, 30, .5) !important;
}
.postcard[data-card="sunset"] { --tint: #e9cfa4; }
.postcard[data-card="meadow"] { --tint: #d6e6ee; }
.postcard[data-card="rainbow"] { --tint: #f4d9dd; }
.postcard__msg { border-right: 0 !important; }
.postcard[data-card="greetings"] .postcard__msg::before { content: none !important; }
.postcard[data-card="greetings"].is-writing .pc-ink, .postcard[data-card="greetings"].is-writing .pc-text { top: 0 !important; }
.pc-ink { background-image: none !important; }
.pc-ink, .pc-text, .pc-line, .postcard .pc-to, .postcard .pc-from, .postcard .pc-place { font-family: var(--f-pen) !important; font-weight: 400 !important; color: var(--pen) !important; }
.pc-ink, .pc-text { font-size: 15px !important; line-height: 1.9 !important; }
.pc-line, .postcard .pc-to, .postcard .pc-from, .postcard .pc-place { font-size: 14px !important; border-bottom-color: rgba(62, 59, 82, .25) !important; }
.postcard label, .postcard__addr { font-family: var(--f-display) !important; font-weight: 500; }
.postcard .stamp { background: url(../img/v4/stamp-1.webp) center / contain no-repeat !important; border: 0 !important; box-shadow: none !important; }
.postcard .stamp::before, .postcard .stamp::after { content: none !important; }
.postcard[data-card="sunset"] .stamp { background-image: url(../img/v4/stamp-2.webp) !important; }
.postcard[data-card="meadow"] .stamp, .postcard[data-card="rainbow"] .stamp { background-image: url(../img/v4/stamp-3.webp) !important; }
.postcard .postmark { color: rgba(40, 40, 50, .62) !important; border-color: rgba(40, 40, 50, .5) !important; font-family: var(--f-display) !important; }

/* ---------- the Archives: an old black and white film strip ---------- */
.strip {
  background: #1d1b19 !important; box-shadow: 0 16px 34px -16px rgba(20, 18, 16, .7) !important;
}
.tape-frame {
  background:
    repeating-linear-gradient(90deg, #efe9de 0 12px, transparent 12px 28px) 8px 12px / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, #efe9de 0 12px, transparent 12px 28px) 8px calc(100% - 12px) / 100% 14px no-repeat,
    #1d1b19 !important;
  padding: 40px 12px 40px !important;
}
.tape-frame + .tape-frame { border-left: 2px solid #0f0e0d !important; }
.tape-frame__pic { background: #2a2826 !important; border: 0 !important; border-radius: 4px / 6px !important; }
.tape-frame__pic::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply; opacity: .5;
  background: url(../img/paper-grain.png) 0 0 / 220px, radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55));
  animation: flick .18s steps(2) infinite;
}
@keyframes flick { 50% { opacity: .42; background-position: 40px 30px, 0 0; } }
.tape-frame video { background: #2a2826 !important; }
.tape-frame__play { background: rgba(20, 18, 16, .12) !important; }
.tape-frame__play svg { color: #efe9de !important; background: rgba(20, 18, 16, .35) !important; border: 1.5px solid #efe9de !important; box-shadow: none !important; }
.tape-frame figcaption b, .tape-frame figcaption span { display: none !important; }
.tape-frame figcaption { justify-content: center; padding-top: 10px !important; color: #c9a86a !important; font: 400 11px var(--f-mono) !important; letter-spacing: .3em !important; }
.tape-frame figcaption i { margin: 0 !important; }
.tape-frame figcaption i::before { content: "KODAK SAFETY FILM  ▸ "; opacity: .8; }
.reel__go { font-family: var(--f-display) !important; border: 1.5px solid var(--ink) !important; box-shadow: none !important; background: #fbf6ee !important; }

/* ---------- About: photos open with no caption ---------- */
.boafx-g-lb__caption { display: none !important; }

/* ---------- the Wall: a plain plaster wall the cards are pinned to ---------- */
body[data-room="wall"] .room-wall { background: #efe8dd url(../img/paper-grain.png) 0 0 / 256px !important; }
.room-wall .wall-text { background: none !important; }
.cards-wall .postcard { --tilt: 0deg; }
.past-head, #billsPast { display: none !important; }
.eyebrow { font-family: var(--f-display) !important; }
.empty-note { font: italic 500 22px var(--f-display) !important; }

/* ---------- buttons: plain and quiet, no hand-drawn outlines ---------- */
.btn, .back-walk, .back-room, .walk__prompt .btn, .walk__end .btn {
  background: #fbf6ee !important; color: var(--ink) !important; border: 1px solid rgba(62, 59, 82, .45) !important;
  border-radius: 2px !important; box-shadow: none !important; padding: 9px 18px 8px !important; font-size: 16px !important;
}
.btn--fill, .walk__prompt .btn, .walk__end .btn { background: #f6dbe4 !important; }
.btn:hover, .back-walk:hover, .back-room:hover { background: #f1e3c9 !important; }
.btn > svg.rough, .back-walk > svg.rough, .back-room > svg.rough, .walk__prompt .btn > svg.rough { display: none !important; }
.back-room { border: 0 !important; background: none !important; padding-left: 0 !important; }

/* a thank-you card has no button under the words, so drop the gap that was left for it and the text sits centered */
.walk__prompt.is-thanks p { margin-bottom: 0; }

/* ---------- the Wall, v7: the message stays left of the card's printed middle line, and the postmark is the date alone ---------- */
.postcard, .postcard[data-card] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
.postcard .postmark { text-transform: uppercase; line-height: 1 !important; gap: 1px; padding: 6px !important; }
.postcard .postmark b { font-weight: 600; font-size: 10.5px; letter-spacing: .16em; }
.postcard .postmark i { font-style: normal; font-weight: 600; font-size: 30px; line-height: .9; }
/* a phone stacks the message over the address, so the card there is the same paper without the printed line down the middle */
/* the writing starts under the printed heading and the stamp frame, and the stamp sits in its frame at the top right */
.postcard.is-writing .pc-ink, .postcard.is-writing .pc-text { right: 24px !important; width: auto !important; }
.cards-wall .postcard__msg, .sheet .postcard__msg { padding-right: 24px !important; }
@media (max-width: 560px) {
  .postcard, .postcard[data-card] { grid-template-columns: 1fr !important; background-image: url(../img/v4/pc-back-plain.jpg) !important; padding-top: 96px !important; }
  .postcard.is-writing .pc-ink, .postcard.is-writing .pc-text { right: 0 !important; }
  .cards-wall .postcard__msg, .sheet .postcard__msg { padding-right: 0 !important; }
  .postcard .postcard__addr { position: static; padding-right: 0; }
  .postcard .stamp { top: 6%; right: 6.4%; bottom: auto; width: 50px; height: 60px; }
  .postcard .postmark { top: 9%; right: 19%; bottom: auto; }
  .postcard .postmark i { font-size: 24px; }
  .postcard .postmark b { font-size: 9px; }
}
