/* Mark Bell — one house, two rooms.
   Plain CSS. Colours live in :root; EDITING.md explains each one. */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-600-italic.woff2") format("woff2");
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-var.woff2") format("woff2-variations"),
       url("../fonts/source-serif-4-var.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Palette ---------- */
:root {
  --paper: #F3EAD6;        /* hallway paper */
  --ink: #241C14;          /* hallway and study text */
  --cabinet: #2B3B3C;      /* Motte & Bailey room, sampled from the final cover (brief value #2E3A42) */
  --stone: #5E7079;        /* cabinet dividers only: too low-contrast for text */
  --stone-text: #A9B7BC;   /* secondary type in the cabinet (5.7:1 on --cabinet) */
  --light: #DDE2E0;        /* text on the cabinet */
  --wheat: #E7D8B4;        /* Blackstone room */
  --wood: #C17215;         /* study accents, sampled from the final cover (brief value #B07A2E) */
  --thread: #C1663F;       /* the thread, buttons, small accents only */
  --card: #FBFAF4;         /* index-card stock */
  --rule: #C9D6E3;         /* index-card blue rules */

  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --text: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --type: "Courier Prime", "Courier New", Courier, monospace;

  --wrap: 1120px;
  --gutter: clamp(34px, 5vw, 56px);
  --head: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.1875rem/1.62 var(--text);
  font-optical-sizing: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.05; text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.room--cabinet :focus-visible { outline-color: var(--light); }
section[id], footer { scroll-margin-top: var(--head); }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 50;
  padding: 10px 16px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  position: relative; z-index: 2;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  background: var(--thread); color: #fff;
  font: 700 1.1875rem/1.2 var(--text);           /* 19px bold = large text for contrast */
  text-decoration: none; border-radius: 4px;
  box-shadow: 0 2px 0 rgba(36,28,20,.25);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: #AD5532; }
.btn:active { transform: translateY(1px); }
.btn__icon { width: 26px; height: 26px; flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.25)); }
.btn--small { min-height: 40px; padding: 6px 14px; box-shadow: none; }

.quiet-link { font-weight: 600; }

/* ---------- Masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: var(--head);
  padding: 0 clamp(16px, 3vw, 32px);
  background: var(--paper);
  border-bottom: 1px solid rgba(36,28,20,.14);
}
.wordmark {
  margin-right: auto;
  font: 600 1.35rem/1 var(--display);
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
}
.masthead__nav { display: flex; gap: 24px; font-size: 1.0625rem; }
.masthead__nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.masthead__nav a:hover { border-bottom-color: currentColor; }

/* ---------- 1. The Desk ---------- */
.desk {
  position: relative; overflow: hidden;
  display: grid; place-items: center;
  min-height: max(640px, calc(100svh - var(--head)));
  padding: 120px 24px 120px;
  background: linear-gradient(90deg, var(--cabinet) 0 50%, var(--wheat) 50% 100%);
  --drift: 0;
}
.desk__side { position: absolute; top: 0; bottom: 0; width: 50%; }
.desk__side--mb { left: 0; }
.desk__side--bs { right: 0; }
.obj {
  position: absolute; height: auto;
  filter: drop-shadow(0 10px 10px rgba(0,0,0,.32));
  transform: rotate(var(--r, 0deg));
}
.desk__side--mb .obj { translate: calc(var(--drift) * -1px) 0; filter: drop-shadow(0 12px 12px rgba(0,0,0,.45)); }
.desk__side--bs .obj { translate: calc(var(--drift) * 1px) 0; filter: drop-shadow(0 12px 12px rgba(70,40,10,.32)); }
.obj--helmet  { left: 9%;  top: 11%; width: clamp(120px, 15vw, 230px); --r: -9deg; }
.obj--hops    { left: 33%; top: 47%; width: clamp(90px, 10vw, 160px); --r: 14deg; }
.obj--dagger  { left: 13%; top: 50%; width: clamp(44px, 4.4vw, 68px); --r: 38deg; }
.obj--pin     { left: 41%; top: 79%; width: clamp(38px, 3.6vw, 56px); --r: -8deg; }
.obj--matilda { left: 66%; top: 9%;  width: clamp(100px, 10vw, 160px); --r: 5deg; }
.obj--gates   { left: 52%; top: 45%; width: clamp(70px, 6.5vw, 104px); --r: -6deg; }
.obj--typewriter { left: 57%; top: 64%; width: clamp(160px, 17vw, 270px); --r: -4deg; }
.obj--key     { left: 84%; top: 44%; width: clamp(34px, 3.2vw, 50px); --r: 24deg; }

