@font-face {
  font-family: "Archivo";
  src: url("/static/fonts/archivo-var.woff2") format("woff2-variations");
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #0b0f14; --fg: #e6edf3; --muted: #93a0af; --accent: #3dd7a0;
  --accent-dim: #2aa87c; --border: #1c242e; --surface: #10161e;
  --maxw: 60rem; --measure: 42rem;
  --display: "Archivo", system-ui, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f7f9fb; --fg: #0e1621; --muted: #4e5a68; --accent: #0f9d6b;
  --accent-dim: #0c7a54; --border: #dde4ec; --surface: #eef2f6;
}

* { box-sizing: border-box; }
html { scrollbar-color: var(--border) var(--bg); }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--fg); font-family: var(--font);
  line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

main { max-width: var(--maxw); margin: 0 auto; padding: 1rem 1.25rem 4rem; }
a { color: var(--accent-dim); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:root:not([data-theme="light"]) a:not(.btn) { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }

.site-header, .site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.site-header nav { display: flex; gap: 1.25rem; align-items: center; }
.site-header nav a { color: var(--muted); font-size: .95rem; text-decoration: none; }
.site-header nav a:hover { color: var(--fg); }
.brand-group { display: flex; align-items: baseline; gap: .9rem; min-width: 0; }
.brand {
  font-family: var(--display); font-weight: 700; font-stretch: 115%;
  font-size: 1.2rem; color: var(--fg); letter-spacing: -.01em; text-decoration: none;
}
.brand-dot { color: var(--accent); }
.brand-title {
  color: var(--muted); font-size: .9rem; white-space: nowrap;
  border-left: 1px solid var(--border); padding-left: .9rem;
}
@media (max-width: 46rem) { .brand-title { display: none; } }
.theme-toggle {
  background: none; border: 1px solid var(--border); color: var(--fg);
  border-radius: 6px; cursor: pointer; padding: .15rem .5rem; line-height: 1;
  font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--muted); }
.site-footer {
  color: var(--muted); font-size: .9rem; justify-content: flex-end;
  border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem;
}
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--fg); }

.btn {
  display: inline-block; border-radius: 8px; padding: .65rem 1.25rem;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  font-family: var(--display);
}
.btn-primary { background: var(--accent); color: #06130d; }
.btn-primary:hover { background: var(--accent-dim); color: #06130d; text-decoration: none; }
.quiet-link { font-size: 1rem; }

.section-title {
  font-size: 1.9rem; font-weight: 700; font-stretch: 115%;
  letter-spacing: -.02em; margin: 0 0 .5rem;
}
.section-lede { color: var(--muted); margin: 0 0 2rem; max-width: var(--measure); }
