/* ===========================================================
   LINNAEUS BOOKSELLERS — broadsheet stylesheet
   Implements the full DESIGN.md token set as CSS variables,
   then composes pages from those variables only.
   =========================================================== */

:root {
  /* ---- Color tokens (DESIGN.md §2) ---- */
  --ink-black:        #000000;       /* WIRED Black — strongest hand on page */
  --page-ink:         #1a1a1a;       /* Headlines + body type */
  --paper:            #ffffff;       /* Newsprint canvas */
  --link-blue:        #057dbc;       /* Sole brand accent */
  --caption-gray:     #757575;       /* Bylines, timestamps */
  --disabled-gray:    #999999;
  --hairline:         #e2e8f0;       /* §6 level-1 hairline */
  --hairline-strong:  #1a1a1a;       /* §6 level-2 column rule */
  --footer-ink:       #1a1a1a;       /* §2 inverted region */

  /* ---- Type stacks (DESIGN.md §3, with substitution per §3 note) ---- */
  --serif-display:    "Playfair Display", "PP Editorial Old", "EB Garamond", Georgia, "Times New Roman", serif;
  --serif-body:       "Source Serif 4", "BreveText", Lora, Georgia, "Times New Roman", serif;
  --sans-ui:          "Inter", "Apercu", "Work Sans", system-ui, -apple-system, sans-serif;
  --mono-kicker:      "JetBrains Mono", "WiredMono", "Iosevka", ui-monospace, "Courier New", monospace;

  /* ---- Spacing scale (DESIGN.md §5, base 8) ---- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  40px;
  --space-8:  48px;
  --space-9:  64px;
  --space-10: 96px;

  /* ---- Rule weights (DESIGN.md §6) ---- */
  --rule-hair:        1px solid var(--hairline);
  --rule-strong:      1px solid var(--hairline-strong);
  --rule-button:      2px solid var(--ink-black);

  /* ---- Layout (DESIGN.md §5) ---- */
  --container-max:    1440px;
  --gutter-page:      48px;
  --col-gap:          32px;

  /* ---- Type scale (display loosened +0.10 line-height per §3 note for Playfair) ---- */
  --lh-display-hero:  1.04;
  --lh-display-mid:   1.18;
  --ls-display-hero:  -0.02em;

  /* ---- Transitions ---- */
  --t-fast: 120ms ease-out;
  --t-med:  150ms ease-out;
}

/* ===========================================================
   RESET
   =========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, table, td, th {
  margin: 0;
  padding: 0;
}
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
a { color: inherit; }

.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;
}

/* ===========================================================
   PAGE BASE
   =========================================================== */
html, body {
  background: var(--paper);
  color: var(--page-ink);
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p { font-feature-settings: "onum" 1, "kern" 1; }

a {
  color: var(--page-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t-fast);
}
a:hover { color: var(--link-blue); }

.link {
  color: var(--page-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { color: var(--link-blue); }

/* ===========================================================
   SHARED ATOMS
   =========================================================== */

/* Mono kicker — DESIGN.md §3 (13px / uppercase / 0.92px tracking) */
.kicker {
  font-family: var(--mono-kicker);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--page-ink);
}
.kicker--soft  { color: var(--caption-gray); font-weight: 400; }
.kicker--top   { margin-top: var(--space-5); }
.kicker--invert { color: var(--paper); }

/* Mono base */
.mono {
  font-family: var(--mono-kicker);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}

/* Byline */
.byline {
  margin-top: var(--space-2);
  color: var(--caption-gray);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* Caption */
.caption {
  margin-top: var(--space-3);
  font-family: var(--serif-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--caption-gray);
  font-weight: 400;
  font-style: italic;
}

/* Section deck — used after a ribbon */
.section-deck {
  max-width: 60ch;
  font-family: var(--serif-body);
  font-size: 18px;
  font-style: italic;
  line-height: 1.5;
  color: var(--page-ink);
  padding: var(--space-7) var(--gutter-page) var(--space-6);
  border-bottom: var(--rule-strong);
}

/* Ribbon — DESIGN.md §4 black bar */
.ribbon {
  background: var(--ink-black);
  color: var(--paper);
  padding: 10px var(--gutter-page);
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.ribbon--invert { background: var(--ink-black); }
.ribbon__label {
  font-family: var(--mono-kicker);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
}

/* Drop cap */
.dropcap {
  float: left;
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 5.2em;
  line-height: 0.86;
  padding: 0.06em 0.08em 0 0;
  margin-right: 0.05em;
  color: var(--page-ink);
}

/* Buttons — DESIGN.md §4 */
.btn {
  display: inline-block;
  font-family: var(--sans-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-black);
  background: var(--paper);
  border: var(--rule-button);
  border-radius: 0;
  padding: 10px 18px;
  cursor: pointer;
  transition: background var(--t-med), color var(--t-med);
}
.btn:hover { background: var(--ink-black); color: var(--paper); }
.btn--solid { background: var(--ink-black); color: var(--paper); }
.btn--solid:hover { background: var(--paper); color: var(--ink-black); }
.btn[data-rsvp].is-rsvp { background: var(--ink-black); color: var(--paper); }

/* ===========================================================
   UTILITY STRIP
   =========================================================== */
.utility {
  background: var(--ink-black);
  color: var(--paper);
}
.utility__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 9px var(--gutter-page);
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.utility .mono {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.utility a.mono { text-decoration: none; }
.utility a.mono:hover { color: var(--link-blue); }
.utility__sep { color: var(--caption-gray); }
.utility__left, .utility__right {
  display: flex;
  gap: var(--space-4);
  align-items: center;
}
.utility__right { gap: var(--space-5); }

/* ===========================================================
   MASTHEAD
   =========================================================== */
.masthead {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-page);
}
.masthead__rule {
  height: 0;
  border-top: var(--rule-strong);
  margin: 0;
}
.masthead__rule--top    { border-top-width: 2px; margin-top: 0; }
.masthead__rule--bottom { border-top-width: 2px; }

.masthead__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0 14px;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.masthead__meta {
  display: flex;
  gap: var(--space-4);
  align-items: baseline;
}
.masthead__meta--right { justify-content: flex-end; }

.wordmark {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  color: var(--page-ink);
  padding: 18px 0 22px;
  text-align: center;
  font-feature-settings: "lnum" 1, "kern" 1;
}
.wordmark__line { display: block; }
.wordmark__line--ital {
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}
.wordmark--small {
  font-size: clamp(38px, 6vw, 64px);
  text-align: left;
  padding: 0;
  line-height: 0.9;
  color: var(--paper);
}

.masthead__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 14px;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.tagline {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--page-ink);
}
.tagline--secondary {
  font-family: var(--mono-kicker);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--caption-gray);
  text-align: right;
}

/* ===========================================================
   FRONT PAGE — LEAD + 2 SIDE COLS
   =========================================================== */
.front {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter-page) var(--space-9);
}
.front__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: var(--space-6);
  position: relative;
}
.front__grid > * { min-width: 0; }

