/* ==========================================================================
   ERFKERN — SHARED STYLESHEET
   Used by index.html, privacy.html, help.html
   No external fonts, no external requests. Everything on this site loads
   from this server. That is a deliberate privacy choice, not an oversight.
   ========================================================================== */

:root {
  /* Colour tokens — Belgium (black/gold/red) + NZ (blue/red/white) only.
     Do not add colours outside this list without checking against the
     brand rule first. */
  --bg: #ffffff;
  --ink: #101820;       /* body text */
  --ink-soft: #4b5560;  /* secondary text */
  --navy: #1b2a4a;      /* headings, nav, primary actions */
  --gold: #c9a227;      /* sparse accent only — hover, small marks */
  --red: #a6192e;       /* status dots, one accent only */
  --line: #e4e4e4;      /* borders, dividers */
  --bg-soft: #f7f7f8;   /* card background */

  --font-body: -apple-system, "Segoe UI", Inter, Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --max-width: 760px;
}

* {
  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(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav.site-nav {
  display: flex;
  gap: 28px;
}

nav.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

nav.site-nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline-color: var(--gold);
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 40px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
}

.btn:hover {
  background: #142038;
}

.btn.secondary {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  margin-left: 12px;
}

.btn.secondary:hover {
  background: var(--bg-soft);
}

/* ---------- Infrastructure strip (signature element) ---------- */

.infra-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 14px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.infra-strip .wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.infra-strip .sep {
  color: var(--line);
}

/* ---------- Section headings ---------- */

section {
  padding: 56px 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

section h2 {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 32px;
}

/* ---------- App cards ---------- */

.app-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px 24px;
  margin-bottom: 16px;
}

.app-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.app-card h3 {
  margin: 0;
  font-size: 19px;
  color: var(--navy);
}

.status {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.status.live::before { background: #2f8f4e; }
.status.build::before { background: var(--gold); }
.status.planned::before { background: var(--red); }

.app-card p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Why section (three principles) ---------- */

.principles {
  display: grid;
  gap: 24px;
}

.principle .num {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 6px;
}

.principle h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}

.principle p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Simple content pages (privacy / help) ---------- */

.page-content h1 {
  color: var(--navy);
  font-size: 30px;
  margin-top: 40px;
}

.page-content h2 {
  color: var(--navy);
  font-size: 20px;
  margin-top: 36px;
}

.page-content p, .page-content li {
  color: var(--ink);
  font-size: 16px;
}

.page-content .meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- Footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 20px;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

footer.site-footer a {
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
}

footer.site-footer a:hover {
  color: var(--navy);
  text-decoration: underline;
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .hero { padding: 40px 0 28px; }
  .btn.secondary { margin-left: 0; margin-top: 10px; display: block; width: fit-content; }
  footer.site-footer .wrap { flex-direction: column; }
}

/* Layout is single-column and fluid (one breakpoint at 520px); manually
   checked container-width vs. font-size math at 320/480/768/1024px and
   found no overflow, worst case being the "In build · Spring 2026"
   status badge. Not yet visually confirmed in an actual browser — do a
   quick real check before launch. The infra-strip's horizontal scroll
   on narrow screens is intentional (signature element), not a bug. */
