/* Groundwork — shared styles
   Themed to match the setup itself: Catppuccin (Mocha dark / Latte light),
   terminal-window code blocks, physical keycaps for shortcuts. */

:root {
  color-scheme: dark;
  /* Catppuccin Mocha */
  --base: #1e1e2e;
  --mantle: #181825;
  --crust: #11111b;
  --surface0: #313244;
  --surface1: #45475a;
  --surface2: #585b70;
  --overlay0: #6c7086;
  --overlay1: #7f849c;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --mauve: #cba6f7;
  --blue: #89b4fa;
  --sapphire: #74c7ec;
  --sky: #89dceb;
  --teal: #94e2d5;
  --green: #a6e3a1;
  --yellow: #f9e2af;
  --peach: #fab387;
  --maroon: #eba0ac;
  --red: #f38ba8;
  --lavender: #b4befe;

  --accent: var(--mauve);
  --shadow: rgba(0, 0, 0, 0.4);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrainsMono Nerd Font", "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --maxw: 760px;
  --sidebar-w: 264px;
}

:root[data-theme="light"] {
  color-scheme: light;
  /* Catppuccin Latte */
  --base: #eff1f5;
  --mantle: #e6e9ef;
  --crust: #dce0e8;
  --surface0: #ccd0da;
  --surface1: #bcc0cc;
  --surface2: #acb0be;
  --overlay0: #5c5f77;
  --overlay1: #4c4f69;
  --text: #4c4f69;
  --subtext1: #5c5f77;
  --subtext0: #6c6f85;
  --mauve: #8839ef;
  --blue: #1e66f5;
  --sapphire: #209fb5;
  --sky: #04a5e5;
  --teal: #179299;
  --green: #40a02b;
  --yellow: #df8e1d;
  --peach: #fe640b;
  --maroon: #e64553;
  --red: #d20f39;
  --lavender: #7287fd;
  --shadow: rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --base: #eff1f5;
    --mantle: #e6e9ef;
    --crust: #dce0e8;
    --surface0: #ccd0da;
    --surface1: #bcc0cc;
    --surface2: #acb0be;
    --overlay0: #5c5f77;
    --overlay1: #4c4f69;
    --text: #4c4f69;
    --subtext1: #5c5f77;
    --subtext0: #6c6f85;
    --mauve: #8839ef;
    --blue: #1e66f5;
    --sapphire: #209fb5;
    --sky: #04a5e5;
    --teal: #179299;
    --green: #40a02b;
    --yellow: #df8e1d;
    --peach: #fe640b;
    --maroon: #e64553;
    --red: #d20f39;
    --lavender: #7287fd;
    --shadow: rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.7rem;
  left: 0.7rem;
  transform: translateY(-150%);
  background: var(--crust);
  color: var(--text);
  border: 1px solid var(--accent);
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
  transition: transform 120ms ease;
}
.skip-link:focus { transform: translateY(0); text-decoration: none; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start;
  height: 100vh; overflow-y: auto;
  background: var(--mantle);
  border-right: 1px solid var(--surface0);
  padding: 1.4rem 1.1rem 2rem;
}
.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.brand { display: block; min-width: 0; }
.brand .mark { display: block; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.12em; color: var(--overlay1); text-transform: uppercase; }
.brand .name { display: block; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--text); line-height: 1.25; margin-top: 0.15rem; }
.repo-link {
  flex: none;
  border: 1px solid var(--surface1);
  border-radius: 7px;
  color: var(--subtext1);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.42rem 0.55rem;
  text-decoration: none;
}
.repo-link:hover { background: var(--surface0); color: var(--text); text-decoration: none; }

.nav-group { margin-bottom: 1.25rem; }
.nav-group h4 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--subtext0); margin: 0 0 0.5rem 0.2rem; font-weight: 600;
}
.nav-group a, .nav-group span.soon {
  display: block; padding: 0.32rem 0.55rem; border-radius: 7px;
  color: var(--subtext1); font-size: 0.93rem; text-decoration: none;
}
.nav-group a:hover { background: var(--surface0); text-decoration: none; }
.nav-group a.active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-weight: 600; }
.nav-group span.soon { color: var(--overlay0); cursor: default; }
.nav-group span.soon::after { content: " soon"; font-family: var(--mono); font-size: 0.62rem; color: var(--overlay0); border: 1px solid var(--surface1); padding: 0 0.3rem; border-radius: 4px; margin-left: 0.3rem; }