.desk__magnifier {
  position: absolute; z-index: 4; left: 50%; top: -92px;
  width: 140px; transform: translateX(-50%) rotate(-24deg);
  filter: drop-shadow(0 12px 12px rgba(0,0,0,.35));
}
.desk__card {
  position: relative; z-index: 3;
  width: min(600px, 100%);
  padding: clamp(46px, 5vw, 60px) clamp(22px, 4vw, 48px) clamp(26px, 3.4vw, 40px);
  text-align: center;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px rgba(20,14,8,.32), 0 6px 16px rgba(20,14,8,.18);
}
.desk__wordmark {
  font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1; white-space: nowrap;
  letter-spacing: .15em; text-transform: uppercase; margin-right: -.15em;
}
.desk__tagline {
  margin: .55em auto 1.15em; max-width: 20em;
  font: 600 italic clamp(1.35rem, 2.4vw, 1.65rem)/1.25 var(--display);
}
.desk__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.desk__milestone {
  margin: 26px auto 0; padding-top: 18px; max-width: 30em;
  border-top: 1px solid rgba(193,102,63,.6);
  font: 400 1rem/1.5 var(--type);
}
.desk__label {
  position: absolute; z-index: 3; bottom: 26px;
  transform: translateX(-50%) rotate(-1.5deg);
  padding: 6px 14px;
  background: var(--paper); color: var(--ink);
  font: 700 .95rem/1.3 var(--type); letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(0,0,0,.25);
}
.desk__label:hover { text-decoration: underline; }
.desk__label--mb { left: 25%; }
.desk__label--bs { left: 75%; transform: translateX(-50%) rotate(1.5deg); }

/* ---------- Shared section bits ---------- */
.hall { background: var(--paper); padding: clamp(84px, 11vw, 140px) 0; }
.heading {
  display: flex; align-items: center; gap: .32em;
  font-size: clamp(2.3rem, 4.4vw, 3.35rem); margin-bottom: .55em;
}
.heading__mark { width: .82em; height: .82em; flex: none; transform: rotate(-18deg); }
.heading--small { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: .35em; }
.prose { max-width: 36em; }

/* ---------- 2. One World, Two Cases ---------- */
.pair {
  display: grid; grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center; gap: clamp(28px, 6vw, 88px);
  margin-top: clamp(40px, 6vw, 64px);
}
.book { display: block; text-align: center; text-decoration: none; }
.tilt {
  display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  perspective: 900px;
}
.tilt__img {
  grid-area: 1 / 1 / 4 / 4; z-index: 1;
  border-radius: 2px;
  box-shadow: 0 22px 40px rgba(36,28,20,.32), 0 4px 10px rgba(36,28,20,.2);
  transition: transform .35s ease, box-shadow .35s ease;
}
.tilt__z { z-index: 2; }
/* CSS-only tilt toward the cursor: nine invisible zones over the cover */
.tilt:has(.tilt__z:nth-child(1):hover) .tilt__img { transform: rotateX(5deg) rotateY(-5deg); }
.tilt:has(.tilt__z:nth-child(2):hover) .tilt__img { transform: rotateX(5deg); }
.tilt:has(.tilt__z:nth-child(3):hover) .tilt__img { transform: rotateX(5deg) rotateY(5deg); }
.tilt:has(.tilt__z:nth-child(4):hover) .tilt__img { transform: rotateY(-5deg); }
.tilt:has(.tilt__z:nth-child(5):hover) .tilt__img { transform: scale(1.015); }
.tilt:has(.tilt__z:nth-child(6):hover) .tilt__img { transform: rotateY(5deg); }
.tilt:has(.tilt__z:nth-child(7):hover) .tilt__img { transform: rotateX(-5deg) rotateY(-5deg); }
.tilt:has(.tilt__z:nth-child(8):hover) .tilt__img { transform: rotateX(-5deg); }
.tilt:has(.tilt__z:nth-child(9):hover) .tilt__img { transform: rotateX(-5deg) rotateY(5deg); }
.tilt:hover .tilt__img { box-shadow: 0 30px 50px rgba(36,28,20,.36), 0 6px 14px rgba(36,28,20,.22); }
.book__cta {
  display: inline-block; margin-top: 22px;
  font-weight: 600; font-size: 1.125rem;
  text-decoration: underline; text-decoration-color: var(--thread);
  text-decoration-thickness: 2px; text-underline-offset: .28em;
}

