/* Curuchaga Books - curuchagabooks.com
   Editorial design system. Brand: cream paper, navy ink, highlighter yellow, ribbon red. */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-full.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --cream: #F7F1E6;
  --paper: #FBF8F2;
  --sand: #EFE6D6;
  --ink: #0E1018;
  --navy: #101A32;
  --midnight: #080C1A;
  --yellow: #FFDD00;
  --yellow-soft: #FFE95C;
  --red: #DC3232;
  --muted: #5C5A55;
  --muted-2: #8A8479;
  --line: rgba(14, 16, 24, .12);
  --line-strong: rgba(14, 16, 24, .22);
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow-book: 0 1px 1px rgba(8,12,26,.08), 0 6px 12px -2px rgba(8,12,26,.14), 0 26px 40px -16px rgba(8,12,26,.34);
  --shadow-lift: 0 2px 2px rgba(8,12,26,.08), 0 14px 24px -6px rgba(8,12,26,.18), 0 44px 60px -22px rgba(8,12,26,.42);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip:focus { top: 12px; }

/* Paper grain: a very subtle noise layer for warmth */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.22 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.kicker::before { content: ""; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
.on-dark .kicker { color: rgba(247,241,230,.72); }
.display {
  font-family: var(--serif); font-weight: 560; letter-spacing: -.025em; line-height: .98;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
  margin: 0;
}
.h2 {
  font-family: var(--serif); font-weight: 520; letter-spacing: -.02em; line-height: 1.04;
  font-size: clamp(36px, 5.2vw, 64px); margin: 14px 0 0;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.h2 em, .display em { font-style: italic; font-weight: 440; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); color: var(--muted); max-width: 56ch; margin: 18px 0 0; }
.on-dark .lede { color: rgba(247,241,230,.74); }

/* Highlighter: a hand-drawn yellow swipe behind words */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; z-index: -1; left: -.08em; right: -.1em; bottom: .06em; height: .42em;
  background: var(--yellow); border-radius: .2em .5em .3em .45em / .4em .3em .5em .3em;
  transform: skewX(-8deg) scaleX(var(--hl, 1)); transform-origin: left center;
  transition: transform 1.1s var(--ease) .35s;
}
.js .hl:not(.is-in)::after { --hl: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: 600 15.5px/1 var(--sans); letter-spacing: .005em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .25s;
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 22px -10px rgba(8,12,26,.55);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 16px 30px -12px rgba(8,12,26,.6); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--yellow { --bg: var(--yellow); --fg: var(--ink); box-shadow: 0 8px 22px -10px rgba(120,96,0,.6); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn--ghost { --fg: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(247,241,230,.35); }
.on-dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--cream); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Announcement + header ---------- */
.announce {
  position: relative; z-index: 3; background: var(--navy); color: var(--cream);
  font-size: 14px; text-align: center; padding: 10px var(--gutter);
}
.announce a { display: inline-flex; gap: 8px; align-items: center; }
.announce b { color: var(--yellow); font-weight: 600; }
.announce a:hover span:last-child { transform: translateX(3px); }
.announce span:last-child { transition: transform .3s var(--ease); display: inline-block; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(8,12,26,.35); }
.brand__name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #2a2b30; transition: background .2s; }
.nav a:not(.btn):hover { background: rgba(14,16,24,.06); }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 27px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; z-index: 2; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 120px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero .display { font-size: clamp(54px, 8.4vw, 118px); margin-top: 22px; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); margin-top: 26px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; }
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts b { font-family: var(--serif); font-size: 30px; font-weight: 560; letter-spacing: -.02em; line-height: 1.1; }
.hero__facts span { font-size: 13.5px; color: var(--muted); }

