@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', Palatino, 'Book Antiqua', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --bg: #f5f2ec;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1d1b18;
  --muted: #6b655c;
  --line: #e6e0d5;
  --line-strong: #d2c9ba;
  --primary: #1d1b18;
  --on-primary: #faf8f4;
  --accent: #9a7442;
  --accent-soft: #f1e7d8;
  --danger: #b0402c;
  --danger-soft: #f8e4df;
  --ok: #3a7449;
  --ok-soft: #e1efe3;
  --warn: #8a6510;
  --warn-soft: #f6ecd2;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 27, 24, 0.05), 0 10px 30px rgba(29, 27, 24, 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #121110;
    --surface: #1b1a18;
    --surface-2: #22201d;
    --ink: #efebe4;
    --muted: #a59f95;
    --line: #2e2b27;
    --line-strong: #403b35;
    --primary: #efebe4;
    --on-primary: #1b1a18;
    --accent: #d6b588;
    --accent-soft: #2e2820;
    --danger: #e98a74;
    --danger-soft: #3a221d;
    --ok: #86c596;
    --ok-soft: #1f2e22;
    --warn: #e2bf6a;
    --warn-soft: #332a17;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

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

.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;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- knoppen ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--btn-line);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 550;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, opacity 0.15s;
}
.btn:hover {
  border-color: var(--ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn.primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--on-primary);
  --btn-line: var(--primary);
}
.btn.primary:hover {
  opacity: 0.9;
}
.btn.ghost {
  --btn-bg: transparent;
  --btn-line: transparent;
}
.btn.ghost:hover {
  background: var(--surface-2);
  border-color: var(--line);
}
.btn.danger {
  --btn-fg: var(--danger);
}
.btn.danger:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.btn.small {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.btn.icon-only {
  padding: 0;
  width: 36px;
  min-height: 36px;
}
.btn.big {
  min-height: 50px;
  padding: 0 24px;
  font-size: 15px;
}

/* ---------- formulieren ---------- */
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.field > span {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.field small {
  color: var(--muted);
  font-size: 12.5px;
}
.input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
textarea.input {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
select.input {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* ---------- melding onderin ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  background: var(--primary);
  color: var(--on-primary);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 100;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.error {
  background: var(--danger);
  color: #fff;
}
