/* Facing Pages · facingpagesapp.com
   The book look from the app (FacingPages/Views/Theme.swift): warm paper, ink, a highlighter,
   terracotta, and the eight cover colors. The iPhone Duo and the reader inside it are drawn here,
   sized in container units (cqw) so they keep the app's proportions at any width. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url(fonts/newsreader-latin-ext-opsz-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --paper: #FBF6EE;
  --paper-2: #F4ECDF;
  --ink: #2B2622;
  --ink-soft: #534940;     /* 8.2:1 on paper */
  --muted: #534940;
  --rule: #DCCFBC;         /* decorative lines only */
  --line: #8C7F70;         /* outlines of controls: 3.6:1 on paper */
  --accent: #B8542F;       /* the brand color, for marks and fills */
  --accent-ink: #86361A;   /* terracotta text on paper: 7.6:1 */
  --accent-large: #A0451F; /* large terracotta text on paper: 5.8:1 */
  --accent-light: #EDA886; /* terracotta text on the dark sections: 9.4:1 */
  --highlight: rgba(246, 207, 142, .78);
  --navy: #1E2A44;
  --night: #14110E;
  --night-2: #1B1714;
  --cream: #F3ECE0;
  --cream-soft: rgba(243, 236, 224, .76); /* 9.2:1 on night */
  --cream-faint: rgba(243, 236, 224, .76);
  --focus: #EDA886;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.reduce-motion { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 18px/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.015em; }
h2 em, h1 em { font-style: italic; color: var(--accent-light); }
.paper h2 em, .learn h2 em, .iphone h2 em { color: var(--accent-large); }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 14px 18px; border-radius: 8px; z-index: 100; font: 600 16px/1 var(--sans); }
.skip:focus { left: 8px; }
/* Focus: a 3px ring in a color that stands out on whatever is behind it (dark sections: light ring; paper: dark ring). */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.paper, .iphone, .learn, .duo, .phone, .site-head.on-paper, .sentence-panel { --focus: #86361A; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ——— Header ——— */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background .4s, box-shadow .4s, color .4s; }
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 500 20px/1 var(--serif); letter-spacing: -.01em; }
.mark { width: 42px; height: 20px; overflow: visible; }
.mark-quotes { fill: var(--cream); }
.head-nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font: 500 13px/1 var(--sans); letter-spacing: .02em; }
.head-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; text-decoration: none; opacity: .86; transition: opacity .2s; padding: 10px 4px; }
.head-nav a:hover { opacity: 1; }
.head-cta { opacity: 1 !important; padding: 10px 16px !important; border-radius: 99px; border: 1px solid rgba(243, 236, 224, .6); }
.site-head.solid { background: rgba(20, 17, 14, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(243, 236, 224, .08); }
.site-head.on-paper { color: var(--ink); background: rgba(251, 246, 238, .86); box-shadow: 0 1px 0 rgba(43, 38, 34, .08); }
.site-head.on-paper .mark-quotes { fill: var(--navy); }
.site-head.on-paper .head-cta { border-color: var(--line); }
@media (max-width: 760px) { .head-nav a:not(.head-cta) { display: none; } }

/* ——— Shared bits ——— */
.label { display: flex; align-items: center; gap: 12px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 28px; }
.label b { font-weight: 700; }
.label::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.paper .label, .learn .label, .iphone .label { color: var(--accent-ink); }
.section { padding: clamp(96px, 13vw, 168px) 0; position: relative; }
.section h2 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; font-weight: 380; }
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.split-text p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--cream-soft); }
.split-text p + p { margin-top: 18px; }
.paper .split-text p, .learn .split-text p { color: var(--ink-soft); }
.aside { font-style: italic; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; align-items: start; } }
.paper { background: var(--paper); color: var(--ink); }

