:root {
  color-scheme: light;
  --page: #fcfaf8;
  --card: #ffffff;
  --surface: #fefdfc;
  --sunken: #f7f3ef;
  --sunken-strong: #efe9e3;
  --border: #ece5df;
  --field-border: #9a887e;
  --divider: #f3eee9;
  --grid: #f3eee9;
  --ink: #b23724;
  --on-ink: #ffffff;
  --text: #2b1d17;
  --text-2: #6b5a52;
  --text-muted: #76665e;
  --subtle: #76665e;
  --accent: #fceae6;
  --on-accent: #b23724;
  --nav-active: #f7f3ef;
  --success: #259b8d;
  --success-soft: #e7f4f1;
  --success-text: #1b7268;
  --warning: #b8802d;
  --warning-text: #885f22;
  --scheduled: #b8802d;
  --best: #faf1de;
  --danger: #b3261e;
  --danger-soft: #fbe9e6;
  --on-danger: #ffffff;
  --ai: #9a6bc4;
  --ai-soft: #f2ebf9;
  --ai-text: #7a4ba6;
  --info-soft: #f4f0ec;
  --info-text: #5e4d45;
  --coral: #e8482f;
  --chart-bar: #f6d9d1;
  --chart-bar-strong: #e8482f;
  --chart-line: #e8482f;
  --chart-2: #259b8d;
  --chart-3: #9a6bc4;
  --chart-4: #b8802d;
  --ring: #b23724;
  --main: #d5422b;
  --on-main: #ffffff;
  --hero: #ffffff;
  --hero-border: #ece5df;
  --selected-line: #e4dad2;
  --heat-0: #f7f3ef;
  --heat-1: #fbe3db;
  --heat-2: #f5bfb0;
  --heat-3: #ec8a72;
  --heat-4: #c4412b;
  --elev-sm: 0 1px 2px rgb(43 29 23 / 0.05);
  --elev-pin: 0 10px 22px rgb(43 29 23 / 0.1);
  --elev-popover: 0 8px 24px -6px rgb(43 29 23 / 0.1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; }
.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding-top: env(safe-area-inset-top);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.brand span { color: var(--text-muted); font-weight: 500; margin-left: 6px; }
.app-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; }
main { padding: 24px 0 48px; }
h1 { font-size: 1.625rem; line-height: 1.25; margin: 0 0 8px; }
h2 { font-size: 1.1875rem; margin: 28px 0 8px; }
h3 { font-size: 1rem; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.lead { color: var(--text-2); font-size: 1.0625rem; }
.muted { color: var(--text-muted); font-size: 0.875rem; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; background: var(--sunken-strong); padding: 1px 5px; border-radius: 6px; }
pre { background: var(--sunken-strong); padding: 12px; border-radius: 10px; overflow-x: auto; }
pre code { background: none; padding: 0; }
.table { overflow-x: auto; margin: 0 0 12px; }
table { border-collapse: collapse; width: 100%; font-size: 0.875rem; }
th, td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.crumbs { font-size: 0.875rem; margin-bottom: 12px; }
.crumbs a { display: inline-flex; min-height: 44px; min-width: 44px; align-items: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin: 16px 0; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { margin: 0; border-top: 1px solid var(--divider); }
.list li:first-child { border-top: 0; }
.list a { display: block; padding: 10px 0; text-decoration: none; min-height: 44px; }
.list a strong { display: block; color: var(--text); }
.list a span { display: block; color: var(--text-muted); font-size: 0.875rem; }
.search label { display: block; font-weight: 600; margin-bottom: 6px; }
.search input {
  width: 100%; min-height: 48px; font: inherit; font-size: 1rem;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text);
}
.categories h2 { font-size: 1.0625rem; margin: 0 0 4px; }
.help-cta { background: var(--hero); color: var(--text); border: 1px solid var(--hero-border); border-radius: 16px; padding: 16px; margin-top: 32px; }
.help-cta a { color: var(--ink); }
video.guide { display: block; width: 100%; height: auto; margin: 16px 0 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--sunken-strong); }
.transcript { padding-left: 0; list-style: none; }
.transcript li { display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--divider); margin: 0; }
.transcript li:first-child { border-top: 0; }
.transcript .time { flex: none; min-width: 3ch; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.watch a { display: inline-flex; min-height: 44px; align-items: center; }
footer.site { border-top: 1px solid var(--border); padding: 20px 0 max(20px, env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
  main { padding: 40px 0 64px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
