:root {
  --hl-font: 'Golos Text', sans-serif;
  --hl-heading: 'Unbounded', sans-serif;
  --hl-mono: 'JetBrains Mono', monospace;
  --hl-bg: #f6f8f4;
  --hl-surface: #fff;
  --hl-surface-2: #edf1ea;
  --hl-ink: #141a1c;
  --hl-muted: #55636a;
  --hl-faint: #5f6d73;
  --hl-border: #dfe5df;
  --hl-border-strong: #aeb9b1;
  --hl-accent: #c8f03c;
  --hl-accent-text: #4a6600;
  --hl-on-accent: #0d1012;
  --hl-soft: #edf6cf;
  --hl-danger: #a52b37;
  --hl-danger-bg: #fff0ef;
  --hl-warn: #8a4b00;
  --hl-warn-bg: #fff0d4;
  color-scheme: light;
  font-family: var(--hl-font);
  color: var(--hl-ink);
  background: var(--hl-bg);
}
:root[data-theme='dark'] {
  --hl-bg: #0d1012;
  --hl-surface: #12171a;
  --hl-surface-2: #0f1315;
  --hl-ink: #e8ecea;
  --hl-muted: #a9b4b1;
  --hl-faint: #8c9895;
  --hl-border: #222a2e;
  --hl-border-strong: #3a454b;
  --hl-accent-text: #c8f03c;
  --hl-soft: #1b2410;
  --hl-danger: #ffa8ac;
  --hl-danger-bg: #311b20;
  --hl-warn: #ffb547;
  --hl-warn-bg: #2a2111;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --hl-bg: #0d1012; --hl-surface: #12171a; --hl-surface-2: #0f1315;
    --hl-ink: #e8ecea; --hl-muted: #a9b4b1; --hl-faint: #8c9895;
    --hl-border: #222a2e; --hl-border-strong: #3a454b;
    --hl-accent-text: #c8f03c; --hl-soft: #1b2410;
    --hl-danger: #ffa8ac; --hl-danger-bg: #311b20;
    --hl-warn: #ffb547; --hl-warn-bg: #2a2111; color-scheme: dark;
  }
}
body { font: 16px/1.55 var(--hl-font); background: var(--hl-bg); color: var(--hl-ink); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: var(--hl-accent-text); text-underline-offset: 4px; }
p { color: var(--hl-muted); }
button,input,select,textarea { font: inherit; }
button,a,summary { -webkit-tap-highlight-color: transparent; }
button,summary { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--hl-accent-text); outline-offset: 4px; }
h1,h2 { font-family: var(--hl-heading); font-weight: 700; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(30px,4vw,48px); line-height: 1.18; max-width: 1000px; }
h2 { font-size: clamp(22px,2.6vw,32px); line-height: 1.3; }
h3 { color: var(--hl-ink); line-height: 1.35; }
main { max-width: 1240px; padding: 48px 24px 80px; }
main > *, article, aside { min-width: 0; }
nav { min-height: 0; padding: 0; max-width: none; margin: 0; }
pre,code,kbd,samp { font-family: var(--hl-mono); }
pre { max-width: 100%; overflow-x: auto; }
img,video { max-width: 100%; }
.eyebrow { font: 12px/1.6 var(--hl-mono); letter-spacing: .05em; color: var(--hl-accent-text); }
.lead { font-size: 18px; line-height: 1.65; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 8px; background: var(--hl-accent); color: var(--hl-on-accent); font-weight: 600; text-align: center; }
.button:hover { background: var(--hl-accent); filter: brightness(.94); }
.button.secondary { background: transparent; border-color: var(--hl-border-strong); color: var(--hl-ink); }
.button.secondary:hover { border-color: var(--hl-accent-text); background: var(--hl-soft); }
.link { color: var(--hl-accent-text); }
input:not([type=checkbox]):not([type=radio]):not([class*="ant-"]),textarea:not([class*="ant-"]),select:not([class*="ant-"]) { max-width: 100%; background: var(--hl-surface); color: var(--hl-ink); border: 1px solid var(--hl-border-strong); border-radius: 8px; padding: 11px 13px; }
input:not([class*="ant-"])::placeholder,textarea:not([class*="ant-"])::placeholder { color: var(--hl-faint); opacity: 1; }
label { color: var(--hl-ink); }
.helptext { color: var(--hl-muted); }
.errorlist { color: var(--hl-danger); }
.notice { border: 1px solid var(--hl-border); background: var(--hl-soft); color: var(--hl-ink); padding: 14px 18px; border-radius: 8px; }
.error { background: var(--hl-danger-bg); color: var(--hl-danger); }
.site-header { background: var(--hl-bg); border-bottom: 1px solid var(--hl-border); }
.site-header-inner { max-width: 1240px; min-height: 80px; margin: auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--hl-ink); font: 700 18px/1.3 var(--hl-heading); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { display: inline-block; position: relative; width: 28px; height: 28px; flex: 0 0 28px; border: 2px solid var(--hl-accent-text); border-radius: 50%; overflow: hidden; }
.brand-mark::after { content: ''; position: absolute; inset: 0 0 0 50%; background: var(--hl-accent-text); }
.site-navigation { min-width: 0; }
.desktop-navigation,.native-navigation { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.desktop-navigation > a,.native-navigation > a,.native-navigation > button { min-height: 44px; padding: 10px 12px; display: inline-flex; align-items: center; color: var(--hl-muted); border-radius: 8px; }
.desktop-navigation > a[aria-current],.native-navigation > a[aria-current] { color: var(--hl-ink); background: var(--hl-surface-2); }
.nav-account { max-width: 180px; height: 44px; }
.nav-account span { overflow: hidden; text-overflow: ellipsis; }
.account-link { background: var(--hl-soft); }
.theme-picker { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--hl-border); border-radius: 8px; }
.theme-picker button { width: 32px; height: 36px; background: transparent; color: var(--hl-muted); border: 0; }
.theme-picker button[aria-pressed=true] { color: var(--hl-accent-text); background: var(--hl-soft); }
.mobile-navigation { display: none; }
.mobile-menu-links { display: flex; flex-direction: column; align-items: stretch; padding: 20px; gap: 8px; }
.mobile-menu-links > a,.mobile-menu-links > button { padding: 12px; color: var(--hl-ink); text-align: left; background: transparent; border: 0; }
.menu-role { color: var(--hl-muted); padding: 12px; font-size: 12px; }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 100; padding: 12px; color: var(--hl-on-accent); background: var(--hl-accent); }
.skip-link:focus { top: 8px; }
.site-footer { max-width: 1240px; margin: auto; padding: 40px 24px; border-top: 1px solid var(--hl-border); background: var(--hl-bg); display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; text-align: left; }
.site-footer p { font-size: 13px; max-width: 460px; margin: 0; }
.footer-caption { margin-left: auto; color: var(--hl-faint); font: 11px/1.8 var(--hl-mono); }
.prose p { color: var(--hl-ink); }
.empty-state { border: 1px dashed var(--hl-border-strong); padding: 32px; border-radius: 12px; color: var(--hl-muted); }
.empty-state h2 { color: var(--hl-ink); font-size: 22px; }
.course-tabs a { border-color: var(--hl-border-strong); border-radius: 8px; }
.course-tabs a[aria-current=page] { background: var(--hl-soft); border-color: var(--hl-accent-text); color: var(--hl-accent-text); }
@media(max-width:1100px) { .desktop-navigation { display: none; } .mobile-navigation { display: block; } .native-navigation { gap: 4px; } .site-header-inner:has([data-island-fallback]:not([hidden])) { flex-wrap: wrap; } }
@media(max-width:600px) { main { padding: 28px 18px 48px; } .site-header-inner { padding: 14px 18px; min-height: 72px; } .site-footer { padding: 32px 18px; gap: 24px; } .footer-caption { margin-left: 0; } .brand { font-size: 16px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
