/* Bord — tokens */
:root {
  /* Bord visuel identitet 2026 */
  --skovgron: #313a2c;
  --dyb-skov: #232a1f;
  --salvie: #a9a58e;
  --hor: #d9d2bf;
  --creme: #f3efe4;
  --terrakotta: #b4694a;
  --oliven: #6e7a55;

  /* Animated per chapter by main.js */
  --bg: #313a2c;
  --fg: #f3efe4;

  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --gutter: clamp(16px, 3vw, 40px);
  --t-body: clamp(17px, 1.15vw, 19px);
  --t-small: 15px;
  --t-h3: clamp(24px, 2vw, 30px);
  --t-h2: clamp(44px, 5.4vw, 84px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ol, dl, dd, fieldset { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--terrakotta); outline-offset: 3px; }
::selection { background: var(--hor); color: var(--skovgron); }

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.1;
}

/* Buttons: square, one fill */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-solid { background: var(--fg); color: var(--bg); }
.btn-solid:hover { background: var(--hor); color: var(--skovgron); }
.btn-outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--fg) 45%, transparent); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-quiet { background: transparent; color: var(--fg); padding: 0 6px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn-quiet:hover { text-decoration-color: var(--hor); }

/* Nav: a plain bar */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
  height: 76px;
  padding: 0 var(--gutter);
  color: var(--fg);
  background: var(--bg);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 16px; text-decoration: none; padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--ease-out); }
.nav-links a:hover { background-size: 100% 2px; }
.nav-cta { min-height: 44px; padding: 0 20px; }

/* Stage canvas, fixed behind content */
#stage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}
main { position: relative; z-index: 2; }

/* Logo (brand lockup) */
.logo {
  --F: min(15vw, 27vh, 236px);
  display: grid;
  justify-items: center;
  width: max-content;
  margin: 0 auto;
  font-weight: inherit;
}
.logo-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--F);
  line-height: 0.8;
  letter-spacing: 0.36em;
  margin-right: -0.36em; /* trailing tracking */
  color: var(--creme);
}
.logo-word .ch { display: inline-block; }
.bracket-slot {
  display: block;
  width: 70%;
  height: calc(var(--F) * 0.2);
  margin-top: calc(var(--F) * 0.36);
  color: var(--hor);
}
.bracket-fallback { width: 100%; height: 100%; display: block; }
.has-3d .bracket-fallback { visibility: hidden; }
.logo-tag {
  margin-top: calc(var(--F) * 0.24);
  font-family: var(--sans);
  font-size: max(12px, calc(var(--F) * 0.104));
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  text-transform: uppercase;
  color: var(--hor);
  white-space: nowrap;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px var(--gutter) 40px;
  overflow: hidden;
}
.hero-stage { position: absolute; inset: 76px 0 0 0; pointer-events: none; }
.hero-inner { display: grid; justify-items: center; gap: 44px; }
.hero-foot { display: grid; justify-items: center; gap: 28px; max-width: 40rem; text-align: center; }
.hero-lede { font-size: clamp(18px, 1.35vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; align-items: center; }
.hero-caption {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  max-width: 28rem;
  display: grid;
  gap: 14px;
  visibility: hidden;
}
.no-3d .hero-caption, .reduced .hero-caption { position: static; visibility: visible; margin-top: 64px; }

/* Chapters: text column + sticky stage slot */
.chapter {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--gutter);
  padding: 0 var(--gutter);
  min-height: 150vh;
}
.chapter--flip { grid-template-columns: 7fr 5fr; }
.chapter--flip .chapter-text { order: 2; }
.chapter-text {
  align-self: center;
  display: grid;
  gap: 28px;
  padding: 200px 0;
  max-width: 34rem;
}
.chapter-text > p { max-width: 32rem; }
.chapter-stage { position: relative; }
.stage-slot { position: sticky; top: 76px; height: calc(100vh - 76px); height: calc(100svh - 76px); }
.statement { font-family: var(--serif); font-size: clamp(24px, 2.1vw, 32px); line-height: 1.2; }