.lead { padding-right: var(--space-6); border-right: var(--rule-strong); }

.lead__headline {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: var(--lh-display-hero);
  letter-spacing: var(--ls-display-hero);
  color: var(--page-ink);
  text-wrap: balance;
}

.lead__figure { margin: var(--space-6) 0 var(--space-4); }
.lead__lede {
  font-family: var(--serif-body);
  font-size: 20px;
  line-height: 1.55;
  color: var(--page-ink);
  margin-top: var(--space-5);
}
.lead__lede::after { content: ""; display: block; clear: both; }
.lead__body {
  font-family: var(--serif-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--page-ink);
  margin-top: var(--space-4);
}
.readmore {
  margin-top: var(--space-5);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.readmore a {
  text-decoration: none;
  border-bottom: var(--rule-strong);
  padding-bottom: 2px;
}

.side {
  padding: 0 var(--space-5);
  border-right: var(--rule-strong);
}
.side:last-child { border-right: 0; padding-right: 0; }

.side__headline {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 26px;
  line-height: var(--lh-display-mid);
  letter-spacing: -0.01em;
  color: var(--page-ink);
  text-wrap: balance;
}
.side__body {
  margin-top: var(--space-3);
  font-size: 15.5px;
  line-height: 1.55;
}
.side__meta {
  margin-top: var(--space-5);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--caption-gray);
  border-top: var(--rule-hair);
  padding-top: var(--space-3);
}
.side__cta {
  margin-top: var(--space-4);
  font-family: var(--sans-ui);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ===========================================================
   REAL COVERS — Open Library JPGs, hairline frame, no rounded
   corners. The frame and tiny shadow are the chrome; the
   image does the rest.
   =========================================================== */
.cover-img {
  position: relative;
  width: 100%;
  background: #f3efe6;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.06),
    0 14px 28px -22px rgba(0, 0, 0, 0.35);
  isolation: isolate;
}
.cover-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 2;
}
.cover-img img {
  display: block;
  width: 100%;
  height: auto;
  background: #ece7da; /* fallback if Open Library serves the 1x1 placeholder */
}

/* Lead figure cover — wider treatment with editorial framing */
.lead-cover {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: linear-gradient(180deg, #efeae0 0%, #e2dccf 100%);
  padding: clamp(20px, 3.6vw, 44px) clamp(20px, 3vw, 36px);
  border-top: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.lead-cover__img {
  display: block;
  height: clamp(280px, 38vw, 460px);
  width: auto;
  background: #ece7da;
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.07),
    0 22px 44px -28px rgba(0, 0, 0, 0.55);
  outline: 1px solid rgba(0, 0, 0, 0.22);
  outline-offset: -1px;
}

/* ===========================================================
   STAFF PICKS GRID
   =========================================================== */
.picks {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-page) var(--space-9);
}
.picks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: var(--rule-strong);
}
.pick {
  padding: var(--space-6) var(--space-5);
  border-right: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.pick:nth-child(3n) { border-right: 0; }
.pick:nth-last-child(-n+3) { /* keep bottom border for visual rhythm */ }
.pick:first-child { padding-left: 0; }
.pick:nth-child(3n + 1) { padding-left: 0; }
.pick:nth-child(3n) { padding-right: 0; }

.pick > .cover-img { margin-bottom: var(--space-4); max-width: 240px; }
.pick > .kicker { margin-bottom: 6px; }
.pick__title {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--page-ink);
}
.pick__author {
  margin-top: var(--space-2);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--caption-gray);
}
.pick__body {
  margin-top: var(--space-3);
  font-size: 15.5px;
  line-height: 1.6;
}
.pick__inner > * { display: contents; }

