/* fietsendrageronline.nl — design tokens */

:root {
  /* Color — base */
  --bg: #FAFAF7;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F2F1EC;
  --bg-muted: #ECEAE3;

  /* Color — text */
  --text: #1C1F1E;
  --text-muted: #5C615F;
  --text-subtle: #898E8B;
  --text-inverse: #FAFAF7;

  /* Color — borders */
  --border: #E5E2D9;
  --border-strong: #CFCBC0;
  --border-focus: #2E8571;

  /* Color — accent (overridable via Tweaks) */
  --accent: #2E8571;            /* zeegroen */
  --accent-hover: #246B5A;
  --accent-soft: #E4F0EC;
  --accent-tint: #F0F7F4;
  --accent-ink: #133E33;

  /* Color — semantic */
  --warn: #E8B34B;              /* warm zand: aanbiedingen / best verkocht */
  --warn-soft: #FBF1DA;
  --warn-ink: #6B4A0E;

  --success: #4F9D5A;            /* op voorraad */
  --success-soft: #E5F1E7;
  --success-ink: #1F4427;

  --danger: #C0533F;
  --danger-soft: #F6E2DD;

  /* Star color */
  --star: #E8B34B;
  --star-empty: #E5E2D9;

  /* Type */
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 36px;
  --fs-4xl: 48px;
  --fs-5xl: 64px;

  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 56px;
  --sp-10: 80px;
  --sp-11: 112px;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* Shadow — max 3 layers per system prompt */
  --sh-1: 0 1px 2px rgba(28, 31, 30, 0.04), 0 1px 1px rgba(28, 31, 30, 0.02);
  --sh-2: 0 4px 12px rgba(28, 31, 30, 0.06), 0 2px 4px rgba(28, 31, 30, 0.03);
  --sh-3: 0 14px 32px rgba(28, 31, 30, 0.10), 0 4px 8px rgba(28, 31, 30, 0.04);
  --sh-focus: 0 0 0 3px var(--accent-soft);

  /* Layout */
  --container: 1280px;
  --header-h: 72px;
  --transition: 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

h1 { font-size: var(--fs-4xl); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-2xl); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); }

p { margin: 0; }

/* Utility */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-subtle); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