.main { min-width: 0; }
.content { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.6rem 5rem; }

/* ---------- Topbar (mobile) ---------- */
.topbar { display: none; position: sticky; top: 0; z-index: 20; background: var(--mantle); border-bottom: 1px solid var(--surface0); padding: 0.7rem 1rem; align-items: center; justify-content: space-between; }
.topbar .name { font-family: var(--mono); font-weight: 700; }
.icon-btn { background: var(--surface0); color: var(--text); border: 1px solid var(--surface1); border-radius: 8px; padding: 0.35rem 0.6rem; font-family: var(--mono); font-size: 0.85rem; cursor: pointer; }
.icon-btn:hover { background: var(--surface1); }

.theme-toggle { margin-top: 0.5rem; }
.sidebar-meta {
  margin: 0.8rem 0 0;
  color: var(--overlay1);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
}
.sidebar-meta a { color: var(--subtext0); }
.sidebar-meta a:hover { color: var(--accent); }
.action-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--surface1));
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
}
.action-link:hover {
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  text-decoration: none;
}

/* ---------- Typography ---------- */
.eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.6rem; }
h1 { font-size: 2.2rem; line-height: 1.1; margin: 0 0 1rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin: 2.6rem 0 0.9rem; letter-spacing: -0.01em; padding-top: 0.4rem; }
h3 { font-size: 1.12rem; margin: 1.8rem 0 0.6rem; color: var(--subtext1); }
.content h4 { font-size: 1rem; margin: 1.4rem 0 0.5rem; color: var(--subtext1); }
h2 .hash { color: var(--surface2); font-family: var(--mono); font-weight: 400; margin-right: 0.4rem; }
.lead { font-size: 1.18rem; color: var(--subtext1); line-height: 1.6; }
p, li { color: var(--text); }
.muted { color: var(--subtext0); }
hr { border: none; border-top: 1px solid var(--surface0); margin: 2.5rem 0; }
strong { color: var(--text); }

/* ---------- Inline code & keycaps ---------- */
code {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--surface0); color: var(--peach);
  padding: 0.1em 0.38em; border-radius: 5px;
}
kbd {
  font-family: var(--mono); font-size: 0.82em; color: var(--text);
  background: var(--surface0);
  border: 1px solid var(--surface2);
  border-bottom-width: 2px;
  border-radius: 6px; padding: 0.12em 0.45em;
  box-shadow: 0 1px 0 var(--shadow); white-space: nowrap;
}
.keys kbd + kbd { margin-left: 0.15rem; }
.keys .then { color: var(--overlay1); font-family: var(--mono); font-size: 0.78em; margin: 0 0.25rem; }

/* ---------- Terminal-window code blocks ---------- */
.terminal { background: var(--crust); border: 1px solid var(--surface0); border-radius: 12px; margin: 1.3rem 0; overflow: hidden; box-shadow: 0 10px 30px -18px var(--shadow); }
.terminal .bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.6rem 0.8rem; background: var(--mantle); border-bottom: 1px solid var(--surface0); }
.terminal .bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal .bar .dot.r { background: var(--red); }
.terminal .bar .dot.y { background: var(--yellow); }
.terminal .bar .dot.g { background: var(--green); }
.terminal .bar .title { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.74rem; color: var(--overlay1); }
.terminal .bar .copy { margin-left: auto; }
.copy { background: transparent; border: 1px solid var(--surface1); color: var(--subtext0); font-family: var(--mono); font-size: 0.68rem; padding: 0.12rem 0.5rem; border-radius: 6px; cursor: pointer; }
.copy:hover { background: var(--surface0); color: var(--text); }
.copy.done { color: var(--green); border-color: var(--green); }
.terminal pre { margin: 0; padding: 0.95rem 1.1rem; overflow-x: auto; }
.terminal pre, .terminal code { font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; }
.terminal pre code { background: none; color: var(--text); padding: 0; }
.terminal .prompt { color: var(--green); user-select: none; }
.terminal .comment { color: var(--overlay0); }