/* ===========================================================
   SCROLL-DRIVEN BOOK-OPENING ANIMATION
   The track is 500vh tall; inside, a sticky 100vh stage pins
   a 3D scene. A --progress custom property (0..1) is written
   to the section by JS (rAF fallback) and/or via CSS scroll-
   timeline where supported. Every transform reads from it.
   =========================================================== */
.book-anim {
  --progress: 0;
  --p-cover: 0;       /* derived: 0..1 over 0.00-0.10 */
  --p-page-1: 0;      /* derived: 0..1 over 0.10-0.27 */
  --p-page-2: 0;      /* 0.27-0.42 */
  --p-page-3: 0;      /* 0.42-0.57 */
  --p-page-4: 0;      /* 0.57-0.72 */
  --p-page-5: 0;      /* 0.72-0.87 */
  --p-settle: 0;      /* 0.87-1.00 */

  position: relative;
  background: var(--paper);
  border-bottom: var(--rule-strong);
}
.book-anim__track {
  position: relative;
  height: 500vh; /* the scroll budget */
}
.book-anim__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* generous bottom padding reserves room for the caption block so the
     unfolded book never crowds it, and overflow:hidden hard-clips the
     scene so it can never bleed past the section edge into the picks
     grid below. */
  padding: clamp(40px, 6vh, 80px) clamp(20px, 4vw, 60px) clamp(96px, 14vh, 160px);
  box-sizing: border-box;
  overflow: hidden;
  /* faint paper texture: layered radial vignettes */
  background:
    radial-gradient(ellipse at 50% 15%, rgba(0,0,0,0.04), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,0.06), transparent 65%),
    var(--paper);
}
.book-anim__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 4vh, 48px);
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
  z-index: 5;
}
.book-anim__deck {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--page-ink);
  text-wrap: balance;
  max-width: 32ch;
  margin: 0 auto;
  transition: opacity 320ms ease-out;
}

/* ---- 3D SCENE ----
   The scene gets two filter-shadows that grow softer/larger as the cover
   lifts — the book "rises off the table" the moment it starts opening.
   --lift is a 0..1 derived value: max of cover progress (clamped early) and
   settle progress, so the shadow expands during opening and stays expanded
   while the book is open. */
.book-scene {
  --lift: max(var(--p-cover), var(--p-settle));
  perspective: 2400px;
  perspective-origin: 50% 30%;
  /* Cap the scene so the unfolded cover (which swings up to ~160deg out
     to the left of its hinge) plus the float animation cannot reach the
     viewport edges. Stage padding handles the rest. */
  width: min(58vh, 460px);
  aspect-ratio: 3 / 4;
  position: relative;
  filter:
    drop-shadow(0
      calc(20px + var(--lift) * 22px)
      calc(34px + var(--lift) * 30px)
      rgba(0,0,0, calc(0.16 + var(--lift) * 0.06)))
    drop-shadow(0
      calc(4px + var(--lift) * 6px)
      calc(8px + var(--lift) * 8px)
      rgba(0,0,0, calc(0.10 + var(--lift) * 0.04)));
  transition: filter 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Soft cast shadow on the table beneath the book. Sits behind the scene
   (z-index: -1) and grows wider/softer as the cover opens — the way a
   hardback throws a broader shadow once its weight redistributes. */
.book-scene::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -7%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(0,0,0,0.26) 0%,
    rgba(0,0,0,0.14) 38%,
    rgba(0,0,0,0) 72%);
  filter: blur(calc(8px + var(--lift) * 10px));
  transform: scale(calc(0.92 + var(--lift) * 0.12),
                   calc(0.86 + var(--lift) * 0.10));
  opacity: calc(0.55 + var(--lift) * 0.25);
  pointer-events: none;
  z-index: -1;
}

/* Subtle floating motion at rest — barely there */
@keyframes book-float {
  0%, 100% { transform: translateY(0) rotateX(8deg); }
  50%      { transform: translateY(-6px) rotateX(8deg); }
}
.book {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  /* Resting tilt + scroll-driven open angle (X tilt + Z lift on settle) */
  transform:
    rotateX(calc(8deg - var(--p-settle) * 2deg))
    rotateZ(calc(var(--p-settle) * -1.5deg));
  animation: book-float 6s ease-in-out infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .book { animation: none; }
}

