/* ---------- Fonte (selvhostede) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 600; font-style: normal; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400; font-style: italic; font-display: swap; src: url('/assets/fonts/cormorant-garamond-latin-400-italic.woff2') format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/pinyon-script-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-style: normal; font-display: swap; src: url('/assets/fonts/jost-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-style: normal; font-display: swap; src: url('/assets/fonts/jost-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-style: normal; font-display: swap; src: url('/assets/fonts/jost-latin-500-normal.woff2') format('woff2'); }

/* ---------- Designvariabler ---------- */
:root {
  --cream: #f7f3ea;
  --paper: #fbf8f1;
  --paper-shade: #efe8d8;
  --sage: #a3b18a;
  --eucalyptus: #8fa89b;
  --olive: #6b7a4b;
  --olive-dark: #4f5b36;
  --ink: #2f3a2a;
  --ink-soft: #5a6553;
  --brass: #b08d57;
  --line: rgba(107, 122, 75, 0.22);
  --danger: #9b4a3c;

  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --font-sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 14px;
  --shadow-soft: 0 10px 30px rgba(47, 58, 42, 0.08), 0 2px 6px rgba(47, 58, 42, 0.05);
  --ease-out: cubic-bezier(0.22, 0.8, 0.3, 1);
  --content: 46rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
img, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  background: var(--cream) url('/assets/img/paper.svg');
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

/* ---------- Typografi ---------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h2 { font-size: clamp(2.1rem, 6vw, 2.8rem); }
h3 { font-size: 1.55rem; }

a { color: var(--olive); text-underline-offset: 0.2em; }
a:hover { color: var(--olive-dark); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.2;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive);
}

.muted { color: var(--ink-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Knapper ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.9em;
  border: 1px solid var(--olive);
  border-radius: 999px;
  background: var(--olive);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.btn:hover { background: var(--olive-dark); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn--ghost { background: transparent; color: var(--olive); }
.btn--ghost:hover { background: rgba(107, 122, 75, 0.08); color: var(--olive-dark); }

.link-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--olive);
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Kort ---------- */
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Formularer ---------- */
.field { display: grid; gap: 0.35rem; }

.field__label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(107, 122, 75, 0.15);
}

textarea.input { min-height: 7rem; resize: vertical; }

.form-error {
  color: var(--danger);
  font-size: 0.95rem;
}

/* ---------- Dekoration ---------- */
.divider {
  width: min(220px, 60%);
  margin-inline: auto;
}

.sprig {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* ---------- Animationer ---------- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
