:root {
  --bg: #ffffff;
  --fg: #1a1f2b;
  --muted: #4a5568;
  --brand: #1d4ed8;
  --brand-fg: #ffffff;
  --line: #d9dee7;
  --surface: #f3f5f9;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --fg: #e8ecf4;
    --muted: #aab3c5;
    --brand: #5b8cff;
    --brand-fg: #0f1420;
    --line: #2a3347;
    --surface: #171e2e;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 1rem 0; }
h2 { font-size: 1.4rem; margin-top: 2rem; }
a { color: var(--brand); }
.site-header, .site-footer { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); }
.site-footer { border-bottom: 0; border-top: 1px solid var(--line); flex-direction: column; align-items: flex-start; color: var(--muted); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.site-logo { font-weight: 700; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.site-btn { display: inline-block; padding: 0.6rem 1.1rem; border-radius: 0.5rem; background: var(--brand); color: var(--brand-fg); text-decoration: none; font-weight: 600; }
.site-cta { margin-top: 2.5rem; padding: 1.5rem; border-radius: 0.75rem; background: var(--surface); }
.site-note { margin: 1.5rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--brand); background: var(--surface); color: var(--muted); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.site-header { position: relative; }
.site-nav-toggle { font: inherit; padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--surface); color: var(--fg); cursor: pointer; }
.site-header nav { max-width: 100%; }
.site-nav-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav-item > button { font: inherit; background: none; border: 0; padding: 0.25rem 0; color: var(--fg); cursor: pointer; }
.site-nav-item > button::after { content: " \25BE"; }
.site-menu { display: none; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--bg); }
[data-menu-toggle][aria-expanded="true"] + .site-menu { display: block; }
.site-menu-title { display: block; margin: 0.5rem 0 0.25rem; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.site-menu ul { margin: 0; padding: 0; list-style: none; }
.site-menu li a { display: block; padding: 0.15rem 0; }
.site-menu li span { display: block; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 899px) {
  .site-header nav { display: none; flex-direction: column; align-items: flex-start; gap: 0.75rem; width: 100%; }
  [data-nav-toggle][aria-expanded="true"] ~ nav { display: flex; }
  .site-nav-list { flex-direction: column; align-items: flex-start; width: 100%; }
  .site-menu { width: 100%; }
}
@media (min-width: 900px) {
  .site-nav-toggle { display: none; }
  .site-nav-item { position: relative; }
  .site-menu { position: absolute; top: 100%; left: 0; z-index: 10; min-width: 22rem; max-width: 40rem; display: none; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1.5rem; }
  [data-menu-toggle][aria-expanded="true"] + .site-menu { display: grid; }
}