/* Back cover — sits on the table, never moves. Cloth + emboss. */
.book__cover--back {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.05), transparent 65%),
    linear-gradient(180deg, #2a1a1f 0%, #1a0e12 100%);
  background-color: #2a1a1f;
  transform: translateZ(-2px);
  border: 1px solid #0e0608;
  box-shadow: inset 0 0 1px rgba(255,255,255,0.04);
}

/* Spine — thicker strip on the LEFT giving the book real binding depth.
   Visible from front-left perspective. The vertical highlight at the
   centre suggests the curved cloth-bound ridge of a hardback. */
.book__spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 11px;
  transform-origin: left center;
  /* rotate it so it forms the left edge of the book block */
  transform: rotateY(-90deg) translateZ(0);
  background:
    /* head- and tail-band: thin warm strips at top and bottom */
    linear-gradient(180deg,
      #b08a3a 0, #b08a3a 2.2%,
      transparent 2.2%, transparent 97.8%,
      #b08a3a 97.8%, #b08a3a 100%),
    /* central highlight — cloth ridge */
    linear-gradient(90deg,
      #1a0d10 0%, #2c1a20 38%, #3a2329 50%, #2c1a20 62%, #1a0d10 100%),
    #2a1a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}
.book__spine-text {
  font-family: var(--mono-kicker);
  font-size: 7px;
  letter-spacing: 0.22em;
  color: rgba(236,230,212,0.7);
  white-space: nowrap;
  transform: rotate(-90deg);
}

/* Pages container holds all flippable elements in 3D */
.book__pages {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

/* A single page (or the front cover, which is page 0):
   2-sided plane hinged on its left edge. */
.page {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
  /* Each page sits at a small Z offset based on its index — closed stack
     renders cleanly without z-index hacks. The cover gets a larger gap so
     it clears the inner pages as it swings. */
  --tz-rest: calc((4 - var(--i)) * 0.7px);
  /* Tiny per-page horizontal jitter on the fore-edge so the closed stack
     doesn't look laser-cut. Pseudo-randomised by index. */
  --edge-jitter: calc((var(--i) - 2.2) * 0.18px);
}

/* Closed-state ordering (cover on top, page 4 at bottom).
   The cover lifts a touch in Z while it opens so it doesn't shave the
   inner pages on its way past 90deg. Inner pages each get a faint upward
   Z bump that peaks at the midway point of their flip — sells the
   "page lifting on its hinge before falling onto the left pile" gesture. */
.page--cover {
  transform:
    translateX(var(--edge-jitter))
    translateZ(calc(var(--tz-rest) + var(--p-cover) * 4px))
    rotateY(calc(var(--p-cover) * -162deg));
}
/* The translateZ "bump" uses min(p, 1-p) — a triangle wave that peaks at
   p=0.5 (page is vertical) and is zero at the start/end, so each page
   appears to lift off the stack as it flips and re-settle on the left. */
.page[style*="--i: 1"] {
  transform:
    translateX(var(--edge-jitter))
    translateZ(calc(var(--tz-rest) + min(var(--p-page-1), 1 - var(--p-page-1)) * 6px))
    rotateY(calc(var(--p-page-1) * -180deg));
}
.page[style*="--i: 2"] {
  transform:
    translateX(var(--edge-jitter))
    translateZ(calc(var(--tz-rest) + min(var(--p-page-2), 1 - var(--p-page-2)) * 6px))
    rotateY(calc(var(--p-page-2) * -180deg));
}
.page[style*="--i: 3"] {
  transform:
    translateX(var(--edge-jitter))
    translateZ(calc(var(--tz-rest) + min(var(--p-page-3), 1 - var(--p-page-3)) * 6px))
    rotateY(calc(var(--p-page-3) * -180deg));
}
.page[style*="--i: 4"] {
  transform:
    translateX(var(--edge-jitter))
    translateZ(calc(var(--tz-rest) + min(var(--p-page-4), 1 - var(--p-page-4)) * 6px))
    rotateY(calc(var(--p-page-4) * -180deg));
}

.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #f7f1e3;
  overflow: hidden;
}
.face--front {
  background:
    /* deep gutter shadow at the spine (where pages press into the binding) */
    linear-gradient(90deg,
      rgba(0,0,0,0.22) 0%,
      rgba(0,0,0,0.10) 6%,
      rgba(0,0,0,0) 16%),
    /* outer-edge highlight (ink-side of the fore-edge) */
    linear-gradient(270deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 18%),
    /* very faint vertical paper grain */
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,0.04) 100%),
    #f7f1e3;
}
.face--back {
  transform: rotateY(180deg);
  background:
    /* curl/gutter on the (now-) right side of the back face — this is the
       inner gutter when the page has been flipped onto the left pile. */
    linear-gradient(270deg,
      rgba(0,0,0,0.22) 0%,
      rgba(0,0,0,0.10) 6%,
      rgba(0,0,0,0) 16%),
    linear-gradient(90deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 18%),
    linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 82%, rgba(0,0,0,0.04) 100%),
    #f7f1e3;
}

