/* Clear Table Press — site stylesheet
   Warm editorial: cream paper, ink navy, amber accent.
   Single committed light theme (paper is the brand); every surface painted explicitly. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/Fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/SourceSans3-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/SourceSans3-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #FBF7EF;
  --paper-2: #F4ECDD;
  --paper-3: #EDE3D0;
  --ink: #1B2A41;
  --ink-2: #3A4A60;
  --ink-3: #5B6878;
  --line: #E2D8C4;
  --line-2: #CFC3AB;
  --amber: #B4530A;
  --amber-deep: #8C3F05;
  --amber-soft: #F6E4CF;
  --navy: #1B2A41;
  --navy-deep: #10203A;
  --cream: #F5EFE2;
  --white: #FFFFFF;
  --focus: #1B5FBF;

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --text-base: 1.125rem;      /* 18px body: built for 55–70 readers */
  --lh-body: 1.6;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-1: 0 1px 2px rgba(27, 42, 65, 0.06), 0 2px 8px rgba(27, 42, 65, 0.06);
  --shadow-2: 0 4px 12px rgba(27, 42, 65, 0.08), 0 12px 32px rgba(27, 42, 65, 0.10);
  --shadow-3: 0 18px 40px rgba(27, 42, 65, 0.22), 0 40px 90px rgba(27, 42, 65, 0.18);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur-base: 260ms;
  --dur-slow: 700ms;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Paper grain: fixed, behind content, only visible on the bare paper surfaces. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.16 0 0 0 0 0.25 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
a:hover { color: var(--amber-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
  font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
p { margin: 0 0 var(--space-4); text-wrap: pretty; }
h1 em, h2 em { font-style: italic; font-weight: 500; font-variation-settings: "opsz" 144, "SOFT" 70; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--space-3);
}
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 0.95rem; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.container--narrow { max-width: 46rem; }
.container--prose { max-width: 42rem; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--cream); }
.section--navy h2, .section--navy h3 { color: var(--cream); }
.section--navy a { color: #F2C892; }
.section--navy a:hover { color: #FFD9A8; }

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  background: var(--ink); color: var(--paper); padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-s); z-index: 1000; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0.7em 1.4em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1.05rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .i-arrow { transform: translateX(3px); }
.btn:hover .i-down { transform: translateY(2px); }
.btn--primary { background: var(--amber); color: var(--white); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--amber-deep); color: var(--white); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn--ghost { background: transparent; color: var(--amber); padding-inline: 0.4em; }
.btn--ghost:hover { color: var(--amber-deep); }
.btn--on-navy { background: var(--cream); color: var(--navy); }
.btn--on-navy:hover { background: var(--white); color: var(--navy); }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 239, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(27, 42, 65, 0.06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 2.2rem; height: 2.2rem; flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.01em; font-variation-settings: "opsz" 48; white-space: nowrap; }
.brand__word small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.1rem; }
.nav { display: flex; gap: clamp(0.5rem, 2vw, 1.5rem); align-items: center; }
.nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.35rem;
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.nav a::after {
  content: ""; position: absolute; left: 0.35rem; right: 0.35rem; bottom: 0.45rem; height: 2px;
  background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-base) var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none; width: 3rem; height: 3rem; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--white); align-items: center; justify-content: center;
}
.nav-toggle svg { width: 1.4rem; height: 1.4rem; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 47.99rem) {
  .nav-toggle { display: inline-flex; }
  .site-header { position: sticky; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; min-height: calc(100dvh - 4.5rem); z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: var(--space-4) var(--gutter) var(--space-8);
    border-top: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { min-height: 3.5rem; font-size: 1.25rem; border-bottom: 1px solid var(--line); padding: 0; }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { color: var(--amber); }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 8vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 80% -10%, rgba(180, 83, 10, 0.10), transparent 60%),
    radial-gradient(40rem 24rem at 0% 110%, rgba(27, 42, 65, 0.07), transparent 60%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero__copy h1 { margin-bottom: var(--space-5); }
.hero__copy .lede { max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero__note { margin-top: var(--space-4); font-size: 0.95rem; color: var(--ink-3); }
.worked {
  margin-top: var(--space-5); padding: var(--space-4) var(--space-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-1); font-size: 1.05rem; line-height: 1.55; color: var(--ink-2);
  max-width: 34rem; font-variant-numeric: tabular-nums;
}
.worked__label { font-weight: 600; color: var(--amber); letter-spacing: 0.04em; margin-right: 0.4em; }
.worked__blank { position: relative; display: inline-block; padding: 0 0.15em; font-weight: 600; color: var(--ink); white-space: nowrap; }
.worked__blank::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--line-2); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out), background-color 300ms; }
.worked__blank.is-filled::after { transform: scaleX(1); background: var(--amber); }
.js .worked [data-count] { opacity: 0; transition: opacity 300ms; }
.js .worked .is-filled [data-count] { opacity: 1; }
.worked__result { color: var(--amber-deep); }
.hero__book { display: flex; justify-content: center; }
.hero__rule { width: 4.5rem; height: 3px; background: var(--amber); border-radius: 2px; margin: 0 0 var(--space-5); transform-origin: left; }

