/* ============================================================
   יוני לוי — סופר ואדריכל
   styles.css · v3
============================================================ */

/* ---------- Local fonts (optional override) ----------------
   Drop FrankRuhlLibre-*.ttf and Heebo-*.ttf into /fonts and the
   browser will prefer them. Until then the Google Fonts <link>
   in index.html provides identical metrics.
------------------------------------------------------------ */
@font-face { font-family: "Frank Ruhl Libre Local"; font-weight: 300; font-display: swap; src: local("Frank Ruhl Libre Light"), url("fonts/FrankRuhlLibre-Light.ttf") format("truetype"); }
@font-face { font-family: "Frank Ruhl Libre Local"; font-weight: 400; font-display: swap; src: local("Frank Ruhl Libre"),       url("fonts/FrankRuhlLibre-Regular.ttf") format("truetype"); }
@font-face { font-family: "Frank Ruhl Libre Local"; font-weight: 500; font-display: swap; src: local("Frank Ruhl Libre Medium"), url("fonts/FrankRuhlLibre-Medium.ttf") format("truetype"); }
@font-face { font-family: "Frank Ruhl Libre Local"; font-weight: 700; font-display: swap; src: local("Frank Ruhl Libre Bold"),   url("fonts/FrankRuhlLibre-Bold.ttf") format("truetype"); }
@font-face { font-family: "Frank Ruhl Libre Local"; font-weight: 900; font-display: swap; src: local("Frank Ruhl Libre Black"),  url("fonts/FrankRuhlLibre-Black.ttf") format("truetype"); }
@font-face { font-family: "Heebo Local"; font-weight: 400; font-display: swap; src: local("Heebo"), url("fonts/Heebo-Regular.ttf") format("truetype"); }
@font-face { font-family: "Heebo Local"; font-weight: 500; font-display: swap; src: local("Heebo Medium"), url("fonts/Heebo-Medium.ttf") format("truetype"); }

/* ============================================================
   TOKENS
============================================================ */
:root {
  --cream:        #dad5cf;
  --paper:        #ebe7df;
  --paper-deep:   #c9c3bc;
  --ink:          #1a1815;
  --ink-soft:     #4a4540;
  --ink-mute:     #888280;
  --serif:  "Frank Ruhl Libre Local", "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans:   "Heebo Local", "Heebo", "Helvetica Neue", system-ui, sans-serif;

  --measure: 60ch;
  --gutter:  clamp(20px, 4vw, 48px);
  --pad-section: clamp(120px, 18vw, 220px);
  --nav-h:   64px;

  --ease:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.75 var(--serif);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 1024px) { body { font-size: 19px; } }

img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--cream); }

/* ============================================================
   PAPER GRAIN + CONSTRUCTION LINES (fixed overlays)
============================================================ */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/></svg>");
}

.construction {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  transition: transform 600ms var(--ease);
  will-change: transform;
}
.construction line,
.construction circle,
.construction path {
  stroke: rgba(26, 24, 21, 0.10);
  fill: none;
  vector-effect: non-scaling-stroke;
}
.construction .tick { stroke: rgba(26, 24, 21, 0.18); }

/* Reading-progress bar at the very top */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  transform-origin: right center;            /* RTL — grows from right */
  transform: scaleX(0);
  background: var(--ink);
  transition: transform 80ms linear;
}

/* ============================================================
   CONTAINER, EYEBROW, SECTION HEAD
============================================================ */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 3;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
@media (min-width: 1024px) { .eyebrow { font-size: 12px; } }
.eyebrow .tick {
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
  display: inline-block;
}

.section-num {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
}

.sec { padding-block: var(--pad-section); position: relative; z-index: 3; }
.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}
@media (min-width: 1024px) {
  .sec-head { grid-template-columns: 60px 1fr; gap: 56px; margin-bottom: 80px; }
}
.sec-head .num { padding-top: 10px; }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
  max-width: 14ch;
}

