/* Vanguard Data — site design tokens and shared components.
   Idea: the product reads public DNS records, so the record itself is the visual material.
   Cool "inspection paper" ground, deep ink, one signal colour for gaps, one for passes. */
/* Self-hosted fonts (SIL Open Font License): Archivo variable (width + weight), IBM Plex Sans/Mono. */
@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo-var.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --ink: #13203a;
  --ink-2: #2b3a57;
  --paper: #edf0f4;
  --sheet: #ffffff;
  --rule: #cdd4de;
  --muted: #5d6b82;
  --signal: #d9461f;      /* a gap */
  --signal-soft: #fbe5dc;
  --pass: #1f7a63;        /* a fix / a pass */
  --pass-soft: #dcefe8;
  --focus: #2457d6;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --record: 'IBM Plex Mono', ui-monospace, monospace;
  --measure: 66ch;
  --r-sm: 4px;
  --r-lg: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--focus); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.prose { max-width: var(--measure); }
.prose p, .prose li { color: var(--ink-2); }

/* ---- type ---- */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.2rem); line-height: .98; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.04; font-weight: 750; font-stretch: 108%; letter-spacing: -.012em; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 700; font-stretch: 100%; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.small { font-size: .875rem; color: var(--muted); }

/* ---- header / footer ---- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.mark { font-family: var(--display); font-weight: 850; font-stretch: 125%; font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.mark svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 8px 12px; font: inherit; }
.site-foot { margin-top: 120px; border-top: 1px solid var(--rule); padding: 48px 0 64px; font-size: .9rem; color: var(--muted); }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-foot a { color: var(--ink-2); text-decoration: none; display: block; margin: 4px 0; }
.site-foot h4 { font: 600 .9rem var(--body); color: var(--ink); margin: 0 0 8px; }

/* ---- buttons / forms ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--body); padding: 13px 22px; border-radius: var(--r-sm); border: 2px solid var(--ink); background: var(--ink); color: #fff; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ink-2); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--sheet); color: var(--ink); }
.btn[disabled] { opacity: .55; cursor: progress; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field label { font-size: .9rem; font-weight: 500; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--sheet); border: 1.5px solid var(--rule); border-radius: var(--r-sm); padding: 11px 13px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: 6px 0 14px; }
.consent input { width: auto; margin-top: 4px; }
.error { color: var(--signal); font-size: .92rem; min-height: 1.3em; }

/* ---- the DNS record: the core visual element ---- */
.record { font-family: var(--record); font-size: .9rem; line-height: 1.55; background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: var(--r-sm); padding: 12px 14px; overflow-wrap: anywhere; }
.record .host { color: var(--muted); display: block; font-size: .78rem; }
.record.gap { border-left-color: var(--signal); }
.record.ok { border-left-color: var(--pass); }
.record mark { background: var(--signal-soft); color: var(--signal); padding: 0 2px; border-radius: 2px; }
.record .missing { color: var(--signal); font-style: italic; }

/* ---- grade stamp: the one loud thing ---- */
.stamp { font-family: var(--display); font-weight: 900; font-stretch: 62%; line-height: .8; font-size: clamp(9rem, 22vw, 15rem); letter-spacing: -.04em; }
.stamp[data-g="A"], .stamp[data-g="B"] { color: var(--pass); }
.stamp[data-g="C"], .stamp[data-g="D"], .stamp[data-g="F"] { color: var(--signal); }

.pill { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--sheet); border: 1px solid var(--rule); }
.pill.gap { background: var(--signal-soft); border-color: transparent; color: var(--signal); }
.pill.ok { background: var(--pass-soft); border-color: transparent; color: var(--pass); }

.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.section { padding: clamp(64px, 9vw, 120px) 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--paper); padding: 16px 24px 24px; border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .site-head .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .site-foot .wrap { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