/* Reveal as you scroll (site.js adds .in). */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* Store buttons: "coming soon" until the store links exist (see STORE in site.js). */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px; text-decoration: none;
  background: var(--cream); color: var(--ink); font: 600 17px/1.1 var(--sans); letter-spacing: -.01em; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.store svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store small { display: block; font: 500 12px/1.2 var(--sans); letter-spacing: .02em; color: #4A4440; }
.store.ghost small { color: var(--cream-soft); }
.store.soon { cursor: default; }
.store.ghost { background: transparent; color: var(--cream); border: 1px solid rgba(243, 236, 224, .6); box-shadow: none; }
.store-badge img { height: 52px; width: auto; }

/* ——— Hero ——— */
.hero { position: relative; background: radial-gradient(120% 70% at 50% 100%, #2a1e17 0%, var(--night) 62%); }
.hero-sticky { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; padding: 120px 0 64px; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; bottom: -10%; width: 120vmax; height: 70vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(232, 140, 97, .22), rgba(232, 140, 97, 0) 70%); pointer-events: none; }
.hero-copy { position: relative; text-align: center; z-index: 2; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; border: 1px solid rgba(243, 236, 224, .35);
  font: 500 13px/1 var(--sans); letter-spacing: .02em; color: var(--cream-soft); background: rgba(243, 236, 224, .04); margin-bottom: 28px; }
.pill span { background: var(--accent-ink); color: #fff; font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 9px; border-radius: 99px; }
.hero h1 { font-size: clamp(46px, 8vw, 112px); line-height: .98; font-weight: 360; letter-spacing: -.025em; }
.hero h1 em { font-weight: 330; }
.hero .lede { max-width: 620px; margin: 26px auto 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; color: var(--cream-soft); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero-stage { position: relative; z-index: 1; width: min(1100px, 92vw); margin-top: 56px; }
.hero-hint { margin-top: 22px; text-align: center; font: italic 400 17px/1.4 var(--serif); color: var(--cream-soft); }

/* The scroll-driven version (site.js adds .is-animated): the Duo opens as you scroll. */
.hero.is-animated { height: 260svh; }
.hero.is-animated .hero-sticky { position: sticky; top: 0; height: 100svh; padding: 0; display: block; }
.hero.is-animated .hero-copy { position: absolute; left: 0; right: 0; top: max(104px, 14svh); margin: auto;
  transform: translateY(calc(var(--p, 0) * -42svh)) scale(calc(1 - var(--p, 0) * .25)); opacity: calc(1 - var(--p, 0) * 5); will-change: transform, opacity; }
.hero.is-animated .hero-stage { position: absolute; left: 50%; top: 50%; margin: 0;
  width: min(1100px, 92vw, (100svh - 200px) * 1.38);
  transform: translate(-50%, calc(-50% + var(--shift, 0px) * (1 - var(--q, 0)) + 30px)) scale(calc(.74 + .26 * var(--q, 0)));
  will-change: transform; }
.hero.is-animated .hero-hint { opacity: calc((var(--q, 0) - .85) * 7); }

/* ——— The iPhone Duo ——————————————————————————————————————————
   Two halves joined at the hinge. --open runs 0 (half closed, like a book on a table) to 1 (flat).
   The reader inside is laid out in cqw: 100cqw is the device's whole width. */
.duo { --open: 1; container-type: inline-size; position: relative; width: 100%; perspective: 2600px; }
.duo-body { position: relative; display: flex; aspect-ratio: 100 / 71; transform-style: preserve-3d;
  transform: rotateX(calc((1 - var(--open)) * 14deg)); }
.duo-half { position: relative; flex: 1; transform-style: preserve-3d; padding: 1.1cqw;
  background: linear-gradient(160deg, #3d3935 0%, #1c1a18 38%, #2b2825 70%, #121110 100%);
  box-shadow: inset 0 0 0 .14cqw rgba(255, 255, 255, .09); }
.duo-half.left { padding-right: 0; border-radius: 3.4cqw 0 0 3.4cqw; transform-origin: right center; transform: rotateY(calc((1 - var(--open)) * 62deg)); }
.duo-half.right { padding-left: 0; border-radius: 0 3.4cqw 3.4cqw 0; transform-origin: left center; transform: rotateY(calc((1 - var(--open)) * -62deg)); }
.duo-screen { position: relative; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); }
.left .duo-screen { border-radius: 2.4cqw 0 0 2.4cqw; }
.right .duo-screen { border-radius: 0 2.4cqw 2.4cqw 0; }
/* Light falls across the pages as they turn toward you. */
.duo-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(90deg, rgba(255, 245, 230, 0), rgba(255, 245, 230, calc((1 - var(--open)) * .22))); }
.right .duo-screen::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, calc((1 - var(--open)) * .18))); }
/* The soft shadow where each page curves into the spine; deeper as the Duo closes (FoldDepthFromHinge). */
.fold-shade { position: absolute; top: 0; bottom: 0; width: 3.2cqw; z-index: 4; pointer-events: none; --depth: calc(.10 + (1 - var(--open)) * .32); }
.left .fold-shade { right: 0; background: linear-gradient(270deg, rgba(110, 91, 68, var(--depth)), rgba(110, 91, 68, 0)); }
.right .fold-shade { left: 0; background: linear-gradient(90deg, rgba(110, 91, 68, var(--depth)), rgba(110, 91, 68, 0)); }
.duo-ground { position: absolute; left: 6%; right: 6%; bottom: -5%; height: 9%; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(10px); opacity: calc(.5 + var(--open) * .5); }
.paper .duo-ground { background: radial-gradient(closest-side, rgba(60, 40, 20, .35), rgba(0, 0, 0, 0)); }