/* ============================================================
   REVEAL
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"].in { transition-delay: 80ms; }
.reveal[data-delay="2"].in { transition-delay: 160ms; }
.reveal[data-delay="3"].in { transition-delay: 240ms; }

/* ============================================================
   NAV
============================================================ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 280ms var(--ease), border-color 280ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in oklab, var(--cream) 95%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom-color: rgba(26, 24, 21, 0.10);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav .mark {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
}
.nav .mark .sub {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  display: block;
  margin-top: 2px;
}
.nav .links {
  display: none;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
.nav .links a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  transition: color 200ms var(--ease);
  padding-block: 8px;
}
.nav .links a:hover,
.nav .links a:focus-visible { color: var(--ink); outline: none; }
.nav .links a.has-dot {
  position: relative;
  color: var(--ink);
}
.nav .links a.has-dot::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #1a1815;
  border-radius: 50%;
  display: inline-block;
  margin-inline-end: 8px;
  transform: translateY(-2px);
}
@media (min-width: 720px) { .nav .links { display: inline-flex; } }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 120px;
  display: flex;
  align-items: center;
  perspective: 1200px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding-top: calc(var(--nav-h) + 96px); padding-bottom: 180px; }
  .hero .grid { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 88px); }
}
.hero .copy  { order: 2; }
.hero .cover { order: 1; }
@media (min-width: 1024px) {
  .hero .copy  { order: 1; }
  .hero .cover { order: 2; }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-feature-settings: "kern" 1;
  font-size: clamp(96px, 14vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  margin: 18px 0 22px;
}
.hero .h1-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: h1Word 700ms 80ms var(--ease) forwards;
}
@keyframes h1Word { to { opacity: 1; transform: translateY(0); } }

.hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 28ch;
  opacity: 0;
  animation: fadeUp 700ms 500ms var(--ease) forwards;
}
.hero .lede {
  max-width: var(--measure);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0 0 36px;
  text-align: justify;
  hyphens: none;
  opacity: 0;
  animation: fadeUp 700ms 650ms var(--ease) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 56px;
  opacity: 0;
  animation: fadeUp 700ms 800ms var(--ease) forwards;
}

.link-secondary {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--ink-mute);
  padding-bottom: 4px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.link-secondary:hover { color: #1a1815; border-color: #1a1815; }

.hero .meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  border-top: 1px solid rgba(26, 24, 21, 0.12);
  padding-top: 20px;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 700ms 1000ms var(--ease) forwards;
}
.hero .meta-strip span::after {
  content: "·";
  display: inline-block;
  margin-inline-start: 22px;
  color: var(--ink-mute);
}
.hero .meta-strip span:last-child::after { content: ""; margin: 0; }

/* Hero cover image — 3D tilt parent */
.hero .cover-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  transform-style: preserve-3d;
  transition: transform 400ms var(--ease);
  will-change: transform;
}
@media (min-width: 1024px) {
  .hero .cover-frame { max-width: 100%; margin-inline: 0; }
}
.hero .cover-frame img {
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 1px 1px rgba(40, 30, 22, 0.08))
    drop-shadow(0 18px 28px rgba(40, 30, 22, 0.14))
    drop-shadow(0 40px 60px rgba(40, 30, 22, 0.10));
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  inset-inline-end: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  z-index: 3;
}
.scroll-cue .line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--ink-mute) 30%, var(--ink-mute) 70%, transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ink);
  animation: cuePulse 2.4s var(--ease) infinite;
}
@keyframes cuePulse {
  0%   { transform: translateY(-4px); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ============================================================
   STATEMENT
============================================================ */
.statement {
  padding-block: clamp(160px, 22vw, 280px);
  text-align: center;
  position: relative;
  z-index: 3;
}
.statement .quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 11vw, 128px);
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.statement .quote .ln {
  display: block;
  opacity: 0;
  letter-spacing: 0.05em;
  transition: opacity 1400ms var(--ease), letter-spacing 1600ms var(--ease);
}
.statement.in .quote .ln { opacity: 1; letter-spacing: -0.01em; }
.statement.in .quote .ln:nth-child(2) { transition-delay: 200ms; }
.statement hr {
  border: 0;
  width: 80px;
  height: 1px;
  background: var(--ink-soft);
  margin: 64px auto 18px;
}
.statement .caption {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
}

/* ============================================================
   PREVIEW CTA  (open chapter)
============================================================ */
.preview-cta {
  padding-block: clamp(120px, 16vw, 200px);
  position: relative;
  z-index: 3;
}
.preview-cta .inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
  max-width: 980px;
}
@media (min-width: 900px) {
  .preview-cta .inner { grid-template-columns: 1.4fr 1fr; gap: 64px; }
}
.preview-cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 18px 0 28px;
  max-width: 14ch;
}
.preview-cta p {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 28px;
  max-width: 48ch;
}
.preview-cta .meta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  border-top: 1px solid rgba(26, 24, 21, 0.15);
  padding-top: 18px;
  text-align: start;
}
.preview-cta .meta span + span::before {
  content: "·";
  margin-inline: 12px;
  color: var(--ink-mute);
}