/* ---------- Callouts ---------- */
.callout { border-radius: 10px; padding: 0.9rem 1.05rem; margin: 1.3rem 0; border-left: 3px solid var(--overlay1); background: color-mix(in srgb, var(--overlay1) 9%, transparent); }
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 0.3rem; }
.callout.tip { border-color: var(--green); background: color-mix(in srgb, var(--green) 11%, transparent); }
.callout.tip .label { color: var(--green); }
.callout.note { border-color: var(--sapphire); background: color-mix(in srgb, var(--sapphire) 11%, transparent); }
.callout.note .label { color: var(--sapphire); }
.callout.warn { border-color: var(--peach); background: color-mix(in srgb, var(--peach) 12%, transparent); }
.callout.warn .label { color: var(--peach); }
.callout.key { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.callout.key .label { color: var(--accent); }

/* ---------- Tool cards (overview) ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin: 1.5rem 0; }
.card { background: var(--mantle); border: 1px solid var(--surface0); border-radius: 12px; padding: 1.1rem; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.card .ct { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--overlay1); }
.card h3 { margin: 0.25rem 0 0.4rem; color: var(--text); font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.9rem; color: var(--subtext0); }


/* ---------- Learning path components ---------- */
.arc,
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--surface1);
  border-radius: 12px;
  overflow: hidden;
  margin: 1.4rem 0;
  background: var(--surface1);
}
.arc > div,
.two > div {
  padding: 1.1rem 1.2rem;
  background: var(--mantle);
}
.arc .floor,
.two .floor { background: color-mix(in srgb, var(--green) 9%, var(--mantle)); }
.arc .ceiling,
.two .ceiling { background: color-mix(in srgb, var(--mauve) 11%, var(--mantle)); }
.arc h3,
.two h3,
.arc h4,
.two h4,
.two .panel-title { margin: 0.15rem 0 0.4rem; color: var(--text); }
.two .panel-title { font-size: 1.12rem; font-weight: 700; }
.arc .floor h3,
.two .floor h3,
.arc .floor h4,
.two .floor h4,
.two .floor .panel-title { color: var(--green); }
.arc .ceiling h3,
.two .ceiling h3,
.arc .ceiling h4,
.two .ceiling h4,
.two .ceiling .panel-title { color: var(--mauve); }
.arc .tag,
.two .tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--overlay1);
}
.arc p,
.two p { font-size: 0.92rem; color: var(--subtext0); margin: 0.4rem 0 0; }

.stages { margin: 1.2rem 0; }
.stage {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--surface0);
}
.stage .n,
.stage .num {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  margin-top: 0.1rem;
}
.stage .body { min-width: 0; }
.stage .t { font-weight: 700; color: var(--text); }
.stage .when { font-size: 0.88rem; color: var(--peach); margin-top: 0.1rem; }
.stage .d { font-size: 0.94rem; color: var(--subtext0); margin-top: 0.2rem; }

.trigger {
  background: color-mix(in srgb, var(--peach) 10%, var(--mantle));
  border: 1px solid color-mix(in srgb, var(--peach) 40%, transparent);
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  margin: 0.85rem 0 1.25rem;
  color: var(--subtext1);
  font-size: 0.94rem;
}
.trigger b {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--peach);
}
.reach {
  margin: 0.55rem 0 1.55rem;
  padding-left: 0.85rem;
  border-left: 2px solid var(--surface1);
  color: var(--subtext0);
  font-size: 0.94rem;
}
.reach b { color: var(--text); }
.stageblock { padding-bottom: 0.75rem; border-bottom: 1px solid var(--surface0); }

.chop { border-bottom: 1px solid var(--surface0); padding: 0.95rem 0; }
.chop .h { display: flex; gap: 0.65rem; align-items: baseline; }
.chop .k {
  flex: none;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
}
.chop .t { font-weight: 700; color: var(--text); }
.chop p { margin: 0.35rem 0 0; font-size: 0.94rem; color: var(--subtext0); }
.chop .do { color: var(--peach); }
.links a { display: inline-block; margin: 0.2rem 0.8rem 0.2rem 0; }
blockquote {
  margin: 1.2rem 0;
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-left: 3px solid var(--accent);
  color: var(--subtext1);
  font-size: 1.04rem;
}
blockquote cite {
  display: block;
  margin-top: 0.35rem;
  color: var(--overlay1);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-style: normal;
}

@media (max-width: 720px) {
  .arc,
  .two { grid-template-columns: 1fr; }
}