/* ---------- 3 + 4. The rooms ---------- */
.room { min-height: 100svh; padding: clamp(200px, 22vw, 260px) 0 clamp(200px, 22vw, 260px); }
/* the crossfade: paper blends into slate, slate into wheat, wheat back into paper */
.room--cabinet {
  color: var(--light);
  background: linear-gradient(180deg, var(--paper) 0, var(--cabinet) clamp(150px, 16vw, 200px), var(--cabinet) calc(100% - clamp(150px, 16vw, 200px)), var(--wheat) 100%);
}
.room--study {
  color: var(--ink);
  background: linear-gradient(180deg, var(--wheat) 0, var(--wheat) calc(100% - clamp(150px, 16vw, 200px)), var(--paper) 100%);
}

.room__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  grid-template-areas: "text art" "tags art";
  grid-template-rows: auto 1fr;
  column-gap: clamp(36px, 5.5vw, 80px); row-gap: 40px;
  align-items: start;
}
.room__grid--flip {
  grid-template-columns: minmax(300px, 500px) minmax(0, 1fr);
  grid-template-areas: "art text" "art tags";
}
.room__text { grid-area: text; }
.room__text p { max-width: 34em; }
.art { grid-area: art; margin: 0; }
.tags { grid-area: tags; }

.series-line {
  margin-bottom: .9em;
  font: 700 .9375rem/1.3 var(--type); letter-spacing: .16em; text-transform: uppercase;
}
.room--cabinet .series-line { color: var(--stone-text); }
.room__title { font-size: clamp(2.7rem, 5.2vw, 4.1rem); margin-bottom: .5em; }
.comparison {
  margin-top: 1.3em;
  font: 600 italic 1.45rem/1.3 var(--display);
}
.room--cabinet .comparison { color: var(--light); }
.room__text .btn { margin-top: 1.4em; }