/* Photo hero: the copy sits on the empty side of the tabletop; a cream scrim keeps contrast on the left. */
.hero--photo { isolation: isolate; min-height: clamp(34rem, 80vh, 46rem); display: flex; align-items: center; }
.hero--photo::before { display: none; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 60% 50%; }
.hero__scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(251, 247, 239, 0.97) 0%, rgba(251, 247, 239, 0.95) 36%, rgba(251, 247, 239, 0.72) 52%, rgba(251, 247, 239, 0.18) 72%, rgba(251, 247, 239, 0) 100%); }
.hero--photo .hero__grid { grid-template-columns: minmax(0, 37rem); }
.hero--photo .worked { background: rgba(255, 255, 255, 0.94); }
.js .hero__media img { opacity: 0; animation: photo-in 1200ms var(--ease-out) forwards; }
@keyframes photo-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

.photo-band { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--paper-2); }
.photo-band picture, .photo-band img { width: 100%; height: 100%; }
.photo-band img { object-fit: cover; object-position: 50% 55%; }
.photo-band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, rgba(251, 247, 239, 0), var(--paper)); }
.about-hero--after-band { padding-top: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 63.99rem) {
  /* Phone composition: a small book sits on the table above the headline, left-aligned to the text edge,
     so the headline and both actions are in the first screen. */
  .hero { padding-block: 2rem 3rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero__book { order: -1; justify-content: flex-start; padding-left: 1.2rem; }
  .hero .book { --w: 8.5rem; --ry: -20deg; --rx: 3deg; }
  .hero__copy h1 { font-size: clamp(2.1rem, 8.6vw, 3rem); }
  /* Photo hero on phones: the objects sit in a band across the top, the copy on paper beneath. */
  .hero--photo { min-height: 0; padding-top: 50vw; display: block; }
  .hero--photo .hero__media, .hero--photo .hero__scrim { height: 62vw; inset: 0 0 auto 0; }
  .hero--photo .hero__media img { object-position: 78% 45%; }
  .hero--photo .hero__scrim { background: linear-gradient(180deg, rgba(251, 247, 239, 0) 0%, rgba(251, 247, 239, 0) 58%, var(--paper) 100%); }
  .hero--photo .hero__grid { gap: 0; }
  .photo-band { aspect-ratio: 4 / 3; }
  .hero__copy { display: flex; flex-direction: column; }
  .hero__copy .lede { font-size: 1.15rem; margin-bottom: 0; }
  .hero__actions { margin-top: var(--space-5); }
  .hero__actions .btn { flex: 1 1 auto; }
  .worked { order: 10; font-size: 1rem; padding: var(--space-3) var(--space-4); margin-top: var(--space-5); }
  .hero__note { order: 11; }
}

/* ---------- The book object (3D) ---------- */
.book-scene { perspective: 1600px; perspective-origin: 60% 45%; }
.book {
  --w: clamp(13rem, 30vw, 19rem);
  --ry: -24deg; --rx: 4deg;
  position: relative; width: var(--w); aspect-ratio: 5 / 8;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry)) rotateX(var(--rx));
  transition: transform 900ms var(--ease-out);
  will-change: transform;
}
.book-scene:hover .book, .book-scene:focus-within .book { transform: rotateY(-12deg) rotateX(2deg) translateY(-4px); }
.book--flat { --w: 100%; transform: none; }
.book__cover {
  position: absolute; inset: 0; border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: var(--shadow-3);
  backface-visibility: hidden; transform: translateZ(14px);
  background: var(--navy);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__pages {
  position: absolute; top: 3px; bottom: 3px; right: -7px; width: 12px;
  background: repeating-linear-gradient(to right, #fbf6ea 0 1px, #dfd6c4 1px 2px);
  transform: rotateY(90deg) translateZ(2px) translateX(6px); transform-origin: right;
  border-radius: 0 2px 2px 0;
}
.book__spine {
  position: absolute; top: 0; bottom: 0; left: -14px; width: 14px;
  background: linear-gradient(to right, #0c1830, #1B2A41 60%, #223454);
  transform: rotateY(-90deg) translateZ(7px) translateX(7px); transform-origin: right;
  border-radius: 3px 0 0 3px;
}
.book__shadow {
  position: absolute; left: 6%; right: -4%; bottom: -10%; height: 12%;
  background: radial-gradient(closest-side, rgba(27, 42, 65, 0.35), transparent);
  transform: translateZ(-30px); filter: blur(6px);
}
.book--flat .book__pages, .book--flat .book__spine, .book--flat .book__shadow { display: none; }
.book--flat .book__cover { transform: none; border-radius: 6px; box-shadow: var(--shadow-2); }

/* Typeset cover (used until the final art exists; also the fallback everywhere) */
.cover {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  padding: 8% 9%;
  background: linear-gradient(170deg, #223454 0%, #1B2A41 45%, #10203A 100%);
  color: var(--cream);
  container-type: inline-size;
}
.cover::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6%;
  background: linear-gradient(to right, rgba(0,0,0,0.28), rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.cover__rule { width: 22%; height: 2px; background: #E0B37A; margin-bottom: 7%; }
.cover__title { font-family: var(--font-display); font-weight: 700; font-size: 11.5cqw; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 6%; text-wrap: balance; font-variation-settings: "opsz" 144; }
.cover__subtitle { font-family: var(--font-display); font-weight: 400; font-size: 4.6cqw; line-height: 1.3; color: #D9D3C6; margin: 0; }
.cover__badge {
  margin-top: auto; align-self: flex-start;
  font-family: var(--font-body); font-weight: 600; font-size: 3.6cqw; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--navy-deep); background: #E0B37A; padding: 0.45em 0.9em; border-radius: 3px;
}
.cover__author { font-family: var(--font-body); font-weight: 600; font-size: 4.4cqw; letter-spacing: 0.16em; text-transform: uppercase; margin: 6% 0 0; color: var(--cream); }
.cover__press { position: absolute; right: 9%; bottom: 8%; width: 7.5cqw; opacity: 0.85; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); }
.principle { padding-top: var(--space-5); border-top: 2px solid var(--line-2); }
.principle__n { font-family: var(--font-display); font-size: 2.6rem; font-weight: 300; color: var(--amber); line-height: 1; margin-bottom: var(--space-3); font-variation-settings: "opsz" 144; }
.principle h3 { font-size: 1.4rem; }
.principle p { color: var(--ink-2); margin: 0; }
@media (max-width: 47.99rem) { .principles { grid-template-columns: 1fr; } }

/* ---------- Featured book / book card ---------- */
.feature { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature__book { display: flex; justify-content: center; }
.feature h2 { margin-bottom: var(--space-3); }
.feature__sub { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink-2); line-height: 1.35; margin-bottom: var(--space-5); font-variation-settings: "opsz" 48; }
.feature__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: 0.95rem; color: var(--ink-3); margin-bottom: var(--space-5); }
.feature__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
@media (max-width: 63.99rem) { .feature { grid-template-columns: 1fr; } }

.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.book-card {
  display: flex; flex-direction: column; gap: var(--space-4);
  padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-1); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
  text-decoration: none; color: inherit;
}
.book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.book-card__cover { width: 60%; margin: var(--space-3) auto 0; }
.book-card h3 { margin: 0; font-size: 1.35rem; }
.book-card h3 a { color: inherit; text-decoration: none; }
.book-card h3 a::after { content: ""; position: absolute; inset: 0; }
.book-card { position: relative; }
.book-card__sub { color: var(--ink-2); font-size: 1rem; margin: 0; }
.book-card__meta { margin-top: auto; color: var(--ink-3); font-size: 0.92rem; display: flex; justify-content: space-between; gap: var(--space-3); align-items: center; }
.book-card--next { background: var(--paper-2); border-style: dashed; align-items: flex-start; justify-content: center; }
.book-card--next .book-card__sub { margin-bottom: var(--space-3); }

.chip { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3em 0.7em; border-radius: 999px; background: var(--amber-soft); color: var(--amber-deep); }
.chip--navy { background: #E3E8F0; color: var(--navy); }

/* ---------- Book page ---------- */
.book-hero { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.book-hero__book { display: flex; justify-content: center; position: sticky; top: 6rem; }
.book-hero h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: var(--space-3); }
.book-hero__sub { font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; color: var(--ink-2); margin-bottom: var(--space-4); font-variation-settings: "opsz" 48; }
.book-hero__by { color: var(--ink-3); margin-bottom: var(--space-5); }
.book-hero__by a { color: var(--ink); }
.buy-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-5);
  box-shadow: var(--shadow-1); margin-bottom: var(--space-6);
}
.buy-box__row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.buy-box__price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.buy-box__price small { font-family: var(--font-body); font-weight: 400; font-size: 0.95rem; color: var(--ink-3); margin-left: 0.4em; }
.buy-box__note { margin: var(--space-3) 0 0; font-size: 0.95rem; color: var(--ink-3); }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2) var(--space-5); padding: 0; margin: 0 0 var(--space-6); list-style: none; font-size: 0.98rem; }
.spec-list li { display: flex; gap: 0.6em; align-items: baseline; padding: 0.35em 0; border-bottom: 1px solid var(--line); }
.spec-list b { color: var(--ink-3); font-weight: 600; min-width: 5.5rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 63.99rem) {
  .book-hero { grid-template-columns: 1fr; }
  .book-hero__book { position: static; }
  .book-hero__book .book { --w: clamp(12rem, 55vw, 17rem); }
  .spec-list { grid-template-columns: 1fr; }
}

