/* About (owner note 51): one screen, only the Reading Room. The lake lives in the painting above the fireplace; the
   words sit in the room's own shadow by the right-hand bookshelves, lit like the lamps. No card, no scrolling. */
:root { --ink: #F2E9DA; --dim: #CDBFA8; --faint: #9C8E78; --gold: #FFC867; --lamp: 255 196 120; }
body.about { margin: 0; color: var(--ink); background: #110b08; }

.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(18px, 3vw, 48px); }
.bar .wordmark { font-family: var(--pixel); font-size: 18px; letter-spacing: .08em; color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.bar-links { display: flex; align-items: center; gap: 22px; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.bar .get, .cta { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915;
  background: var(--gold); padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* The room fills the screen */
.room { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.world { position: absolute; inset: 0; }
/* The painting above the fireplace: its picture area is placed exactly over the art (about.js) */
.painting { position: absolute; margin: 0; overflow: hidden; z-index: 2; background: #000;
  box-shadow: 0 0 calc(var(--px, 4px) * 3) rgb(var(--lamp) / .28); }
.painting .real, .painting .pixel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s ease-in-out; }
.painting .pixel { image-rendering: pixelated; opacity: 0; }
.painting.is-pixel .pixel { opacity: 1; }
.painting::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .25)); box-shadow: inset 0 0 calc(var(--px, 4px) * 1.5) rgba(0, 0, 0, .55); }
/* a little brass plaque under the frame names what you're seeing */
.plaque { position: absolute; z-index: 2; margin: 0; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: #2a1c0e;
  background: linear-gradient(#e8c27a, #b98a43); padding: 2px 6px; border-radius: 2px; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); }

/* the room's own shadow over the right-hand shelves, where the words sit */
.shade { position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(270deg, rgba(12, 7, 4, .9) 0, rgba(12, 7, 4, .82) 26%, rgba(12, 7, 4, .45) 40%, rgba(12, 7, 4, 0) 52%),
    linear-gradient(to bottom, rgba(12, 7, 4, .5), rgba(12, 7, 4, 0) 14%); }

/* The words: warm serif, as if lit by the desk lamps; sized to fit one screen */
.words { position: absolute; z-index: 5; isolation: isolate; right: clamp(18px, 4vw, 72px); top: 50%; transform: translateY(-50%); width: min(440px, 36vw);
  font-size: clamp(14.5px, 1.72vh, 17.5px); }
.kicker { margin: 0 0 6px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 1.1em; font-family: var(--pixel); font-weight: 500; font-size: clamp(26px, 3vh, 36px); line-height: 1.08; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.body { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; line-height: 1.55; color: var(--ink); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
.body p { margin: 0 0 .75em; }
.body .hi { font-size: 1.12em; }
.body .sign { margin: .9em 0 .6em; font-size: 1.45em; font-style: italic; color: rgb(var(--lamp)); }
.body .ps { font-size: .9em; color: var(--dim); }
.body a { color: rgb(var(--lamp)); text-underline-offset: 3px; }
.body .lake { margin: -.15em 0 .9em; }
.listen { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 7px 13px 7px 10px; cursor: pointer;
  background: rgba(255, 200, 120, .14); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 200, 120, .45);
  font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-shadow: none; }
.listen svg { width: 15px; height: 15px; fill: currentColor; }
.listen .i-pause { display: none; } .listen[aria-pressed="true"] .i-pause { display: block; } .listen[aria-pressed="true"] .i-play { display: none; }
.listen[aria-pressed="true"] { background: rgba(255, 200, 120, .3); }

.after { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1em; }
.after .ghost { font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 9px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(242, 233, 218, .3); }
.after .ghost:hover { background: rgba(242, 233, 218, .08); }
.fine { position: absolute; z-index: 5; right: clamp(18px, 4vw, 72px); bottom: 12px; margin: 0; font-size: 11px; color: var(--faint); }
.draft { opacity: .8; }

/* Owner note 52: the words as a note. Writing paper lit by the desk lamps, with no hard edge: the sheet fades into the
   room's shadow (soft mask), sits at a slight angle, and has faint ruled lines. The greeting and the signature are
   handwritten (Caveat, SIL OFL; shared/fonts/OFL-Caveat.txt). */
@font-face { font-family: "Caveat"; src: url("../shared/fonts/Caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
.words { padding: 1.9em 2.2em 1.5em; transform: translateY(-50%) rotate(-1.1deg); color: #33271d; font-size: clamp(13.5px, 1.62vh, 17px); }
.words::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* lit like the room: warm from the lamps at the top left, falling into shadow at the bottom right */
  background:
    linear-gradient(135deg, rgba(255, 244, 222, .35) 0, rgba(255, 244, 222, 0) 38%, rgba(40, 24, 10, 0) 62%, rgba(40, 24, 10, .30) 100%),
    repeating-linear-gradient(to bottom, rgba(120, 84, 48, 0) 0, rgba(120, 84, 48, 0) calc(1.55em - 1px), rgba(120, 84, 48, .09) calc(1.55em - 1px), rgba(120, 84, 48, .09) 1.55em),
    linear-gradient(#efe3cb, #e4d3b5);
  /* a soft, uneven paper edge rather than a ruled card edge */
  clip-path: polygon(0.6% 1.2%, 18% 0.3%, 41% 1%, 63% 0.2%, 86% 0.9%, 99.4% 0.4%, 99.1% 22%, 99.7% 47%, 99.2% 71%, 99.6% 99.3%, 77% 99.8%, 52% 99.1%, 29% 99.9%, 0.4% 99.4%, 0.9% 74%, 0.2% 51%, 0.8% 26%);
  box-shadow: inset 0 0 40px rgba(90, 60, 30, .18); }
.words::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; border-radius: 2px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35); transform: translate(4px, 6px); filter: blur(2px); opacity: .7; }
.words .kicker { color: #9a6a2a; }
.words h1 { color: #33271d; text-shadow: none; }
.words .body { color: #33271d; text-shadow: none; }
.words .body .hand, .words .body .sign { font-family: "Caveat", "Bradley Hand", "Noteworthy", cursive; font-weight: 600; font-style: normal; }
.words .body .hand { font-size: 1.45em; line-height: 1; margin-right: .15em; color: #2a1f16; }
.words .body .sign { font-size: 2.1em; line-height: 1; color: #2a1f16; margin: .5em 0 .45em; }
.words .body .ps { color: #5e4c3b; }
.words .body a { color: #8a5a1c; }
.words .listen { background: #33271d; color: #f1e6d2; box-shadow: none; }
.words .listen[aria-pressed="true"] { background: #8a5a1c; }
.words .after .ghost { color: #33271d; box-shadow: inset 0 0 0 1px rgba(51, 39, 29, .35); }
.words .after .ghost:hover { background: rgba(51, 39, 29, .06); }
@media (max-width: 900px) {
  .words { transform: none; margin: 0 12px; padding: 2em 1.6em 1.6em; }
  .words::after { transform: translate(0, 6px); }
  .room { overflow-x: clip; }
}

@media (max-width: 900px) {
  .bar .back .lbl { display: none; }
  .room { height: auto; min-height: 0; overflow: visible; }
  .world { position: relative; height: 56svh; overflow: hidden; }
  .shade { height: 56svh; background: linear-gradient(to bottom, rgba(12, 7, 4, .45), rgba(12, 7, 4, 0) 25%, rgba(12, 7, 4, 0) 70%, #110b08 100%); }
  .words { position: relative; transform: none;   /* relative, so its paper stays behind the note, not over the room */  width: auto; padding: 4px 18px 0; font-size: 17px; }
  .fine { position: static; padding: 14px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
