:root {
  --cream: #f5efe8;
  --paper: #fbf8f4;
  --sand: #ede4d9;
  --line: #e4d9cc;
  --ink: #3a2e26;
  --ink-soft: #5e5047;
  --muted: #8d7e72;
  --taupe: #8b6f59;
  --taupe-dark: #725843;
  --taupe-tint: #f1e9e0;
  --brand-brown: #57312a;
  --brand-gold: #cba74d;
  --white: #fffdfa;
  --danger: #a5483b;
  --success: #5f7a55;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(58 46 38 / 0.04), 0 8px 24px -12px rgb(58 46 38 / 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
  font-variant-numeric: lining-nums;
}

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

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--taupe);
  outline-offset: 3px;
  border-radius: 4px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.sr-only,
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* Knoppen */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  border: 1px solid var(--taupe);
  border-radius: 999px;
  background: var(--taupe);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.15s var(--ease);
}

.btn:hover {
  background: var(--taupe-dark);
  border-color: var(--taupe-dark);
}

.btn:active {
  transform: scale(0.97);
}

.btn .icon {
  transition: transform 0.2s var(--ease);
}

.btn:hover .icon:last-child {
  transform: translateX(2px);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.btn-light:hover {
  background: var(--sand);
  border-color: var(--sand);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--taupe-tint);
  border-color: var(--line);
}

.btn-sm {
  padding: 0.5em 1.1em;
  font-size: 0.82rem;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
}

.btn-danger:hover {
  background: color-mix(in srgb, var(--danger) 8%, transparent);
  border-color: var(--danger);
}

/* Formulieren */
.field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.field > span {
  font-weight: 400;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--taupe);
  box-shadow: 0 0 0 3px rgb(139 111 89 / 0.15);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.span-2 {
  grid-column: 1 / -1;
}

.field-error {
  color: var(--danger);
  font-style: normal;
  font-size: 0.85rem;
}

.form-error {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--danger) 9%, var(--white));
  color: var(--danger);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

/* Logo: gouden S + woordmerk als mask (kleur volgt currentColor) */
.brand {
  display: inline-flex;
}

.brand-s {
  display: block;
  width: auto;
  height: 100%;
}

.brand-word {
  display: block;
  aspect-ratio: 985 / 292;
  background-color: currentColor;
  -webkit-mask: url("/brand/s-word.png") center / contain no-repeat;
  mask: url("/brand/s-word.png") center / contain no-repeat;
}

/* Liggend: S naast het woordmerk */
.brand-lockup {
  align-items: center;
  gap: 0.55em;
  height: 2.8em;
}

.brand-lockup .brand-word {
  height: 72%;
}

/* Staand: S boven het woordmerk */
.brand-full {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 0.6em;
}

.brand-full .brand-s {
  width: 22%;
  height: auto;
}

.brand-full .brand-word {
  width: 100%;
}
