/* SiPiCo — site styles (design direction "B": Swiss / grotesque).
 * Type: Space Grotesk (display), Inter (body), JetBrains Mono (labels).
 * Served via Bunny Fonts — EU-hosted, no tracking, no cookies.
 * Palette lives in CSS custom properties so the theme toggle and
 * prefers-color-scheme can swap neutral tokens while brand colors stay
 * fixed.
 */

@import url('https://fonts.bunny.net/css?family=space-grotesk:400,500,600,700|inter:400,500,600,700|jetbrains-mono:400,500&display=swap');

:root {
  color-scheme: light dark;

  /* Brand — constant. */
  --orange: #E4572E;
  --green:  #A1C181;
  --blue:   #4F6D7A;

  /* Neutral tokens — light defaults. */
  --ink:     #0f1114;
  --muted:   #6a6e75;
  --subtle:  #a2a6ac;
  --bg:      #ffffff;
  --bg-alt:  #f8f9fa;
  --rule:    #eceef1;
  --header-bg: rgba(255,255,255,0.88);

  --display: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
             'Segoe UI', Roboto, sans-serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
             'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, 'SF Mono',
             Menlo, Consolas, 'Liberation Mono', monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:     #e6e8eb;
    --muted:   #9b9fa5;
    --subtle:  #65686d;
    --bg:      #0b0c0e;
    --bg-alt:  #14161a;
    --rule:    #1e2126;
    --header-bg: rgba(11,12,14,0.82);
  }
}
:root[data-theme="dark"] {
  --ink:     #e6e8eb;
  --muted:   #9b9fa5;
  --subtle:  #65686d;
  --bg:      #0b0c0e;
  --bg-alt:  #14161a;
  --rule:    #1e2126;
  --header-bg: rgba(11,12,14,0.82);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 0.22em; }
a:hover { color: var(--orange); }

.wrap {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 48rem) { .wrap { padding-inline: 2.5rem; } }

/* ---------- Header ---------- */
.site-header {
  padding-block: 1.125rem;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 5;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.625rem;
  text-decoration: none; color: inherit;
}
.brand .mark { width: 28px; height: 28px; display: block; }
.brand .word {
  font-family: var(--display); font-weight: 700;
  font-size: 1.125rem; letter-spacing: -0.02em;
}

.top-nav {
  display: flex; align-items: center; gap: 0.375rem;
  font-family: var(--mono); font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
}
.top-nav a { color: inherit; text-decoration: none; padding: 0.375rem 0.5rem; }
.top-nav a:hover { color: var(--orange); }
.theme-toggle {
  appearance: none; -webkit-appearance: none;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.375rem 0.625rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 0;
}
.theme-toggle:hover { background: var(--ink); color: var(--bg); }

/* ---------- Main + hero ---------- */
main { flex: 1; }

.hero { padding-block: 3rem 4rem; }
@media (min-width: 48rem) { .hero { padding-block: 6rem 6.5rem; } }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-weight: 500;
  font-size: 0.6875rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 0.875rem;
}
.eyebrow::before { content: "// "; color: var(--orange); }

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 1rem + 5vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 22ch;
}
.hero h1 .accent { color: var(--orange); }
.hero .lead {
  font-size: 1.0625rem; color: var(--ink);
  margin: 0 0 1rem; max-width: 50ch;
}
.hero .sub {
  font-size: 0.9375rem; color: var(--muted);
  margin: 0; max-width: 60ch;
}

/* ---------- Sections ---------- */
section { padding-block: 3.5rem; border-top: 1px solid var(--rule); }
@media (min-width: 48rem) { section { padding-block: 5rem; } }

section h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 22ch;
}

/* Focus — three cards with strong top rules at ≥56rem */
.focus .focus-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 56rem) {
  .focus .focus-grid {
    grid-template-columns: repeat(3, 1fr);
    border-top: none;
    gap: 1.5rem;
  }
}
.focus-item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .focus-item {
    padding: 1.5rem 0 0;
    border-top: 2px solid var(--ink);
    border-bottom: none;
  }
}
.focus-item .num {
  font-family: var(--mono); color: var(--orange);
  font-size: 0.875rem; letter-spacing: 0.04em;
}
.focus-item h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.25rem; letter-spacing: -0.01em;
  margin: 0.5rem 0; color: var(--ink);
  max-width: 22ch;
}
.focus-item p { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* Standards — two panels */
.standards-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 56rem) {
  .standards-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
.standard { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.standard .title {
  font-family: var(--display); font-weight: 600;
  font-size: 1.125rem; letter-spacing: -0.01em;
  color: var(--ink); margin: 0 0 0.125rem;
}
.standard .since {
  font-family: var(--mono); color: var(--muted);
  font-size: 0.8125rem; letter-spacing: 0.04em;
}
.standard p { margin: 0.75rem 0 0; color: var(--muted); }

/* Contact — small, same scale as h2's short line */
.contact .note {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.4; letter-spacing: -0.01em;
  margin: 0; max-width: 32ch;
}
.contact a { color: var(--orange); text-decoration-thickness: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--blue);                    /* brand blue-gray */
  color: rgba(255, 255, 255, 0.78);
  padding-block: 2.75rem 3rem;
  font-family: var(--body);
  font-size: 0.875rem;
  line-height: 1.75;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.site-footer address,
.site-footer .registration {
  font-style: normal;
  color: rgba(255, 255, 255, 0.92);
}
.site-footer a { color: rgba(255, 255, 255, 0.92); text-decoration-thickness: 1px; }
.site-footer a:hover { color: #ffffff; }
.site-footer .privacy {
  margin: 0;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.62);
  max-width: 52ch;
}

/* Tight-but-wide-enough: 2 columns.
 * Address on the left, KvK/VAT on the right; the privacy line spans
 * both columns below, centered and set smaller so it reads as a
 * footnote rather than a third pillar.
 */
@media (min-width: 40rem) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
  }
  .site-footer .privacy {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    font-size: 0.75rem;
    max-width: 50ch;
    margin-top: 0.5rem;
    padding-top: 1rem;
  }
}

/* Wide enough: 3 columns.
 * Left: address (default-aligned).
 * Middle: KvK/VAT, text-centered and justify-self centered so it
 *   sits on the page midline.
 * Right: privacy, right-aligned and anchored to the right edge —
 *   restored to full peer status (no longer a spanning footnote).
 */
@media (min-width: 56rem) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .site-footer .registration {
    text-align: center;
    justify-self: center;
  }
  .site-footer .privacy {
    grid-column: auto;
    justify-self: end;
    text-align: right;
    font-size: 0.875rem;          /* peer with address + registration */
    max-width: 32ch;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

/* ---------- Focus ring & motion ---------- */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
