/* site.css — Inkwise. Warm linen, ink, lacquer frames, stamped foil, jade plaques.
   The chrome is book-neutral; a book's page re-tints itself from its world (--b-* variables set in app.js). */

:root {
  --linen: #EADCC5; --linen-2: #E0CFB3; --paper: #FBF6EC; --paper-2: #F4EBDB;
  --ink: #2B1D16; --ink-soft: #57432F; --ink-mute: #6E5A4A;
  --lacquer: #3A1712; --lacquer-2: #4C1F17; --lacquer-3: #2A0F0B;
  --gold: #B48A45; --gold-soft: #E3C98D; --gold-hi: #F3DEA6;
  --crimson: #A3312A; --crimson-edge: #5E1A15; --jade: #2E5B41; --jade-edge: #1C3A29; --navy: #25335A; --navy-edge: #141C33;
  --wash: rgba(58, 36, 32, 0.12);
  --line: rgba(43, 29, 22, 0.2);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 1px 2px rgba(43,29,22,.08);
  --lift: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 4px -2px rgba(43,29,22,.18), 0 26px 50px -28px rgba(43,29,22,.6);
  --r: 14px;
  --serif: 'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --caps: 'Cinzel', 'Cormorant Garamond', serif;
  --gutter: clamp(18px, 4vw, 44px);
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --b-accent: var(--jade); --b-cloth: var(--lacquer); --b-cloth2: var(--lacquer-3); --b-foil: var(--gold-soft); --b-sky: var(--paper-2); --b-ink: var(--ink);
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.035' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.25 0 0 0 0 0.15 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)'/%3E%3C/svg%3E");
  --weave-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9 0.035' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='h'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23h)'/%3E%3C/svg%3E");
  --zig: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='16'%3E%3Cpath d='M0,12L6,4L12,12L18,4L24,12' fill='none' stroke='%23C9A057' stroke-width='1.2'/%3E%3Ccircle cx='12' cy='4.6' r='1.2' fill='%23C9A057'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62;
  background-color: var(--linen);
  background-image: var(--weave), radial-gradient(ellipse at 50% -10%, rgba(255,250,238,.7), transparent 60%);
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
picture { display: contents; }   /* the <img> inside lays out as if the wrapper weren't there */
a { color: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus, var(--crimson)); outline-offset: 3px; border-radius: 3px; }
.site-head, .nav, .feature, .community, .site-foot, .bk-hero { --focus: var(--gold-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.sr:focus { position: fixed; left: 16px; top: 12px; width: auto; height: auto; clip: auto; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 3px; box-shadow: 0 0 0 2px var(--crimson); }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.04; margin: 0 0 .38em; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: clamp(46px, 6.4vw, 88px); }
h2 { font-size: clamp(36px, 4.4vw, 58px); }
h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; }
p { margin: 0 0 1em; text-wrap: pretty; }
.kicker { font-family: var(--caps); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--crimson); margin: 0 0 16px; }
.lead { font-size: clamp(19.5px, 1.75vw, 22.5px); line-height: 1.6; color: var(--ink-soft); max-width: 30em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.btns { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; margin-top: 32px; }
.center-btns { justify-content: center; }

/* ornament: a gold diamond between two hairlines */
.rule { display: flex; align-items: center; gap: 14px; color: var(--gold); justify-content: center; margin: 0 auto 20px; }
.rule::before, .rule::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, currentColor); }
.rule::after { transform: scaleX(-1); }
.rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1.3px solid currentColor; box-shadow: 0 0 0 3px var(--linen), 0 0 0 4px rgba(180,138,69,.35); }

/* the zigzag-and-dot band from the film's frames */
.band { height: 18px; background: var(--zig) repeat-x center / 24px 16px, linear-gradient(var(--lacquer-2), var(--lacquer));
  border-top: 1px solid #6d3326; border-bottom: 1px solid var(--lacquer-3); box-shadow: 0 1px 0 rgba(255,255,255,.25); }

/* buttons: plaques with a pressed, printed edge */
.btn {
  --bg: var(--jade); --edge: var(--jade-edge); --fg: #FBF2DC;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 13px 28px 12px;
  font-family: var(--caps); font-weight: 700; font-size: 14.5px; letter-spacing: .15em; text-transform: uppercase; text-decoration: none; white-space: normal; text-wrap: balance; text-align: center; max-width: 100%;
  color: var(--fg); background: linear-gradient(rgba(255,255,255,.08), rgba(0,0,0,.06)), var(--bg); border: 0; border-radius: 3px; cursor: pointer;
  box-shadow: 5px 5px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .2s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--edge), inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.08); filter: brightness(1.06) saturate(1.05); }
