/* Wordkeeper Dojo, the site. Shared by every page.

   v2 (15 Nov 2026): the minimal light look of the 1.5 App Store screenshots.
   A near-white page, short Roboto Bold headlines with one pink phrase, grey
   subtitles, white cards lifted by soft shadows instead of neon glows. The
   class colours are the app's light-mode tokens (Tokens.swift, `light:`),
   deepened so every one reads at 4.5:1 or better on the page and under white
   text. Words themselves stay in Anton, as they are in the app.

   The variable names are the v1 names so site.v1.js (which sets --c to a
   class colour per dojo) works unchanged.

   /assets/* is cached for a year (see _headers), so a change to this file
   ships under a new name: site.v3.css, and every page's <link> with it. */

:root {
  /* Page and surfaces */
  --stage: #FAFAFA;
  --deep: #F3F3F6;
  --s1: #FFFFFF;
  --s2: #F6F6F9;
  --s3: #E9E9EF;
  --hair: #E3E3EA;
  --art: #08080A;          /* the dark ground the master portraits are painted on */

  /* Text by role: 10.2, 6.1, 4.8 and 3.1:1 on the page */
  --text: #0B0B0F;
  --soft: #3D3D4D;
  --muted: #5E5E6E;
  --dim: #6E6E76;
  --faint: #8E8E9E;
  --on: #FFFFFF;

  /* Pink: the bright one for big headline words (3.4:1, large text only),
     the deep one for links, buttons and small text (5.0:1). */
  --pink: #FF278E;
  --brand: #D4006F;

  /* Class colours, light-mode tokens */
  --cyan: #007692;
  --amber: #AE5300;
  --violet: #823DFF;
  --lime: #577708;
  --gold: #9A6400;
  --red: #DA0027;

  --r-xs: 6px; --r-sm: 10px; --r-md: 12px; --r-lg: 16px; --r-xl: 20px; --r-xxl: 24px;

  /* Faces: Roboto for everything you read, Anton for the words you learn */
  --head: Roboto, system-ui, -apple-system, sans-serif;
  --body: Roboto, system-ui, -apple-system, sans-serif;
  --display: Anton, Impact, "Arial Narrow", sans-serif;
  --accent: Roboto, system-ui, -apple-system, sans-serif;
  --impact: Roboto, system-ui, -apple-system, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;

  /* Elevation: two soft shadows, light from above */
  --lift-1: 0 1px 2px rgba(11, 11, 15, .05), 0 4px 12px rgba(11, 11, 15, .05);
  --lift-2: 0 2px 6px rgba(11, 11, 15, .06), 0 18px 40px rgba(11, 11, 15, .10);

  --rise: cubic-bezier(.22, 1, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);

  --gutter: 24px;
  --max: 1120px;
  color-scheme: light;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
}
::selection { background: rgba(255, 39, 142, .18); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--text); color: var(--on); padding: 8px 12px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* ---- Type ---------------------------------------------------------------- */

/* Small, quiet and grey: it labels the headline, it doesn't compete with it. */
.eyebrow {
  margin: 0 0 14px;
  font: 500 13px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim);
}
/* The screenshots' headline: bold, tight, sentence case, one pink phrase. */
.h2 {
  margin: 0 0 16px;
  font: 700 clamp(36px, 5.2vw, 60px)/1.04 var(--head);
  letter-spacing: -.035em; text-wrap: balance;
}
.h2 em, h1 em { font-style: normal; color: var(--pink); }
.lede { margin: 0; max-width: 34em; font-size: 20px; line-height: 1.5; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 500; }
.mono { font-family: var(--mono); }

/* ---- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--brand); color: var(--on);
  font: 600 16px/1 var(--body); letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(11, 11, 15, .10), 0 8px 20px rgba(212, 0, 111, .22);
  transition: transform .12s var(--rise), box-shadow .12s, background .12s;
}
.btn:hover { transform: translateY(-1px); background: #BF0064; }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(11, 11, 15, .10); }
.btn.ghost {
  background: var(--s1); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair), var(--lift-1);
}
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--faint), var(--lift-1); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Apple's badge, unpadded and never stretched (it is 2.9916:1). */
.badge { display: inline-block; line-height: 0; transition: transform .12s var(--rise); }
.badge img { display: block; height: 56px; width: auto; aspect-ratio: 119.66407 / 40; }
.badge:hover { transform: translateY(-2px); }

