/* Defense Domain website — the whole design, one file. No framework, no JavaScript, no external
   requests, no web fonts (the system face — this is a placeholder until the real design lands).
   Colour: paper, ink, one muted grey, one accent. Dark mode follows the reader's system setting. */

:root {
  --paper: #f7f8f7;
  --ink: #15191c;
  --muted: #5d666d;
  --accent: #3d5a3c;
  --measure: 34rem;
  --gutter: 1.25rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111416;
    --ink: #e4e8ea;
    --muted: #98a2a9;
    --accent: #9cbf98;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem var(--gutter);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ── the home page ───────────────────────────────────────────────────────────────────────── */

.hero {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.hero__heading {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.4rem, 1.8rem + 3vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* a short rule between the name and the line under it */
.hero__heading::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 1.5rem auto;
  background: var(--accent);
}

.hero__lead {
  margin: 0;
  color: var(--muted);
}

/* ── page not found ──────────────────────────────────────────────────────────────────────── */

.notfound {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
}

.notfound__code {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.notfound h1 {
  margin: 0.25rem 0 1rem;
  font-weight: 700;
  font-size: clamp(1.75rem, 1.4rem + 2vw, 2.5rem);
  line-height: 1.15;
}

.notfound p {
  margin: 0 0 1rem;
}

/* ── footer ──────────────────────────────────────────────────────────────────────────────── */

.colophon {
  padding: 2rem var(--gutter) 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875em;
}