/* A page of the book. */
.pg { position: absolute; inset: 0; overflow: hidden; }
/* Try it: the pages scroll, and the facing page keeps up (site.js, follow). */
.duo.scrollable .pg { overflow-y: auto; scrollbar-width: none; }
.duo.scrollable .pg::-webkit-scrollbar { display: none; }
.duo.scrollable .pg-body { padding-bottom: 6cqw; }
.pg-photo { position: relative; height: 29.6cqw; overflow: hidden; background: var(--paper-2); }
.pg-photo img { position: absolute; top: 0; height: 100%; width: 200%; max-width: none; object-fit: cover; }
.left .pg-photo img { left: 0; }
.right .pg-photo img { left: -100%; }
.pg-credit { position: absolute; right: 7cqw; bottom: .7cqw; font: 500 .72cqw/1 var(--sans); color: rgba(255, 255, 255, .86); text-shadow: 0 0 .4cqw rgba(0, 0, 0, .6); }
.pg-text { padding: 2.3cqw 2.7cqw 0; }
.right .pg-text { padding-right: 7.4cqw; }
.pg-eyebrow { font: 600 .95cqw/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); }
.pg-title { margin-top: .75cqw; font: 650 2.6cqw/1.12 var(--serif); letter-spacing: -.01em; }
.right .pg-title { color: var(--ink-soft); }
.pg-meta { margin-top: .6cqw; font: italic 400 1.22cqw/1.3 var(--sans); color: var(--muted); }
.pg-ornament { display: flex; align-items: center; justify-content: center; gap: .8cqw; margin: 1.5cqw 0 1.9cqw; color: var(--accent-ink); font-size: 1.15cqw; }
.pg-ornament::before, .pg-ornament::after { content: ""; width: 3cqw; height: .09cqw; background: var(--rule); }
.pg-body p { font: 400 1.74cqw/1.52 var(--serif); margin-bottom: 1.5cqw; }
.right .pg-body p { color: var(--ink-soft); font-size: 1.6cqw; }
.s { scroll-margin-block: 18px; border-radius: .2cqw; transition: background-color .25s; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.s:hover { background: rgba(246, 207, 142, .32); }
/* The picked sentence: highlighted, in full-strength ink, and underlined, so it doesn't depend on color alone. */
.s.on { background: var(--highlight); color: var(--ink) !important; box-shadow: inset 0 -.12em 0 rgba(134, 54, 26, .55); }
.s:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
/* A scrolling page's focus ring is drawn by its screen, inside the bezel where nothing clips it: dark and
   light together, so it shows on paper and photo alike. */
.duo-screen:has(> .pg:focus-visible)::before { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 6px #fff; }
.pg:focus-visible { outline: none; }
/* Try it: bigger lines, so every sentence is an easy target (at least 24px tall). */
.duo.scrollable .pg-body p { font-size: max(1.95cqw, 14px); line-height: 1.75; }
.duo.scrollable.portrait .pg-body p { font-size: max(3.95cqw, 14px); line-height: 1.85; }

/* The rail beside the camera on the open Duo: the time, the camera, then the reader's buttons. */
.rail { position: absolute; top: 1.4cqw; right: 1.2cqw; bottom: 1.4cqw; width: 4.6cqw; display: flex; flex-direction: column; align-items: center; gap: 1.1cqw; z-index: 6; }
.rail-time { font: 600 1.05cqw/1 var(--sans); color: #fff; text-shadow: 0 0 .5cqw rgba(0, 0, 0, .35); }
.rail-cam { width: 3.2cqw; height: 3.2cqw; border-radius: 50%; background: #0b0b0b; box-shadow: 0 0 0 .3cqw rgba(0, 0, 0, .25); display: grid; place-items: center; }
.rail-cam::after { content: ""; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4a5a78, #10141c 60%); }
.rail-btn { width: 3.4cqw; height: 3.4cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 236, 223, .92); box-shadow: 0 .2cqw .8cqw rgba(0, 0, 0, .14); }
.rail-btn svg { width: 1.6cqw; height: 1.6cqw; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Upright (portrait) Duo for narrow screens: the pages stack, the story above the fold. */
.duo.portrait .duo-body { flex-direction: column; aspect-ratio: 100 / 141; transform: none; }
.duo.portrait .duo-half { transform: none !important; }
.duo.portrait .duo-half.left { padding: 2cqw 2cqw 0; border-radius: 6.5cqw 6.5cqw 0 0; }
.duo.portrait .duo-half.right { padding: 0 2cqw 2cqw; border-radius: 0 0 6.5cqw 6.5cqw; }
.duo.portrait .left .duo-screen { border-radius: 4.8cqw 4.8cqw 0 0; }
.duo.portrait .right .duo-screen { border-radius: 0 0 4.8cqw 4.8cqw; }
.duo.portrait .fold-shade { left: 0; right: 0; width: auto; height: 5cqw; top: auto; bottom: auto; }
.duo.portrait .left .fold-shade { bottom: 0; background: linear-gradient(0deg, rgba(110, 91, 68, .14), rgba(110, 91, 68, 0)); }
.duo.portrait .right .fold-shade { top: 0; background: linear-gradient(180deg, rgba(110, 91, 68, .14), rgba(110, 91, 68, 0)); }
.duo.portrait .pg-photo { height: 30cqw; }
.duo.portrait .left .pg-photo img, .duo.portrait .right .pg-photo img { width: 100%; left: 0; }
.duo.portrait .right .pg-photo { display: none; }
.duo.portrait .pg-credit { right: 2cqw; font-size: 1.8cqw; bottom: 1.4cqw; }
.duo.portrait .pg-text, .duo.portrait .right .pg-text { padding: 4.5cqw 5cqw 0; }
.duo.portrait .pg-eyebrow { font-size: 2.3cqw; }
.duo.portrait .pg-title { font-size: 5.6cqw; margin-top: 1.4cqw; }
.duo.portrait .pg-meta { font-size: 2.8cqw; margin-top: 1cqw; }
.duo.portrait .pg-ornament { margin: 2.6cqw 0 3cqw; font-size: 2.6cqw; }
.duo.portrait .pg-ornament::before, .duo.portrait .pg-ornament::after { width: 7cqw; height: .2cqw; }
.duo.portrait .pg-body p { font-size: 3.95cqw; margin-bottom: 3cqw; }
.duo.portrait .right .pg-body p { font-size: 3.7cqw; }
.duo.portrait .rail { display: none; }
.duo.portrait .duo-ground { display: none; }
/* Upright and opening (the hero on a phone): the top half swings open like a notebook's cover. */
.duo.portrait.upright { perspective: 1800px; }
.duo.portrait.upright .duo-half.left { transform-origin: center bottom; transform: rotateX(calc((1 - var(--open)) * -64deg)) !important; }
.duo.portrait.upright .duo-half.right { transform-origin: center top; transform: rotateX(calc((1 - var(--open)) * 22deg)) !important; }
.duo.portrait.upright .left .fold-shade { background: linear-gradient(0deg, rgba(110, 91, 68, calc(.12 + (1 - var(--open)) * .3)), rgba(110, 91, 68, 0)); }
.duo.portrait.upright .left .duo-screen::after { background: linear-gradient(180deg, rgba(255, 245, 230, calc((1 - var(--open)) * .25)), rgba(255, 245, 230, 0)); }
.duo.portrait.upright .right .duo-screen::after { background: linear-gradient(0deg, rgba(0, 0, 0, calc((1 - var(--open)) * .2)), rgba(0, 0, 0, 0)); }
.hero.is-animated.upright-hero .hero-stage { width: min(88vw, (100svh - 150px) / 1.41); }

/* ——— 01 iPhone Duo ——— */
.duo-section { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.first { margin: clamp(80px, 11vw, 140px) 0 clamp(56px, 7vw, 88px); font: 380 clamp(30px, 4.4vw, 58px)/1.1 var(--serif); letter-spacing: -.02em; text-align: center; }
.first span { font-style: italic; color: var(--accent-light); }
.postures { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }
.posture { padding: clamp(24px, 2.6vw, 34px); border-radius: 22px; background: linear-gradient(180deg, rgba(243, 236, 224, .06), rgba(243, 236, 224, .02)); border: 1px solid rgba(243, 236, 224, .1); }
.posture-art { width: 100%; height: auto; margin-bottom: 22px; }
.posture-art .dev { fill: #2e2a27; stroke: rgba(255, 255, 255, .12); }
.posture-art .scr { fill: #f7f0e4; }
.posture-art .photo { fill: #6B3A5B; opacity: .85; }
.posture-art .crease { stroke: rgba(110, 91, 68, .5); stroke-width: 1.5; }
.posture-art .lines rect { fill: #3a332d; opacity: .55; }
.posture-art .lines rect.soft { fill: #8c8176; }
.posture-art .lines rect.hl { fill: #e8b56a; opacity: 1; }
.posture-art .panel { fill: #efe5d4; stroke: rgba(0, 0, 0, .08); }
.posture-art .lines rect.chip { fill: #d9cbb4; opacity: 1; }
.posture h3 { font-size: 25px; line-height: 1.2; font-weight: 450; }
.posture p { margin-top: 10px; font-size: 17px; line-height: 1.55; color: var(--cream-soft); }
@media (max-width: 860px) { .postures { grid-template-columns: 1fr; } .posture-art { max-width: 340px; } }

/* ——— 02 Try it ——— */
.try-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: clamp(40px, 5vw, 60px) 0 28px; }
.try-tabs button { appearance: none; min-height: 44px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 12px 18px; border-radius: 99px;
  font: 400 16px/1 var(--serif); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.try-tabs button span { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-right: 8px; color: var(--accent-ink); }
.try-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.try-tabs button[aria-pressed="true"] span { color: var(--accent-light); }
.try-stage { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); align-items: start; }
.sentence-panel { position: sticky; top: 96px; min-height: 220px; padding: 24px; border-radius: 22px; background: var(--paper-2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 20px 50px rgba(60, 40, 20, .12); color: var(--ink); }
.panel-empty { color: var(--ink-soft); font-style: italic; font-size: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font: 700 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.panel-buttons { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; cursor: pointer; background: rgba(43, 38, 34, .05); color: var(--ink); }
.round svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round.playing { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.panel-sentence { font: 500 20px/1.45 var(--serif); }
.panel-translation { margin-top: 8px; font: 400 16px/1.5 var(--sans); color: var(--ink-soft); }
/* Each word looks like a 32px pill, but the button you tap is 44px tall (transparent top and bottom border). */
.chips { display: flex; flex-wrap: wrap; gap: 0 6px; margin-top: 12px; }
.chip { appearance: none; border: 6px solid transparent; border-inline-width: 0; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--line); min-width: 44px; min-height: 44px; padding: 7px 12px; border-radius: 99px; background-color: rgba(255, 255, 255, .45); color: var(--ink); font: 500 15px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background-color: rgba(43, 38, 34, .08); }
.chip[aria-pressed="true"] { background-color: var(--accent-ink); box-shadow: none; color: #fff; }
.lookup { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; font: 400 17px/1.4 var(--sans); }
.lookup b { font-weight: 700; }
.lookup .arrow { color: var(--ink-soft); }
.lookup .base { font-style: italic; color: var(--ink-soft); }
.lookup .none { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 960px) { .try-stage { grid-template-columns: 1fr; } .sentence-panel { position: relative; top: 0; } }
@media (max-width: 760px) { .try-stage .duo { max-width: 460px; margin: 0 auto; } }

/* ——— 03 Any iPhone ——— */
.iphone { background: var(--paper-2); color: var(--ink); }
.iphone-row { display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: clamp(40px, 7vw, 110px); align-items: center; }
.iphone-copy h2 { margin-bottom: 26px; }
.iphone-copy > p { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-soft); max-width: 560px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 12px; font: 400 17px/1.4 var(--sans); color: var(--ink); }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); transform: translateY(-1px); }
.phone-stage { position: relative; }
.phone-stage::before { content: ""; position: absolute; inset: 8% -20% -6%; background: radial-gradient(closest-side, rgba(184, 84, 47, .16), rgba(184, 84, 47, 0)); z-index: 0; }
@media (max-width: 860px) { .iphone-row { grid-template-columns: 1fr; } .phone-stage { max-width: 320px; margin: 0 auto; width: 100%; } }

/* An iPhone, drawn: the closed Duo's or any iPhone's one page. 100cqw is the phone's width. */
.phone { container-type: inline-size; position: relative; z-index: 1; width: 100%; }
.phone-body { position: relative; aspect-ratio: 1206 / 2622; border-radius: 15cqw; padding: 3cqw; background: linear-gradient(150deg, #45403b, #1b1917 45%, #2c2926 75%, #121110);
  box-shadow: inset 0 0 0 .4cqw rgba(255, 255, 255, .1), 0 30px 70px rgba(40, 25, 10, .35), 0 8px 18px rgba(40, 25, 10, .2); }
.phone-screen { position: relative; height: 100%; border-radius: 12.4cqw; overflow: hidden; background: var(--paper); color: var(--ink); }
.phone-island { position: absolute; top: 3cqw; left: 50%; width: 30cqw; height: 8.6cqw; margin-left: -15cqw; border-radius: 5cqw; background: #050505; z-index: 6; }
.phone-status { position: absolute; top: 4.4cqw; left: 9cqw; right: 8cqw; display: flex; justify-content: space-between; font: 600 3.6cqw/1 var(--sans); color: #fff; z-index: 5; text-shadow: 0 0 2cqw rgba(0, 0, 0, .3); }
.phone .pg { position: absolute; inset: 0; }
.phone .pg-photo { height: 66cqw; }
.phone .pg-photo img { width: 100%; left: 0; }
.phone .pg-credit { right: 3.5cqw; bottom: 2.4cqw; font-size: 2.2cqw; }
.phone .pg-text { padding: 5.5cqw 6cqw 0; }
.phone .pg-eyebrow { font-size: 2.7cqw; }
.phone .pg-title { font-size: 6.4cqw; margin-top: 2cqw; }
.phone .pg-meta { font-size: 3.2cqw; margin-top: 1.4cqw; }
.phone .pg-ornament { margin: 3.4cqw 0 4cqw; font-size: 3cqw; }
.phone .pg-ornament::before, .phone .pg-ornament::after { width: 8cqw; height: .25cqw; }
.phone .pg-body p { font-size: 4.95cqw; line-height: 1.5; margin-bottom: 3.6cqw; }
.phone-buttons { position: absolute; top: 15cqw; left: 5cqw; right: 5cqw; display: flex; justify-content: space-between; z-index: 5; }
.phone-buttons span { width: 9cqw; height: 9cqw; border-radius: 50%; display: grid; place-items: center; background: rgba(244, 236, 223, .92); }
.phone-buttons svg { width: 4.4cqw; height: 4.4cqw; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone-panel { position: absolute; left: 3.5cqw; right: 3.5cqw; bottom: 3.5cqw; padding: 4.4cqw; border-radius: 6cqw; background: var(--paper-2); z-index: 5;
  box-shadow: 0 2cqw 6cqw rgba(60, 40, 20, .2); }
.phone-panel-head { display: flex; justify-content: space-between; margin-bottom: 3cqw; }
.phone-panel-head span { height: 7.4cqw; border-radius: 4cqw; background: rgba(43, 38, 34, .08); display: grid; place-items: center; font: 500 3.2cqw/1 var(--sans); padding: 0 3.2cqw; color: var(--ink); }
.phone-panel-head .r { display: flex; gap: 2cqw; }
.phone-panel-head .r span { width: 7.4cqw; padding: 0; }
.phone-panel-head svg { width: 3.6cqw; height: 3.6cqw; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; }
.phone-panel .ps { font: 500 4.1cqw/1.42 var(--serif); }
.phone-panel .pt { margin-top: 1.6cqw; font: 400 3.4cqw/1.45 var(--sans); color: var(--ink-soft); }
.phone-panel .pc { display: flex; flex-wrap: wrap; gap: 1.5cqw; margin-top: 3.2cqw; }
.phone-panel .pc span { padding: 1.7cqw 2.8cqw; border-radius: 4cqw; background: rgba(43, 38, 34, .07); font: 500 3.1cqw/1 var(--sans); }
.phone-panel .pc span.on { background: var(--accent-ink); color: #fff; }
.phone-panel .pl { display: flex; justify-content: space-between; align-items: center; margin-top: 3.4cqw; font: 400 3.6cqw/1 var(--sans); }
.phone-panel .pl b { font-weight: 700; }
.phone-panel .pl em { color: var(--muted); font-style: normal; margin: 0 1.4cqw; }
.phone-panel .save { background: var(--accent-ink); color: #fff; padding: 2.2cqw 3.6cqw; border-radius: 4cqw; font: 600 3.2cqw/1 var(--sans); }

/* ——— 04 The library ——— */
.library { background: radial-gradient(90% 60% at 50% 30%, #241d18, var(--night) 70%); overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: clamp(48px, 6vw, 80px) 0 0; padding: 30px 0; border-block: 1px solid rgba(243, 236, 224, .12); }
.stats div { margin: 0; }
.stats dt { font: 300 clamp(40px, 5vw, 64px)/1 var(--serif); color: var(--cream); }
.stats dd { margin: 8px 0 0; font: 500 14px/1.4 var(--sans); letter-spacing: .03em; color: var(--cream-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
.shelf-bar { display: flex; justify-content: flex-end; margin-top: clamp(40px, 5vw, 64px); }
.shelf-toggle { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 99px; cursor: pointer;
  background: transparent; color: var(--cream); border: 1px solid rgba(243, 236, 224, .6); font: 500 14px/1 var(--sans); }
.shelf-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.shelf-frame { position: relative; margin-top: 18px; }
.shelf { display: grid; gap: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.shelf-row { display: flex; gap: 22px; width: max-content; animation: drift 90s linear infinite; padding: 10px 0 24px; }
.shelf-row.reverse { animation-direction: reverse; animation-duration: 110s; }
.shelf:hover .shelf-row, .shelf.paused .shelf-row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .shelf-row { animation: none; } .shelf { overflow-x: auto; } .shelf-bar { display: none; } }
.reduce-motion .shelf-row { animation: none; }
.reduce-motion .shelf { overflow-x: auto; }
/* Focused, the shelf gets a light and a dark ring together, drawn over the covers so it shows on any photo. */
.shelf:focus-visible { outline: none; mask-image: none; -webkit-mask-image: none; }
.shelf-frame:has(> .shelf:focus-visible)::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--focus), inset 0 0 0 6px var(--night); }
.reduce-motion .shelf-bar { display: none; }

/* A book cover, as in the app's CoverView: the photo under a wash of the cover color. */
/* 2:3 like a book, but taller if its words need room (larger text or wider spacing): nothing is cut off. */
.cover { container-type: inline-size; position: relative; display: grid; flex: none; width: clamp(132px, 13vw, 176px); aspect-ratio: 2 / 3; border-radius: 9px; overflow: clip; color: #fafafa;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); transition: transform .5s var(--ease); }
.cover:hover { transform: translateY(-6px) rotate(-.6deg); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,
  color-mix(in srgb, var(--c) 75%, transparent) 0%, color-mix(in srgb, var(--c) 30%, transparent) 12%, color-mix(in srgb, var(--c) 0%, transparent) 26%,
  color-mix(in srgb, var(--c) 10%, transparent) 42%, color-mix(in srgb, var(--c) 88%, transparent) 66%, var(--c) 86%); }
.cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 6cqw; z-index: 2; background: rgba(0, 0, 0, .22); box-shadow: 1.4cqw 0 0 rgba(255, 255, 255, .1); }
/* A shade under the lettering keeps white text at 7.8:1 or better on every cover color, even over a light photo. */
.cover-text { position: relative; z-index: 3; display: flex; flex-direction: column; padding: 9cqw 8cqw 9cqw 14cqw; text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .42) 20%, rgba(0, 0, 0, 0) 36%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, .4) 62%, rgba(0, 0, 0, .45) 100%); }
.cover-badge { font: 600 5.6cqw/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
/* site.js sets --t smaller for a title with a long word, so the word fits on the cover. */
.cover-title { margin-top: auto; padding-top: 4cqw; font: 700 var(--t, 12.5cqw)/1.1 var(--serif); overflow-wrap: anywhere; hyphens: auto; }
.cover-sub { margin-top: 3cqw; font: italic 400 8cqw/1.2 var(--serif); }
.cover-rule { width: 17cqw; height: 1.3cqw; background: rgba(255, 255, 255, .55); margin: 5cqw 0 4cqw; }
.cover-foot { font: 500 6.6cqw/1.3 var(--sans); }
.cover-free { position: absolute; top: 5.5cqw; right: 5.5cqw; z-index: 4; background: rgba(255, 255, 255, .93); color: var(--c); font: 800 5.6cqw/1 var(--sans); letter-spacing: .08em; padding: 2.6cqw 4.4cqw; border-radius: 99px; }

/* ——— Interlude ——— */
.interlude { position: relative; display: flex; align-items: flex-end; min-height: max(520px, min(92svh, 880px)); overflow: hidden; color: #fff; }
.interlude img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.interlude::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, .5) 0%, rgba(20, 17, 14, 0) 20%, rgba(20, 17, 14, .3) 38%, rgba(20, 17, 14, .8) 58%, rgba(20, 17, 14, .94) 100%),
    radial-gradient(70% 60% at 10% 85%, rgba(20, 17, 14, .55), rgba(20, 17, 14, 0)); }
.interlude-copy p { text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.interlude-copy { position: relative; z-index: 1; padding: 120px 0 clamp(48px, 8vw, 100px); }
.interlude .fr { font: 380 clamp(32px, 5.4vw, 76px)/1.05 var(--serif); letter-spacing: -.02em; max-width: 15ch; }
.interlude .en { margin-top: 16px; font: italic 360 clamp(22px, 2.6vw, 34px)/1.25 var(--serif); color: rgba(255, 255, 255, .9); }
.interlude .credit { margin-top: 26px; font: 500 13px/1.3 var(--sans); letter-spacing: .06em; color: rgba(255, 255, 255, .88); }

/* ——— 05 Learn ——— */
.learn { background: var(--paper); color: var(--ink); }
.narrow { max-width: 15ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--rule); }
.features article { padding: 34px 30px 38px 0; border-bottom: 1px solid var(--rule); }
.features article:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--rule); }
.features svg { width: 32px; height: 32px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.features h3 { font-size: 24px; font-weight: 500; line-height: 1.2; }
.features p { margin-top: 8px; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .features article, .features article:not(:nth-child(3n + 1)) { padding: 28px 0; border-left: 0; } }

/* ——— 06 Languages ——— */
.languages { background: var(--paper-2); }
.tongues { list-style: none; padding: 0; margin: clamp(48px, 6vw, 72px) 0 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.tongues li { padding: 10px 18px; border-radius: 99px; border: 1px solid var(--line); font: 400 19px/1.2 var(--serif); color: var(--ink); background: rgba(255, 255, 255, .35); }
.tongues li.big { background: var(--ink); color: var(--paper); border-color: var(--ink); font-size: 22px; }

/* ——— 07 Get it ——— */
.get { background: var(--night); text-align: center; overflow: hidden; }
.get-glow { position: absolute; inset: auto 0 -40% 0; height: 100%; background: radial-gradient(closest-side, rgba(232, 140, 97, .2), rgba(232, 140, 97, 0)); }
.get-inner { position: relative; }
.get .label { justify-content: center; }
.get .label::before { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.get h2 { font-size: clamp(48px, 7.5vw, 104px); font-weight: 340; }
.get .lede { max-width: 640px; margin: 26px auto 0; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: var(--cream-soft); }
.get-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.get .small { margin-top: 26px; font: 400 15px/1.5 var(--sans); color: var(--cream-faint); }

/* ——— Footer ——— */
.site-foot { background: var(--night); border-top: 1px solid rgba(243, 236, 224, .08); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font: 500 15px/1 var(--sans); }
.foot-nav a, .foot-nav button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 0; text-decoration: none; color: var(--cream-soft); }
.foot-nav button { appearance: none; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.foot-nav a:hover { color: var(--cream); }
.foot-small { width: 100%; font: 400 14px/1.5 var(--sans); color: var(--cream-faint); }
.foot-credits { width: 100%; max-width: 58ch; font: 400 14px/1.6 var(--sans); color: var(--cream-faint); }

/* ——— Accessibility extras ——— */
/* Reduce motion, from the system setting or the button in the footer (site.js): no reveals, no drifting shelf. */
.reduce-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
/* At high zoom or on short screens the header scrolls away instead of covering the page. */
@media (max-height: 520px) { .site-head { position: absolute; } }
/* More contrast, when the system asks for it. */
@media (prefers-contrast: more) {
  :root { --cream-soft: var(--cream); --cream-faint: var(--cream); --ink-soft: var(--ink); --line: #5c5147; }
  .split-text p, .posture p, .features p, .iphone-copy > p { color: inherit; }
  .duo-screen::after { display: none; }
}
/* Windows High Contrast and other forced colors: keep the picked sentence and pressed buttons visible. */
@media (forced-colors: active) {
  .s.on { forced-color-adjust: none; background: Highlight; color: HighlightText !important; }
  .chip[aria-pressed="true"], .try-tabs button[aria-pressed="true"] { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .store, .pill, .posture, .sentence-panel { border: 1px solid CanvasText; }
  .chip { border: 1px solid ButtonText; margin-block: 5px; min-height: 34px; }
  .duo-screen:has(> .pg:focus-visible)::before { box-shadow: none; border: 3px solid Highlight; }
  .shelf:focus-visible { outline: 3px solid Highlight; outline-offset: -3px; }
  .shelf-frame:has(> .shelf:focus-visible)::after { display: none; }
}
