/* Laurelwood's look, shared by every page (the home at 127.0.0.1:8767/, each coach's page, the Learn
   guides, Philo's and Coochy's pages). Served at /learn/laurelwood.css by the coach server and by Philo.

   "Sunlit" (the owner's pick, 2026-11-15): a white page and header, ink nearly black, panels and figures on a
   warm beige (2026-11-16), firm lines; amber and gold for warmth. Each colour means one thing:
     --primary  amber: the main action (open a coach that is running, the suggested move's button)
     --gold     the coach's pick: the suggested move, a lesson's advice, what to do (--gold-fill as a fill)
     --link     something you can open
     --good / --bad   better / worse than the alternative, and nothing else
   One typeface, Hanken Grotesk, 400 to 800: weight and size carry the hierarchy, never italics.
   Numbers are tabular wherever they line up. Dark mode keeps the same meanings on warm charcoal. */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400..800&display=swap");

:root {
  color-scheme: light;
  --paper: #FFFFFF;          /* the page: white (the owner's call, 2026-11-16) */
  --surface: #F4EEE5;        /* panels, figures, tables, cards: the warm beige backdrop */
  --sunk: #E8DFD1;           /* wells: inputs, table heads, tracks (a step below the beige) */
  --ink: #17120D;            /* text: nearly black, warm */
  --ink-2: #4A4036;          /* secondary text, still 8:1 on white */
  --ink-3: #7A6E61;          /* captions and markers only */
  --line: #DCD0BF;
  --line-strong: #BFAF99;
  --brand: #FFFFFF;          /* the header's ground */
  --brand-ink: #17120D;
  --primary: #E8891A;        /* amber */
  --primary-ink: #1A1006;
  --gold: #8F5A06;           /* gold as text: 6.5:1 on white */
  --gold-fill: #F2B544;
  --gold-soft: #FCEBC9;
  --link: #8A3F00;
  --good: #23743C; --good-soft: #E1F1E4;
  --bad: #B4321F; --bad-soft: #FBE3DE;
  --focus: #C76A00;
  --mark: #17120D;           /* the coaches' letter tiles */

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.8125rem;      /* 13px: captions, small labels */
  --step-0: 0.9375rem;       /* 15px: interface */
  --step-1: 1.0625rem;       /* 17px: reading */
  --step-2: 1.3125rem;       /* 21px: lead, lesson titles */
  --step-3: 1.75rem;         /* 28px: section titles */
  --step-4: clamp(2.125rem, 1.6rem + 2vw, 3rem);   /* page titles */
  --measure: 68ch;

  --radius-control: 8px;     /* buttons, tabs, inputs */
  --radius-panel: 12px;      /* panels, boxes */
  --gutter: clamp(16px, 3vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #110D09; --surface: #1D1813; --sunk: #2A231C; --ink: #FAF4EC; --ink-2: #D2C5B5; --ink-3: #9A8D7E;
    --line: #3A3027; --line-strong: #56493B; --brand: #1D1813; --brand-ink: #FAF4EC;
    --primary: #F5A53A; --primary-ink: #1A1006; --gold: #F6C163; --gold-fill: #F2B544; --gold-soft: #3A2B14;
    --link: #F7B866; --good: #7CCB8E; --good-soft: #15291A; --bad: #F48B7B; --bad-soft: #3A1A15; --focus: #F5A53A;
    --mark: #2A231C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #110D09; --surface: #1D1813; --sunk: #2A231C; --ink: #FAF4EC; --ink-2: #D2C5B5; --ink-3: #9A8D7E;
  --line: #3A3027; --line-strong: #56493B; --brand: #1D1813; --brand-ink: #FAF4EC;
  --primary: #F5A53A; --primary-ink: #1A1006; --gold: #F6C163; --gold-fill: #F2B544; --gold-soft: #3A2B14;
  --link: #F7B866; --good: #7CCB8E; --good-soft: #15291A; --bad: #F48B7B; --bad-soft: #3A1A15; --focus: #F5A53A;
  --mark: #2A231C;
}

/* The header every page carries: the mark and name (home), then the three places (Play, Learn, Lab). */
.lw-top { background: var(--brand); color: var(--brand-ink); border-bottom: 1px solid var(--line); }
.lw-top .lw-bar { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); min-height: 58px; display: flex;
  flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.lw-word { display: inline-flex; align-items: center; gap: 10px; font: 800 1.0625rem/1 var(--font);
  letter-spacing: -0.015em; color: var(--brand-ink); text-decoration: none; }
.lw-word::before { content: ""; width: 28px; height: 28px; border-radius: 7px;
  background: url("https://academy.laurelwood.me/icons/icon.svg") center / cover no-repeat, var(--mark); }
.lw-nav { display: flex; flex-wrap: wrap; gap: 2px; font: 600 var(--step-0)/1 var(--font); }
.lw-nav a { color: var(--ink-2); text-decoration: none; padding: 9px 12px; border-radius: var(--radius-control); }
.lw-nav a:hover { color: var(--ink); background: var(--sunk); }
.lw-nav a[aria-current="page"] { color: var(--ink); background: var(--gold-soft); }
.lw-top :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* The light / dark switch (laurelwood.js adds it at the header's right end). */
.lw-theme { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius-control); background: transparent; color: var(--ink-2);
  cursor: pointer; }
.lw-theme:hover { color: var(--ink); background: var(--sunk); }
/* Keep contextual navigation and the full Academy name comfortable on phones. */
@media (max-width: 600px) {
  .lw-top .lw-bar { gap: 6px 12px; padding-block: 10px; }
  .lw-word { font-size: .9375rem; }
  .lw-nav { order: 2; flex-basis: 100%; }
  .lw-nav a { padding: 8px 10px; font-size: 13px; }
  .lw-theme { flex: none; }
}

.lw-back { display:inline-flex;align-items:center;min-height:38px;padding:7px 10px;border:1px solid var(--line);border-radius:var(--radius-control);font:600 13px/1 var(--font);color:var(--ink-2);text-decoration:none;white-space:nowrap }
.lw-back:hover { background:var(--sunk);color:var(--ink) }
.lw-context { padding-left:20px;border-left:1px solid var(--line-strong);font:600 16px/1.2 var(--font);color:var(--ink-2);white-space:nowrap }
@media(max-width:600px){.lw-context{font-size:14px;padding-left:12px}.lw-back{font-size:12px;padding:7px}.lw-top .lw-bar{gap:8px 12px}}
