/* Lou Vella Books — v2. Paper, paint and plenty of white. */
:root {
  --navy: #00205B;
  --navy-2: #2A3F73;
  --green: #009639;
  --green-ink: #007A2F;
  --sun: #FF9E1B;
  --sun-ink: #B25F00;
  --bloom: #F0B2CE;
  --bloom-ink: #B4467A;
  --paper: #FFFDF9;
  --paper-2: #F7F3EA;
  --tint-sun: #FFF3E0;
  --tint-bloom: #FCEEF4;
  --tint-green: #EAF5EC;
  --line: rgba(0, 32, 91, .12);
  --muted: #4E5B78;
  --shadow-book: 0 1px 1px rgba(0, 32, 91, .08), 0 6px 10px -4px rgba(0, 32, 91, .18), 0 22px 40px -18px rgba(0, 32, 91, .45);
  --r: 18px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--paper); color: var(--navy);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* a whisper of paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--bloom); color: var(--navy); }

h1, h2, h3 { font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 0; font-weight: 620; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 5.1rem); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
em { font-style: italic; }
h1 em { color: var(--green); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.08em; height: .28em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C60 6 120 20 180 10 S270 8 296 14' fill='none' stroke='%23FF9E1B' stroke-width='9' stroke-linecap='round' opacity='.75'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform-origin: left; animation: draw 1.1s .5s var(--ease) both;
}
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .btn-row, .btn-row.center { justify-content: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { top: 12px; }

section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
section.tight { padding-top: 24px; }
.band-sun { background: var(--tint-sun); }
.band-bloom { background: var(--tint-bloom); }
.band-green { background: var(--tint-green); }
.band-soft { background: var(--paper-2); }
[class*="band-"] { border-radius: clamp(24px, 4vw, 48px); margin-inline: clamp(8px, 1.5vw, 20px); }

.eyebrow { font: 700 .8rem/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 14px; }
.lede { font-size: clamp(1.12rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--navy-2); max-width: 44ch; }
.center .lede, .section-head.center .lede { margin-inline: auto; }
.big { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.6rem; line-height: 1.15; color: var(--navy); }
.small { font-size: .9rem; }
.muted, .meta { color: var(--muted); }
.meta { font-size: .92rem; margin: 0; }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .lede { max-width: 56ch; }
.row-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.row-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 650 1rem/1 var(--body); padding: 14px 22px; min-height: 48px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bg); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 8px 18px -10px rgba(0, 32, 91, .6);
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: 0 2px 0 rgba(0,0,0,.05), 0 14px 24px -12px rgba(0, 32, 91, .6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-lg { padding: 17px 28px; font-size: 1.06rem; min-height: 56px; }
.btn-buy { --bg: var(--green); }
.btn-buy:hover { --bg: var(--green-ink); }
.btn-ghost { --bg: transparent; --fg: var(--navy); border-color: var(--navy); box-shadow: none; }
.btn-ghost:hover { --bg: var(--navy); --fg: #fff; }
.btn-link { --bg: transparent; --fg: var(--navy); border-color: transparent; box-shadow: none; padding-inline: 4px; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 5px; }
.btn-link:hover { --fg: var(--green-ink); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font: 650 1.3rem/1 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; }
.brand b { font-weight: 400; }
.brand .logo { width: 36px; height: 40px; flex: none; }
.brand:hover .logo-sun { animation: spin 1.2s var(--ease); transform-origin: 50px 30px; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-weight: 550; padding: 10px 14px; border-radius: 999px; transition: background .2s; }
.nav a:hover { background: var(--paper-2); color: var(--navy); }
.nav a[aria-current] { background: var(--tint-sun); }
.cart-link { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; text-decoration: none; }
.cart-link:hover { background: var(--paper-2); }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green); color: #fff; font: 700 .72rem/20px var(--body); text-align: center; }
.cart-count:empty { display: none; }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; border-radius: 50%; position: relative; }
.menu-btn span:first-child, .menu-btn span:first-child::before { position: absolute; left: 13px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 20px; }
.menu-btn span:first-child::before { content: ""; left: 0; top: 8px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:first-child::before { transform: translateY(-8px) rotate(-90deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .cart-link { margin-left: auto; }
  .nav { position: absolute; left: 12px; right: 12px; top: 72px; flex-direction: column; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(0,32,91,.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .25s var(--ease); }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .brand { font-size: 1.15rem; }
}

/* ---------- Art ---------- */
.art {
  mix-blend-mode: multiply; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 0; overflow: hidden; }
.hero-copy { text-align: center; }
.hero-copy .lede { margin-inline: auto; max-width: 40ch; }
.hero-copy .btn-row { justify-content: center; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-art { max-width: 1500px; margin: clamp(8px, 2vw, 24px) auto 0; padding-inline: var(--gutter); animation: rise 1.2s .3s var(--ease) both; }
.hero-art img {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 72%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 72%, transparent);
}

/* ---------- Feelings chooser ---------- */
.chooser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.chips { display: flex; flex-direction: column; gap: 10px; }
.chip {
  font: 500 1.06rem/1.35 var(--body); text-align: left; color: var(--navy); cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: 20px 20px 20px 6px; padding: 16px 20px 16px 48px; position: relative;
  transition: transform .25s var(--ease), background .2s, border-color .2s, box-shadow .25s;
}
.chip::before { content: "“"; position: absolute; left: 16px; top: 6px; font: 700 2.4rem/1 var(--display); color: var(--bloom); transition: color .2s; }
.chip:hover { transform: translateX(4px); border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 16px 30px -18px rgba(0, 32, 91, .8); }
.chip[aria-pressed="true"]::before { color: var(--sun); }
.panes { position: sticky; top: 100px; }
.pick-pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; background: #fff; border-radius: 28px; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 60px -40px rgba(0, 32, 91, .5); border: 1px solid var(--line); animation: pop .5s var(--ease); }
.pick-pane h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.pick-cover { display: block; }

/* ---------- Books & covers ---------- */
.book { display: block; position: relative; transition: transform .45s var(--ease); }
.book img { border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-book); background: #fff; }
.book::after { /* the spine */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; border-radius: 3px 0 0 3px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.14), rgba(255,255,255,.28) 40%, rgba(0,0,0,.06) 70%, transparent);
}
.book-soon { aspect-ratio: 1; border-radius: 3px 8px 8px 3px; box-shadow: var(--shadow-book); background: #fff; overflow: hidden; display: flex; flex-direction: column; padding: 9% 9% 7%; isolation: isolate; }
.book-soon::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(60% 45% at 30% 25%, var(--c) 0, transparent 70%), radial-gradient(50% 40% at 80% 85%, var(--c) 0, transparent 70%); }
.book-soon.sun { --c: #FFD08A; } .book-soon.bloom { --c: #F7C9DD; } .book-soon.green { --c: #A9DDB9; } .book-soon.navy { --c: #B7C3E0; }
.bs-title { font: 650 clamp(1.1rem, 2.2vw, 1.9rem)/1.02 var(--display); font-variation-settings: "SOFT" 100; letter-spacing: -.02em; color: var(--navy); }
.book-soon img { mix-blend-mode: multiply; flex: 1; min-height: 0; object-fit: contain; margin: 6% auto 0; }
.bs-by { font: 600 1.1rem/1 var(--hand); color: var(--navy); margin-top: auto; text-align: center; }

.shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(20px, 3vw, 40px); }
.card { display: flex; flex-direction: column; }
.card-cover { aspect-ratio: 1; display: flex; align-items: flex-end; justify-content: center; padding: 8% 8% 0; margin-bottom: 20px; position: relative; }
.card-cover::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: -8px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,32,91,.18), transparent); }
.card-cover .book { max-height: 100%; height: 100%; display: flex; align-items: flex-end; }
.card-cover .book img { max-height: 100%; width: auto; max-width: 100%; }
.card-cover .book::after { height: auto; }
.card-cover .book-soon { height: 100%; width: auto; aspect-ratio: 1; }
.card:hover .book { transform: translateY(-8px) rotate(-1.5deg); }
.card h3 { margin: 6px 0 6px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card .feel { font: 600 1.35rem/1.15 var(--hand); color: var(--navy-2); margin: 10px 0 4px; }
.tag { display: inline-block; font: 700 .72rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
.tag-live { background: var(--green); color: #fff; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filter button { font: 600 .95rem/1 var(--body); padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; transition: .2s; }
.filter button:hover { border-color: var(--navy); }
.filter button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.card[hidden] { display: none; }
.shelf-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Feature (lead book) ---------- */
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-cover { padding: 4%; }
.feature-cover .book { transform: rotate(-3deg); }
.feature-cover:hover .book { transform: rotate(-1deg) translateY(-6px); }
.feature-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); }
.aussie { margin-top: 32px; padding-top: 24px; border-top: 1.5px dashed rgba(0,32,91,.2); }
.aussie .hand { font-size: 1.4rem; margin-bottom: 10px; }
.aussie ul, .aussie-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.aussie li, .aussie-list li { background: #fff; border-radius: 12px; padding: 8px 14px; font-size: .95rem; border: 1px solid var(--line); }
.aussie li b, .aussie-list li b { color: var(--sun-ink); margin-right: 4px; }

/* ---------- Formula ---------- */
.formula { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; position: relative; counter-reset: s; }
.formula::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; border-top: 2.5px dashed rgba(0,32,91,.22); }
.step { position: relative; background: #fff; border-radius: 22px; padding: 64px 18px 22px; box-shadow: 0 20px 40px -32px rgba(0, 32, 91, .6); display: flex; flex-direction: column; gap: 6px; }
.step b { font: 650 1.15rem/1.15 var(--display); font-variation-settings: "SOFT" 100; }
.step > span:last-child { font-size: .95rem; color: var(--navy-2); line-height: 1.45; }
.step-n { position: absolute; top: 8px; left: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--body); background: var(--c, var(--navy)); color: #fff; }
.step.sun { --c: var(--sun); } .step.bloom { --c: var(--bloom-ink); } .step.navy { --c: var(--navy); } .step.green { --c: var(--green); }
.step.win { background: var(--green); color: #fff; --c: var(--sun); transform: rotate(1.5deg); }
.step.win b { font: 700 2rem/1 var(--hand); }
.step.win > span:last-child { color: #fff; font: 600 1.35rem/1.2 var(--hand); }

/* ---------- Grows / letter / printables ---------- */
.grows-grid, .letter-grid, .print-grid, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.ticks li { padding-left: 36px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23009639' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.letter-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.paper { background: #fff; border-radius: 6px; padding: clamp(28px, 5vw, 64px); box-shadow: 0 1px 2px rgba(0,32,91,.06), 0 40px 70px -50px rgba(0,32,91,.55); transform: rotate(-.8deg); position: relative; }
.paper::before { content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px; transform: translateX(-50%) rotate(2deg); background: rgba(255, 158, 27, .45); border-radius: 3px; }
.sign { font-size: 2.2rem; margin: 8px 0 12px; color: var(--green-ink); }
.letter-art { max-width: 380px; justify-self: center; }
.print-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.print-art { max-width: 340px; justify-self: center; transform: rotate(-6deg); }
.nf-art { max-width: 260px; margin: 0 auto 12px; }
.contact-art { max-width: 380px; margin-top: 24px; }

/* ---------- Forms ---------- */
.signup { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.signup input[type=email], .signup input[type=text] { flex: 1 1 180px; }
.center .signup { justify-content: center; max-width: 560px; margin-inline: auto; }
input, select, textarea { font: inherit; color: var(--navy); background: #fff; border: 1.5px solid rgba(0,32,91,.22); border-radius: 14px; padding: 13px 16px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.signup input { width: auto; border-radius: 999px; padding-inline: 20px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(255, 158, 27, .35); }
.signup.compact input { flex-basis: 100%; }
.signup.compact .btn { width: 100%; }
.form-msg { flex-basis: 100%; margin: 6px 0 0; font-weight: 600; color: var(--green-ink); }
.form-msg.err { color: #B3261E; }
.form { display: grid; gap: 18px; background: #fff; padding: clamp(24px, 4vw, 40px); border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 40px 70px -50px rgba(0,32,91,.5); }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Page heroes & prose ---------- */
.page-hero { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); }
.split > div:last-child .art { max-width: 560px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.letter-page p { font-size: 1.15rem; }
.letter-page p.big { font: 600 clamp(1.8rem, 3vw, 2.4rem)/1.2 var(--display); font-variation-settings: "SOFT" 100; }
.table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .98rem; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.table th { font-weight: 700; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; font: 600 1.15rem/1.4 var(--display); padding: 16px 40px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font: 400 1.8rem/1 var(--body); color: var(--green); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--navy-2); }

.pillars { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillars li { background: #fff; border-radius: 22px; padding: 28px; display: grid; gap: 8px; }
.pillars b { font: 650 1.3rem/1.15 var(--display); font-variation-settings: "SOFT" 100; }
.needs { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; }
.needs li { font: 600 1.6rem/1 var(--hand); background: #fff; padding: 14px 22px; border-radius: 999px; }
.needs li:nth-child(3n+1) { transform: rotate(-2deg); } .needs li:nth-child(3n+2) { transform: rotate(1.5deg); }

/* ---------- Book page ---------- */
.book-hero { padding-top: clamp(32px, 5vw, 72px); }
.book-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 78%; z-index: -1; border-radius: 0 0 48px 48px; background: var(--tint-sun); }
.book-hero.bloom::before { background: var(--tint-bloom); } .book-hero.green::before { background: var(--tint-green); }
.book-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.book-cover { position: sticky; top: 110px; padding: 3%; }
.book-cover .book { transform: rotate(-2deg); }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.book-info .feel { font: 600 clamp(1.6rem, 2.6vw, 2.1rem)/1.1 var(--hand); color: var(--navy-2); margin-bottom: 10px; }
.book-info h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-bottom: 8px; }
.byline { color: var(--muted); font-weight: 550; margin-bottom: 20px; }
.buybox { margin-top: 28px; background: #fff; border-radius: 26px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0,32,91,.55); }
.buybox fieldset { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.buybox legend { font-weight: 700; margin-bottom: 10px; }
.fmt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: .2s; }
.fmt:hover { border-color: var(--navy); }
.fmt:has(input:checked) { border-color: var(--green); background: var(--tint-green); }
.fmt input { width: 22px; height: 22px; min-height: 0; accent-color: var(--green); flex: none; }
.fmt span { display: grid; flex: 1; }
.fmt small { color: var(--muted); font-size: .88rem; }
.fmt em { font: 700 1.15rem/1 var(--body); font-style: normal; }
.buybox .btn-lg { width: 100%; }
.added { margin: 12px 0 0; font-weight: 600; color: var(--green-ink); }
.buybox.soon .signup { margin-bottom: 0; }
.book-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 80px); }
.editions { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.editions li { display: flex; flex-direction: column; background: var(--paper-2); border-radius: 16px; padding: 16px 20px; margin: 0; }
.editions span { color: var(--muted); font-size: .95rem; }
.notes { display: grid; gap: 16px; align-content: start; }
.note { background: var(--paper-2); border-radius: 22px; padding: 22px 24px; }
.note.sun { background: var(--tint-sun); } .note.bloom { background: var(--tint-bloom); } .note.green { background: var(--tint-green); }
.note .eyebrow { margin-bottom: 8px; }
.note .hand.big { font-size: 1.7rem; margin: 0; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Shop / cart ---------- */
.shop-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.shop-row h2 a { text-decoration: none; }
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.line { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line .cover img { border-radius: 3px 6px 6px 3px; box-shadow: var(--shadow-book); width: 80px; height: auto; }
.line h3 { font-size: 1.2rem; margin: 0 0 4px; }
.qty { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; }
.qty button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper-2); font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.remove { display: block; margin-top: 10px; background: none; border: 0; padding: 6px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 28px; position: sticky; top: 100px; box-shadow: 0 30px 60px -40px rgba(0,32,91,.5); }
.summary label { font-weight: 700; display: block; margin-bottom: 8px; }
.summary .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary .total { font-weight: 800; font-size: 1.2rem; border: 0; margin-bottom: 8px; }
.empty { text-align: center; padding: 48px 0; }
.downloads { list-style: none; padding: 0; display: grid; gap: 10px; }
.downloads li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; background: var(--paper-2); border-radius: 16px; }
.ty-logo .logo { width: 88px; height: 98px; margin-bottom: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); margin-top: clamp(48px, 8vw, 96px); padding: clamp(48px, 7vw, 88px) 0 28px; border-radius: 48px 48px 0 0; }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.6fr; gap: 40px; }
.foot h2 { font: 700 .8rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 16px; }
.foot nav { display: flex; flex-direction: column; gap: 10px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot-brand .hand { font-size: 1.8rem; margin: 18px 0 8px; }
.foot-brand p:last-child { color: var(--muted); max-width: 32ch; }
.foot-sign p { color: var(--muted); font-size: .95rem; }
.foot-sign .signup { margin-top: 12px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.foot-base a { color: var(--muted); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.shelf .card.reveal:nth-child(3n+2) { transition-delay: .08s; }
.shelf .card.reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .formula { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formula::before { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .chooser, .feature-grid, .grows-grid, .letter-grid, .print-grid, .split, .book-grid, .book-detail, .cart-grid, .shop-row { grid-template-columns: minmax(0, 1fr); }
  .panes { position: static; }
  .shelf, .shelf-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .book-cover { position: static; max-width: 440px; margin-inline: auto; }
  .feature-cover { max-width: 420px; margin-inline: auto; }
  .letter-art, .print-art { max-width: 240px; }
  .summary { position: static; }
  .shop-row > a { max-width: 360px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .chips { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .chip { flex: 0 0 78%; scroll-snap-align: start; }
  .pick-pane { grid-template-columns: minmax(0, 1fr); }
  .pick-cover { max-width: 240px; margin-inline: auto; }
  .formula { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 20px 20px 20px 72px; }
  .step-n { top: 20px; }
  .shelf, .shelf-3 { gap: 32px 16px; }
  .card .feel { font-size: 1.15rem; }
  .card h3 { font-size: 1.1rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: 64px 1fr; }
  .line > b { grid-column: 2; }
  .hero-copy .btn-row .btn { width: 100%; }
  [class*="band-"] { margin-inline: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.paper .big { font: 600 clamp(1.7rem, 2.8vw, 2.3rem)/1.15 var(--display); font-variation-settings: "SOFT" 100; margin-bottom: .6em; }

/* ---------- Printables ---------- */
.sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.sheet { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(18px, 2.5vw, 28px); align-items: start; background: #fff; border-radius: 26px; padding: clamp(18px, 2.4vw, 28px); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(0, 32, 91, .55); }
.sheet-thumb { display: block; transform: rotate(-2deg); transition: transform .4s var(--ease); }
.sheet:nth-child(even) .sheet-thumb { transform: rotate(1.5deg); }
.sheet:hover .sheet-thumb { transform: rotate(0) translateY(-4px); }
.sheet-thumb img { border-radius: 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 32, 91, .12), 0 18px 30px -16px rgba(0, 32, 91, .45); }
.sheet-body h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 8px; }
.sheet-body > p:not(.eyebrow):not(.meta) { font-size: .98rem; color: var(--navy-2); }
.sheet-body .meta { margin-bottom: 18px; }
.sheet-group + .sheet-group { margin-top: clamp(56px, 8vw, 96px); }
.sheet-group-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.sheet-group-head > a { width: 88px; flex: none; }
.sheet-group-head h2 { margin: 0; }
.sheet-group-head h2 a { text-decoration: none; }
.sheet-group-head .eyebrow { margin-bottom: 6px; }
@media (max-width: 900px) { .sheets { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .sheet { grid-template-columns: minmax(0, 1fr); } .sheet-thumb { max-width: 200px; } }
/* placeholder covers scale their type with their own width */
.book-soon { container-type: inline-size; }
.bs-title { font-size: 13cqi; }
.bs-by { font-size: 8cqi; }
