/* DSO Central marketing site. Design rules from CLAUDE.md:
   Atkinson Hyperlegible Next, zinc neutrals, one accent, 1px borders, no gradients or glass. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2') format('woff2');
}

:root {
  --bg: #fafafa;          /* zinc-50 */
  --surface: #ffffff;
  --band: #f4f4f5;        /* zinc-100 */
  --text: #18181b;        /* zinc-900 */
  --muted: #52525b;       /* zinc-600 */
  --border: #e4e4e7;      /* zinc-200 */
  /* the app's Sky (Nov 25 2026): the logo's sky, a shade deeper so white text on it
     is 5.2:1 */
  --accent: #0272b0;
  --accent-hover: #02679e;
  --on-accent: #ffffff;
  --radius: 8px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;        /* zinc-950 */
    --surface: #18181b;   /* zinc-900 */
    --band: #111113;
    --text: #f4f4f5;      /* zinc-100 */
    --muted: #a1a1aa;     /* zinc-400 */
    --border: #27272a;    /* zinc-800 */
    /* the logo's dark-mode sky; #09090b text on it is 9.3:1 */
    --accent: #38bdf8;
    --accent-hover: #56c7f9;
    --on-accent: #09090b;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Atkinson Hyperlegible Next', ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }

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

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--surface); padding: 0.5rem 1rem; border: 1px solid var(--border); }
.skip:focus { left: 0.5rem; z-index: 10; }

/* Header */
.bar { border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; z-index: 5; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.wordmark { font-weight: 700; font-size: 1.25rem; color: var(--text); text-decoration: none; }
.wordmark:hover { color: var(--text); }
nav { display: flex; align-items: center; gap: 1.5rem; }
nav a:not(.button) { color: var(--muted); text-decoration: none; }
nav a:not(.button):hover { color: var(--text); }
@media (max-width: 640px) { nav a:not(.button) { display: none; } }

/* Buttons */
.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.button-small { padding: 0.45rem 0.9rem; font-size: 0.95rem; }
.button-quiet { background: transparent; color: var(--text); border-color: var(--border); }
.button-quiet:hover { background: var(--band); border-color: var(--border); color: var(--text); }

/* Sections */
section { padding: 4.5rem 0; }
.band { background: var(--band); border-block: 1px solid var(--border); }

.hero { padding: 6rem 0 5rem; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 0.95rem; margin-bottom: 1rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 60ch; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.two-col { display: grid; gap: 1rem 3rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1.4fr; } }
.two-col p { color: var(--muted); }

.grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.card p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border); border-radius: 50%; margin-bottom: 0.75rem; font-weight: 700; color: var(--accent); background: var(--surface); }
.steps p { color: var(--muted); margin: 0; }

.cta { text-align: center; }
.cta p { color: var(--muted); max-width: 55ch; margin-inline: auto; margin-bottom: 1.75rem; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.foot a { color: var(--muted); }

/* 404 */
.notfound { min-height: 60vh; display: grid; align-content: center; }