.btn:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--edge); }
.btn.red { --bg: var(--crimson); --edge: var(--crimson-edge); }
.btn.navy { --bg: var(--navy); --edge: var(--navy-edge); }
.btn.gold { --edge: #6E4A17; --fg: var(--lacquer-3); background: linear-gradient(180deg, #EFD79F, #C99A4C); }
.btn.cream { --bg: #F5E8D0; --edge: #0f1528; --fg: var(--navy); }
.btn.line { --edge: transparent; --fg: var(--gold-hi); background: transparent; box-shadow: inset 0 0 0 1.4px rgba(227,201,141,.7); }
.btn.line:hover { --fg: var(--lacquer-3); background: var(--gold-soft); box-shadow: inset 0 0 0 1.4px var(--gold-soft); transform: none; }
.btn.line:active { transform: translate(1px, 1px); }
.play-link { display: inline-flex; align-items: center; gap: 12px; background: none; padding: 0; }
.play-link .pl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.4px solid var(--ink); transition: background .25s, color .25s; }
.play-link .pl svg { width: 14px; height: 14px; margin-left: 2px; }
.play-link:hover .pl { background: var(--crimson); border-color: var(--crimson); color: #FBF2DC; }
.btn.ghost { --bg: var(--paper); --edge: rgba(43,29,22,.32); --fg: var(--ink); box-shadow: 5px 5px 0 var(--edge), inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { box-shadow: 6px 6px 0 var(--edge), inset 0 0 0 1.5px var(--ink); }
.btn.book { --bg: var(--b-accent); --edge: color-mix(in srgb, var(--b-accent) 50%, #000); }
.btn.small { min-height: 44px; padding: 9px 18px 8px; font-size: 12.5px; box-shadow: 4px 4px 0 var(--edge); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[disabled] { cursor: progress; }
.btn.busy { color: transparent; }
.btn.busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #FBF2DC; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }
.link { display: inline-flex; align-items: flex-end; min-height: 44px; font-family: var(--caps); font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat, linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1.5px no-repeat;
  padding-bottom: 4px; transition: background-size .35s var(--ease), color .2s; }
.link:hover { color: var(--crimson); background-size: 100% 1.5px, 100% 1.5px; }

/* badges */
.num { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #3E7457, var(--jade) 60%); color: #FBF2DC; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1;
  box-shadow: 3px 3px 0 rgba(28,58,41,.4), inset 0 0 0 1.5px rgba(251,242,220,.25); padding-bottom: 2px; }
.seal { display: inline-grid; place-items: center; min-width: 54px; height: 54px; padding: 0 8px; background: var(--crimson); color: #FFF4E2;
  font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1; transform: rotate(-6deg);
  border: 2px solid #FBE7CF; outline: 1.5px solid var(--crimson); box-shadow: 4px 4px 0 rgba(94,26,21,.35); }
.seal.small { min-width: 40px; height: 40px; font-size: 20px; }
.seal.small svg { width: 72%; height: 72%; }
.chip { display: inline-flex; align-items: center; font-family: var(--caps); font-size: 11.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  padding: 6px 11px 5px; border: 1.2px solid var(--line); border-radius: 2px; color: var(--ink-soft); background: rgba(251,246,236,.6); }
.price { display: inline-flex; align-items: center; font-family: var(--caps); font-weight: 700; font-size: 12px; letter-spacing: .14em; padding: 4px 9px 3px;
  border-radius: 2px; background: var(--ink); color: var(--paper); margin-left: auto; }
.price.free { background: var(--jade); }

/* paper cards (the cream cards with a soft glow from the film) */
.card { position: relative; background: radial-gradient(ellipse at 28% 0%, #FFFEFA, var(--paper) 52%, var(--paper-2));
  border: 1.4px solid rgba(43,29,22,.26); border-radius: var(--r); box-shadow: var(--shadow); }
.frame { position: relative; padding: 14px; border-radius: 6px; background: linear-gradient(var(--lacquer-2), var(--lacquer));
  box-shadow: inset 0 0 0 1px #6d3326, inset 0 0 0 7px var(--lacquer), inset 0 0 0 8px rgba(201,160,87,.6), 0 34px 60px -30px rgba(43,29,22,.75); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; color: #F5E8D0;
  background: var(--weave-dark), linear-gradient(#45190F, var(--lacquer)); border-bottom: 1px solid var(--lacquer-3); box-shadow: 0 1px 0 rgba(201,160,87,.35), 0 10px 30px -18px rgba(0,0,0,.6); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.brand .word { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .005em; color: #FBF2DC; line-height: 1; padding-bottom: 3px; }
.brand .word span { color: var(--gold-soft); font-style: italic; }
.site-head .logo-mark, .site-foot .logo-mark { --paper: #FBF2DC; --ink: #1d0b08; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 32px); }
.nav a:not(.btn) { position: relative; font-family: var(--caps); font-weight: 700; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; opacity: .82; padding: 8px 0; transition: opacity .2s; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--gold-soft); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 9px 18px 8px; font-size: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.menu-btn .bars span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn .bars span:nth-child(1) { top: 15px } .menu-btn .bars span:nth-child(2) { top: 21px } .menu-btn .bars span:nth-child(3) { top: 27px }
.menu-btn[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg) }
.menu-btn[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0 }
.menu-btn[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg) }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 72px 0 auto 0; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0; background: var(--weave-dark), var(--lacquer); padding: 6px var(--gutter) 26px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease), opacity .25s, visibility .3s; border-bottom: 2px solid var(--gold); box-shadow: 0 30px 40px -20px rgba(0,0,0,.5); }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 16px 0; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 18px; min-height: 52px; font-size: 13px; }
}

/* hero */
.hero { padding: clamp(46px, 6vw, 92px) 0 clamp(90px, 10vw, 150px); overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.22fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.hero h1 { font-size: clamp(46px, 5.6vw, 80px); }
.hero h1 .line2 { display: block; color: var(--crimson); font-style: italic; margin-top: .04em; }
.hero .btns { margin-top: 34px; }
.hero-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none; }
.hero-hills svg { width: 100%; height: 100%; }
.proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px clamp(26px, 4vw, 52px); margin-top: 42px; padding-top: 26px;
  border-top: 1px solid var(--line); position: relative; }
.proof::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--linen); border: 1.2px solid var(--gold); transform: rotate(45deg); }
.proof div { display: flex; flex-direction: column; gap: 7px; }
.proof b { font-family: var(--display); font-size: 46px; line-height: .9; color: var(--ink); }
.proof span { font-family: var(--caps); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); max-width: 14em; line-height: 1.45; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { order: -1; width: 100%; max-width: 440px; margin: 0 auto 64px; } }
@media (max-width: 520px) { .proof { grid-template-columns: 1fr; gap: 14px; } .proof div { flex-direction: row; align-items: baseline !important; gap: 14px; } .proof b { font-size: 34px; min-width: 2.2em; } .proof span { max-width: none; } }

/* the round window (moon gate) with the painted scene */
.window { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; margin: 0 auto; }
.window .ring { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 63%, rgba(255,255,255,.22) 63.4% 64%, transparent 64.6%),
    repeating-conic-gradient(from 8deg, rgba(255,255,255,.05) 0 6deg, rgba(0,0,0,.025) 6deg 12deg),
    conic-gradient(from 20deg, #CDB894, #E8DABA, #C3AC85, #E5D4B1, #C8B18A, #E8DABA, #CDB894);
  box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px var(--lacquer), 0 0 0 8px rgba(201,160,87,.7), inset 0 0 0 2px var(--ink), inset 0 0 0 6px rgba(255,255,255,.25), 0 50px 80px -46px rgba(43,29,22,.9), 0 10px 20px -12px rgba(43,29,22,.4); }
.window .ring > .zig { position: absolute; inset: 2.2%; border-radius: 50%; pointer-events: none;
  -webkit-mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 8px) 50%, transparent calc(50% + 1px)); mask: radial-gradient(circle, transparent 0 calc(50% - 9px), #000 calc(50% - 8px) 50%, transparent calc(50% + 1px));
  background: repeating-conic-gradient(from 0deg, rgba(150,112,58,.55) 0 1.2deg, transparent 1.2deg 3deg); }