/* ---------- Interest track lesson blocks ---------- */
.prompt-card,
.concept,
.yourturn {
  border-radius: 9px;
  padding: 0.7rem 0.9rem;
  margin: 0.7rem 0;
  font-size: 0.94rem;
}
.prompt-card {
  background: var(--crust);
  border: 1px solid var(--surface1);
  color: var(--subtext1);
  font-family: var(--mono);
  line-height: 1.55;
}
.prompt-card .who,
.concept b,
.yourturn b {
  display: block;
  margin-bottom: 0.28rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.prompt-card .who { color: var(--blue); }
.concept {
  border: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
  background: color-mix(in srgb, var(--green) 9%, var(--mantle));
}
.concept b { color: var(--green); }
.yourturn {
  border-left: 3px solid var(--peach);
  background: var(--mantle);
  border-radius: 0 9px 9px 0;
  color: var(--subtext0);
  margin-bottom: 1.6rem;
}
.yourturn b { color: var(--peach); }
h2 .num {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  margin-right: 0.45rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
}


/* ---------- Game track milestone cards ---------- */
.build {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.build div {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 9px;
  padding: 0.65rem 0.75rem;
  color: var(--subtext1);
  font-size: 0.9rem;
}
.build .d {
  display: block;
  margin-bottom: 0.18rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: color-mix(in srgb, var(--sapphire) 11%, var(--mantle));
  border: 1px dashed color-mix(in srgb, var(--sapphire) 45%, transparent);
  border-radius: 9px;
  padding: 0.58rem 0.9rem;
  margin: 0.7rem 0 1.7rem;
  color: var(--subtext1);
  font-size: 0.92rem;
}
.check .ico { color: var(--sapphire); font-weight: 700; }
.check b {
  color: var(--sapphire);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-right: 0.25rem;
}

/* ---------- Key reference table ---------- */
.keytable { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.94rem; }
.keytable td { padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--surface0); vertical-align: top; }
.keytable td:first-child { white-space: nowrap; width: 1%; }
.keytable tr:hover { background: var(--mantle); }

/* ---------- Practice drills ---------- */
.drill { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--surface0); }
.drill .num { flex: none; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 0.85rem; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.drill .body { min-width: 0; }
.drill .body p:first-child { margin-top: 0; }
.drill h3 { margin: 0.1rem 0 0.4rem; }

/* ---------- Diagram ---------- */
.diagram { margin: 1.6rem 0; padding: 1.2rem; background: var(--mantle); border: 1px solid var(--surface0); border-radius: 12px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram figcaption { font-size: 0.82rem; color: var(--subtext0); text-align: center; margin-top: 0.7rem; }

/* ---------- Hero (overview) ---------- */
.hero { padding: 1rem 0 0.5rem; }
.hero .prompt-line { font-family: var(--mono); color: var(--green); font-size: 0.9rem; margin-bottom: 1rem; }
.hero .prompt-line .cursor { display: inline-block; width: 0.6ch; background: var(--green); animation: blink 1.1s steps(1) infinite; color: transparent; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Footer & page nav ---------- */
.pagenav,
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--surface0); }
.pagenav a,
.pager a { display: block; font-size: 0.92rem; }
.pagenav .dir,
.pager .lab { display: block; font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--overlay0); }
footer.site { color: var(--overlay0); font-size: 0.82rem; margin-top: 2.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Quick reference card ---------- */
.quickref { border: 1px solid var(--surface1); border-radius: 12px; padding: 1.05rem 1.2rem; margin: 1.6rem 0; background: var(--mantle); }
.quickref .qr-label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.85rem; }
.quickref-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.8rem; }
.quickref-section h3,
.quickref-heading { margin: 0 0 0.35rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtext0); font-weight: 700; }
.quickref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1.8rem; }
.quickref-sections .quickref-grid { grid-template-columns: 1fr; gap: 0; }
.quickref-grid .qr { display: flex; gap: 0.7rem; align-items: baseline; padding: 0.32rem 0; border-bottom: 1px solid var(--surface0); font-size: 0.9rem; }
.quickref-grid .qr .keys { flex: none; white-space: nowrap; }
.quickref-grid .qr .act { color: var(--subtext1); }
@media (max-width: 720px) { .quickref-sections { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .quickref-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .topbar { display: flex; }
  .sidebar { position: fixed; z-index: 30; top: 0; left: 0; width: 82%; max-width: 320px; transform: translateX(-100%); transition: transform 0.2s ease; }
  .sidebar.open { transform: translateX(0); }
  .scrim { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 25; }
  .scrim.show { display: block; }
  .content { padding: 2rem 1.2rem 4rem; }
  h1 { font-size: 1.8rem; }
}