/* ---- Cards --------------------------------------------------------------- */

.card {
  background: var(--s1); border-radius: var(--r-xl);
  box-shadow: var(--lift-1);
}
/* A class ring: a thin coloured edge, no glow. */
.card.ring { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c, var(--brand)) 40%, transparent), var(--lift-1); }

/* ---- The bar ------------------------------------------------------------- */

.bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 250, .86);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.lift { border-bottom-color: var(--hair); }
.bar .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font: 700 18px/1 var(--head); letter-spacing: -.02em; }
.logo b { font-weight: 700; color: var(--pink); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.bar nav a.link {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  font: 500 15px/1 var(--body); color: var(--muted); text-decoration: none;
}
.bar nav a.link:hover { color: var(--text); }
.bar .btn { margin-left: 8px; }
@media (max-width: 820px) { .bar nav a.link { display: none; } }
@media (max-width: 420px) {
  .logo { gap: 8px; } .logo img { width: 28px; height: 28px; }
  .logo span { font-size: 16px; }
  .bar .btn { margin-left: 0; padding: 0 14px; font-size: 13px; }
}

/* ---- Sections ------------------------------------------------------------ */

.sec { padding-top: 128px; }
@media (max-width: 700px) { .sec { padding-top: 88px; } }
.sec-head { max-width: 760px; margin-bottom: 40px; }
.sec-head .lede { margin-top: 8px; }

/* ---- The phone: the screenshots' frame ----------------------------------- */

.phone {
  position: relative; padding: 7px; border-radius: 44px;
  background: #111114;
  box-shadow: inset 0 0 0 1.5px #2A2A30, 0 2px 6px rgba(0,0,0,.06), 0 24px 56px rgba(0,0,0,.14);
}
.phone img { display: block; width: 100%; border-radius: 37px; }

/* ---- Footer -------------------------------------------------------------- */

.foot { margin-top: 128px; border-top: 1px solid var(--hair); padding: 32px 0 48px; color: var(--dim); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .tag { margin-left: auto; font: 600 14px/1 var(--head); letter-spacing: -.01em; color: var(--text); }
.foot .credit { flex-basis: 100%; font-size: 12px; color: var(--dim); }
.foot .credit a { color: var(--dim); text-decoration: underline; }
@media (max-width: 600px) { .foot .tag { margin-left: 0; flex-basis: 100%; } }

/* ==========================================================================
   THE ROUND — a playable sample of the app's Upgrade question, drawn the
   way the app draws it in Light
   ========================================================================== */

.round {
  --c: var(--cyan);
  position: relative; width: 100%; max-width: 440px;
  background: var(--s1); border-radius: var(--r-xxl);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent), var(--lift-2);
  padding: 20px; transition: box-shadow .4s;
}
.round-top { display: flex; align-items: center; gap: 12px; }
.round-face {
  flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  background: var(--art);
  box-shadow: 0 0 0 2px var(--s1), 0 0 0 3.5px var(--c);
  transition: box-shadow .4s;
}
.round-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.round-who { min-width: 0; flex: 1; }
.round-who b { display: block; font: 700 19px/1.1 var(--head); letter-spacing: -.02em; }
.round-who span { display: block; font: 500 12px/1.4 var(--body); letter-spacing: .04em; color: var(--c); text-transform: uppercase; }
.round-meta { font: 400 12px/1 var(--mono); color: var(--dim); white-space: nowrap; }

.round-track { height: 6px; margin: 16px 0 0; border-radius: 999px; background: var(--s3); overflow: hidden; }
.round-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c); transition: width .35s ease-out, background .4s; }