.window .ring::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink), 0 0 0 7px var(--gold), 0 0 0 8.5px var(--ink), 0 0 0 9.5px rgba(255,255,255,.3); }
.window .ring::before { content: ''; position: absolute; left: 50%; top: -3.4%; width: 8.5%; height: 13%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--lacquer-3), var(--lacquer-2) 50%, var(--lacquer-3)); border: 2px solid var(--ink); border-radius: 3px; box-shadow: inset 0 0 0 3px var(--lacquer), inset 0 0 0 4px rgba(201,160,87,.75); }
.window .knot { position: absolute; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 14c0-5 4-8 8-8s7 3 7 6-2 5-5 5-4-2-4-4 1-3 3-3' fill='none' stroke='%23B48A45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.window .knot.l { left: 2.2%; } .window .knot.r { right: 2.2%; transform: scaleX(-1); }
.window .pane { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: var(--paper); isolation: isolate; }
.window .pane .scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s ease; }
.window .pane .scene.on { opacity: 1; }
.window .pane-shade { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 10px 24px rgba(43,29,22,.28), inset 0 -6px 18px rgba(255,255,255,.25); pointer-events: none; z-index: 2; }
.window .petal { position: absolute; top: 0; width: 11px; height: 8px; border-radius: 85% 0 85% 0; background: linear-gradient(135deg, #F6C9C2, #E39A93); opacity: .85; animation: drift 13s linear infinite; z-index: 1; box-shadow: inset -1px -1px 0 rgba(160,60,60,.25); }
.window .caption { position: absolute; left: 50%; bottom: -3.2%; transform: translateX(-50%); white-space: nowrap; z-index: 3; }
.window .dots { position: absolute; left: 50%; bottom: -19%; transform: translateX(-50%); display: flex; gap: 0; align-items: center; }
.window .dots .pause { color: var(--ink-soft); display: grid; place-items: center; }
.window .dots .pause::before { display: none; }
.window .dots .pause svg { width: 16px; height: 16px; }
.window .dots .pause .i-play, .window .dots .pause[aria-pressed="true"] .i-pause { display: none; }
.window .dots .pause[aria-pressed="true"] .i-play { display: block; }
.window.stopped * { animation-play-state: paused !important; }
.window .dots button { position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.window .dots button::before { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; border: 1.3px solid var(--ink-soft); transition: background .3s, transform .3s, border-color .3s; }
.window .dots button[aria-pressed="true"]::before { background: var(--crimson); border-color: var(--crimson); transform: scale(1.2); }
.plaque { display: inline-flex; align-items: baseline; font-family: var(--caps); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; font-size: 13.5px;
  background: linear-gradient(rgba(255,255,255,.07), rgba(0,0,0,.08)), var(--jade); color: #FBF2DC; padding: 11px 20px 10px; box-shadow: 5px 5px 0 rgba(28,58,41,.55), inset 0 0 0 1px rgba(255,255,255,.08); border-radius: 2px; }
.plaque small { opacity: .9; font-size: 10.5px; margin-left: 10px; letter-spacing: .14em; }
.plaque.red { background: var(--crimson); box-shadow: 4px 4px 0 rgba(94,26,21,.5); }
.plaque.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* scene layers drift slowly (parallax) */
.scene .layer { transform-box: view-box; transform-origin: center; }
.window .scene.on .l-back { animation: driftX 26s ease-in-out infinite alternate; }
.window .scene.on .l-mid { animation: driftX 34s ease-in-out infinite alternate-reverse; }
.window .scene.on .l-front { animation: driftX2 20s ease-in-out infinite alternate; }
.window .scene.on .flicker { animation: flicker 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 90%; }
.window .scene.on .birds { animation: fly 9s ease-in-out infinite alternate; }
.window .scene.on .smoke { animation: smoke 6s ease-in-out infinite; }
.scene .ink { stroke-dasharray: 1; stroke-dashoffset: 0; }
.window .scene.on.draw .ink { animation: draw 2.6s var(--ease) both; }
@keyframes driftX { from { transform: translateX(-3px) } to { transform: translateX(3px) } }
@keyframes driftX2 { from { transform: translateX(-6px) scale(1.02) } to { transform: translateX(6px) scale(1.02) } }
@keyframes flicker { 0%,100% { transform: scale(1); opacity: 1 } 40% { transform: scale(1.05, .96); opacity: .92 } 70% { transform: scale(.97, 1.04) } }
@keyframes fly { from { transform: translate(0, 0) } to { transform: translate(16px, -6px) } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(4px) } 40% { opacity: .4 } 100% { opacity: 0; transform: translateY(-8px) } }
@keyframes draw { from { stroke-dashoffset: 1 } to { stroke-dashoffset: 0 } }
.window.paused *, .window.paused .scene * { animation-play-state: paused !important; }
.window.settled .scene .layer, .window.settled .flicker, .window.settled .birds, .window.settled .smoke { animation-play-state: paused; }
.window .scene-slot { display: none; }
@media (pointer: coarse) { .window .scene .layer, .window .flicker, .window .birds, .window .smoke { animation: none !important; } }   /* phones: still painting, saves battery */
@keyframes drift { from { transform: translate(0, -20px) rotate(0) } to { transform: translate(-110px, 560px) rotate(340deg) } }

/* hand-drawn line boil: the filter steps between three seeds like 12 fps animation */
.window .scene.on.draw .boil, :hover > .boil, :hover > svg > .boil, .part:hover .boil, .stages figure:hover .boil, .table-art:hover .boil { animation: boil .5s steps(1) infinite; }
@keyframes boil { 0% { filter: url(#boil-1) } 33% { filter: url(#boil-2) } 66% { filter: url(#boil-3) } }

/* the three parts (Watch · Work · Talk): one strip, joined by arrows */
.what-head { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: end; }
.what-head h2 { margin: 0; }
.what-head .lead { margin: 0; }
.strip { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; }
.strip .part { padding: 36px clamp(18px, 2.4vw, 34px) 34px; }
.strip .join { position: relative; }
.strip .join::before { content: ''; position: absolute; top: 28px; bottom: 28px; left: 50%; border-left: 1px dashed var(--line); }
.strip .join::after { content: ''; position: absolute; top: 96px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--paper);
  border: 1.2px solid var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M8 6l5 5-5 5' fill='none' stroke='%23B48A45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.strip .spot { color: var(--ink); height: 118px; margin: 0 0 24px; display: flex; align-items: center; }
.strip .spot svg { height: 100%; width: auto; }
.part-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.part-head .num { margin-top: 4px; }
.part-head h3 { margin: 0; }
.part-head h3 span { display: block; font-family: var(--caps); font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--crimson); margin-bottom: 4px; }
.strip .part p { color: var(--ink-soft); margin: 0; font-size: 18px; line-height: 1.58; }
@media (max-width: 900px) { .what-head { grid-template-columns: 1fr; } .strip { grid-template-columns: 1fr; } .strip .join { height: 1px; margin: 0 28px; border-top: 1px dashed var(--line); } .strip .join::before, .strip .join::after { display: none; } }

/* featured book */
.feature { color: #F5E8D0; overflow: hidden; background: var(--weave-dark), linear-gradient(160deg, #4A1D14, var(--lacquer) 50%, var(--lacquer-3)); }
.feature .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(260px, 390px) 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.feature .kicker { color: var(--gold-soft); }
.feature h2 { color: #FBF2DC; margin-bottom: 4px; font-size: clamp(42px, 5.2vw, 70px); }
.feature .by { font-family: var(--display); font-style: italic; font-size: 26px; color: var(--gold-soft); margin: 0 0 20px; }
.feature .lead { color: #E6D4B8; }
.feature .quote { position: relative; font-family: var(--display); font-style: italic; font-size: 25px; line-height: 1.38; padding: 0 0 0 30px; margin: 28px 0 0; color: #FBF2DC; }
.feature .quote .hang { position: absolute; left: -4px; top: -14px; font-size: 64px; line-height: 1; color: var(--gold); font-style: normal; }
.feature .quote cite { display: block; margin-top: 10px; font-family: var(--caps); font-style: normal; font-size: 11.5px; letter-spacing: .17em; color: var(--gold-soft); }
.feature .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.feature .chip { color: #EBD9BB; border-color: rgba(227,201,141,.35); background: rgba(0,0,0,.12); }
.feature .chip.gold { color: var(--gold-hi); border-color: var(--gold); }
.feature .link { color: #F5E8D0; }
.feat-cover { display: block; }
@media (max-width: 860px) { .feature .wrap { grid-template-columns: 1fr; } .feat-cover { max-width: 280px; margin: 0 auto; } }

/* a cover standing up, with page edges and a soft gloss */
.book3d { position: relative; perspective: 1600px; }
.book3d .inner { position: relative; transform: rotateY(-14deg) rotateX(2deg); transform-style: preserve-3d; transition: transform .8s var(--ease); }
.book3d:hover .inner, a:hover .book3d .inner { transform: rotateY(-5deg) rotateX(1deg) translateY(-4px); }
.book3d .cover { width: 100%; height: auto; border-radius: 3px 6px 6px 3px; aspect-ratio: 2 / 3; object-fit: cover;
  box-shadow: 0 46px 60px -30px rgba(0,0,0,.75), 0 12px 18px -10px rgba(0,0,0,.4), 0 0 0 1px rgba(0,0,0,.25); }
.book3d .pages { position: absolute; top: 1.2%; bottom: 1.2%; right: 0; width: 16px; transform: translateX(100%) rotateY(70deg); transform-origin: left;
  background: repeating-linear-gradient(90deg, #F4EBDB 0 1.5px, #DCCDB2 1.5px 2.5px); border-radius: 0 2px 2px 0; box-shadow: inset -2px 0 4px rgba(0,0,0,.2); }
.book3d .gloss { position: absolute; inset: 0; border-radius: 3px 6px 6px 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 1.6%, rgba(0,0,0,.08) 3.2%, transparent 6%),
    linear-gradient(115deg, rgba(255,255,255,.16), transparent 40%, transparent 70%, rgba(0,0,0,.12)); }

/* cadence (weekly vs monthly) */
.cadence { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.month { padding: 30px clamp(18px, 3vw, 34px) 24px; }
.month .row { display: grid; grid-template-columns: 9.5em 1fr; gap: 18px; align-items: center; padding: 18px 0; }
.month .row + .row { border-top: 1px dashed var(--line); }
.month .label { font-family: var(--caps); font-weight: 700; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-mute); line-height: 1.4; }
.month .row.ours .label { color: var(--crimson); }
.month .weeks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.month .wk { aspect-ratio: 2 / 3; border-radius: 3px; display: block; }
.month .wk.empty { border: 1.4px dashed rgba(43,29,22,.22); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(43,29,22,.035) 6px 7px); }
.month .wk svg, .month .wk img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; box-shadow: 0 10px 16px -9px rgba(0,0,0,.55); }
.month .row.foot { padding: 4px 0 0; border: 0; }
.month .row.foot .weeks span { font-family: var(--caps); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; color: var(--ink-mute); text-align: center; text-transform: uppercase; }
@media (max-width: 860px) { .cadence { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .month .row { grid-template-columns: 1fr; gap: 12px; } .month .row.foot > span { display: none; } }

/* library shelf */
.shelf-sec { padding-top: 0; }
.shelf-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: end; justify-content: space-between; margin-bottom: 44px; }
.shelf-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: inherit; font-family: var(--caps); font-size: 11.5px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-soft);
  background: rgba(251,246,236,.6); border: 1.2px solid var(--line); border-radius: 2px; padding: 8px 13px 7px; min-height: 44px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filters button:hover { border-color: var(--ink-soft); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.count { font-family: var(--caps); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 54px 30px; }
.shelf .item { text-decoration: none; display: block; position: relative; }
.shelf .item .cv { position: relative; z-index: 0; }
.shelf .item .cv::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: -10px; height: 14px; border-radius: 50%; background: radial-gradient(ellipse, rgba(43,29,22,.35), transparent 70%); z-index: -1; transition: transform .45s var(--ease), opacity .45s; }
.shelf .item .cover { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px 5px 5px 2px;
  box-shadow: 0 18px 26px -16px rgba(43,29,22,.8), 0 0 0 1px rgba(0,0,0,.14); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.shelf a.item:hover .cover { transform: translateY(-10px) rotate(-1.5deg); box-shadow: 0 30px 34px -18px rgba(43,29,22,.75), 0 0 0 1px rgba(0,0,0,.14); }
.shelf a.item:hover .cv::after { transform: scale(.86); opacity: .6; }
.shelf .item h3 { font-size: 21px; margin: 18px 0 3px; line-height: 1.15; }
.shelf .item p { margin: 0; color: var(--ink-mute); font-size: 15.5px; line-height: 1.4; }
.shelf .item p.tp { display: flex; align-items: center; gap: 8px; margin-top: 5px; font-family: var(--caps); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.shelf .item .price { font-size: 10px; padding: 3px 7px 2px; margin-left: 0; }
.shelf .item .tag { position: absolute; top: -11px; right: -9px; z-index: 2; }
.shelf .item .tag .plaque { font-size: 10.5px; padding: 6px 10px 5px; box-shadow: 3px 3px 0 rgba(94,26,21,.5); }
.empty { color: var(--ink-mute); font-style: italic; }
@media (max-width: 560px) { .shelf { grid-template-columns: 1fr 1fr; gap: 40px 18px; } .shelf .item h3 { font-size: 18.5px; } .shelf .item p { font-size: 14px; } }

/* craft */
.craft { background: linear-gradient(rgba(251,246,236,.62), rgba(251,246,236,.3)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.craft .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.stages { display: grid; grid-template-columns: 1fr 14px 1fr 14px 1fr; gap: 8px; align-items: center; margin-top: 34px; }
.stages figure { margin: 0; padding: 10px 10px 12px; }
.stages figure svg { width: 100%; height: auto; border-radius: 6px; }
.stages .step-n { position: absolute; top: -10px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--jade); color: #FBF2DC; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 14px; }
.stages figcaption { font-family: var(--caps); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-align: center; margin-top: 10px; color: var(--ink-soft); text-transform: uppercase; }
.stages .arrow { height: 1.5px; background: var(--gold); position: relative; }
.stages .arrow::after { content: ''; position: absolute; right: -1px; top: -3px; border: 4px solid transparent; border-left: 6px solid var(--gold); border-right: 0; }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.steps .n { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 30px; color: var(--crimson); text-align: right; line-height: 1; }
.steps li:first-child { padding-top: 4px; }
.steps li:last-child { border-bottom: 0; }
.steps h3 { margin: 4px 0 4px; font-size: 27px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.promise { margin: 34px 0 0; display: inline-flex; align-items: flex-start; gap: 16px; font-family: var(--display); font-style: italic; font-weight: 600; font-size: 27px; color: var(--crimson); }
@media (max-width: 900px) { .craft .grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .stages { grid-template-columns: 1fr 1fr 1fr; } .stages .arrow { display: none; } }

/* workbook spread */
.wb { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.wb > .rv:first-child { position: sticky; top: 120px; padding-top: 30px; }
.spread { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(90deg, #FBF6EC, #FFFDF8 48%, #F6EEDF 50%, #FFFDF8 52%, #FBF6EC);
  border-radius: 6px 6px 8px 8px; box-shadow: 0 50px 70px -36px rgba(43,29,22,.75), 0 4px 0 -1px #E8DCC6, 0 8px 0 -3px #DCCDB2, 0 0 0 1px rgba(43,29,22,.16);
  transform: perspective(1800px) rotateX(8deg) rotate(-1.6deg); font-size: 12px; line-height: 1.5; color: var(--ink); }
.spread::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 56px; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(43,29,22,.1) 40%, rgba(43,29,22,.22) 50%, rgba(43,29,22,.1) 60%, transparent); }
.spread .pg { padding: 28px 26px 34px; min-height: 400px; position: relative; }
.spread .pg .k { font-family: var(--caps); font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--crimson); text-transform: uppercase; }
.spread .pg h4 { font-family: var(--display); font-size: 25px; margin: 3px 0 10px; line-height: 1.05; }
.spread .pg p { margin: 0 0 8px; }
.spread .pg .idea { background: #EAF0E7; border: 1px solid rgba(46,91,65,.25); padding: 8px 10px 9px; margin: 10px 0; border-radius: 4px; }
.spread .pg .idea-k { display: block; font-family: var(--caps); font-size: 8.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--jade); margin-bottom: 2px; }
.spread .pg .q { font-family: var(--display); font-style: italic; font-size: 14.5px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 8px 4px; margin: 12px 0; text-align: center; }
.spread .pg .mini { height: 96px; border-radius: 4px; overflow: hidden; margin: 10px 0; box-shadow: inset 0 0 0 1px rgba(43,29,22,.15); }
.spread .pg .mini svg, .spread .pg .mini img { width: 100%; height: 100%; object-fit: cover; }
.spread .pg table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.spread .pg td { border-bottom: 1px solid rgba(43,29,22,.22); height: 25px; padding: 2px 4px; font-size: 11px; vertical-align: bottom; }
.spread .pg td:first-child { width: 46%; font-weight: 600; }
.spread .pg .tick-row { margin: 8px 0 0; font-size: 11px; }
.spread .pg .box { display: inline-block; width: 11px; height: 11px; border: 1.2px solid var(--ink); border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.spread .pg .lines { height: 66px; background: repeating-linear-gradient(transparent 0 21px, rgba(43,29,22,.22) 21px 22px); margin-top: 8px; }
.spread .folio { position: absolute; bottom: 12px; font-family: var(--caps); font-size: 8.5px; letter-spacing: .2em; color: var(--ink-mute); }
.spread .pg:first-child .folio { left: 26px; } .spread .pg + .pg .folio { right: 26px; }
.inside { list-style: none; padding: 0; margin: 28px 0 34px; }
.inside li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 11px 0; align-items: start; }
.inside b { display: block; font-family: var(--display); font-size: 23px; line-height: 1.2; margin-top: 3px; }
.inside div span { display: block; color: var(--ink-soft); font-size: 17.5px; line-height: 1.5; text-wrap: pretty; }
@media (max-width: 960px) { .wb { grid-template-columns: 1fr; } .wb > .rv:first-child { position: static; padding-top: 0; } .spread { transform: none; } }
@media (max-width: 560px) { .spread { grid-template-columns: 1fr; background: var(--paper); } .spread .pg + .pg { border-top: 1px solid rgba(43,29,22,.12); } .spread::after { display: none; } .spread .pg { min-height: 0; } }

/* community */
.community { color: #EEE6D6; overflow: hidden; background-repeat: no-repeat; background: var(--weave-dark), linear-gradient(160deg, #2B3B66, var(--navy) 45%, #1C2747); }
.community .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.community h2 { color: #FBF2DC; } .community .kicker { color: var(--gold-soft); } .community .lead { color: #D8D2C4; }
.community ul { list-style: none; padding: 0; margin: 0 0 34px; }
.community li { display: flex; gap: 16px; align-items: center; padding: 9px 0; font-size: 19px; }
.community .dia { flex: none; width: 9px; height: 9px; transform: rotate(45deg); border: 1.4px solid var(--gold-soft); }
.community .table-art { position: relative; width: 100%; color: #F2E8D5; --wash: rgba(227,201,141,.16); --paper: #2E3E68; --gold-soft: #C9A057; --ink: #F2E8D5; max-width: 500px; margin: 0 auto; }
.community .table-art svg { width: 100%; height: auto; position: relative; }
@media (max-width: 860px) { .community .wrap { grid-template-columns: 1fr; } .community .table-art { max-width: 340px; } }

/* forms */
.signup { padding: clamp(26px, 3.4vw, 38px); }
.signup h3 { margin-bottom: 8px; }
.signup p.sub { color: var(--ink-soft); font-size: 17px; line-height: 1.55; margin-bottom: 20px; }
.signup .wb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.signup .wb-head .kicker { margin: 0; color: var(--b-accent); }
.field { display: flex; gap: 12px; flex-wrap: wrap; }
.field input[type=email] { flex: 1 1 220px; min-width: 0; min-height: 54px; padding: 12px 16px; font: inherit; font-size: 18px; color: var(--ink); background: #FFFDF8;
  border: 1.5px solid rgba(43,29,22,.65); border-radius: 3px; box-shadow: inset 0 2px 0 rgba(43,29,22,.05); transition: border-color .2s, box-shadow .2s; }
.field input[type=email]::placeholder { color: var(--ink-mute); }
.field input[type=email]:focus { outline: none; border-color: var(--b-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-accent) 22%, transparent); }
.field .btn { flex: 0 1 auto; }
.signup[data-kind=book] .field .btn { flex: 1 1 100%; }
@media (max-width: 520px) { .field .btn { width: 100%; } }
.check { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 0; font-size: 16px; color: var(--ink-soft); cursor: pointer; line-height: 1.45; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--b-accent); flex: none; }
.fine { font-size: 14.5px; color: var(--ink-mute); margin: 14px 0 0; }
.fine a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 10px 0 0; font-size: 16px; color: var(--crimson); }
.form-msg:empty { display: none; }
.done { animation: swap .5s var(--ease); }
.done .ok { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.done .ok h3 { margin: 0; }
.done.center .ok { justify-content: center; }
.tick svg, .seal svg { width: 58%; height: 58%; }
.tick { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--b-accent); color: #FBF2DC; font-size: 20px; box-shadow: 3px 3px 0 color-mix(in srgb, var(--b-accent) 45%, #000); }
.done .file { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1.2px solid var(--line); border-radius: 8px; background: rgba(255,253,248,.7); }
.done .file-cv { width: 52px; flex: none; } .done .file-cv .cover { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 6px 10px -5px rgba(0,0,0,.5); }
.done .file b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; }
.done .file span { font-family: var(--caps); font-size: 10.5px; letter-spacing: .15em; color: var(--ink-mute); text-transform: uppercase; }
.done .btns { margin: 20px 0 0; } .done .file + .btns .btn { flex: 1 1 100%; }
.discord-card { margin-top: 22px; padding: 16px 18px; border-radius: 8px; background: rgba(37,51,90,.07); border: 1.2px dashed rgba(37,51,90,.35); display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.discord-card b { font-family: var(--display); font-size: 20px; }
.discord-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }
.discord-card .btn { min-height: 44px; padding: 10px 18px 9px; font-size: 12px; box-shadow: 4px 4px 0 var(--edge); }

/* newsletter */
.news { padding: clamp(70px, 8vw, 110px) 0; }
.news-card { max-width: 880px; margin: 0 auto; text-align: center; padding: clamp(36px, 5vw, 64px) clamp(22px, 6vw, 72px); }
.news-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(180,138,69,.4); border-radius: 8px; pointer-events: none; }
.news-card .lead { margin: 0 auto 28px; }
.news-card .field { max-width: 560px; margin: 0 auto; }
.news-card .btns { margin-top: 22px; }

/* FAQ */
.faq-sec { padding-bottom: 20px; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-grid .lead a { color: var(--crimson); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid > div:first-child { position: static; } }
.faq { margin: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.2; transition: color .2s; }
.faq summary:hover { color: var(--crimson); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 1.8px solid var(--crimson); border-bottom: 1.8px solid var(--crimson); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq details p { color: var(--ink-soft); margin: -4px 0 22px; max-width: 34em; }

/* book page */
.bk-hero { padding: clamp(26px, 3.4vw, 46px) 0 clamp(60px, 7vw, 100px); position: relative; overflow: hidden; }
.bk-hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 74%; pointer-events: none;
  background: var(--weave-dark), radial-gradient(ellipse at 25% 30%, color-mix(in srgb, var(--b-cloth) 88%, #fff), var(--b-cloth) 45%, var(--b-cloth2)); }
.bk-hero::after { content: ''; position: absolute; left: 0; right: 0; top: 74%; height: 18px; transform: translateY(-50%);
  background: var(--zig) repeat-x center / 24px 16px, linear-gradient(color-mix(in srgb, var(--b-cloth2) 80%, #000), var(--b-cloth2)); border-top: 1px solid rgba(255,255,255,.08); }
.bk-hills { position: absolute; left: 0; right: 0; top: calc(74% - 170px); height: 170px; pointer-events: none; }
.bk-hills svg { width: 100%; height: 100%; }
.bk-hero .wrap { position: relative; z-index: 1; }
.crumbs { font-family: var(--caps); font-size: 11.5px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 16px; display: flex; gap: 10px; align-items: center; }
.crumbs a { text-decoration: none; padding: 12px 0; display: inline-block; } .crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; } .crumbs span { opacity: .5; }
.bk-grid { display: grid; grid-template-columns: 290px 1fr minmax(330px, 420px); gap: clamp(26px, 3.4vw, 50px); align-items: start; }
.bk-grid > * { min-width: 0; }
.bk-title { color: #FBF2DC; padding-top: 6px; }
.bk-title .kicker { color: var(--gold-hi); }
.bk-title h1 { font-size: clamp(46px, 5.2vw, 76px); margin-bottom: 6px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.bk-title .by { font-family: var(--display); font-style: italic; font-size: 27px; color: var(--b-foil); margin-bottom: 20px; }
.bk-title .hook { font-size: 21px; color: #F1E3CA; max-width: 22em; }
.bk-title .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.bk-title .chip { color: #F1E3CA; border-color: rgba(255,255,255,.26); background: rgba(0,0,0,.14); }
.bk-title .mini-cover { display: none; float: right; width: 96px; margin: 0 0 12px 18px; transform: rotate(3deg); }
.bk-title .mini-cover .cover { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 14px 22px -10px rgba(0,0,0,.65); }
.bk-grid .signup { box-shadow: var(--lift), 0 40px 60px -34px rgba(0,0,0,.5); }
@media (max-width: 1120px) { .bk-grid { grid-template-columns: 240px 1fr; } .bk-grid .signup { grid-column: 1 / -1; max-width: 640px; } }
@media (max-width: 700px) {
  .bk-grid { grid-template-columns: 1fr; gap: 24px; }
  .bk-cover { display: none; }
  .bk-title .mini-cover { display: block; }
  .bk-hero::before { height: 58%; } .bk-hero::after { top: 58%; } .bk-hills { top: calc(58% - 120px); height: 120px; }
  .bk-title h1 { font-size: 46px; }
}
.bk-wb { padding-top: clamp(40px, 5vw, 70px); }
.bk-wb .spread .pg .k { color: var(--b-accent); }
.bk-film { padding-top: 0; }
.bk-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (max-width: 920px) { .bk-body { grid-template-columns: 1fr; } }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: #000; }
.video > a, .video > button { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.video > a:focus-visible, .video > button:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: -6px; }
.video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video a:hover .poster, .video button:hover .poster { transform: scale(1.03); }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.stills figure { margin: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 0 0 1px rgba(43,29,22,.25), 0 10px 18px -12px rgba(43,29,22,.6); }
.stills img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; transition: transform .6s var(--ease); }
.stills figure:hover img { transform: scale(1.05); }
.video .scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; transition: transform 1.2s var(--ease); }
.video a:hover .scene, .video button:hover .scene { transform: scale(1.03); }
.video .play { position: relative; z-index: 1; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #C2463D, var(--crimson)); display: grid; place-items: center;
  box-shadow: 0 0 0 7px rgba(251,246,236,.8), 0 0 0 8px rgba(43,29,22,.25), 0 16px 34px rgba(0,0,0,.45); transition: transform .3s var(--ease); }
.video a:hover .play, .video button:hover .play { transform: scale(1.07); }
.video .play svg { width: 30px; height: 30px; margin-left: 5px; }
@media (max-width: 560px) { .video .play { width: 60px; height: 60px; box-shadow: 0 0 0 5px rgba(251,246,236,.8), 0 10px 22px rgba(0,0,0,.4); } .video .play svg { width: 22px; height: 22px; margin-left: 3px; } .video .vid-cap { display: none; } }
.video .vid-cap { position: absolute; left: 18px; bottom: 18px; z-index: 1; font-size: 12px; }
.video::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 55%, rgba(20,8,6,.35)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.after-video { margin-top: 30px; }
.sp-top { margin-top: 64px; }
.chapters { list-style: none; padding: 0; margin: 26px 0 0; }
.chapters li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.chapters li:first-child { border-top: 1px solid var(--line); }
.chapters .roman { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--b-accent); text-align: right; }
.chapters b { font-family: var(--display); font-size: 24px; display: block; line-height: 1.15; }
.chapters span { display: block; color: var(--ink-soft); font-size: 17px; line-height: 1.5; margin-top: 3px; text-wrap: pretty; }
.side-stack { display: grid; gap: 28px; position: sticky; top: 100px; }
.quote-card { margin: 30px 0 0; padding: 40px 34px 34px; text-align: center; }
.quote-card::before { content: '\201C'; position: absolute; left: 50%; top: -29px; transform: translateX(-50%); width: 58px; height: 58px; border-radius: 50%;
  font-family: var(--display); font-size: 70px; line-height: 92px; text-align: center; color: var(--b-accent); background: var(--paper); border: 1.4px solid rgba(43,29,22,.26); box-shadow: 0 6px 12px -8px rgba(43,29,22,.5); }
.quote-card blockquote { margin: 6px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.24; }
.quote-card figcaption { margin-top: 16px; font-family: var(--caps); font-weight: 700; font-size: 11.5px; letter-spacing: .18em; color: var(--ink-mute); }
.side-cta { display: grid; grid-template-columns: 78px 1fr; gap: 18px; align-items: center; padding: 18px 20px; }
.side-cta .cover { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px; box-shadow: 0 10px 16px -8px rgba(0,0,0,.55); }
.side-cta b { display: block; font-family: var(--display); font-size: 21px; line-height: 1.15; }
.side-cta span { display: block; font-family: var(--caps); font-size: 10.5px; letter-spacing: .15em; color: var(--ink-mute); text-transform: uppercase; margin: 4px 0 12px; }
.more-sec { padding-top: clamp(70px, 8vw, 110px); }

/* simple pages */
.page-head { padding: clamp(56px, 7vw, 100px) 0 30px; }
.page-head .btns { margin-top: 28px; }
.lib-sec { padding-top: 24px; }
.prose > * { max-width: 740px; }
.prose > p, .prose > ul, .prose > ol { max-width: 34em; }   /* aligned to the same left edge as every other block */
.prose h2 { font-size: 36px; margin-top: 1.5em; }
.nf { padding-bottom: clamp(80px, 12vw, 160px); }

/* footer */
.site-foot { position: relative; color: #E6D4B8; padding: 0 0 34px; font-size: 16px; overflow: hidden;
  background: var(--weave-dark), linear-gradient(var(--lacquer), var(--lacquer-3)); }
.site-foot .band { margin-bottom: 70px; }
.foot-hills { position: absolute; left: 0; right: 0; bottom: 0; height: 200px; pointer-events: none; }
.foot-hills svg { width: 100%; height: 100%; }
.site-foot .wrap { position: relative; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 30px 60px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; }
.site-foot a:not(.brand) { text-decoration: none; opacity: .82; transition: opacity .2s, color .2s; }
.foot-links a { font-family: var(--caps); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 13px 0; display: inline-block; }
.site-foot a:not(.brand):hover { opacity: 1; color: #fff; }
.site-foot .legal span:last-child { display: flex; gap: 22px; }
.site-foot .motto { font-family: var(--display); font-style: italic; font-weight: 600; font-size: 24px; color: #FBF2DC; margin: 18px 0 8px; max-width: 16em; line-height: 1.3; }
.site-foot .legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(227,201,141,.18); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-family: var(--caps); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #C7B29A; align-items: center; }
.site-foot .legal a { opacity: 1; padding: 13px 0; display: inline-block; }
@media (max-width: 760px) { .foot-links { justify-content: flex-start; } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s } .rv.d2 { transition-delay: .16s } .rv.d3 { transition-delay: .24s }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .boil { filter: none; }
}
@media print { .site-head, .site-foot, .news, .community { display: none; } }
.lead .note { display: block; margin-top: 10px; font-size: .82em; color: var(--ink-mute); }

.signup .h3 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.12; margin-bottom: 8px; }
@media (min-width: 521px) { .btn { white-space: nowrap; } }

/* phones: the hero caption wraps instead of running off the window */
@media (max-width: 560px) {
  .window .caption { white-space: normal; width: max-content; max-width: 88%; }
  .window .caption .plaque { flex-wrap: wrap; justify-content: center; text-align: center; row-gap: 2px; }
  .window .caption .plaque small { margin-left: 0; flex-basis: 100%; }
  /* the workbook spread is a real page on phones: readable type */
  .spread .pg p, .spread .pg .idea { font-size: 15px; }
  .spread .pg td, .spread .pg .tick-row { font-size: 14px; }
  .spread .pg td { height: 32px; }
  .spread .pg .q { font-size: 16px; }
  .spread .pg .k, .spread .pg .idea-k, .spread .folio { font-size: 11px; }
  .shelf .item p { font-size: 15.5px; }
  .shelf .item p.tp { font-size: 12px; }
  .shelf .item .price { font-size: 11.5px; }
  .site-foot .legal { font-size: 12.5px; }
}
/* tablets: the three parts sit as rows with the picture beside the text */
@media (min-width: 561px) and (max-width: 900px) {
  .strip .part { display: grid; grid-template-columns: 150px 1fr; column-gap: 28px; align-items: start; }
  .strip .spot { grid-row: span 3; margin: 0; }
}
/* the menu button says what it is */
.menu-btn .menu-txt { display: none; }
@media (max-width: 880px) {
  .menu-btn { width: auto; display: flex; align-items: center; gap: 10px; padding: 0 4px 0 12px; }
  .menu-btn .menu-txt { display: inline; font: 700 12px var(--caps); letter-spacing: .18em; text-transform: uppercase; order: -1; }
  .menu-btn .bars { position: relative; width: 22px; height: 44px; display: block; }
  .menu-btn .bars span { left: 0; right: 0; }
}