.contents-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.contents-list li { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--space-3); align-items: baseline; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.contents-list .n { font-family: var(--font-display); font-size: 1.4rem; color: var(--amber); font-variation-settings: "opsz" 144; }
.contents-list b { font-weight: 600; }
.contents-list span { color: var(--ink-2); }

.look-inside { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.look-inside figure { margin: 0; }
.look-inside img { border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-2); background: var(--white); aspect-ratio: 51 / 66; object-fit: cover; object-position: top; transition: transform var(--dur-base) var(--ease-out); }
.look-inside figure:hover img { transform: translateY(-4px) rotate(-0.4deg); }
.look-inside figcaption { margin-top: var(--space-3); font-size: 0.95rem; color: var(--ink-3); }
@media (max-width: 47.99rem) {
  .look-inside { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; margin-inline: calc(-1 * var(--gutter)); padding: 0.5rem var(--gutter) 1rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .look-inside::-webkit-scrollbar { display: none; }
  .look-inside figure { flex: 0 0 74%; scroll-snap-align: start; }
  .look-inside figure:hover img { transform: none; }
}
/* Sticky action bar: phones only, appears once the page's primary action has scrolled away. */
.action-bar { display: none; }
@media (max-width: 47.99rem) {
  .action-bar {
    display: flex; gap: 0.5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(251, 247, 239, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(27, 42, 65, 0.08);
    transform: translateY(110%); transition: transform 320ms var(--ease-out);
  }
  .action-bar.is-visible { transform: none; }
  .action-bar .btn { flex: 1 1 0; min-height: 3rem; font-size: 1rem; padding-inline: 0.6em; }
  body.has-action-bar { padding-bottom: 4.5rem; }
  body.has-action-bar.nav-open .action-bar { transform: translateY(110%); }
}

.who-list { padding-left: 1.2em; }
.who-list li { margin-bottom: var(--space-2); }

/* ---------- Worksheet page ---------- */
.download-card {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 3rem); box-shadow: var(--shadow-2);
}
.download-card h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.download-card__meta { color: var(--ink-3); font-size: 0.98rem; margin-bottom: var(--space-5); }
.download-card__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.download-card__size { color: var(--ink-3); font-size: 0.9rem; }
.download-card__preview { position: relative; display: flex; justify-content: center; }
.sheet-stack { position: relative; width: min(100%, 18rem); aspect-ratio: 51 / 66; }
.sheet-stack img, .sheet-stack .sheet {
  position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--white);
  box-shadow: var(--shadow-2); object-fit: cover; object-position: top;
}
.sheet-stack .sheet--2 { transform: rotate(-4deg) translate(-6%, 2%); z-index: 0; }
.sheet-stack .sheet--3 { transform: rotate(3deg) translate(5%, -2%); z-index: 0; }
.sheet-stack img { z-index: 1; }
@media (max-width: 63.99rem) { .download-card { grid-template-columns: 1fr; } .download-card__preview { order: -1; } }

