/* ==========================================================================
   Nevion Labs — base styles
   Design tokens, reset, typography and layout utilities shared by every page.
   Load order on every page: base.css → components.css → pages/<page>.css
   ========================================================================== */

:root {
  /* Colour */
  --ink: #0B0B0B;
  --charcoal: #111111;
  --paper: #F5F5F3;
  --paper-2: #ECEBE5;
  --white: #FFFFFF;
  --red: #F12B2B;
  --red-deep: #1C1514;
  --rule: #DCDBD5;
  --rule-soft: #EEEDE9;
  --rule-strong: #CFCEC6;
  --line-dark: #222220;
  --line-dark-2: #33332F;
  --text: #2A2A28;
  --text-body: #1F1F1D;
  --muted: #6B6A66;
  --muted-2: #9C9B96;
  --muted-dark: #7A7974;
  --on-dark: #C9C8C2;
  --on-dark-2: #BDBCB6;

  /* Type */
  --font: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  /* Layout */
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --header-h: 76px;
  --section-y: clamp(56px, 7vw, 112px);

  /* Motion */
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 639.98px) {
  :root { --header-h: 64px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Page shell ---------- */
.page {
  min-height: 100vh;
  background: var(--paper);
  overflow-x: clip;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.container--article { max-width: 1100px; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* ---------- Typographic helpers ---------- */
.serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.text-red { color: var(--red); }
.text-muted { color: var(--muted); }

/* Small uppercase mono label, e.g. "01 / CUSTOMER" */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Little red square used before labels */
.dot {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--red);
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 16px;
  font-size: 14px;
}
.skip-link:focus { top: 12px; color: var(--white); }