/* ============================================================
   CTA buttons
============================================================ */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 18px 28px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease),
              color 300ms var(--ease), transform 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
  border-radius: 0;
  white-space: nowrap;
  width: max-content;
  max-width: 100%;
}
.cta > span { white-space: nowrap; }
.cta:hover, .cta:focus-visible {
  background: #1a1815;
  border-color: #1a1815;
  outline: none;
}
.cta:active { transform: translateY(1px); }
.cta .arr { font-family: var(--serif); font-size: 18px; transform: translateY(-1px); }

.cta--ghost { background: transparent; color: var(--ink); }
.cta--ghost:hover { background: transparent; color: #1a1815; border-color: #1a1815; }
.cta--invert  { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.cta--invert:hover { background: #1a1815; border-color: #1a1815; color: var(--cream); }

/* ============================================================
   ABOUT / SYNOPSIS
============================================================ */
.about .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}
@media (min-width: 1024px) {
  .about .grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
}
.about .col-img img {
  filter:
    drop-shadow(0 1px 1px rgba(40, 30, 22, 0.06))
    drop-shadow(0 12px 24px rgba(40, 30, 22, 0.10));
}
.about .body { max-width: var(--measure); }
.about .body p {
  margin: 0 0 26px;
  text-align: justify;
  hyphens: none;
  line-height: 1.78;
  font-size: clamp(17px, 1.3vw, 19px);
}
.pull {
  margin: 56px 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-block: 28px;
  border-top: 1px solid var(--ink-soft);
  border-bottom: 1px solid var(--ink-soft);
}

/* ============================================================
   CHAPTERS — with hover-reveal opening lines
============================================================ */
.chapters .list { border-top: 1px solid rgba(26, 24, 21, 0.15); }
.chapters .row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(26, 24, 21, 0.15);
  cursor: default;
  transition: color 240ms var(--ease), padding-inline-start 240ms var(--ease);
  position: relative;
}
@media (min-width: 720px) {
  .chapters .row {
    grid-template-columns: 64px 1fr auto;
    gap: 32px;
    padding: 30px 0;
  }
}
.chapters .row:hover { color: #1a1815; padding-inline-start: 8px; }
.chapters .row .n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
}
.chapters .row .t {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.chapters .row .sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  white-space: nowrap;
}
@media (max-width: 480px) { .chapters .row .sub { display: none; } }

.chapters .row .open-line {
  grid-column: 2 / -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--ink-soft);
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 240ms var(--ease), opacity 240ms var(--ease), margin-top 240ms var(--ease);
}
.chapters .row:hover .open-line,
.chapters .row:focus-within .open-line {
  max-height: 3em;
  opacity: 1;
  margin-top: 10px;
}