/* Book fan in the hero */
.fan { position: relative; aspect-ratio: 1 / 1.02; perspective: 1600px; }
.fan__glow { position: absolute; inset: 10% 6% 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,221,0,.55), rgba(255,221,0,0)); filter: blur(10px); }
.fan__stage { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.fan__book {
  position: absolute; width: 36%; left: 50%; top: 48%; aspect-ratio: 1000 / 1293;
  transform: translate(-50%, -50%) translate3d(var(--x), var(--y), var(--z)) rotate(var(--r)) rotateY(var(--ry, 0deg));
  transition: transform 1.2s var(--ease);
  animation: float 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.fan__book .cover { width: 100%; height: 100%; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.js .fan:not(.is-in) .fan__book { transform: translate(-50%, -38%) translate3d(0, 40px, 0) rotate(0deg); opacity: 0; }
.fan__book { opacity: 1; transition: transform 1.2s var(--ease), opacity .8s; }
.fan__book:nth-child(2) { transition-delay: .05s; } .fan__book:nth-child(3) { transition-delay: .12s; }
.fan__book:nth-child(4) { transition-delay: .19s; } .fan__book:nth-child(5) { transition-delay: .26s; } .fan__book:nth-child(6) { transition-delay: .33s; }
.fan__tag {
  position: absolute; z-index: 20; right: 2%; bottom: 8%;
  background: #fff; border-radius: 14px; padding: 12px 16px 12px 14px; display: flex; gap: 12px; align-items: center;
  box-shadow: 0 18px 40px -18px rgba(8,12,26,.45); font-size: 13.5px; line-height: 1.3; max-width: 250px;
  transform: rotate(-2deg);
}
.fan__tag i { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-style: normal; font-size: 17px; }
.fan__tag b { display: block; font-weight: 650; }

/* A printed book: cover image + spine shading + page edge */
.cover { position: relative; display: block; border-radius: 3px 6px 6px 3px; overflow: hidden; background: var(--sand); box-shadow: var(--shadow-book); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(0,0,0,.06) 1.4%, rgba(255,255,255,.22) 2.6%, rgba(255,255,255,0) 4.2%, rgba(0,0,0,0) 94%, rgba(0,0,0,.08) 100%);
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 70%, rgba(255,255,255,.06) 100%);
}

/* ---------- Shelf index ---------- */
.index { position: relative; z-index: 2; padding: 0 0 clamp(40px, 6vw, 80px); }
.index__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 22px 0; min-height: 250px;
  display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(8,12,26,.5); }
.tile__n { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.tile__t { font-family: var(--serif); font-size: 26px; line-height: 1.05; font-weight: 540; letter-spacing: -.015em; margin: 10px 0 0; }
.tile__c { font-size: 13.5px; opacity: .72; margin-top: 6px; }
.tile__books { position: relative; height: 128px; margin-top: 18px; }
.tile__books .cover { position: absolute; bottom: -18px; width: 86px; aspect-ratio: 1000/1293; transition: transform .6s var(--ease); }
.tile__books .cover:nth-child(1) { left: 0; transform: rotate(-7deg); }
.tile__books .cover:nth-child(2) { left: 64px; transform: rotate(2deg); z-index: 2; bottom: -8px; }
.tile__books .cover:nth-child(3) { left: 128px; transform: rotate(9deg); }
.tile:hover .tile__books .cover:nth-child(1) { transform: rotate(-11deg) translateY(-8px); }
.tile:hover .tile__books .cover:nth-child(2) { transform: rotate(0deg) translateY(-14px); }
.tile:hover .tile__books .cover:nth-child(3) { transform: rotate(13deg) translateY(-8px); }
.tile__go { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.55); transition: transform .4s var(--ease), background .3s; }
.tile:hover .tile__go { transform: rotate(-45deg); background: #fff; }
.tile--navy { background: var(--navy); color: var(--cream); }
.tile--navy .tile__go { background: rgba(255,255,255,.12); color: var(--cream); }
.tile--navy:hover .tile__go { background: var(--yellow); color: var(--ink); }
.tile--yellow { background: var(--yellow); }
.tile--sand { background: #E9DDC7; }
.tile--red { background: #F3D9CC; }

/* ---------- Shelves ---------- */
.shelf { position: relative; z-index: 2; padding: clamp(64px, 8.5vw, 116px) 0; }
.shelf--alt { background: var(--paper); }
.shelf--dark { background: var(--navy); color: var(--cream); }
.shelf--dark .cover { box-shadow: 0 1px 1px rgba(0,0,0,.3), 0 10px 18px -4px rgba(0,0,0,.45), 0 30px 46px -18px rgba(0,0,0,.7); }
.shelf__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.shelf__num { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; color: var(--muted-2); margin-right: 4px; }
.shelf--dark .shelf__num { color: rgba(247,241,230,.5); }
.shelf__head .lede { margin: 0; justify-self: end; }

.books { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 48px) clamp(18px, 2.4vw, 32px); }
.book { position: relative; display: flex; flex-direction: column; }
.book__plinth {
  position: relative; border-radius: var(--radius); padding: 13% 16% 12%; margin-bottom: 18px;
  background: linear-gradient(180deg, rgba(14,16,24,.035), rgba(14,16,24,.07));
  display: grid; place-items: center; perspective: 900px; overflow: hidden;
}
.shelf--alt .book__plinth { background: linear-gradient(180deg, #F2EBDD, #EADFCB); }
.shelf--dark .book__plinth { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.09)); }
.book__plinth::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 7%; height: 10px; border-radius: 50%; background: rgba(8,12,26,.22); filter: blur(10px); z-index: 0; }
.book .cover { width: 100%; aspect-ratio: 1000/1293; z-index: 1; transform-origin: left center; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.book:hover .cover { transform: rotateY(-14deg) translateY(-6px) translateX(4px); box-shadow: var(--shadow-lift); }
.book__badge {
  position: absolute; z-index: 4; top: 14px; left: 14px;
  font: 650 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 7px 10px 6px; border-radius: 999px;
}
.book__badge--yellow { background: var(--yellow); color: var(--ink); }
.book__badge--red { background: var(--red); color: #fff; }
.book__fmt { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); font-weight: 600; }
.shelf--dark .book__fmt { color: rgba(247,241,230,.55); }
.book__t { font-family: var(--serif); font-size: 21px; line-height: 1.18; font-weight: 560; letter-spacing: -.012em; margin: 6px 0 0; font-variation-settings: "opsz" 30; }
.book__l { font-size: 15px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.shelf--dark .book__l { color: rgba(247,241,230,.7); }
.book__a {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  font-weight: 600; font-size: 14.5px; padding: 8px 0; border-bottom: 1.5px solid currentColor;
}
.book__a .arr { transition: transform .35s var(--ease); }
.book:hover .book__a .arr { transform: translate(3px, -3px); }
.book__a--soon { border-bottom-style: dashed; opacity: .7; }
.book > a.book__hit { position: absolute; inset: 0; z-index: 5; border-radius: var(--radius); }

/* Featured book: spans two columns, horizontal */
.book--feature { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.book--feature .book__plinth { margin: 0; padding: 10% 20%; height: 100%; }
.book--feature .book__body { align-self: center; }
.book--feature .book__plinth .cover { max-width: 270px; }
.book--feature .book__t { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.08; }
.book--feature .book__l { font-size: 16.5px; }

/* Single-book shelf: a wide spotlight */
.book--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.book--wide .book__plinth { padding: 7% 25%; }
.book--wide .book__plinth .cover { max-width: 300px; }
.book--wide .book__t { font-size: clamp(30px, 3.4vw, 44px); }
.book--wide .book__l { font-size: 18px; max-width: 44ch; }

/* ---------- Principles ---------- */
.principles { position: relative; z-index: 2; padding: clamp(80px, 11vw, 150px) 0; }
.principles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 64px); }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 34px; position: relative; overflow: hidden; }
.pcard__i { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--yellow); margin-bottom: 26px; }
.pcard__i svg { width: 26px; height: 26px; }
.pcard h3 { font-family: var(--serif); font-weight: 560; font-size: 25px; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
.pcard p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }
.pcard__n { position: absolute; right: 22px; top: 18px; font-family: var(--serif); font-style: italic; color: var(--muted-2); }