/* the cover with its hotspots */
.art__frame { position: relative; }
.art__cover {
  width: 100%; border-radius: 2px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4), 0 6px 16px rgba(0,0,0,.25);
}
.room--study .art__cover { box-shadow: 0 30px 60px rgba(80,45,10,.35), 0 6px 16px rgba(80,45,10,.2); }
.lift {
  position: absolute; z-index: 2; height: auto; pointer-events: none;
  transition: transform .35s ease, filter .35s ease;
}
.lift.is-lifted { transform: translateY(-5%) scale(1.07); filter: drop-shadow(0 14px 10px rgba(0,0,0,.5)); }
.hotspot {
  position: absolute; z-index: 3;
  margin: 0; padding: 0; border: 0; border-radius: 6px;
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hotspot:hover, .hotspot:focus-visible, .hotspot[aria-expanded="true"] {
  outline: 2px solid var(--thread); outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(243,234,214,.8), inset 0 0 0 1px rgba(243,234,214,.6);
}
html:not(.js) .hotspot { display: none; }
/* ?hotspots in the address bar shows every outline for alignment checks */
.show-hotspots .hotspot { outline: 2px dashed var(--thread); background: rgba(193,102,63,.14); }
.show-hotspots .hotspot::after {
  content: attr(data-label); position: absolute; left: 0; top: 0;
  padding: 1px 5px; background: var(--paper); color: var(--ink);
  font: 700 11px/1.3 var(--type);
}

/* labels: specimen tags (cabinet) and index cards (study) */
.tags__title { font-size: 1.6rem; margin-bottom: .7em; }
.tag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.js .tags__title, .js .tag-list {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.tag-display { display: none; }
.js .tag-display { display: block; }

.tag { position: relative; display: block; font: 400 1.0625rem/1.55 var(--type); color: var(--ink); }
.tag__no, .tag__name, .tag__text { display: block; }
.tag__no { font-weight: 700; font-size: .875rem; letter-spacing: .12em; }
.tag__name { font-weight: 700; font-size: 1.125rem; margin: 4px 0 6px; }
.tag__name i { font-style: italic; }

.tags--specimen .tag {
  max-width: 400px;
  padding: 20px 24px 22px 58px;
  background: var(--paper);
  border-radius: 4px 16px 16px 4px;
  box-shadow: 0 14px 26px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25);
  transform: rotate(-1.2deg);
}
.tags--specimen .tag::before {           /* the tag's string hole */
  content: ""; position: absolute; left: 20px; top: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cabinet); box-shadow: 0 0 0 3px #CDBF9D;
}
.tags--specimen .tag::after {            /* a short length of thread */
  content: ""; position: absolute; left: -26px; top: 33px;
  width: 54px; height: 2px; background: var(--thread); transform: rotate(-8deg);
  transform-origin: right center;
}
.tags--specimen .tag__no { padding-bottom: 7px; margin-bottom: 4px; border-bottom: 1px dashed rgba(36,28,20,.45); }

.tags--cards .tag {
  max-width: 420px;
  padding: 16px 24px 24px;
  line-height: 28px;
  background:
    linear-gradient(#D9685D, #D9685D) 0 60px / 100% 2px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px) 0 60px / 100% 100% no-repeat,
    var(--card);
  box-shadow: 0 14px 26px rgba(80,45,10,.28), 0 2px 4px rgba(80,45,10,.2);
  transform: rotate(.9deg);
}
.tags--cards .tag__no { line-height: 18px; }
.tags--cards .tag__name { margin: 2px 0 6px; line-height: 24px; }
.tags--cards .tag__text { padding-top: 0; }

.hint {
  max-width: 400px; margin: 0; padding: 16px 20px;
  font: 400 1rem/1.5 var(--type);
  border: 1px dashed currentColor; border-radius: 4px;
  opacity: .9;
}
.room--cabinet .hint { color: var(--light); border-color: var(--stone-text); }
.tag__close {
  position: absolute; right: 14px; top: 12px;
  padding: 2px 4px; border: 0; background: none; color: var(--ink);
  font: 700 .875rem/1 var(--type); text-decoration: underline; cursor: pointer;
}

/* ---------- 5. How It Works ---------- */
.steps {
  list-style: none; margin: 8px 0 44px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 8px;
  font: 600 3.4rem/1 var(--display); color: var(--thread);
  font-variant-numeric: lining-nums;
}
.steps strong { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.15; margin-bottom: .3em; }

/* ---------- 6. Early Readers ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 12px; }
.quote { margin: 0; padding-top: 18px; border-top: 2px solid var(--thread); }
.quote blockquote { margin: 0 0 12px; font: 600 italic 1.6rem/1.28 var(--display); }
.quote figcaption { font: 400 .9375rem/1.4 var(--type); }

/* ---------- 7. About ---------- */
.about { display: grid; grid-template-columns: minmax(200px, 320px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__photo { margin: 0; padding: 12px 12px 40px; background: #FFFDF7; box-shadow: 0 18px 34px rgba(36,28,20,.25); transform: rotate(-2deg); }

/* ---------- 8. Behind the Desk ---------- */
.behind { background: var(--paper); padding: clamp(56px, 7vw, 84px) 0; border-top: 1px solid rgba(36,28,20,.14); border-bottom: 1px solid rgba(36,28,20,.14); }
.behind__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.behind__inner p { max-width: 36em; }

/* ---------- Footer ---------- */
.footer { padding: 56px var(--gutter) 48px; text-align: center; }
.footer__links, .footer__credits { position: relative; z-index: 2; }
.footer__magnifier { width: 76px; height: 76px; margin: 0 auto 22px; transform: rotate(-18deg); }
.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0 0 18px; padding: 0; list-style: none; font-weight: 600; }
.footer__credits { font-size: 1rem; }

/* ---------- The thread (drawn by js/site.js) ---------- */
.thread { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--thread); stroke-width: 2; stroke-linecap: round; }
.thread .pin { opacity: 0; transition: opacity .3s ease; }
.thread .pin.is-on { opacity: 1; }

/* ---------- Sections rise and fade in (enabled by js/site.js) ---------- */
html.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
html.reveal-on .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .room__grid, .room__grid--flip {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 44vw);
    grid-template-areas: "text art" "tags art";
  }
  .room__grid--flip { grid-template-columns: minmax(280px, 44vw) minmax(0, 1fr); grid-template-areas: "art text" "art tags"; }
}