.services { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 36px; margin-top: 8px; }
.service { display: grid; gap: 10px; align-content: start; scroll-margin-top: 120px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 12px; }
.facts dt { font-size: var(--t-small); opacity: 0.7; }
.facts dd { font-family: var(--serif); font-weight: 600; font-size: var(--t-h3); line-height: 1.15; }

/* Menu */
.days { display: grid; grid-template-columns: repeat(var(--n, 5), auto); justify-content: start; gap: 4px; }
.day {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 26px);
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, background-color 0.2s, transform 0.15s var(--ease-out);
}
.day:hover { opacity: 1; }
.day:active { transform: scale(0.96); }
.day[aria-pressed="true"] { opacity: 1; color: var(--terrakotta); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.dish { display: grid; gap: 12px; padding: 28px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.dish-name { font-size: clamp(32px, 3vw, 44px); }
.days { --n: 5; }
.day small { display: block; font-family: var(--sans); font-weight: 400; font-size: 13px; opacity: 0.75; }
.day.is-today { opacity: 1; box-shadow: inset 0 -2px 0 var(--terrakotta); }
.day.is-today small::after { content: " · i dag"; }
.dish-item { display: grid; gap: 6px; }
.dish-item + .dish-item { padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.dish-item .dish-name { font-size: clamp(24px, 2.2vw, 32px); }
.dish-cat { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.dish-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--t-small); }
.tag { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 10%, transparent); }
.co2 { opacity: 0.75; }
.dish-note, .dish-allergens { font-size: var(--t-small); opacity: 0.75; }
.dish-soon { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 32px); }

/* Configurator */
.config { display: grid; gap: 18px; justify-items: start; }
.config-label { font-size: var(--t-body); }
.config-count { font-family: var(--serif); font-weight: 500; font-size: var(--t-h2); line-height: 0.95; font-variant-numeric: tabular-nums; }
/* Slider: thin rounded track filled up to the value (--fill, set in main.js), round knob carrying the Bord bracket */
.config input[type="range"] { --fill: 0%; --track: color-mix(in srgb, var(--fg) 18%, transparent); width: min(100%, 30rem); height: 44px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.config input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(to right, var(--terrakotta) var(--fill), var(--track) var(--fill)); }
.config input[type="range"]::-moz-range-track { height: 4px; border-radius: 999px; background: var(--track); }
.config input[type="range"]::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--terrakotta); }
.config input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 34px; height: 34px; margin-top: -15px; border: 0; border-radius: 50%;
  background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M10 21v-4.5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3V21' fill='none' stroke='%23313a2c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.28), 0 0 0 0 color-mix(in srgb, var(--terrakotta) 35%, transparent);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.config input[type="range"]::-moz-range-thumb {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--creme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M10 21v-4.5a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3V21' fill='none' stroke='%23313a2c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% no-repeat;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.28);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.config input[type="range"]:hover::-webkit-slider-thumb, .config input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 2px 10px rgb(0 0 0 / 0.28), 0 0 0 8px color-mix(in srgb, var(--terrakotta) 30%, transparent); }
.config input[type="range"]:hover::-moz-range-thumb, .config input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 2px 10px rgb(0 0 0 / 0.28), 0 0 0 8px color-mix(in srgb, var(--terrakotta) 30%, transparent); }
.config input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.1); }
.config input[type="range"]:active::-moz-range-thumb { transform: scale(1.1); }
.config input[type="range"]:focus { outline: none; }
.config-days { border: 0; display: grid; gap: 10px; }
.config-days legend { padding: 0; margin-bottom: 10px; }
.seg { display: flex; gap: 6px; }
.seg button { width: 52px; height: 48px; border: 0; background: color-mix(in srgb, var(--fg) 9%, transparent); cursor: pointer; font-size: 18px; transition: background-color 0.2s, transform 0.15s var(--ease-out); }
.seg button:hover { background: color-mix(in srgb, var(--fg) 18%, transparent); }
.seg button:active { transform: scale(0.94); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.config-sum { font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); line-height: 1.1; margin-top: 10px; }
.config-sum span { font-weight: 600; font-variant-numeric: tabular-nums; }
.config-note { font-size: var(--t-small); opacity: 0.8; margin-top: -8px; }