/* ============================================================
   BOX / SPECIAL
============================================================ */
.box .full {
  position: relative;
  margin-block: 64px 80px;
  overflow: hidden;             /* clip parallax shift */
}
.box .full img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 86vh;
  object-fit: cover;
  will-change: transform;
}
.box .full .overlay {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: rgba(235, 231, 223, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
@media (min-width: 720px) {
  .box .full .overlay { top: 40px; inset-inline-end: 40px; font-size: 12px; }
}
.box .items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  border-top: 1px solid rgba(26, 24, 21, 0.15);
  padding-top: 40px;
}
@media (min-width: 720px) { .box .items { grid-template-columns: repeat(5, 1fr); gap: 24px; } }
.box .item .n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.box .item .lbl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 8px;
}
.box .item .dsc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   FORMATS
============================================================ */
.formats .cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .formats .cards { grid-template-columns: 7fr 5fr; gap: 40px; } }
.fmt {
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--paper);
  border-radius: 0;
}
.fmt--ghost { background: transparent; border: 1px solid rgba(26, 24, 21, 0.22); }
.fmt .tag {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
}
.fmt h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.fmt .price {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.fmt .price .unit {
  font-size: 0.5em;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.12em;
}
.fmt ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-family: var(--serif);
}
.fmt ul li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(26, 24, 21, 0.10);
  font-size: 16px;
  color: var(--ink-soft);
}
.fmt ul li:last-child { border-bottom: 0; }
.fmt .note {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.fmt .cta { align-self: flex-start; margin-top: 12px; }

/* ============================================================
   AUTHOR
============================================================ */
.author .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .author .grid { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 96px); }
}
.author .portrait {
  filter: grayscale(1) contrast(1.02);
  aspect-ratio: 4/5;
  object-fit: cover;
  width: 100%;
}
.author .body { max-width: var(--measure); }
.author .body p {
  margin: 0 0 26px;
  text-align: justify;
  hyphens: none;
  line-height: 1.78;
  font-size: clamp(17px, 1.3vw, 19px);
}
.author .sign {
  margin-top: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  line-height: 1.3;
}

/* ============================================================
   ORDER
============================================================ */
.order {
  background: var(--ink);
  color: var(--cream);
  padding-block: var(--pad-section);
  position: relative;
  z-index: 3;
}
.order .eyebrow { color: rgba(218, 213, 207, 0.75); }
.order .eyebrow .tick { background: rgba(218, 213, 207, 0.45); }
.order .section-num { color: rgba(218, 213, 207, 0.5); }
.order h2 { color: var(--cream); }

.tabs {
  display: inline-flex;
  margin-bottom: 40px;
  border: 1px solid rgba(218, 213, 207, 0.25);
}
.tabs button {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(218, 213, 207, 0.7);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  padding: 14px 22px;
  cursor: pointer;
  transition: background 240ms var(--ease), color 240ms var(--ease);
  border-inline-end: 1px solid rgba(218, 213, 207, 0.25);
}
.tabs button:last-child { border-inline-end: 0; }
.tabs button:hover { color: var(--cream); }
.tabs button[aria-selected="true"] { background: var(--cream); color: var(--ink); }

.order form {
  max-width: 720px;
  display: grid;
  gap: 22px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(218, 213, 207, 0.7);
}
.field input,
.field textarea {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(218, 213, 207, 0.35);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  padding: 10px 0 12px;
  outline: none;
  transition: border-color 240ms var(--ease);
  border-radius: 0;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--cream); }
.field input[dir="ltr"] {
  text-align: left;
  direction: ltr;
  font-family: var(--sans);
  letter-spacing: 0.04em;
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 90px; }

.order .actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.order .note {
  margin-top: 36px;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(218, 213, 207, 0.65);
  max-width: 60ch;
}
[data-format="digital"] .pickup-only { display: none; }

