/* =========================================================
   The Saturday Table — Windsor
   Palette: dusk haze ground, deep ink, tangerine accent.
   Type: Big Shoulders Display (headlines), Schibsted Grotesk (body),
         Martian Mono (small labels).
   ========================================================= */

:root {
  --haze: #E7E4F1;
  --ink: #1A1F3A;
  --ink-2: #4A4F6B;
  --table: #EC7336;
  --table-deep: #C0521D;
  --paper: #FFFBF3;
  --river: #4A5FD0;
  --error: #B3261E;
  --line: rgba(26, 31, 58, 0.14);
  --line-strong: rgba(26, 31, 58, 0.24);

  --display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --body: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--haze);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }

@keyframes fade { from { opacity: 0; transform: translateY(10px); } }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.h2 {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 0.95;
  margin-top: 0.8rem; max-width: 18ch; text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: var(--ink); color: var(--paper);
  font: 600 1rem/1 var(--body);
  padding: 0.95rem 1.4rem; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { background: var(--table); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-small { padding: 0.7rem 1.15rem; font-size: 0.92rem; }
.btn-big { padding: 1.15rem 1.75rem; font-size: 1.05rem; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px;
  padding: 1.05rem 1.4rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--haze) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-word { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.45rem; letter-spacing: 0.02em; line-height: 1; }
.brand-city { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.45rem; border: 1px solid var(--line-strong); border-radius: 4px; }
.nav-back { font-weight: 500; font-size: 0.95rem; text-decoration: none; color: var(--ink-2); }
.nav-back:hover { color: var(--ink); }
@media (max-width: 520px) {
  .brand-city { display: none; }
  .brand-word { font-size: 1.25rem; }
  .nav-inner { min-height: 60px; }
}

/* =========================================================
   Homepage
   ========================================================= */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7rem); }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; animation: fade 0.7s ease backwards; }
.pill {
  display: inline-block; padding: 0.5rem 0.9rem; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (max-width: 480px) {
  .pill { font-size: 0.6rem; letter-spacing: 0.03em; padding-inline: 0.75rem; white-space: nowrap; }
}
.hero-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 8.2vw, 7.2rem); line-height: 0.9;
  margin-top: 1.75rem;
}
.hero-title > span { display: block; }
.hl {
  background: linear-gradient(transparent 56%, var(--table) 56%, var(--table) 94%, transparent 94%);
  padding-inline: 0.05em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { font-size: clamp(1.12rem, 1.8vw, 1.35rem); max-width: 38ch; margin-top: 1.75rem; line-height: 1.45; color: var(--ink-2); }
.hero-inner .btn { margin-top: 2.2rem; }
.seat-count { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.4rem 0.65rem; margin-top: 1.1rem; font-size: 0.95rem; color: var(--ink-2); }
.seat-count strong { color: var(--ink); font-weight: 600; }
.seat-dots { display: inline-flex; gap: 4px; }
.seat-dots i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); }

.block { padding-block: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: 2.75rem; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 1.5rem; } }
.points li { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.points h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; }
.points p { margin-top: 0.5rem; color: var(--ink-2); max-width: 30ch; }
.note-line { margin-top: 3rem; font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; max-width: 42ch; }
.note-line em {
  font-style: normal;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--table) 70%, transparent) 62%, color-mix(in srgb, var(--table) 70%, transparent) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.topic { background: var(--ink); color: var(--haze); padding-block: clamp(4rem, 8vw, 6rem); }
.topic .eyebrow { color: color-mix(in srgb, var(--haze) 72%, transparent); }
.topic-q {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.8vw, 4.8rem); line-height: 0.92;
  margin-top: 1rem; max-width: 18ch; text-wrap: balance;
}
.topic-q .hot { color: var(--table); }
.facts-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem;
  margin-block: 2.75rem 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(231, 228, 241, 0.2);
}
@media (max-width: 760px) { .facts-row { grid-template-columns: 1fr 1fr; } }
.facts-row dt { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--table); }
.facts-row dd { margin-top: 0.3rem; font-weight: 500; line-height: 1.35; }
.topic .btn-light:hover { background: var(--table); }
.topic-later { margin-top: 1rem; font-size: 0.98rem; color: color-mix(in srgb, var(--haze) 80%, transparent); }

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.timeline li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.timeline li:first-child { padding-top: 0; }
.timeline time { font-family: var(--mono); font-size: 0.82rem; color: var(--table-deep); padding-top: 0.2rem; }
.timeline h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.timeline p { color: var(--ink-2); font-size: 0.98rem; margin-top: 0.1rem; }

