/* Chess Wiz's public pages. Tokens mirror Prelude/App/Theme.swift. */
:root {
  --paper: #151412;
  --surface: #211F1C;
  --ink: #F1EDE6;
  --ink2: #A8A297;
  --ink3: #7A756C;
  --line: #33302B;
  --moss-ink: #62A57F;
  --gold-ink: #E5BE63;
  --coral-ink: #E98A80;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.65 var(--sans);
}
a { color: var(--moss-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
header, main, footer { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 28px; padding-bottom: 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 400 30px/1 var(--serif); color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 9px; display: block; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-weight: 700; font-size: 14px; }
nav a { color: var(--ink2); text-decoration: none; }
nav a[aria-current="page"], nav a:hover { color: var(--ink); }
h1 { font: 400 clamp(34px, 7vw, 46px)/1.1 var(--serif); margin: 28px 0 6px; }
h2 { font: 700 19px/1.3 var(--sans); margin: 36px 0 8px; }
h3 { font: 700 16px/1.3 var(--sans); margin: 22px 0 6px; }
.meta { color: var(--ink2); font-size: 14px; margin: 0 0 24px; }
.card { background: var(--surface); border-radius: 22px; padding: 18px 20px; margin: 18px 0; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.caps { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { color: var(--ink2); font-weight: 700; }
p, li { overflow-wrap: anywhere; }
td { overflow-wrap: break-word; }
td:first-child { white-space: nowrap; }
footer { color: var(--ink3); font-size: 13px; padding-top: 32px; padding-bottom: 40px; border-top: 1px solid var(--line); margin-top: 48px; }

/* Home page: the header and hero from the design canvas. */
.cta { display: inline-flex; align-items: center; background: var(--ink); color: #1B1A18; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1; padding: 12px 18px; border-radius: 999px; }
.cta:hover { background: #FFFFFF; color: #1B1A18; }
.cta.big { font-size: 16px; padding: 15px 22px; }
.home header, .home main, .home footer { max-width: 1120px; }
.home { position: relative; overflow-x: hidden; }
.home::before { content: ""; position: absolute; right: -140px; top: 40px; width: 760px; height: 760px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59,122,90,.28), rgba(59,122,90,0)); pointer-events: none; }
.home header, .home main, .home footer { position: relative; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; padding: 56px 0 48px; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-copy > * { margin: 0; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.5px; margin: 0; }
.hero .caps { font-size: 12px; letter-spacing: 1.4px; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink2); max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 6px; }
.quiet { font-weight: 700; font-size: 15px; text-decoration: none; padding: 14px 6px; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); color: var(--ink2); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; line-height: 1; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.moss { background: var(--moss-ink); } .dot.gold { background: var(--gold-ink); } .dot.coral { background: var(--coral-ink); }
.lesson { flex: 0 1 420px; margin: 0; min-width: 0; background: var(--surface); border-radius: 22px; padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.45); display: flex; flex-direction: column; gap: 14px; }
.board { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr)); aspect-ratio: 1 / 1; width: 100%; background: conic-gradient(#769656 25%, #EEEED2 0 50%, #769656 0 75%, #EEEED2 0); background-size: 25% 25%; }
.board img { width: 100%; height: 100%; object-fit: contain; display: block; }
.board .hl { background: rgba(217,164,65,.58); }
.lesson figcaption { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 4px; }
.lesson figcaption p { margin: 0; }
.lesson-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lesson-title .name { font: 400 20px/1.2 var(--serif); color: var(--ink); }
.caps.moss { color: var(--moss-ink); letter-spacing: 1px; }
.moves { display: flex; flex-wrap: wrap; gap: 6px; }
.moves span { font-weight: 700; font-size: 14px; color: var(--ink2); padding: 6px 10px; border-radius: 999px; background: var(--paper); line-height: 1; }
.moves .now { background: #3B7A5A; color: var(--ink); }
.why { font-size: 14px; line-height: 1.5; color: var(--ink2); }
footer small { display: block; margin-top: 6px; font-size: 12px; }
footer a { color: var(--ink2); }
