/* MijnLeden — design tokens + base styles */

:root {
  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Warm paper neutrals — light theme */
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #faf8f3;
  --ink: #15140f;
  --ink-2: #3b3a33;
  --ink-3: #6b6961;
  --ink-4: #97948b;
  --line: #e7e3d9;
  --line-2: #d8d3c5;
  --hover: rgba(21, 20, 15, 0.04);
  --active: rgba(21, 20, 15, 0.07);

  /* Accent (moss green — running / calm) */
  --accent: oklch(0.45 0.075 155);
  --accent-2: oklch(0.55 0.075 155);
  --accent-soft: oklch(0.92 0.03 155);
  --accent-ink: #ffffff;

  /* Status colors */
  --ok: oklch(0.55 0.10 155);
  --ok-soft: oklch(0.94 0.04 155);
  --warn: oklch(0.65 0.13 70);
  --warn-soft: oklch(0.94 0.06 80);
  --danger: oklch(0.55 0.14 28);
  --danger-soft: oklch(0.94 0.045 30);
  --info: oklch(0.55 0.10 240);
  --info-soft: oklch(0.94 0.03 240);

  /* Radii */
  --r-1: 6px;
  --r-2: 10px;
  --r-3: 14px;
  --r-4: 20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(21, 20, 15, 0.04), 0 0 0 0.5px rgba(21, 20, 15, 0.06);
  --shadow-2: 0 4px 14px -4px rgba(21, 20, 15, 0.10), 0 0 0 0.5px rgba(21, 20, 15, 0.06);
  --shadow-pop: 0 12px 40px -8px rgba(21, 20, 15, 0.22), 0 0 0 0.5px rgba(21, 20, 15, 0.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

/* `hidden` attribute must beat any explicit display */
[hidden] { display: none !important; }

/* Accessible label-only utility */
.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;
}

/* Visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
input:focus-visible {
  outline-offset: 3px;
}
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--ink); }

/* Logo tile (reused in nav-brand, mockup sidebar, footer) */
.sb-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--ink-2); }
.btn-primary:disabled:hover { background: var(--ink); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-secondary:hover { background: var(--hover); }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
