/* Memory web site. Tokens follow the app's design system (09 §3): Nunito only, radius 16/20. */

@font-face { font-family: "Nunito"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/nunito-500.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/nunito-800.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-style: normal; font-display: swap; src: url("../fonts/nunito-900.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --canvas: #FBF8F3;
  --surface: #FFFFFF;
  --text: #1B1C20;
  --text-2: #5B5E68;
  --line: #E7E2D9;
  --primary: #5B4BFF;
  --on-primary: #FFFFFF;
  --link: #4A3BE8;
  --amber: #FFB020;
  --navy: #131924;
  --navy-text-2: #9BA1B0;
  --names: #C2366B;
  --numbers: #0B72B9;
  --foundations: #3E7D1F;
  --radius: 16px;
  --radius-lg: 20px;
  --wrap: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #15161A;
    --surface: #1F2127;
    --text: #F2F2F4;
    --text-2: #A9ACB6;
    --line: #30333B;
    --primary: #8A7DFF;
    --on-primary: #15161A;
    --link: #A99FFF;
    --names: #FF8FB3;
    --numbers: #6CC8FF;
    --foundations: #9BD76F;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 500 1.0625rem/1.55 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-weight: 900; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--amber); color: #1B1C20; font-weight: 800;
  padding: 12px 16px; border-radius: var(--radius); text-decoration: none;
}
.skip:focus { top: 12px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 900; font-size: 1.3rem; min-height: 48px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px; color: #fff; text-decoration: none; font-weight: 800; border-radius: 12px; }
.site-nav a:hover { background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.35em; }

/* Hero */
.hero { background: var(--navy); color: #fff; padding-block: 40px 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-copy { padding-bottom: 48px; align-self: center; }
.hero .eyebrow { color: var(--amber); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 12px; }
.hero .lead { font-size: 1.25rem; color: #E4E6EC; max-width: 34ch; }
.hero-fox { justify-self: center; align-self: center; width: min(320px, 100%); padding-bottom: 48px; }
.hero-fox img { filter: drop-shadow(0 12px 40px rgba(213, 87, 36, 0.28)); }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 8px; padding: 12px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 800;
}
.soon .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); flex: none; }

/* Sections */
section { padding-block: 72px; }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head p { color: var(--text-2); font-size: 1.15rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 36px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) .feature-shot { order: 2; }
.feature-shot { justify-self: center; width: min(280px, 100%); }
.feature-shot img { border-radius: 24px; box-shadow: 0 12px 40px rgba(19, 25, 36, 0.18); }
.feature p { color: var(--text-2); font-size: 1.1rem; max-width: 34rem; }
.feature .subhead { color: var(--text); font-weight: 800; font-size: 1.2rem; }
.chip {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  font-weight: 800; font-size: 0.85rem; border: 2px solid currentColor;
}
.chip.names { color: var(--names); }
.chip.numbers { color: var(--numbers); }
.chip.foundations { color: var(--foundations); }
.chip.review { color: var(--primary); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 900;
}
.steps p { color: var(--text-2); margin: 0; }

.band { background: var(--surface); border-block: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card p { color: var(--text-2); margin: 0; }

/* Text pages */
.page { padding-block: 48px 72px; }
.doc { max-width: 46rem; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.45rem; font-weight: 900; margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc .updated { color: var(--text-2); font-weight: 800; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 24px; margin: 24px 0; }
.doc .summary ul { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
.doc table { border-collapse: collapse; width: 100%; min-width: 36rem; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 800; }
.doc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.doc summary { cursor: pointer; font-weight: 800; padding: 14px 18px; min-height: 48px; }
.doc details > div { padding: 0 18px 6px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); background: var(--primary); color: var(--on-primary);
  font-weight: 800; text-decoration: none;
}
.button:hover { filter: brightness(1.08); }

/* Footer */
.site-footer { background: var(--navy); color: var(--navy-text-2); padding-block: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.site-footer a { color: #fff; display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-weight: 800; }
.site-footer p { margin: 0; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-fox { width: min(200px, 60%); padding-bottom: 40px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-of-type(even) .feature-shot { order: 0; }
  .feature-shot { width: min(260px, 75%); }
  .steps { grid-template-columns: 1fr; }
  section { padding-block: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