.faq-list details { border-top: 1.5px solid var(--ink); }
.faq-list details:last-child { border-bottom: 1.5px solid var(--ink); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-block: 1.15rem; font-weight: 600; font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--mono); font-size: 1.2rem; flex: none; transition: transform 0.25s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding-bottom: 1.25rem; color: var(--ink-2); max-width: 58ch; }

.footer { background: var(--table); color: var(--ink); padding-block: clamp(3.5rem, 7vw, 5rem) 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer-title { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 0.9; }
.footer-line { margin-top: 0.5rem; font-size: 1.15rem; font-weight: 500; }
.footer .btn:hover { background: var(--paper); }
.footer-meta {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.1rem; border-top: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase;
}

/* =========================================================
   Apply page
   ========================================================= */
.apply-page {
  display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start;
  padding-block: clamp(2rem, 5vw, 3.5rem) 5rem;
}
@media (max-width: 880px) { .apply-page { grid-template-columns: 1fr; } }
.apply-side { position: sticky; top: 100px; }
.apply-h1 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 0.95; margin-top: 0.6rem; }
.side-mini { display: none; margin-top: 0.4rem; color: var(--ink-2); }
.facts { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 0.2rem; padding-block: 0.85rem; border-bottom: 1px solid var(--line); font-weight: 500; line-height: 1.4; }
.facts span { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--table-deep); }
.side-note { margin-top: 1.25rem; font-size: 0.9rem; color: var(--ink-2); max-width: 34ch; }
@media (max-width: 880px) {
  .apply-side { position: static; }
  .facts, .side-note { display: none; }
  .side-mini { display: block; }
}

.apply-card {
  background: var(--paper); border-radius: 24px;
  padding: clamp(1.25rem, 4vw, 2.75rem);
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -40px rgba(26, 31, 58, 0.35);
  scroll-margin-top: 84px;
}
.progress { height: 6px; background: var(--haze); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 33.34%; background: var(--table); border-radius: 99px; transition: width 0.4s var(--ease); }
.step-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1rem; margin-top: 1.1rem; }
.step-count { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.draft-note { font-size: 0.85rem; color: var(--ink-2); }
.step { animation: fade 0.35s ease; }
.step-title { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0.35rem 0 1.6rem; outline: none; }

.field { display: grid; gap: 0.5rem; margin-bottom: 1.5rem; min-width: 0; }
.lbl { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 0.85rem 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%231A1F3A' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.95rem center;
}
textarea { resize: vertical; min-height: 5.5rem; line-height: 1.45; }
::placeholder { color: #8A8DA3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px color-mix(in srgb, var(--river) 22%, transparent); }
[aria-invalid="true"] { border-color: var(--error) !important; }
.other-input { margin-top: 0.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: 0.62rem 1rem; background: #fff;
  border: 1.5px solid var(--line-strong); border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--river); outline-offset: 2px; }

.choices { display: grid; gap: 0.5rem; }
.choice {
  display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center;
  padding: 0.95rem 1rem; background: #fff; border: 1.5px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; font-weight: 500; transition: border-color 0.15s, box-shadow 0.15s;
}
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input, .check input { width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--ink); }
.checks { gap: 0.1rem; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: center; padding-block: 0.45rem; cursor: pointer; }
.checks .field-error { margin-left: 1.95rem; }
.field.has-error .chip span, .field.has-error .choice { border-color: var(--error); }

.count { justify-self: end; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-2); margin-top: -0.2rem; }
.count.is-near { color: var(--table-deep); }
.field-error { color: var(--error); font-size: 0.9rem; font-weight: 500; }
.field-error:empty { display: none; }
.form-error { background: #FBE9E7; color: #8A1C14; border-radius: 12px; padding: 0.85rem 1rem; margin-top: 0.5rem; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.form-nav .btn { margin-left: auto; }
@media (max-width: 480px) {
  .form-nav .btn { flex: 1; }
}

.done { display: grid; justify-items: start; gap: 0.8rem; padding-block: 0.5rem; animation: fade 0.5s ease; }
.done-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 0.95; margin-top: 1.2rem; outline: none; }
.done p { color: var(--ink-2); max-width: 44ch; }
.done .btn { margin-top: 1rem; }
.placecard {
  display: inline-grid; justify-items: center; gap: 0.7rem;
  padding: 1.4rem 2.2rem 1.05rem; min-width: min(260px, 100%);
  background: #fff; border: 1.5px solid var(--ink); border-radius: 6px;
  box-shadow: 0 14px 0 -8px rgba(26, 31, 58, 0.18); transform: rotate(-1.5deg);
}
.placecard-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 2.3rem; line-height: 1; overflow-wrap: anywhere; text-align: center; }
.placecard-meta { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); border-top: 1px dashed var(--line-strong); padding-top: 0.6rem; width: 100%; text-align: center; }

/* review desk label colours */
.mc-label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.07em; text-transform: uppercase; }

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