/* The cover (page index 0) gets a real book-cover photograph as the
   substrate. We layer it underneath a soft gutter-shadow gradient (so
   the spine still reads as pressed-in cloth) and let the ::before
   pseudo carry the gilt rim. The ::after pseudo carries the FRENCH
   GROOVE — the long indented hinge divot ~12px in from the spine.
   Together: photo + gutter shadow + gilt rim + french groove + bevel.
   That stack is what sells "thick hardback" instead of "flat picture". */
.page--cover .face--front {
  background-image:
    /* deep gutter shadow at the spine — keeps the cloth-bound depth
       even though the substrate is now a photo. Sits above the photo. */
    linear-gradient(90deg,
      rgba(0,0,0,0.42) 0%,
      rgba(0,0,0,0.22) 4%,
      rgba(0,0,0,0.08) 9%,
      rgba(0,0,0,0) 16%),
    /* the cover photograph itself */
    url("https://covers.openlibrary.org/b/isbn/9780393635522-L.jpg"),
    /* fallback solid in case the image fails to load */
    linear-gradient(180deg, #3a2228 0%, #1f1015 100%);
  background-size: 100% 100%, cover, 100% 100%;
  background-position: left center, center center, center center;
  background-repeat: no-repeat;
  background-color: #1f1015;
  color: #ece6d4;
  border: 1px solid #0e0608;
  box-shadow:
    inset 1px 0 0 rgba(0,0,0,0.55),       /* hinge-side darker fold */
    inset -1px 0 0 rgba(255,255,255,0.05),
    inset 0 0 0 1px rgba(255,255,255,0.04);
}
.page--cover .face--front::before {
  content: "";
  position: absolute;
  inset: 0;
  /* a very thin warm rim along the head, foot and fore-edge — suggests
     the gilt edge of a bound board. Stays 2D so it's robust across
     browsers without needing preserve-3d on the face. */
  background:
    linear-gradient(180deg, rgba(255,225,170,0.18) 0%, rgba(255,225,170,0) 6%),
    linear-gradient(0deg,   rgba(255,225,170,0.18) 0%, rgba(255,225,170,0) 6%),
    linear-gradient(270deg, rgba(255,225,170,0.14) 0%, rgba(255,225,170,0) 4%);
  pointer-events: none;
  z-index: 2;
}
/* FRENCH GROOVE — the long thin indented line that runs parallel to the
   spine on real hardbacks, ~10-14px in from the spine edge. Faked as a
   2px-wide vertical strip with a sharp dark-to-light inset gradient so
   it reads as a pressed-in channel rather than a painted stripe. */
.page--cover .face--front::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 13px;
  width: 3px;
  pointer-events: none;
  z-index: 3;
  background:
    linear-gradient(90deg,
      rgba(0,0,0,0)        0%,
      rgba(0,0,0,0.55)    35%,
      rgba(0,0,0,0.78)    50%,   /* darkest line — the divot floor */
      rgba(255,255,255,0.18) 78%,/* light highlight on the cover-side wall */
      rgba(0,0,0,0)      100%);
  /* a hair of vertical falloff at the head and tail so the groove
     doesn't punch all the way to the corners */
  mask-image: linear-gradient(180deg,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%);
  -webkit-mask-image: linear-gradient(180deg,
    transparent 0%,
    black 4%,
    black 96%,
    transparent 100%);
}
/* The cover photograph supplies its own title/author typography, so
   hide the CSS-art title block on the front face. The same .cover-art
   markup is re-used inside the colophon page; only the cover instance
   is hidden. */
.page--cover .face--front .cover-art { display: none; }