.quote { margin: clamp(64px, 9vw, 120px) auto 0; max-width: 980px; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-weight: 420; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.18; letter-spacing: -.018em; font-variation-settings: "opsz" 144, "SOFT" 60; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 1.8em; line-height: .6; color: var(--red); margin-bottom: 18px; }
.quote figcaption { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* ---------- Social band ---------- */
.social { position: relative; z-index: 2; background: var(--midnight); color: var(--cream); padding: clamp(72px, 10vw, 128px) 0; overflow: hidden; }
.social::before { content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,221,0,.22), rgba(255,221,0,0)); }
.social__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.social__links { display: grid; gap: 12px; }
.slink {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.slink:hover { background: rgba(255,255,255,.09); transform: translateX(6px); border-color: rgba(255,221,0,.5); }
.slink__i { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); flex: none; }
.slink__i svg { width: 22px; height: 22px; }
.slink b { display: block; font-size: 17px; font-weight: 600; }
.slink span { font-size: 14px; color: rgba(247,241,230,.62); }
.slink .arr { margin-left: auto; opacity: .6; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; background: var(--navy); color: rgba(247,241,230,.78); padding: 72px 0 36px; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand__name { color: var(--cream); }
.footer h4 { margin: 0 0 14px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(247,241,230,.5); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--yellow); }
.footer__tag { margin: 18px 0 0; max-width: 34ch; }
.footer__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: rgba(247,241,230,.5); }