/* Timeline */
.timeline { list-style: none; display: grid; gap: 44px; }
.timeline li { display: grid; gap: 10px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px var(--gutter);
  padding: 220px var(--gutter) 120px;
  align-items: start;
  background: var(--bg); /* the room folds into the logo behind this section */
}
.contact-text { display: grid; gap: 28px; max-width: 32rem; }
.area { display: grid; gap: 10px; margin-top: 16px; padding: 28px; background: color-mix(in srgb, var(--fg) 6%, transparent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 16px; }
.opt { opacity: 0.7; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  color: var(--fg);
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  border: 0;
  border-radius: 0;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--fg) 30%, transparent);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field select { appearance: none; cursor: pointer; background-image: none; }
.field select option { color: #313a2c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: color-mix(in srgb, var(--fg) 12%, transparent); box-shadow: inset 0 -2px 0 var(--hor); }
.field [aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--terrakotta); }
.form-error { color: var(--hor); }
.form-ok { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }

/* Footer */
.footer-stage { position: absolute; inset: 0; pointer-events: none; }
.watermark { position: absolute; right: var(--gutter); bottom: 24px; display: block; opacity: 0.45; transition: opacity 0.2s; }
.watermark:hover, .watermark:focus-visible { opacity: 1; }
.watermark img { display: block; width: 40px; height: 40px; }
.footer {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 56px;
  padding: 120px var(--gutter) 32px;
}
.logo--foot { --F: min(19vw, 30vh, 300px); align-self: center; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-right: 64px; font-size: var(--t-small); }

/* Phone: text panels opaque, the table shows in windows between them */
@media (max-width: 860px) {
  .nav { height: 64px; }
  .nav-links { display: none; }
  .logo { --F: min(21vw, 22vh); }
  .chapter, .chapter--flip { grid-template-columns: 1fr; min-height: 0; gap: 0; padding: 0; }
  .chapter--flip .chapter-text { order: 0; }
  .chapter-text { padding: 120px var(--gutter) 64px; background: var(--bg); max-width: none; }
  .stage-slot { position: relative; height: 72vh; height: 72svh; }
  .hero-caption { right: var(--gutter); }
  .hero-stage { inset: 64px 0 auto 0; height: calc(100% - 330px); }
  .logo--foot { --F: 21vw; }
  .footer { padding-top: 80px; }
  .contact { grid-template-columns: 1fr; padding-top: 140px; }
  .form { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; }
}
/* Sæt bordet: the tables stay beside the slider, so a new head count shows without scrolling */
@media (max-width: 860px) and (min-width: 641px) {
  #saet { grid-template-columns: 1fr 1fr; gap: var(--gutter); padding: 0 var(--gutter); min-height: 120vh; }
  #saet .chapter-text { padding: 120px 0 64px; background: none; }
  #saet .stage-slot { position: sticky; top: 64px; height: calc(100vh - 64px); height: calc(100svh - 64px); }
}
/* on a phone there is no room beside it, so the tables sit right above the slider */
@media (max-width: 640px) {
  #saet .chapter-stage { order: -1; padding-top: 64px; }
  #saet .stage-slot { height: 42vh; height: 42svh; }
  #saet .chapter-text { padding-top: 8px; background: none; }
}

@media (max-width: 420px) {
  .days { grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; }
  .day { padding: 10px 2px; font-size: 17px; }
  .facts { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .day, .seg button, .nav-links a { transition: none; }
}