/* Editorial cover composition */
.cover-art {
  position: absolute;
  inset: clamp(28px, 5%, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  color: #ece6d4;
  font-family: var(--serif-display);
}
.cover-art__rule {
  display: block;
  width: 64px;
  height: 1px;
  background: rgba(236,230,212,0.55);
}
.cover-art__rule--bottom { margin-top: auto; }
.cover-art__pub {
  font-family: var(--mono-kicker);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(236,230,212,0.65);
  margin-top: 6px;
}
.cover-art__title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: clamp(8px, 2vh, 18px);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 7cqw, 64px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.book-scene .cover-art__title { font-size: clamp(38px, 7vh, 78px); }
.cover-art__title--em { font-style: italic; }
.cover-art__byline {
  font-family: var(--mono-kicker);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: rgba(236,230,212,0.7);
  margin-top: clamp(6px, 1.4vh, 12px);
}
.cover-art__device {
  font-size: clamp(20px, 3vh, 28px);
  color: rgba(236,230,212,0.85);
  margin: clamp(6px, 1.6vh, 14px) 0;
}
.cover-art__author {
  font-family: var(--serif-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(14px, 2.2vh, 22px);
  letter-spacing: 0.04em;
  color: #ece6d4;
}

/* Inside-page composition */
.page-inner {
  position: absolute;
  inset: clamp(22px, 4.5%, 40px) clamp(20px, 4%, 36px) clamp(28px, 5%, 44px) clamp(28px, 5%, 44px);
  display: flex;
  flex-direction: column;
  font-family: var(--serif-body);
  color: #1a1a1a;
}
.page-inner__rule {
  display: block;
  width: 80%;
  height: 1px;
  background: rgba(0,0,0,0.55);
  margin-bottom: clamp(10px, 2vh, 18px);
}
.page-inner__rule--short { width: 32%; margin-top: clamp(8px, 1.6vh, 14px); }
.page-inner__display {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(28px, 5.6vh, 56px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
.page-inner__display--mid {
  font-size: clamp(22px, 3.8vh, 36px);
}
.page-inner__byline {
  margin-top: clamp(6px, 1.2vh, 10px);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: #555;
}
.page-inner__num {
  margin-top: auto;
  align-self: flex-end;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: #888;
}
.page-inner__quote {
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3.4vh, 32px);
  line-height: 1.18;
  text-wrap: balance;
  letter-spacing: -0.005em;
  color: #1a1a1a;
}
.page-inner__quote-attr {
  margin-top: clamp(10px, 2vh, 18px);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: #555;
}
.page-inner__kicker {
  font-size: 9.5px;
  letter-spacing: 0.24em;
  color: #555;
  margin-bottom: clamp(8px, 1.6vh, 14px);
}
.page-inner__body {
  font-size: clamp(13px, 1.8vh, 16px);
  line-height: 1.55;
  color: #1a1a1a;
}
.page-inner__body--small { font-size: clamp(12px, 1.5vh, 14px); }
.page-inner__dropcap {
  float: left;
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 3.4em;
  line-height: 0.86;
  padding: 0.04em 0.08em 0 0;
  margin-right: 0.04em;
  color: #1a1a1a;
}
.page-inner__sign {
  margin-top: clamp(10px, 2vh, 16px);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: #555;
}
.page-inner__small {
  font-size: clamp(11px, 1.5vh, 13px);
  line-height: 1.55;
  color: #333;
  letter-spacing: 0.04em;
}
.page-inner__address {
  margin-top: clamp(10px, 2vh, 16px);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(16px, 2.4vh, 22px);
  line-height: 1.3;
}
.page-inner__mark {
  font-size: clamp(36px, 6vh, 56px);
  color: #1a1a1a;
  align-self: center;
  margin-top: auto;
  margin-bottom: auto;
}
.page-inner--mark {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.page-inner--colophon {
  align-items: flex-start;
  text-align: left;
}
.page-inner--colophon .cover-art__device { color: #1a1a1a; align-self: center; margin-bottom: clamp(8px, 2vh, 16px); }
.page-inner--note { font-feature-settings: "onum" 1; }
.page-inner--quote { justify-content: center; }
.page-inner--titled { align-items: center; text-align: center; padding-top: 18%; }

.triple {
  margin-top: clamp(8px, 1.6vh, 14px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.6vw, 14px);
  align-items: end;
}
.triple__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.triple__img {
  width: 100%;
  height: auto;
  outline: 1px solid rgba(0,0,0,0.25);
  outline-offset: -1px;
  box-shadow: 0 6px 12px -8px rgba(0,0,0,0.45);
  background: #ece7da;
}
.triple__cap {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: #555;
}

/* Fallback (reduced-motion / mobile): vertical stacked content */
.book-anim__fallback {
  display: none;
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-7) var(--gutter-page) var(--space-9);
}
.bf-block {
  border-top: var(--rule-strong);
  padding: var(--space-5) 0 var(--space-5);
}
.bf-block:last-child { border-bottom: var(--rule-strong); }
.bf-block__title {
  margin-top: var(--space-2);
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.bf-block__title--mid { font-size: clamp(22px, 3vw, 28px); }
.bf-block__deck {
  margin-top: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--caption-gray);
}
.bf-block__quote {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.18;
  text-wrap: balance;
}
.bf-block__body {
  margin-top: var(--space-3);
  font-size: 16px;
  line-height: 1.6;
}
.bf-block__list {
  margin-top: var(--space-3);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--caption-gray);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Hide the 3D scene when reduced-motion is preferred or on small screens.
   In those cases the static fallback takes over and the section collapses
   to its natural height (no 500vh track). */
@media (prefers-reduced-motion: reduce) {
  .book-anim__track { height: auto; }
  .book-anim__stage { position: static; height: auto; padding: var(--space-7) 0; }
  .book-anim__stage .book-scene,
  .book-anim__caption { display: none; }
  .book-anim__fallback { display: block; }
}
@media (max-width: 760px) {
  .book-anim__track { height: auto; }
  .book-anim__stage { position: static; height: auto; padding: var(--space-6) 0; }
  .book-anim__stage .book-scene,
  .book-anim__caption { display: none; }
  .book-anim__fallback { display: block; }
}

/* ===========================================================
   DEPARTMENTS / SECTIONS
   =========================================================== */
.dept {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-page) var(--space-9);
}
.dept__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--rule-strong);
  border-left: var(--rule-strong);
}
.dept-card {
  padding: var(--space-6);
  border-right: var(--rule-strong);
  border-bottom: var(--rule-strong);
}
.dept-card__title {
  margin-top: var(--space-2);
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.dept-card__body {
  margin-top: var(--space-3);
  font-size: 15.5px;
  line-height: 1.6;
}
.dept-card__count {
  margin-top: var(--space-5);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--caption-gray);
  padding-top: var(--space-3);
  border-top: var(--rule-hair);
}

/* ===========================================================
   EVENTS
   =========================================================== */
.events {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter-page) var(--space-9);
}
.events__list { border-top: var(--rule-strong); }
.event {
  display: grid;
  grid-template-columns: 110px 1fr 140px;
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6) 0;
  border-bottom: var(--rule-strong);
}
.event__date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: var(--rule-strong);
  padding-right: var(--space-4);
}
.event__dow, .event__month {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--caption-gray);
}
.event__day {
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 64px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 4px 0 4px;
}
.event__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-top: var(--space-1);
  text-wrap: balance;
}
.event__byline {
  margin-top: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--caption-gray);
}
.event__deck {
  margin-top: var(--space-3);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
}
.event__rsvp { justify-self: end; align-self: start; padding-top: 6px; }

