/* base.css — Atelya shared tokens + reset + typography primitives
   The ONLY file allowed to contain raw hex values. */

:root {
  /* Shared Atelya palette */
  --color-navy:        #241A16;
  --color-navy-darker: #241A16;
  --color-offwhite:    #F1EDE6;
  --color-slate:       #A3AEB8;
  --color-pale:        #CACECF;
  --color-dark:        #241A16;
  --color-mid:         #A3AEB8;
  --color-light-bg:    #F1EDE6;

  /* Kastenlab accent — set here for the base; brand.css can override */
  --color-accent:        #D1C7BD;
  --color-accent-light:  #CBAD8D;

  /* Typography */
  --font-wordmark: 'Bodoni Moda', Georgia, serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-nav:     'Oswald', system-ui, sans-serif;
  --font-body:    'Manrope', system-ui, sans-serif;
  --font-mono:    'Share Tech Mono', ui-monospace, monospace;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Timing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.5, 0, 1, 0.5);
  --dur-fast: 150ms;
  --dur-mid:  300ms;
  --dur-slow: 600ms;

  /* Layout */
  --maxw: 1320px;
  --gutter: clamp(20px, 5vw, 60px);
}

/* Screen-reader only — visueel verborgen maar leesbaar voor zoekmachines */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
  color: rgba(47, 65, 86, 0.70);
  background-color: #F1EDE6;
  background-image: radial-gradient(circle at 1px 1px, rgba(163,174,184,0.08) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

p { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 1000;
  transition: top var(--dur-mid) var(--ease-out);
}
.skip-link:focus { top: 0; outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Focus ring — applies to every interactive element */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Utility helpers */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
}

.on-dark { color: #fff; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark .eyebrow { color: var(--color-accent-light); }

/* Sections */
section { position: relative; }

.section {
  padding: clamp(60px, 8vw, 120px) 0;
}

.section-light {
  background-color: var(--color-offwhite);
  background-image: radial-gradient(circle at 1px 1px, rgba(163,174,184,0.18) 1px, transparent 0);
  background-size: 28px 28px;
}

.section-warm {
  background-color: var(--color-light-bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(163,174,184,0.14) 1px, transparent 0);
  background-size: 28px 28px;
}

.section-dark {
  background-color: var(--color-navy);
  background-image: radial-gradient(circle at 1px 1px, rgba(163,174,184,0.14) 1px, transparent 0);
  background-size: 28px 28px;
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .eyebrow { color: var(--color-accent-light); }

/* Type scale helpers (used sparingly — most type set on the component) */
.t-display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.t-display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.t-display-m {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.t-body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(13px, 1.1vw, 15px);
  line-height: 1.7;
}
.t-caption {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}

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