/* ---------- Text pages (privacy, terms) ---------- */
.doc { position: relative; z-index: 2; padding: clamp(48px, 8vw, 104px) 0 clamp(72px, 10vw, 128px); }
.doc__in { max-width: 760px; margin: 0 auto; }
.doc h1 { font-family: var(--serif); font-weight: 540; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.025em; line-height: 1; margin: 18px 0 0; }
.doc .updated { color: var(--muted); margin-top: 16px; font-size: 15px; }
.doc h2 { font-family: var(--serif); font-weight: 560; font-size: 27px; letter-spacing: -.012em; margin: 52px 0 0; line-height: 1.2; }
.doc p, .doc li { color: #2c2d33; font-size: 17px; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 8px 0; }
.doc a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.doc a:hover { background: var(--yellow); }
.doc .callout { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 18px 22px; margin: 28px 0 0; }

/* ---------- Links page (link in bio) ---------- */
.lp { position: relative; z-index: 2; min-height: 100vh; padding: 48px 18px 56px; }
.lp__in { max-width: 520px; margin: 0 auto; }
.lp__head { text-align: center; }
.lp__head img { width: 92px; height: 92px; border-radius: 26px; margin: 0 auto; box-shadow: 0 16px 34px -16px rgba(8,12,26,.55); }
.lp__head h1 { font-family: var(--serif); font-weight: 580; font-size: 34px; letter-spacing: -.02em; margin: 18px 0 0; line-height: 1.05; }
.lp__head p { color: var(--muted); margin: 8px 0 0; font-size: 16px; }
.lp__soc { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.lp__soc a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 6px 14px -8px rgba(8,12,26,.4); transition: transform .3s var(--ease); }
.lp__soc a:hover { transform: translateY(-2px); }
.lp__soc svg { width: 20px; height: 20px; }
.lp__label { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin: 34px 4px 12px; }
.lp__list { display: grid; gap: 12px; }
.lcard {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  background: #fff; border-radius: 18px; padding: 12px 16px 12px 12px;
  box-shadow: 0 1px 0 rgba(8,12,26,.04), 0 10px 24px -16px rgba(8,12,26,.35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.lcard:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(8,12,26,.04), 0 18px 34px -18px rgba(8,12,26,.45); }
.lcard .cover { width: 74px; aspect-ratio: 1000/1293; box-shadow: 0 6px 14px -6px rgba(8,12,26,.45); }
.lcard__k { font-size: 11.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.lcard__t { font-family: var(--serif); font-weight: 580; font-size: 18px; line-height: 1.2; letter-spacing: -.01em; margin-top: 3px; }
.lcard__l { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.lcard__go { width: 38px; height: 38px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; font-weight: 700; }
.lcard--soon { opacity: .78; }
.lcard--soon .lcard__go { background: var(--sand); }
.lp__all { margin-top: 14px; width: 100%; }
.lp__foot { text-align: center; margin-top: 36px; font-size: 13px; color: var(--muted-2); }
.lp__foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Entrance (CSS only, above the fold) ---------- */
.in { animation: rise 1s var(--ease) both; animation-delay: var(--rd, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .books { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--gutter) 24px; background: var(--cream); border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; }
  .menu-btn { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .fan { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .shelf__head { grid-template-columns: 1fr; }
  .shelf__head .lede { justify-self: start; }
  .social__grid { grid-template-columns: 1fr; }
  .principles__grid { grid-template-columns: 1fr; }
  .book--feature { grid-template-columns: 1fr; gap: 0; }
  .book--feature .book__plinth { margin-bottom: 18px; padding: 10% 26%; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .book--feature { grid-column: 1 / -1; }
  .book__plinth { padding: 12% 13% 11%; border-radius: 14px; }
  .book__t { font-size: 17.5px; }
  .book__l { font-size: 14px; }
  .book__badge { top: 10px; left: 10px; font-size: 10px; padding: 6px 8px 5px; }
  .index__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 210px; padding: 18px 16px 0; }
  .tile__t { font-size: 21px; }
  .tile__c { display: none; }
  .tile__books { height: 104px; }
  .tile__books .cover { width: 66px; }
  .tile__books .cover:nth-child(2) { left: 44px; } .tile__books .cover:nth-child(3) { left: 88px; }
  .hero__facts b { font-size: 25px; }
  .fan__tag { right: 0; bottom: 2%; max-width: 210px; font-size: 12.5px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .header__in { height: 66px; }
  .nav { inset: 66px 0 auto 0; }
  .brand img { width: 36px; height: 36px; }
  .brand__name { font-size: 19px; }
  .announce { font-size: 13px; }
}
@media (max-width: 380px) {
  .books { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .lcard { grid-template-columns: 62px minmax(0, 1fr) auto; }
  .lcard .cover { width: 62px; }
}
/* Only the floating loop is reduced; reveals stay (Windows often reports reduce by default). */
@media (prefers-reduced-motion: reduce) { .fan__book { animation: none; } }
@media print { .header, .announce, .social, body::before { display: none; } }