/* ===========================================================
   COLUMN — owner essay
   =========================================================== */
.column {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-9) var(--gutter-page);
}
.column__head { max-width: 80ch; }
.column__headline {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--page-ink);
  text-wrap: balance;
}
.column__body { margin-top: var(--space-7); }
.column__lede {
  font-family: var(--serif-body);
  font-size: 22px;
  line-height: 1.55;
  margin-bottom: var(--space-6);
  max-width: 70ch;
}
.column__lede::after { content: ""; display: block; clear: both; }

.pullquote {
  margin: var(--space-7) 0;
  padding: var(--space-5) var(--space-6) var(--space-5) 0;
  max-width: 50%;
  border-top: var(--rule-button);
  border-bottom: var(--rule-button);
  font-family: var(--serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--page-ink);
}

.column__multicol {
  column-count: 2;
  column-gap: var(--col-gap);
  column-rule: var(--rule-hair);
  font-family: var(--serif-body);
  font-size: 16.5px;
  line-height: 1.65;
}
.column__multicol p {
  margin-bottom: var(--space-4);
  break-inside: avoid;
  text-indent: 1.4em;
}
.column__multicol p:first-child { text-indent: 0; }

.column__sign {
  margin-top: var(--space-7);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--caption-gray);
  text-transform: uppercase;
}

/* ===========================================================
   USED & RARE
   =========================================================== */
.used {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter-page) var(--space-9);
}
.used__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.used__col {
  padding: 0 var(--space-6);
  border-right: var(--rule-strong);
}
.used__col:first-child { padding-left: 0; }
.used__col:last-child { border-right: 0; padding-right: 0; }
.used__title {
  margin-top: var(--space-2);
  font-family: var(--serif-display);
  font-weight: 900;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.used__body {
  margin-top: var(--space-4);
  font-size: 15.5px;
  line-height: 1.6;
}
.used__list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
}
.used__list li {
  padding: var(--space-3) 0;
  border-bottom: var(--rule-hair);
  font-size: 15px;
  line-height: 1.45;
}
.used__list .mono {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--caption-gray);
  margin-right: var(--space-1);
}
.used__list--bare li { display: flex; flex-direction: column; gap: 4px; }
.used__list--rare li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
}
.used__rare-img {
  width: 56px;
  height: auto;
  background: #ece7da;
  outline: 1px solid rgba(0, 0, 0, 0.18);
  outline-offset: -1px;
  box-shadow: 0 6px 12px -8px rgba(0,0,0,0.4);
}
.used__rare-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.used__rare-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  font-style: italic;
}
.used__rare-meta {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--caption-gray);
}

/* ===========================================================
   VISIT
   =========================================================== */
.visit {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-7) var(--gutter-page) var(--space-9);
}
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: var(--space-7);
}
.visit__col { min-width: 0; }
.visit__address {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.visit__line {
  margin-top: var(--space-3);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--caption-gray);
}
.visit__body {
  margin-top: var(--space-3);
  font-size: 15.5px;
  line-height: 1.6;
}

.hours {
  margin-top: var(--space-3);
  width: 100%;
  font-family: var(--serif-body);
}
.hours tr { border-bottom: var(--rule-hair); }
.hours th, .hours td {
  text-align: left;
  padding: 9px 0;
  vertical-align: baseline;
  font-weight: 400;
}
.hours th {
  width: 70px;
  font-family: var(--mono-kicker);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--caption-gray);
}
.hours td { font-size: 15px; }
.hours em { font-style: italic; color: var(--caption-gray); }

/* ===========================================================
   NEWSLETTER
   =========================================================== */