.includes { columns: 2; column-gap: var(--space-6); padding-left: 1.2em; margin: 0; }
.includes li { break-inside: avoid; margin-bottom: var(--space-2); }
@media (max-width: 47.99rem) { .includes { columns: 1; } }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.6rem 1fr; gap: var(--space-3); align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 999px; background: var(--navy); color: var(--cream); font-family: var(--font-display); font-weight: 600; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 63.99rem) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; }
.field .help { font-size: 0.92rem; color: var(--ink-3); margin: 0; }
.input, textarea.input {
  width: 100%; min-height: 3.25rem; padding: 0.7em 1em;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-m); background: var(--white); color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 42, 65, 0.12); outline: none; }
textarea.input { min-height: 9rem; resize: vertical; }
.input[aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: 0.95rem; margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.form-status--ok { color: #1F6B3A; }
.form-status--err { color: #B42318; }

.signup { display: grid; gap: var(--space-3); }
.signup__row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); }
.signup__row .btn { white-space: nowrap; }
.signup .help { font-size: 0.92rem; color: var(--ink-3); margin: 0; }
.section--navy .signup .help { color: #C9C1B2; }
.section--navy .input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: var(--cream); }
.section--navy .input::placeholder { color: rgba(245,239,226,0.55); }
.section--navy .input:focus { border-color: #E0B37A; box-shadow: 0 0 0 4px rgba(224,179,122,0.25); }
@media (max-width: 35rem) { .signup__row { grid-template-columns: 1fr; } }

.newsletter { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.newsletter p { color: #D9D3C6; }
.newsletter .lede { color: #E8E2D5; }
@media (max-width: 63.99rem) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.article-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-4); border-top: 2px solid var(--line-2); transition: border-color var(--dur-base); }
.article-card:hover { border-top-color: var(--amber); }
.article-card h3 { font-size: 1.35rem; margin: 0; }
.article-card h3 a { color: inherit; text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }
.article-card p { color: var(--ink-2); margin: 0; }
.article-card__meta { display: flex; gap: var(--space-3); align-items: center; font-size: 0.9rem; color: var(--ink-3); }
.article-card__more { margin-top: auto; font-weight: 600; color: var(--amber); }

.article-header { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem); }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.article-header .dek { font-size: 1.3rem; line-height: 1.5; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); color: var(--ink-3); font-size: 0.98rem; }
.byline a { color: var(--ink); }

.prose { font-size: 1.15rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: var(--space-7); }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .lede { font-size: 1.3rem; }
.prose table { font-size: 1rem; margin: 0; }
.prose caption { caption-side: top; text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; padding-bottom: var(--space-2); }
.prose th, .prose td { padding: 0.65em 0.8em; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { border-bottom: 2px solid var(--line-2); font-weight: 600; font-size: 0.95rem; }
.prose tbody th { font-weight: 600; }
.prose td:nth-child(n+2), .prose th:nth-child(n+2) { white-space: nowrap; }
.table-wrap { overflow-x: auto; margin: var(--space-5) 0; -webkit-overflow-scrolling: touch; border-radius: var(--radius-m); background: var(--white); border: 1px solid var(--line); padding: var(--space-3) var(--space-4); }
.table-grid td, .table-grid th { text-align: center; }
.table-grid tbody th { text-align: left; }
.callout { margin: var(--space-6) 0; padding: var(--space-5); background: var(--amber-soft); border-left: 4px solid var(--amber); border-radius: 0 var(--radius-m) var(--radius-m) 0; }
.callout p:last-child { margin: 0; }
.callout--urgent { background: #FDECEC; border-left-color: #B42318; }
.sources { font-size: 0.95rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: var(--space-4); margin-top: var(--space-6); }

.article-cta {
  margin-top: var(--space-8); padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--navy); color: var(--cream); border-radius: var(--radius-l);
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-5); align-items: center;
}
.article-cta h3 { color: var(--cream); font-size: 1.5rem; margin-bottom: var(--space-2); }
.article-cta p { color: #D9D3C6; margin: 0; }
.article-cta__actions { display: flex; flex-direction: column; gap: var(--space-3); }
@media (max-width: 47.99rem) { .article-cta { grid-template-columns: 1fr; } .article-cta__actions { flex-direction: row; flex-wrap: wrap; } }

/* ---------- About / author ---------- */
.about-hero { padding-block: clamp(3rem, 8vw, 6rem) clamp(2rem, 5vw, 3rem); }
.mark-large { width: 5.5rem; height: 5.5rem; margin-bottom: var(--space-5); }
.standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.standard { padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); }
.standard h3 { font-size: 1.3rem; }
.standard p { margin: 0; color: var(--ink-2); }
@media (max-width: 47.99rem) { .standards { grid-template-columns: 1fr; } }
.author-card { display: grid; grid-template-columns: auto 1fr; gap: var(--space-5); align-items: start; padding: var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l); }
.author-card__initial { width: 4.5rem; height: 4.5rem; border-radius: 999px; background: var(--navy); color: var(--cream); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.author-card h3 { margin-bottom: var(--space-2); }
.author-card p { margin: 0; color: var(--ink-2); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 var(--space-6); display: grid; gap: var(--space-3); }
.contact-list li { padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.contact-list b { display: block; }
.contact-list span { color: var(--ink-2); }
@media (max-width: 63.99rem) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: var(--space-8) var(--space-6); color: var(--ink-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-6); }
.site-footer h4 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.site-footer a { color: var(--ink-2); text-decoration: none; display: inline-block; min-height: 2rem; }
.site-footer a:hover { color: var(--amber-deep); text-decoration: underline; }
.site-footer a.brand { display: inline-flex; color: var(--ink); }
.site-footer a.brand:hover { text-decoration: none; }
.site-footer .brand__mark { width: 2.6rem; height: 2.6rem; }
.site-footer__brand p { max-width: 28rem; font-size: 0.98rem; }
.site-footer__bottom { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.site-footer__legal { max-width: 46rem; font-size: 0.9rem; color: var(--ink-3); margin-top: var(--space-5); }
@media (max-width: 47.99rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Page header block ---------- */
.page-head { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head .lede { max-width: 40rem; }

/* ---------- Motion ----------
   Reveal on scroll: elements start hidden ONLY once JS has confirmed it can run (html.js),
   so a no-JS visitor sees everything. Hero elements rise on load. Reduced motion disables all. */
.js [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Headings are revealed from a baseline mask, the way a line is printed, rather than faded in. */
.js [data-reveal="mask"] {
  opacity: 1; clip-path: inset(0 0 100% 0); transform: translateY(0.5em);
  transition: clip-path 900ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal="mask"].is-in { clip-path: inset(-0.1em 0 -0.3em 0); transform: none; }
.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(12px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: rotateY(calc(var(--ry) - 16deg)) rotateX(6deg) translateY(30px); } to { opacity: 1; transform: rotateY(var(--ry)) rotateX(var(--rx)); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.js .hero [data-rise] { opacity: 0; animation: rise 800ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
.js .hero__rule { transform: scaleX(0); animation: grow-x 900ms var(--ease-out) forwards; animation-delay: 120ms; }
.js .hero .book { opacity: 0; animation: settle 1100ms var(--ease-out) forwards; animation-delay: 200ms; }
.js .hero .book-scene:hover .book { animation: none; opacity: 1; }
.js .brand__mark .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 900ms var(--ease-out) forwards; animation-delay: 150ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0ms !important; transition-duration: 0.001ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js [data-reveal-group] > *, .js .hero [data-rise], .js .hero .book, .js .hero__media img { opacity: 1; transform: none; clip-path: none; }
  .js .worked [data-count] { opacity: 1; }
  .worked__blank::after { transform: scaleX(1); background: var(--amber); }
  .action-bar { transition: none; }
  .js .hero__rule { transform: none; }
  .book { transform: rotateY(-14deg); }
  .js .brand__mark .draw { stroke-dashoffset: 0; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .article-cta, .newsletter { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  a { color: #000; text-decoration: none; }
}
