/* Vocabryn showcase — "Lexicon Press" tokens shared with the app (src/config/theme.ts). */
:root {
  --paper: #f4f6f3;
  --surface: #ffffff;
  --sunk: #e8ede9;
  --ink: #12261e;
  --muted: #4a5c54;
  --rule: #c9d3cc;
  --rule-strong: #77897f;
  --primary: #1e6b4f;
  --on-primary: #ffffff;
  --primary-soft: #dcebe3;
  --due: #9b2c5d;
  --due-soft: #f6e4ec;
  --hard: #8a5413;
  --easy: #22607e;
  --display: "Gloock", Georgia, "Times New Roman", serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1814;
    --surface: #15231d;
    --sunk: #1b2c25;
    --ink: #e6eee9;
    --muted: #a6b8af;
    --rule: #2b3f36;
    --rule-strong: #628174;
    --primary: #74c9a3;
    --on-primary: #0b1611;
    --primary-soft: #1d3a2f;
    --due: #f191bb;
    --due-soft: #3b1f2c;
    --hard: #e5a961;
    --easy: #86c3e3;
  }
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
code, pre, .mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.5rem/1 var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--primary); text-decoration: underline; }

/* Type */
.eyebrow { font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); line-height: 1.04; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
h3 { font-size: 1.5rem; line-height: 1.2; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
p { margin: 0 0 1em; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 8px; border: 1.5px solid var(--primary); background: var(--primary); color: var(--on-primary); font-weight: 600; text-decoration: none; }
.button.secondary { background: var(--surface); color: var(--ink); border-color: var(--rule-strong); }
.button:hover { filter: brightness(1.06); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 6vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.hero-shots figure:last-child { margin-top: 48px; }
.notice { margin-top: 20px; padding: 12px 14px; border-left: 4px solid var(--due); background: var(--due-soft); font-size: 0.95rem; }

/* Screenshot frames: real captures, simple rounded frame — no fake device chrome. */
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--rule); background: var(--surface); box-shadow: 0 18px 40px -24px rgba(18, 38, 30, 0.45); }
.shot figcaption { margin-top: 8px; font: 400 0.8rem/1.4 var(--mono); color: var(--muted); }

/* Facts */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--surface); }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; }
.facts li { display: grid; gap: 2px; }
.facts strong { font: 400 1.6rem/1.1 var(--display); }
.facts span { font: 400 0.82rem/1.3 var(--mono); color: var(--muted); }

/* Sections */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 46em; margin-bottom: 32px; }
.journey { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding: 32px 0; border-top: 1px solid var(--rule); }
.journey:first-of-type { border-top: 0; }
.journey .num { font: 400 3rem/1 var(--display); color: var(--primary); }
.journey ul, .list { margin: 12px 0 0; padding-left: 1.2em; }
.journey li, .list li { margin: 6px 0; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shots.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Rules table: dictionary-entry rows */
.rules { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.rules th, .rules td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.rules thead th { border-top: 0; font: 500 0.78rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--sunk); }
.rules td:first-child { font-family: var(--display); font-size: 1.15rem; white-space: nowrap; }
.grade { font-weight: 700; }
.grade.again { color: var(--due); } .grade.hard { color: var(--hard); } .grade.good { color: var(--primary); } .grade.easy { color: var(--easy); }
.table-scroll { overflow-x: auto; border-radius: 8px; }
.table-scroll:focus-visible { outline: 3px solid var(--primary); }

/* Scope */
.scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 20px; border-top: 4px solid var(--primary); }
.card.needs { border-top-color: var(--hard); }
.card.not { border-top-color: var(--due); }
.card ul { margin: 10px 0 0; padding-left: 1.1em; }
.card li { margin: 6px 0; }

/* Verification */
.status { display: inline-block; font: 500 0.78rem/1 var(--mono); padding: 5px 8px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); white-space: nowrap; }
.status.no { background: var(--due-soft); color: var(--due); }

/* Code */
pre { background: var(--surface); border: 1px solid var(--rule); border-radius: 8px; padding: 16px; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
.steps > li::before { content: counter(step); font: 400 1.8rem/1 var(--display); color: var(--primary); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: grid; gap: 8px; }

/* Motion: a short settle on load only; nothing is hidden when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  .hero-shots figure { animation: settle 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-shots figure:last-child { animation-delay: 120ms; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap, .journey { grid-template-columns: minmax(0, 1fr); }
  .scope { grid-template-columns: minmax(0, 1fr); }
  .shots.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots > :nth-child(3):last-child { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
  .hero-shots figure:last-child { margin-top: 28px; }
  .rules td:first-child { white-space: normal; }
}
