/* Fælles fundament for hjemmesiden og booking-appen.
   Dag = varm sand. Nat = "den blå time" som Skagensmalerne malede. */

:root {
  --bg: #f6f0e8;
  --bg-2: #eee5d8;
  --paper: #fbf8f3;
  --ink: #24201c;
  --ink-2: #5b524a;
  --muted: #8a7e72;
  --line: rgba(36, 32, 28, .14);
  --line-strong: rgba(36, 32, 28, .28);
  --clay: #a8744b;
  --clay-ink: #8b5d39;
  --sea: #5c7a82;
  --deep: #2c4650;
  --on-ink: #f6f0e8;
  --ok: #6f8a5a;
  --warn: #b5683f;
  --shade: rgba(36, 32, 28, .06);
  --sh-sm: 0 6px 18px -8px rgba(90, 60, 30, .28);
  --sh: 0 22px 48px -22px rgba(90, 60, 30, .42), 0 4px 12px -6px rgba(90, 60, 30, .16);
  --sh-lg: 0 40px 80px -30px rgba(80, 50, 20, .5), 0 10px 24px -12px rgba(80, 50, 20, .2);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --r-pill: 999px;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121922;
  --bg-2: #18212c;
  --paper: #1c2632;
  --ink: #efe7db;
  --ink-2: #c3b9ac;
  --muted: #8e9aa8;
  --line: rgba(239, 231, 219, .13);
  --line-strong: rgba(239, 231, 219, .3);
  --clay: #d9a97c;
  --clay-ink: #e6bb93;
  --sea: #93b4bf;
  --deep: #0c2a35;
  --on-ink: #121922;
  --ok: #a9c48f;
  --warn: #e39a72;
  --shade: rgba(0, 0, 0, .25);
  --sh-sm: 0 6px 18px -8px rgba(0, 0, 0, .6);
  --sh: 0 22px 48px -22px rgba(0, 0, 0, .75), 0 4px 12px -6px rgba(0, 0, 0, .4);
  --sh-lg: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 10px 24px -12px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s var(--ease), color .8s var(--ease);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }

.serif { font-family: var(--serif); font-variation-settings: 'SOFT' 60, 'opsz' 144; }
em, .ital { font-style: italic; }

/* Logo: originalen er lavet om til masker, så det kan farves i begge temaer */
.lotus, .wordmark {
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.lotus { --m: url('../img/lotus-mask.png'); aspect-ratio: 157 / 94; }
.wordmark { --m: url('../img/wordmark-mask.png'); aspect-ratio: 456 / 86; }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  height: 52px; padding: 0 26px;
  border-radius: var(--r-pill);
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: var(--sh-sm); }
.btn-ink:hover { background: var(--clay-ink); color: #fff; transform: translateY(-2px); box-shadow: var(--sh); }
.btn-ink:active { transform: translateY(0); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink), var(--sh-sm); transform: translateY(-2px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.eyebrow {
  font: 600 12px/1.2 var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}

.ico { width: 20px; height: 20px; flex: none; }

/* Pladser: 10 små streger i stedet for en tæller */
.ticks { display: inline-flex; gap: 3px; }
.ticks i { width: 4px; height: 14px; border-radius: 2px; background: var(--line-strong); }
.ticks i.on { background: var(--ink-2); }
.ticks.full i.on { background: var(--muted); }

/* "Ny version klar"-boks (bruges af både hjemmeside og app) */
.update-toast { position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 200; transform: translate(-50%, -140%); width: min(440px, calc(100% - 24px)); display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 18px; background: var(--ink); color: var(--on-ink); box-shadow: var(--sh-lg); transition: transform .6s var(--ease); font-size: 14px; }
.update-toast.on { transform: translate(-50%, 0); }
.update-toast .lotus { width: 28px; color: var(--clay); flex: none; }
.update-toast b { display: block; font-weight: 600; }
.update-toast span.t { flex: 1; line-height: 1.35; opacity: .85; }
.update-toast button.go { height: 40px; padding: 0 16px; border-radius: 999px; background: var(--clay); color: #fff; font-weight: 600; font-size: 14px; }
.update-toast button.x { width: 32px; height: 32px; border-radius: 50%; opacity: .6; font-size: 18px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
