/* Talksheet's site: the app's own colours (Shared/DesignSystem.swift), paper, forest, gold; Georgia like the deck. */
:root {
  --paper: #f5edde; --card: #fffdf5; --ink: #2b241c; --ink-2: #6b5f50; --forest: #3d5e47; --forest-text: #3d5e47;
  --gold: #e3a33b; --line: #e3d8c3;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #1c1a17; --card: #2b2621; --ink: #f5edde; --ink-2: #c2b6a3; --forest-text: #8fc299; --line: #3a342d; }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body { margin: 0; font: 18px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--forest-text); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 21px var(--serif); color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { margin-left: 22px; font-size: 16px; color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* hero: the word is the page */
.hero { display: grid; grid-template-columns: 1fr 240px; align-items: end; gap: 24px; padding: 40px 0 64px; }
.word { font: 400 clamp(108px, 23vw, 248px)/0.9 var(--serif); letter-spacing: -0.02em; margin: 0; white-space: nowrap; }
.o { position: relative; display: inline-block; font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.dots { position: absolute; left: 50%; top: 0.02em; width: 0.42em; display: flex; justify-content: space-between; transform: translate(-50%, -0.26em); transition: transform 420ms cubic-bezier(.3, 1.6, .5, 1); }
.dots i { width: 0.13em; height: 0.13em; border-radius: 50%; background: var(--gold); }
.o[aria-pressed="false"] .dots { animation: hover 2.4s ease-in-out infinite; }
.o[aria-pressed="true"] .dots { transform: translate(-50%, 0.06em); }
.o[aria-pressed="true"] .dots i { background: var(--ink); box-shadow: none; transition: background 200ms 300ms; }
@keyframes hover { 50% { transform: translate(-50%, -0.32em); } }
.meaning { font: italic 400 clamp(22px, 2.6vw, 30px)/1.3 var(--serif); color: var(--ink-2); margin: 18px 0 0; min-height: 1.3em; }
.meaning b { font-style: normal; font-weight: 400; color: var(--ink); }
.hint { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.mascot { width: 240px; height: 240px; align-self: center; }
.lead { max-width: 33em; font-size: 22px; line-height: 1.55; margin: 0 0 18px; }
.soon { font: italic 400 20px var(--serif); color: var(--forest-text); margin: 0 0 64px; }

/* how it works: a real sequence, so numbered */
.steps { border-top: 1px solid var(--line); padding: 56px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font: 400 44px/1 var(--serif); color: var(--gold); margin-bottom: 14px; }
.steps h3 { font: 600 22px/1.3 var(--serif); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 17px; }

/* the pairs */
.pairs { border-top: 1px solid var(--line); padding: 56px 0 64px; }
.pairs h2 { font: 400 clamp(34px, 4.6vw, 52px)/1.1 var(--serif); margin: 0 0 10px; }
.pairs > p { max-width: 34em; color: var(--ink-2); margin: 0 0 32px; }
.pair-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; margin: 0; padding: 0; list-style: none; }
.pair-list li { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.say { white-space: nowrap; font: 400 30px/1.2 var(--serif); color: var(--ink); background: none; border: 0; padding: 0 2px; cursor: pointer; border-bottom: 2px solid transparent; }
.say:hover, .say.playing { border-bottom-color: var(--gold); }
.vs { color: var(--ink-2); font-size: 15px; }
.gloss { margin-left: auto; color: var(--ink-2); font-size: 15px; text-align: right; }

/* privacy in plain words */
.yours { border-top: 1px solid var(--line); padding: 56px 0 72px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.yours h2 { font: 400 clamp(30px, 3.6vw, 40px)/1.15 var(--serif); margin: 0; }
.yours ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.yours li { margin-bottom: 10px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; font-size: 15px; color: var(--ink-2); display: flex; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* legal pages */
.doc { max-width: 680px; padding: 24px 0 72px; }
.doc h1 { font: 400 46px/1.1 var(--serif); margin: 10px 0 8px; }
.doc h2 { font: 600 22px/1.3 var(--serif); margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.doc .updated { color: var(--ink-2); font-size: 15px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 16px; margin: 8px 0; }
.doc td, .doc th { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .mascot { width: 150px; height: 150px; justify-self: end; margin-top: -20px; }
  .steps, .pair-list, .yours { grid-template-columns: 1fr; gap: 28px; }
  .top nav a { margin-left: 14px; }
  .pair-list li { flex-wrap: wrap; gap: 4px 12px; }
  .say { font-size: 26px; }
  .gloss { margin-left: 0; width: 100%; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .o[aria-pressed="false"] .dots { animation: none; }
  .dots, .dots i { transition: none; }
}
