/* Ildsted — concept site for a wood-fired pizzeria. Made by Nexus Digital. */
@font-face {
  font-family: "Bricolage";
  src: url("fonts/BricolageGrotesque-var-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --soot: #0f0b08;      /* the inside of the oven: page ground, ink on paper */
  --flour: #f4eee2;     /* text on film, the menu paper */
  --ember: #ff7a1a;     /* the fire: one accent, used for what is live or pressed */
  --ash: #c9bfb0;       /* quieter text on film */
  --basil: #55793a;     /* vegetarian mark */
  --tomato: #c8371f;    /* spicy mark */
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--soot); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--flour);
  font: 400 1.0625rem/1.5 "Bricolage", ui-sans-serif, system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, dl, dd, table { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: -999rem; top: 0.75rem; z-index: 50; background: var(--flour); color: var(--soot); padding: 0.7rem 1rem; border-radius: 999px; }
.skip:focus { left: var(--pad); }

/* ── The film stage ───────────────────────────────────────────── */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--soot) center / cover no-repeat; overflow: hidden; }
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }
.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgb(15 11 8 / 0.78) 0%, rgb(15 11 8 / 0.35) 12%, rgb(15 11 8 / 0) 26%),
    linear-gradient(to top, rgb(15 11 8 / 0.9) 0%, rgb(15 11 8 / 0.5) 30%, rgb(15 11 8 / 0) 62%),
    rgb(15 11 8 / var(--dim, 0));
  transition: background-color 0.4s linear;
}

/* ── Top bar ──────────────────────────────────────────────────── */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 2rem);
  padding: 1rem var(--pad);
  text-shadow: 0 1px 14px rgb(15 11 8 / 0.8);
}
.mark { font-weight: 800; font-stretch: 75%; font-size: 1.7rem; letter-spacing: -0.01em; text-decoration: none; line-height: 1; }
.status { font-size: 0.9375rem; color: var(--ash); display: flex; align-items: center; gap: 0.5rem; }
.status[data-open="true"]::before { content: ""; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgb(255 122 26 / 0.7); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 0.6rem rgb(255 122 26 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 122 26 / 0); } }
.top-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.75rem); }
.top-nav a { text-decoration: none; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.top-nav a:hover { border-bottom-color: var(--ember); }

/* ── Chapter rail (desktop) ───────────────────────────────────── */
.chapters { position: fixed; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 20; display: none; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; justify-items: end; }
.chapters a {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0;
  text-decoration: none; font-size: 0.9375rem; color: var(--ash);
  text-shadow: 0 1px 12px rgb(15 11 8 / 0.9);
  transition: color 0.2s;
}
.chapters a::after { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 1.5px solid currentColor; transition: background 0.2s, transform 0.3s var(--ease); }
.chapters a:hover { color: var(--flour); }
.chapters a[aria-current="true"] { color: var(--flour); }
.chapters a[aria-current="true"]::after { background: var(--ember); border-color: var(--ember); transform: scale(1.5); }
@media (min-width: 900px) { .chapters { display: block; } }

/* ── Chapters ─────────────────────────────────────────────────── */
main { position: relative; z-index: 10; }
.ch { position: relative; min-height: 230vh; }
.ch--hero { min-height: 210vh; }
.pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; align-content: end; justify-items: start; gap: 1.4rem;
  padding: 6rem var(--pad) max(3rem, 9vh);
}

.name {
  font-weight: 800; font-stretch: 75%;
  font-size: clamp(6.75rem, 27vw, 23rem);
  line-height: 0.8; letter-spacing: -0.035em;
  margin-left: -0.04em;
  text-shadow: 0 0.04em 0.5em rgb(15 11 8 / 0.5);
}
.name span { display: inline-block; }
.js .name span { opacity: 0; transform: translateY(0.35em) scaleY(1.25); transform-origin: 50% 100%; animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.say { font-weight: 700; font-stretch: 82%; font-size: clamp(2.1rem, 5.6vw, 5.25rem); line-height: 0.98; letter-spacing: -0.025em; max-width: 17ch; text-wrap: balance; text-shadow: 0 2px 30px rgb(15 11 8 / 0.6); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.35rem); max-width: 34ch; color: var(--flour); text-shadow: 0 1px 16px rgb(15 11 8 / 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px;
  background: var(--flour); color: var(--soot); border: 2px solid var(--flour);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--ember); border-color: var(--ember); }
.btn:active { transform: scale(0.97); }
.btn--line { background: rgb(15 11 8 / 0.35); color: var(--flour); backdrop-filter: blur(6px); }
.btn--line:hover { color: var(--soot); }

/* craft facts: the numbers run up as you scroll through the chapter */
.facts { display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3.5rem); }
.facts dd { font-weight: 800; font-stretch: 75%; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.85; font-variant-numeric: tabular-nums; color: var(--ember); }
.facts dt { margin-top: 0.4rem; color: var(--flour); max-width: 12ch; line-height: 1.2; text-shadow: 0 1px 14px rgb(15 11 8 / 0.9); }
.facts div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }

/* ── Menu: a paper card laid over the film ────────────────────── */
.ch--menu { min-height: 0; padding: 75vh var(--pad) 75vh; }
.card {
  width: min(100%, 37rem); margin-left: auto; margin-right: clamp(0rem, 9vw, 9rem);
  background: var(--flour); color: var(--soot);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 4px;
  box-shadow: 0 2.5rem 6rem rgb(0 0 0 / 0.55);
}
.card-h { font-weight: 800; font-stretch: 75%; font-size: clamp(3.5rem, 9vw, 6rem); line-height: 0.85; letter-spacing: -0.03em; }
.group { margin-top: 2.5rem; }
.group h3 { font-weight: 800; font-stretch: 75%; font-size: 1.9rem; line-height: 1; letter-spacing: -0.01em; }
.group .gnote { margin-top: 0.3rem; font-size: 0.9375rem; color: #5d5147; }
.group ul { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--soot); }
.dish { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; padding: 0.85rem 0; border-bottom: 1px solid rgb(15 11 8 / 0.2); }
.dish-name { font-weight: 650; font-size: 1.1875rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dish-price { font-weight: 650; font-size: 1.1875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dish-desc { grid-column: 1 / -1; color: #5d5147; font-size: 0.9875rem; }
.mk { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; flex: none; }
.mk--v { background: var(--basil); }
.mk--hot { background: var(--tomato); }
.card-foot { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9375rem; }
.legend { display: inline-flex; align-items: center; gap: 0.45rem; }
.card-note { margin-top: 0.75rem; font-size: 0.9375rem; color: #5d5147; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── Hours ────────────────────────────────────────────────────── */
.hours h3, .find h3 { font-weight: 700; font-size: 1.125rem; margin-bottom: 0.5rem; }
.hours table { border-collapse: collapse; font-variant-numeric: tabular-nums; text-shadow: 0 1px 14px rgb(15 11 8 / 0.9); }
.hours td { padding: 0.3rem 0; }
.hours td:first-child { padding-right: 2rem; }
.hours tr[data-today="true"] td { color: var(--ember); font-weight: 650; }

/* ── Booking ──────────────────────────────────────────────────── */
.ch--book { min-height: 0; padding-top: 110vh; display: flex; flex-direction: column; }
.book { display: grid; grid-template-columns: 1fr minmax(0, 30rem); gap: clamp(2rem, 6vw, 6rem); align-items: end; padding: 0 var(--pad) clamp(3rem, 8vh, 6rem); }
.find { margin-top: 2rem; font-style: normal; line-height: 1.6; text-shadow: 0 1px 14px rgb(15 11 8 / 0.9); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: rgb(15 11 8 / 0.72); backdrop-filter: blur(14px); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1.25rem; border: 1px solid rgb(244 238 226 / 0.16); }
.form label { display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.form .wide { grid-column: 1 / -1; }
.form input, .form select {
  width: 100%; min-height: 3rem; padding: 0 0.9rem; border-radius: 0.7rem;
  border: 1.5px solid rgb(244 238 226 / 0.35); background: rgb(244 238 226 / 0.06); color: var(--flour);
  font: inherit; color-scheme: dark;
}
.form input:hover, .form select:hover { border-color: var(--flour); }
.form [aria-invalid="true"] { border-color: var(--ember); }
.form-note { background: var(--flour); color: var(--soot); padding: 0.9rem 1rem; border-radius: 0.7rem; }
.foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 1.5rem var(--pad) 2rem; font-size: 0.9375rem; color: var(--ash); background: linear-gradient(to top, var(--soot) 40%, rgb(15 11 8 / 0)); }

/* ── Small screens ────────────────────────────────────────────── */
@media (max-width: 760px) {
  .status { display: none; }
  .top-nav a[data-t="navMenu"] { display: none; }
  .ch { min-height: 200vh; }
  .ch--hero { min-height: 190vh; }
  .ch--menu { padding: 65vh 0.75rem 65vh; }
  .card { margin-right: 0; }
  /* tall screens crop the film to its bright centre: carry the shade higher so the words always sit on dark */
  .shade { background:
    linear-gradient(to bottom, rgb(15 11 8 / 0.78) 0%, rgb(15 11 8 / 0.35) 12%, rgb(15 11 8 / 0) 24%),
    linear-gradient(to top, rgb(15 11 8 / 0.94) 0%, rgb(15 11 8 / 0.72) 34%, rgb(15 11 8 / 0.25) 62%, rgb(15 11 8 / 0) 80%),
    rgb(15 11 8 / var(--dim, 0)); }
  .book { grid-template-columns: 1fr; }
  .facts { gap: 1.25rem 2rem; }
}

/* ── Reduced motion, or no script: stills instead of film ─────── */
.static .stage, .no-js .stage { display: none; }
.static .ch, .no-js .ch { min-height: 0; background: var(--soot) center / cover no-repeat; }
.static .ch::before, .no-js .ch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(15 11 8 / 0.92) 0%, rgb(15 11 8 / 0.45) 55%, rgb(15 11 8 / 0.6) 100%); }
.static .ch > *, .no-js .ch > * { position: relative; }
.static .pin, .no-js .pin { position: relative; height: auto; min-height: 88vh; }
.static .ch--menu, .no-js .ch--menu { padding-block: 5rem; }
.static .ch--book, .no-js .ch--book { padding-top: 30vh; }
.static .ch[data-ch="0"], .no-js .ch[data-ch="0"] { background-image: url("films/i1-fire-poster.webp"); }
.static .ch[data-ch="1"], .no-js .ch[data-ch="1"] { background-image: url("films/i2-craft-poster.webp"); }
.static .ch[data-ch="2"], .no-js .ch[data-ch="2"] { background-image: url("films/i3-pizza-poster.webp"); }
.static .ch[data-ch="3"], .no-js .ch[data-ch="3"] { background-image: url("films/i4-room-poster.webp"); }
.static .ch[data-ch="4"], .no-js .ch[data-ch="4"] { background-image: url("films/i5-terrace-poster.webp"); }
.static .ch[data-ch="5"], .no-js .ch[data-ch="5"] { background-image: url("films/i6-night-poster.webp"); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .name span { animation: none; opacity: 1; transform: none; }
  .status[data-open="true"]::before { animation: none; }
  .btn, .chapters a::after { transition: none; }
}