/* ============================================================
   FOOTER
============================================================ */
.foot {
  background: var(--paper);
  color: var(--ink-soft);
  padding-block: 96px 64px;
  position: relative;
  z-index: 3;
}
.foot .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) { .foot .grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.foot h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.foot .mark {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
}
.foot .mark-sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.foot .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  max-width: 32ch;
}
.foot .copy {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
}
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot ul li { margin-bottom: 12px; font-family: var(--serif); font-size: 17px; }
.foot ul li a { color: var(--ink); transition: color 200ms var(--ease); }
.foot ul li a:hover { color: #1a1815; }
.foot .ltr {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

/* ============================================================
   READING OVERLAY  (modal dialog)
============================================================ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  display: none;
  flex-direction: column;
  clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%));
  transition: clip-path 600ms var(--ease);
}
.reader.is-open {
  display: flex;
  clip-path: circle(160% at var(--cx, 50%) var(--cy, 50%));
}
body.reader-open { overflow: hidden; }

.reader-head {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(20px, 4vw, 40px);
  border-bottom: 1px solid rgba(26, 24, 21, 0.12);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 5;
}
.reader-head .title {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-soft);
  text-align: center;
}
.reader-head .ctrl {
  display: inline-flex;
  gap: 6px;
}
.reader-head button {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(26, 24, 21, 0.18);
  color: var(--ink);
  width: 38px;
  height: 38px;
  font-family: var(--serif);
  font-size: 18px;
  cursor: pointer;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reader-head button:hover,
.reader-head button:focus-visible {
  background: var(--ink); color: var(--paper); border-color: var(--ink); outline: none;
}

.reader-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.reader-body {
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 40px) 120px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--reader-size, 19px);
  line-height: 1.85;
  letter-spacing: 0;
  text-align: justify;
  hyphens: none;
}
.reader-body .chapter-eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  text-align: center;
  margin-bottom: 14px;
}
.reader-body h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.018em;
  margin: 0 0 64px;
  text-align: center;
}
.reader-body p { margin: 0 0 1.25em; }
.reader-body strong { font-weight: 700; }
.reader-body .drop::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 4.4em;
  line-height: 0.85;
  float: right;
  margin-inline-start: 8px;
  margin-block-start: 4px;
  color: var(--ink);
}
.reader-body .sep {
  font-family: var(--sans);
  color: var(--ink-mute);
  text-align: center;
  letter-spacing: 1.2em;
  margin: 2em 0;
  font-size: 12px;
  text-indent: 1.2em;       /* re-center after letter-spacing */
}

.reader-end {
  max-width: 640px;
  margin: 64px auto 0;
  padding: 56px 0 16px;
  border-top: 1px solid rgba(26, 24, 21, 0.15);
  text-align: center;
}
.reader-end h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.015em;
  margin: 12px 0 14px;
}
.reader-end p {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.reader-end .end-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.reader-progress {
  position: sticky;
  bottom: 0;
  height: 2px;
  background: rgba(26, 24, 21, 0.08);
}
.reader-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--ink);
  transition: width 80ms linear;
}

/* ============================================================
   CUSTOM CURSOR (desktop, pointer:fine)
============================================================ */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 24px; height: 24px;
  margin: -12px 0 0 -12px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-100px, -100px);
  transition: transform 80ms linear, width 200ms var(--ease), height 200ms var(--ease), background 200ms var(--ease), opacity 200ms var(--ease);
  mix-blend-mode: difference;
  opacity: 0;
}
.cursor.is-on  { opacity: 0.85; }
.cursor.is-hot { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: var(--cream); }
@media (pointer: coarse), (hover: none) { .cursor { display: none; } }

/* ============================================================
   ACCESSIBILITY
============================================================ */
:focus-visible {
  outline: 2px solid #1a1815;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .hero .h1-word, .hero .subtitle, .hero .lede,
  .hero .cta-row, .hero .meta-strip { opacity: 1 !important; transform: none !important; }
  .statement .quote .ln { opacity: 1 !important; letter-spacing: -0.01em !important; }
  .construction { display: none; }
  .reader { transition: none !important; clip-path: none !important; }
}
