/* M10 International. Gunmetal ground, light gray accents, one figure. Shares its tokens with Signal Agency. */
:root {
  --bg: #2C3539;
  --ink: #EEF1F3;
  --muted: #AEB8BF;
  --rule: #434D53;
  --field: #242C30;
  --accent: #D9DFE3;
  --accent-ink: #1E2529;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-0: 0.9rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.25rem;
  --fs-3: 1.5rem;
  --fs-4: clamp(2.4rem, 1.4rem + 4vw, 4rem);
  --wrap: 64rem;
  --gap: clamp(3rem, 8vw, 6rem);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-1) / 1.55 var(--font);
}
svg { display: block; }
a {
  color: inherit;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.5rem 0.75rem;
  border-radius: var(--r);
}
.skip:focus { left: 0.5rem; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2.5rem);
}

/* Top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.25rem;
}
.mark { font-weight: 600; text-decoration: none; font-size: var(--fs-2); white-space: nowrap; }
.top nav { display: flex; gap: 1.5rem; flex-shrink: 0; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }

/* Statement and field */
.hero { padding-top: var(--gap); }
h1 {
  font-size: var(--fs-4);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
}
.lead {
  font-size: var(--fs-2);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
}
.field { margin: 3rem 0 0; border-bottom: 1px solid var(--rule); }
.field svg { width: 100%; height: auto; }
.field .grid line { stroke: var(--rule); stroke-width: 1; opacity: 0.55; }
.field .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.6s cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
}
.field .line:nth-child(1), .field .line:nth-child(2) { animation-delay: 0.15s; }
.field .line:nth-child(3), .field .line:nth-child(4) { animation-delay: 0.35s; opacity: 0.9; }
.field .line:nth-child(5), .field .line:nth-child(6) { animation-delay: 0.55s; opacity: 0.8; }
.field .line:nth-child(7), .field .line:nth-child(8) { animation-delay: 0.75s; opacity: 0.7; }
.field .line:nth-child(9), .field .line:nth-child(10) { animation-delay: 0.95s; opacity: 0.6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (max-width: 40rem) {
  .field .line { stroke-width: 3.2; }
  .field .grid line { stroke-width: 2; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .field .line { animation: none; stroke-dashoffset: 0; }
}

/* Sections */
.ledger, .contact { padding-top: var(--gap); }
.contact { padding-bottom: var(--gap); }
h2 { font-size: var(--fs-3); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 1.5rem; }

/* Ledger */
dl { margin: 0; border-top: 1px solid var(--rule); }
dl > div {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 0.25rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}
dt, dd { margin: 0; }
dt { font-weight: 600; }
dd { color: var(--muted); max-width: 60ch; }
@media (max-width: 40rem) {
  dl > div { grid-template-columns: 1fr; }
}

/* Contact */
.contact p { margin: 0 0 0.5rem; color: var(--muted); }
.email a { color: var(--ink); font-size: var(--fs-2); overflow-wrap: anywhere; }

/* Prose pages */
.prose { padding-top: var(--gap); padding-bottom: var(--gap); }
.prose h1 { font-size: var(--fs-3); font-weight: 600; max-width: none; margin-bottom: 1rem; }
.prose p { max-width: 60ch; margin: 0 0 1rem; color: var(--muted); }
.prose a { color: var(--ink); }

/* Colophon */
.colophon ul {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  color: var(--muted);
  font-size: var(--fs-0);
}
