
/* =========================================================
   kayhardam.dev — v0
   Warm-minimalistisch, system fonts, terracotta accent.
   ========================================================= */

/* ---- Design tokens ---------------------------------------- */
:root {
  --bg: #fafaf7;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --accent: #c4633f;
  --border: #e5e5e0;

  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --measure: 65ch;       /* leesbreedte body */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a17;
    --text: #ededea;
    --muted: #9a9a95;
    --border: #2a2a25;
  }
}

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

body {
  margin: 0;
}

/* ---- Base ------------------------------------------------- */
html {
  font-size: 112.5%;          /* 18px op default 16, schaalt mee met browser-instelling */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout ----------------------------------------------- */
main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

header {
  margin-bottom: var(--space-xl);
}

.intro {
  margin-bottom: var(--space-lg);
}

footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Typografie ------------------------------------------- */
h1 {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
}

.lede {
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 var(--space-md);
  max-width: 38ch;
}

.lede.secondary {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 var(--space-sm);
}

p {
  margin: 0 0 var(--space-sm);
}

/* ---- Links ------------------------------------------------ */
a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-sm);
}

.links li + li::before {
  content: "·";
  color: var(--muted);
  margin-right: var(--space-sm);
}

/* ---- Mobiel ----------------------------------------------- */
@media (max-width: 600px) {
  main {
    padding: var(--space-lg) var(--space-md);
  }

  h1 {
    font-size: 2.25rem;
  }

  .lede {
    font-size: 1.2rem;
  }
}