/* ============================================================
   Nautische Nomade — Design system (tokens + base)
   Gedeeld door alle pagina's. Overgenomen uit de demo-bundel.
   ============================================================ */

:root {
  /* ---- Base: warm neutrals ---- */
  --ink-900: #1E1A14;
  --ink-800: #2B251C;
  --ink-700: #3A332A;
  --ink-500: #5B5142;
  --ink-300: #8B8170;

  --sand-400: #CFC2A9;
  --sand-300: #DBD0BA;
  --sand-200: #E8DFCD;
  --paper:    #F4EEE2;
  --paper-2:  #ECE2D0;
  --card:     #FBF7EE;
  --white:    #FFFDF8;

  /* ---- Brand accents ---- */
  --terracotta-700: #8F3A24;
  --terracotta-600: #A6452C;
  --terracotta-500: #C25A3D;
  --terracotta-400: #D27A5E;
  --terracotta-200: #ECC4B2;
  --terracotta-100: #F4DDD0;

  --olive-700: #3F4530;
  --olive-600: #4D5439;
  --olive-500: #5E6443;
  --olive-300: #9AA07F;
  --olive-200: #C9CCB2;
  --olive-100: #E4E5D2;

  --sea-700: #21413A;
  --sea-500: #3A655B;

  /* ---- Semantic aliases ---- */
  --bg: var(--paper);
  --bg-alt: var(--paper-2);
  --bg-dark: var(--ink-900);
  --surface: var(--card);

  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --text-subtle: var(--ink-300);
  --text-on-dark: #EFE6D6;
  --text-on-dark-muted: #B9AE9A;
  --text-on-accent: #FBF3EC;

  --border: var(--sand-300);
  --border-soft: var(--sand-200);
  --border-on-dark: rgba(239, 230, 214, 0.16);

  --accent: var(--terracotta-500);
  --accent-press: var(--terracotta-600);
  --accent-soft: var(--terracotta-100);
  --accent-2: var(--olive-500);
  --focus-ring: var(--terracotta-500);

  /* ---- Typography ---- */
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --step--2: clamp(0.69rem, 0.66rem + 0.15vw, 0.75rem);
  --step--1: clamp(0.83rem, 0.79rem + 0.2vw, 0.90rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.30vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.55vw, 1.45rem);
  --step-2:  clamp(1.44rem, 1.28rem + 0.90vw, 1.90rem);
  --step-3:  clamp(1.73rem, 1.48rem + 1.40vw, 2.55rem);
  --step-4:  clamp(2.07rem, 1.70rem + 2.10vw, 3.40rem);
  --step-5:  clamp(2.49rem, 1.95rem + 3.00vw, 4.60rem);

  --track-display: -0.035em;
  --track-label: 0.22em;
  --lh-tight: 1.06;
  --lh-body: 1.62;

  /* ---- Radii ---- */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* ---- Shadows & motion ---- */
  --shadow-sm: 0 2px 8px rgba(30, 26, 20, 0.07);
  --shadow-md: 0 12px 30px -12px rgba(30, 26, 20, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(30, 26, 20, 0.26);

  --ease-out: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 140ms;
  --dur-mid: 280ms;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
  margin: 0;
  color: var(--text);
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

::selection { background: var(--terracotta-200); color: var(--ink-900); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---- Mono kicker (signatuur-element) ---- */
.nn-kicker {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.nn-kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---- Film-grain overlay (donkere/foto-blokken) ---- */
.nn-grain { position: relative; }
.nn-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.10;
  mix-blend-mode: overlay;
  border-radius: inherit;
}

/* ---- Primaire knop ---- */
.nn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.nn-btn:hover { background: var(--accent-press); }
.nn-btn:active { transform: translateY(1px); }
.nn-btn--full { width: 100%; }