@media (max-width: 860px) {
  .room__grid, .room__grid--flip {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "art" "tags";
    grid-template-rows: auto;
  }
  .art { max-width: 520px; }
  .steps, .quotes { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 22px; --head: 56px; }
  .wrap { padding-left: 36px; padding-right: 20px; }   /* room for the thread on the left */
  .masthead__nav { display: none; }
  .wordmark { font-size: 1.15rem; letter-spacing: .15em; }

  .desk {
    display: grid; grid-template-rows: 172px auto 172px; place-items: center;
    min-height: 0; padding: 0;
    background: linear-gradient(180deg, var(--cabinet) 0 50%, var(--wheat) 50% 100%);
  }
  .desk__side { position: relative; width: 100%; height: 172px; top: auto; bottom: auto; }
  .desk__side--mb { grid-row: 1; }
  .desk__side--bs { grid-row: 3; }
  .desk__card { grid-row: 2; width: calc(100% - 28px); }
  .obj--helmet  { left: 6%;  top: 24%; width: 92px; }
  .obj--hops    { left: 38%; top: 34%; width: 80px; }
  .obj--dagger  { left: 76%; top: 4%;  width: 32px; }
  .obj--pin     { left: 62%; top: 62%; width: 32px; }
  .obj--matilda { left: 7%;  top: 16%; width: 72px; }
  .obj--gates   { left: 34%; top: 24%; width: 56px; }
  .obj--typewriter { left: 50%; top: 8%; width: 128px; }
  .obj--key     { left: 88%; top: 10%; width: 22px; --r: 18deg; }
  .desk__magnifier { top: -54px; left: auto; right: 14px; width: 86px; transform: rotate(-24deg); }
  .desk__card { padding: 38px 20px 22px; }
  .desk__tagline { margin: .45em auto .9em; }
  .desk__milestone { margin-top: 18px; padding-top: 14px; font-size: .9375rem; }
  .desk__wordmark { font-size: clamp(2rem, 10vw, 2.6rem); }
  .desk__label { bottom: auto; font-size: .875rem; }
  .desk__label--mb { top: 14px; left: 16px; transform: rotate(-1.5deg); }
  .desk__label--bs { top: auto; bottom: 14px; left: auto; right: 16px; transform: rotate(1.5deg); }

  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .book__cta { font-size: 1rem; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 260px; }
  .tags--specimen .tag { padding-left: 52px; }
  .btn { width: 100%; }
  .btn--small { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tilt__img, .lift.is-lifted { transform: none !important; }
  .desk__side .obj { translate: none !important; }
  html.reveal-on .reveal { opacity: 1; transform: none; }
}

@media print {
  .masthead, .thread, .hotspot, .lift { display: none !important; }
  .room--cabinet { background: #fff; color: #000; }
}

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 32px 22px; }
.lost__inner { text-align: center; max-width: 34em; }
.lost__magnifier { width: 120px; height: 120px; margin: 0 auto 28px; transform: rotate(-18deg); filter: drop-shadow(0 10px 10px rgba(36,28,20,.25)); }
.lost__line { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1em; }