.round-ask { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 0 12px; }
.round-ask p { margin: 0; font-size: 15px; color: var(--muted); }
.clock { position: relative; flex: none; width: 40px; height: 40px; }
.clock svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.clock circle { fill: none; stroke-width: 3; }
.clock .bg { stroke: color-mix(in srgb, var(--lime) 18%, transparent); }
.clock .fg { stroke: var(--lime); stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 0; }
.clock.warn .bg { stroke: color-mix(in srgb, var(--red) 18%, transparent); }
.clock.warn .fg { stroke: var(--red); }
.clock span { position: absolute; inset: 0; display: grid; place-items: center; font: 500 13px/1 var(--mono); color: var(--text); }
.clock.warn span { color: var(--red); }

.round-q {
  margin: 0 0 16px; padding: 18px 16px; text-align: center;
  background: var(--s1); border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 30%, transparent);
  font: 500 19px/1.45 var(--body); color: var(--text); text-wrap: balance;
}
.round-q mark { background: none; color: var(--text); box-shadow: inset 0 -0.45em 0 color-mix(in srgb, var(--c) 18%, transparent); padding: 0 .1em; border-radius: 2px; }
.round-q mark.done { color: var(--on); background: var(--lime); box-shadow: none; padding: 0 .2em; }

.opts { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 54px; padding: 0 18px; text-align: left; cursor: pointer;
  background: var(--s1); color: var(--text); border: 1px solid var(--hair); border-radius: var(--r-md);
  font: 400 24px/1 var(--display); letter-spacing: .01em;
  box-shadow: 0 1px 2px rgba(11, 11, 15, .05);
  transition: transform .1s, border-color .15s, background .15s;
}
.opt:hover:not(:disabled) { border-color: var(--faint); }
.opt:active:not(:disabled) { transform: translateY(1px); }
.opt:disabled { cursor: default; }
.opt small { font: 600 11px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.opt.right { background: color-mix(in srgb, var(--lime) 9%, var(--s1)); border-color: var(--lime); }
.opt.right small { color: var(--lime); }
.opt.wrong { background: color-mix(in srgb, var(--red) 7%, var(--s1)); border-color: var(--red); color: var(--soft); }
.opt.wrong small { color: var(--red); }
.opt.out { opacity: .38; }

.reveal-card {
  margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--s2);
  font-size: 15px; color: var(--soft);
}
.reveal-card[hidden] { display: none; }
.reveal-card .say { font: 400 13px/1 var(--mono); color: var(--dim); }
.reveal-card p { margin: 6px 0 0; }
.reveal-card .why { color: var(--dim); font-size: 14px; }
.round-next { width: 100%; margin-top: 14px; }

.round-end { text-align: center; padding: 8px 4px 4px; }
.round-end[hidden] { display: none; }
.round-end .score { margin: 6px 0 4px; font: 700 64px/1 var(--head); letter-spacing: -.04em; color: var(--text); }
.round-end h3 { margin: 0 0 8px; font: 700 24px/1.15 var(--head); letter-spacing: -.02em; }
.round-end p { margin: 0 auto 20px; max-width: 30em; color: var(--muted); font-size: 15px; }
.round-end .row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.round-end .faces { display: flex; justify-content: center; gap: 6px; margin: 4px 0 14px; }
.round-end .faces span { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: var(--art); box-shadow: 0 0 0 2px var(--hair); }
.round-end .faces span.won { box-shadow: 0 0 0 2px var(--lime); }
.round-end .faces img { display: block; width: 100%; height: 100%; object-fit: cover; }
.round-end .faces span:not(.won) img { filter: grayscale(1) brightness(.6); }

/* ---- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  @keyframes pop { 0% { opacity: 0; transform: scale(.86); } 60% { opacity: 1; transform: scale(1.04); } 100% { transform: none; } }
  @keyframes shake { 0%,100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
  .rise { animation: rise .6s var(--rise) both; }
  .rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; } .rise.d4 { animation-delay: .32s; }
  .opt.right { animation: pop .4s var(--pop); }
  .opt.wrong { animation: shake .35s ease-out; }
  .round-end .score { animation: pop .55s var(--pop) both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s var(--rise); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