.newsletter {
  background: var(--ink-black);
  color: var(--paper);
  border-top: 2px solid var(--ink-black);
}
.newsletter__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: var(--space-9) var(--gutter-page);
}
.newsletter .kicker { color: var(--paper); }
.newsletter__title {
  margin-top: var(--space-3);
  font-family: var(--serif-display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.newsletter__deck {
  margin-top: var(--space-5);
  max-width: 60ch;
  font-family: var(--serif-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--paper);
}
.newsletter__form {
  margin-top: var(--space-6);
  display: flex;
  gap: 0;
  max-width: 560px;
}
.newsletter__input {
  flex: 1 1 auto;
  font: inherit;
  font-family: var(--sans-ui);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink-black);
  border: 2px solid var(--paper);
  border-right: 0;
  border-radius: 0;
  outline: none;
}
.newsletter__input::placeholder { color: var(--caption-gray); }
.newsletter__input:focus { outline: 2px solid var(--link-blue); outline-offset: 0; }
.newsletter__form .btn {
  border-color: var(--paper);
  background: var(--ink-black);
  color: var(--paper);
}
.newsletter__form .btn:hover {
  background: var(--paper);
  color: var(--ink-black);
}
.newsletter__fineprint {
  margin-top: var(--space-5);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  max-width: 70ch;
  line-height: 1.6;
}

/* ===========================================================
   COLOPHON / FOOTER
   =========================================================== */
.colophon {
  background: var(--footer-ink);
  color: var(--paper);
}
.colophon__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-9) var(--gutter-page) var(--space-7);
}
.colophon__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-bottom: var(--space-6);
}
.colophon__pitch {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 20px;
  color: rgba(255,255,255,0.75);
  max-width: 38ch;
  text-align: right;
}
.colophon__rule {
  border-top: 1px solid rgba(255,255,255,0.25);
  margin: 0;
}
.colophon__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  padding: var(--space-7) 0;
}
.colophon__list {
  margin-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.72);
}
.colophon__list a { color: inherit; text-decoration: none; }
.colophon__list a:hover { color: var(--link-blue); text-decoration: underline; }
.colophon__credit {
  margin-top: var(--space-4);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: none;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}
.colophon__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.6);
  flex-wrap: wrap;
  gap: var(--space-4);
}
.colophon__page {
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--paper);
}

/* ===========================================================
   RESPONSIVE — DESIGN.md §8
   =========================================================== */
@media (max-width: 1199px) {
  :root { --gutter-page: 36px; }
  .front__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .front__grid > .side:last-child { border-right: 0; padding-right: 0; }
  .lead { grid-column: 1 / -1; border-right: 0; padding-right: 0; padding-bottom: var(--space-7); border-bottom: var(--rule-strong); margin-bottom: var(--space-7); }
  .picks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick:nth-child(3n) { border-right: var(--rule-strong); padding-right: var(--space-5); }
  .pick:nth-child(3n + 1) { padding-left: var(--space-5); }
  .pick:nth-child(2n) { border-right: 0; padding-right: 0; }
  .pick:nth-child(2n + 1) { padding-left: 0; }
  .dept__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit__grid { grid-template-columns: 1fr 1fr; }
  .visit__col:nth-child(3) { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  :root { --gutter-page: 20px; --col-gap: 20px; }
  .utility__inner { font-size: 10px; gap: var(--space-3); }
  .utility__left, .utility__right { gap: var(--space-3); flex-wrap: wrap; }
  .masthead__top, .masthead__bottom { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .masthead__meta--right, .tagline--secondary { text-align: left; }
  .wordmark { font-size: 19vw; padding: 10px 0; }

  .front { padding-top: var(--space-6); padding-bottom: var(--space-7); }
  .front__grid { grid-template-columns: 1fr; gap: 0; }
  .lead, .side { border-right: 0; padding-left: 0; padding-right: 0; padding-bottom: var(--space-6); margin-bottom: var(--space-6); border-bottom: var(--rule-strong); }
  .lead__headline { font-size: clamp(34px, 8.5vw, 48px); }

  .picks__grid { grid-template-columns: 1fr; }
  .pick, .pick:nth-child(n) { padding: var(--space-5) 0; border-right: 0; border-bottom: var(--rule-strong); }
  .pick__title { font-size: 26px; }

  .dept__grid { grid-template-columns: 1fr; border-left: 0; }
  .dept-card { padding: var(--space-5) 0; border-right: 0; }

  .event { grid-template-columns: 90px 1fr; gap: var(--space-4); }
  .event__rsvp { grid-column: 1 / -1; justify-self: stretch; padding-top: 0; }
  .event__rsvp .btn { width: 100%; text-align: center; }
  .event__day { font-size: 48px; }
  .event__title { font-size: 22px; }

  .pullquote { max-width: 100%; padding-right: 0; font-size: 22px; }
  .column__multicol { column-count: 1; }

  .used__grid { grid-template-columns: 1fr; }
  .used__col { padding: var(--space-5) 0; border-right: 0; border-bottom: var(--rule-strong); }
  .used__col:last-child { border-bottom: 0; }

  .visit__grid { grid-template-columns: 1fr; gap: var(--space-6); }

  .newsletter__form { flex-direction: column; }
  .newsletter__input { border-right: 2px solid var(--paper); }
  .newsletter__form .btn { width: 100%; }

  .colophon__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); padding: var(--space-6) 0; }
  .colophon__top { flex-direction: column; align-items: flex-start; }
  .colophon__pitch { text-align: left; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 22vw; }
  .colophon__grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
