/* Saep: a Thai fire kitchen on Jægersborggade. Smoke, lime, a late table. */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2-variations");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
/* Thai glyphs only; Latin falls through to Fraunces. */
@font-face {
  font-family: "Charm";
  src: url("assets/fonts/charm-thai.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC;
}

:root {
  /* Palette: rice paper, char, chilli, young lime */
  --paper: #f3ede2;
  --paper-deep: #e8dfcf;
  --char: #1b1612;
  --ink: #221c17;
  --ink-dim: #6b5f53;
  --rule: rgb(34 28 23 / 0.18);
  --chilli: #c7361b;
  --chilli-deep: #a82c15;
  --lime: #b9d04a;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --thai: "Charm", var(--serif);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Paper grain: a faint noise over everything, so the cream reads as stock, not a hex value. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.3 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
p,
dl,
dd,
ol,
figure {
  margin: 0;
}

ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--chilli);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  background: var(--char);
  color: var(--paper);
}
.skip:focus {
  top: 1rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

[lang="th"] {
  font-family: var(--thai);
}

/* Serif display type: optical size follows the font size. */
.hero-title,
.intro-title,
.balance-title,
.balance-finale,
.wordmark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 380;
  letter-spacing: -0.02em;
}

em {
  font-style: italic;
}
.hero-title em,
.balance-title em,
.balance-finale em {
  color: var(--chilli);
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}
.wordmark span {
  font-size: 1.1rem;
  color: var(--chilli);
  letter-spacing: 0;
}

.nav nav {
  margin-left: auto;
}
.nav ul {
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a:not(.wordmark) {
  font-size: 0.9375rem;
  text-decoration: none;
}
.nav nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-book {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--char);
  color: var(--paper);
  transition: background 0.3s;
}
.nav-book:hover {
  background: var(--chilli-deep);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
  min-height: calc(100svh - 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(3.4rem, 8.6vw, 9.5rem);
  line-height: 0.92;
  font-weight: 340;
  letter-spacing: -0.035em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.hero-title .line > span {
  display: block;
  animation: rise 1.3s var(--ease-out) both;
}
.hero-title .line:nth-child(2) > span {
  animation-delay: 0.1s;
}
.hero-title .line:nth-child(3) > span {
  animation-delay: 0.2s;
}

.hero-eyebrow {
  animation: fade 1s var(--ease-out) 0.1s both;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  animation: fade 1s var(--ease-out) 0.6s both;
}
.hero-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-facts dd {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
}

.hero-media {
  position: relative;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}
.hero-media picture {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--char);
  animation: unclip 1.5s var(--ease-out) 0.15s both;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 50%;
}
.hero-media figcaption {
  font-size: 0.8125rem;
  color: var(--ink-dim);
  animation: fade 1s var(--ease-out) 0.9s both;
}

@keyframes rise {
  from {
    transform: translateY(105%);
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes unclip {
  from {
    clip-path: inset(100% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Intro ---------- */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: 2rem;
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.intro-body {
  display: grid;
  gap: 2rem;
  max-width: 60rem;
}
.intro-title {
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.12;
}
.intro-text {
  max-width: 34rem;
  color: var(--ink-dim);
}

/* ---------- Balance (the signature moment) ----------
   Without motion it is a plain recipe: heading, five lines, the finished plate.
   With motion (.motion on <html>) the section grows tall and the stage sticks,
   so scrolling lands one line at a time while the photo moves to the plate. */

.balance {
  background: var(--paper-deep);
}

.balance-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "head frame"
    "list frame"
    "fin frame";
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: 2.5rem;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.balance-head {
  grid-area: head;
  display: grid;
  gap: 1rem;
}
.balance-title,
.balance-finale {
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  line-height: 1;
}
.balance-finale {
  grid-area: fin;
}

.tastes {
  grid-area: list;
  align-self: start;
  border-top: 1px solid var(--rule);
}
.taste {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  grid-template-areas:
    "th name"
    "th step";
  column-gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
/* The chilli rule that draws under a line as it lands. */
.taste::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--chilli);
  transform: scaleX(var(--drawn, 1));
  transform-origin: left;
}
.taste-th {
  grid-area: th;
  align-self: center;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1.2;
  color: var(--chilli);
}
.taste-name {
  grid-area: name;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
}
.taste-step {
  grid-area: step;
  font-size: 0.9375rem;
  color: var(--ink-dim);
}

.balance-frame {
  grid-area: frame;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--char);
}
.balance-shot {
  position: absolute;
  inset: 0;
}
.balance-shot picture,
.balance-shot img,
.balance-plate picture,
.balance-plate img {
  width: 100%;
  height: 100%;
}
.balance-shot img,
.balance-plate img {
  object-fit: cover;
}
/* The finished plate. Without motion it simply sits in the frame's place. */
.balance-plate {
  grid-area: frame;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--char);
}
.balance-plate picture {
  position: absolute;
  inset: 0;
}
.balance-shot figcaption,
.balance-plate figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.7rem;
  background: var(--paper);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

/* Motion on: a tall track and a sticky stage that fits one screen. */
.motion .balance {
  height: 640vh;
}
.motion .balance-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  padding-block: clamp(2rem, 6vh, 4.5rem);
}
.motion .balance-frame {
  aspect-ratio: auto;
  height: 100%;
}
/* The closing line sits over the heading and they trade places at the end. */
.motion .balance-stage {
  grid-template-rows: auto 1fr;
}
.motion .balance-finale {
  grid-area: head;
  align-self: end;
  position: relative;
  z-index: 3;
  color: var(--paper);
}
.motion .balance-finale em {
  color: #ff9a76;
}
/* With motion the plate leaves the grid: script.js places it over the frame,
   then grows it to fill the stage, and a scrim comes up for the closing line. */
.motion .balance-plate {
  /* Out of the grid area, so its containing block is the whole stage. */
  grid-area: auto;
  position: absolute;
  z-index: 2;
  --scrim: 0;
}
.motion .balance-plate::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--scrim);
  background: linear-gradient(160deg, rgb(27 22 18 / 0.78), rgb(27 22 18 / 0.2) 55%, rgb(27 22 18 / 0));
}
.motion .tastes {
  align-self: stretch;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
}
.motion .taste {
  align-content: center;
}
@media (min-width: 860px) {
  .motion .taste-th {
    font-size: clamp(2rem, 3.4vw, 3.25rem);
  }
  .motion .taste {
    grid-template-columns: 7rem minmax(0, 1fr);
  }
}

/* ---------- Shared pieces ---------- */

.button {
  display: inline-block;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--char);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}
.button:hover {
  background: var(--chilli-deep);
}

.text-link {
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15em;
}
.text-link span {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.text-link:hover span {
  transform: translateX(0.3em);
}

.evening-title,
.chef-quote,
.room-title,
.reserve-title,
.page-title,
.section-title,
.course-name,
.footer-mark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 380;
  letter-spacing: -0.02em;
}
.evening-title em,
.chef-quote em,
.reserve-title em,
.page-title em {
  color: var(--chilli);
}

/* ---------- Tonight (course teaser) ---------- */

.evening {
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
}
.evening-head {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 52rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.evening-title {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.05;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
}
/* Staggered like a contact sheet: every other card sits lower. */
.course-card:nth-child(even) {
  margin-top: clamp(2rem, 6vw, 5rem);
}
.course-card a {
  display: grid;
  gap: 0.25rem;
  text-decoration: none;
}
.course-card-media {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--paper-deep);
}
.course-card-media picture,
.course-card-media img {
  width: 100%;
  height: 100%;
}
.course-card-media img {
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.course-card a:hover img {
  transform: scale(1.04);
}
.course-card-num {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.course-card-th {
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--chilli);
}
.course-card-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.25;
}
.course-card-note {
  font-size: 0.875rem;
  color: var(--ink-dim);
}

/* ---------- The chef ---------- */

.chef {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(4rem, 9vw, 8rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.chef-media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
}
.chef-media picture,
.chef-media img {
  width: 100%;
  height: 100%;
}
.chef-media img {
  object-fit: cover;
}
.chef-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 36rem;
}
.chef-copy > p:not(.eyebrow) {
  color: var(--ink-dim);
}
.chef-quote {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 3.6vw, 3.25rem);
  line-height: 1.08;
}

/* ---------- The counter (the one dark section) ---------- */

.room {
  background: var(--char);
  color: var(--paper);
}
.room .eyebrow {
  color: rgb(243 237 226 / 0.62);
}
.room-media {
  height: clamp(20rem, 70vh, 46rem);
  overflow: hidden;
}
.room-media picture,
.room-media img {
  width: 100%;
  height: 100%;
}
.room-media img {
  object-fit: cover;
}
.room-copy {
  display: grid;
  gap: 1.5rem;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}
.room-title {
  max-width: 50rem;
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1;
}
.room-title em {
  color: #ff9a76;
}
.room-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.room-points li {
  padding-top: 1.25rem;
  border-top: 1px solid rgb(243 237 226 / 0.22);
}
.room-points h3 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
}
.room-points p {
  color: rgb(243 237 226 / 0.72);
}

/* ---------- Book band ---------- */

.reserve {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: clamp(5rem, 11vw, 9rem) var(--gutter);
  text-align: center;
}
.reserve-title {
  max-width: 44rem;
  font-size: clamp(2rem, 4.4vw, 3.75rem);
  line-height: 1.05;
}
.reserve-note {
  font-size: 0.875rem;
  color: var(--ink-dim);
}

/* ---------- Inner pages ---------- */

.page-hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(3.5rem, 9vw, 8rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}
.page-hero-tight {
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.page-title {
  max-width: 14ch;
  font-size: clamp(3rem, 7.5vw, 7.5rem);
  font-weight: 340;
  line-height: 0.95;
  letter-spacing: -0.035em;
  animation: fade 1.1s var(--ease-out) both;
}
.page-lead {
  max-width: 36rem;
  font-size: 1.1875rem;
  color: var(--ink-dim);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
}

/* Menu: one numbered line per course, a photo beside the ones we have. */
.menu-list {
  padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem);
}
.courses {
  border-top: 1px solid var(--rule);
}
.course {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 14rem);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 2rem;
}
.course-num {
  align-self: start;
  padding-top: 0.6rem;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
}
.course-text {
  display: grid;
  gap: 0.35rem;
  max-width: 40rem;
}
.course-name {
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.15;
}
.course-name [lang="th"] {
  display: block;
  font-size: 0.7em;
  color: var(--chilli);
  letter-spacing: 0;
}
.course-text p {
  color: var(--ink-dim);
}
.course-media {
  grid-column: 3;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}
.course-media picture,
.course-media img {
  width: 100%;
  height: 100%;
}
.course-media img {
  object-fit: cover;
}

.pairings,
.notes {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem;
  padding: clamp(4rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--rule);
}
.pairing-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pairing-list h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
}
.pairing-list .price {
  margin: 0.25rem 0 0.75rem;
  color: var(--chilli-deep);
  font-weight: 500;
}
.pairing-list p:not(.price) {
  font-size: 0.9375rem;
  color: var(--ink-dim);
}
.notes-body,
.rules {
  display: grid;
  gap: 1.25rem;
  max-width: 44rem;
}
.notes-body p,
.rules li {
  color: var(--ink-dim);
}
.notes-body strong,
.rules strong {
  color: var(--ink);
  font-weight: 600;
}
.rules {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules li {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}

/* Visit */
.band {
  height: clamp(18rem, 62vh, 40rem);
  overflow: hidden;
  background: var(--char);
}
.band picture,
.band img {
  width: 100%;
  height: 100%;
}
.band img {
  object-fit: cover;
}
.info {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter);
}
.info-item h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.375rem;
  font-weight: 400;
}
.info-item p {
  color: var(--ink-dim);
}

/* Book */
.booking {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding: 0 var(--gutter) clamp(5rem, 9vw, 8rem);
}
.booking-form,
.confirmation {
  grid-column: 1;
  grid-row: 1;
}
.booking-form {
  display: grid;
  gap: 2.5rem;
}
.booking-form fieldset {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.booking-form legend {
  float: left;
  width: 100%;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field > span {
  font-size: 0.875rem;
  font-weight: 500;
}
.field em {
  font-weight: 400;
  color: var(--ink-dim);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgb(34 28 23 / 0.35);
  border-radius: 0;
  background: #fbf8f2;
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--chilli);
  outline-offset: 0;
  border-color: var(--chilli);
}
.field [aria-invalid="true"] {
  border-color: var(--chilli-deep);
  box-shadow: inset 3px 0 0 var(--chilli-deep);
}
.hint {
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.hint.is-full {
  color: var(--chilli-deep);
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.chip input,
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(34 28 23 / 0.35);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.chip input:checked + span {
  background: var(--char);
  border-color: var(--char);
  color: var(--paper);
}
.chip input:disabled + span {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: not-allowed;
}
.chip input:focus-visible + span,
.choice input:focus-visible ~ .choice-name {
  outline: 2px solid var(--chilli);
  outline-offset: 3px;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.choice {
  position: relative;
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid rgb(34 28 23 / 0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.choice:has(input:checked) {
  border-color: var(--char);
  background: #fbf8f2;
  box-shadow: inset 0 -3px 0 var(--chilli);
}
.choice-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.25;
}
.choice-price {
  font-size: 0.8125rem;
  color: var(--ink-dim);
}

.form-error {
  padding: 0.9rem 1rem;
  background: rgb(199 54 27 / 0.1);
  border-left: 3px solid var(--chilli-deep);
  color: var(--chilli-deep);
  font-weight: 500;
}
.booking-form .button {
  justify-self: start;
}

.summary {
  position: sticky;
  top: 2rem;
  display: grid;
  gap: 0.75rem;
}
.summary-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 0.75rem;
  background: var(--paper-deep);
}
.summary-media picture,
.summary-media img {
  width: 100%;
  height: 100%;
}
.summary-media img {
  object-fit: cover;
}
.summary-line {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.3;
}
.summary-total {
  font-family: var(--serif);
  font-size: 2.75rem;
  line-height: 1;
}
.summary-note {
  font-size: 0.875rem;
  color: var(--ink-dim);
}
.confirmation {
  display: grid;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--chilli);
}
.confirmation[hidden] {
  display: none;
}
.confirmation-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 380;
  line-height: 1;
}

/* Current page in the nav. */
.nav nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--chilli);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* ---------- Footer ---------- */

.footer {
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter) 2.5rem;
  background: var(--char);
  color: var(--paper);
}
.footer .eyebrow {
  margin-bottom: 0.6rem;
  color: rgb(243 237 226 / 0.55);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}
.footer-top p:not(.eyebrow),
.footer-top li {
  font-size: 0.9375rem;
  color: rgb(243 237 226 / 0.85);
}
.footer-top ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-top a {
  text-decoration: none;
}
.footer-top nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.footer-mark {
  align-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.9;
}
.footer-mark span {
  font-size: 0.45em;
  color: #ff9a76;
  letter-spacing: 0;
}
.footer-base {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(243 237 226 / 0.18);
  font-size: 0.8125rem;
  color: rgb(243 237 226 / 0.6);
}
.footer :focus-visible {
  outline-color: #ff9a76;
}

/* Pages change with a cross-document view transition where supported. */
@view-transition {
  navigation: auto;
}

@media (max-width: 859px) {
  .course-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chef,
  .pairings,
  .notes,
  .booking {
    grid-template-columns: minmax(0, 1fr);
  }
  .room-points,
  .pairing-list,
  .choices {
    grid-template-columns: minmax(0, 1fr);
  }
  .info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem 1rem;
  }
  .course-media {
    grid-column: 2;
    max-width: 18rem;
  }
  .summary {
    position: static;
    grid-row: 2;
  }
  .booking-form,
  .confirmation {
    grid-row: 1;
  }
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-mark {
    grid-column: 1 / -1;
  }
  .footer-base {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .info {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Phones and narrow tablets ---------- */

@media (max-width: 859px) {
  .nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding-block: 1rem;
  }
  .nav nav {
    margin-left: 0;
    order: 3;
    width: 100%;
  }
  .nav-book {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .hero-media picture {
    flex: none;
    aspect-ratio: 4 / 3;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .balance-stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    grid-template-areas:
      "head"
      "frame"
      "list"
      "fin";
    row-gap: 1.25rem;
  }
  .balance-frame {
    aspect-ratio: 4 / 3;
  }
  .taste {
    grid-template-columns: 4rem minmax(0, 1fr);
    padding: 0.6rem 0;
  }
  .taste-th {
    font-size: 1.6rem;
  }
  .taste-name {
    font-size: 1.0625rem;
  }
  .taste-step {
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .motion .balance-stage {
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding-block: 1.25rem;
  }
  .motion .balance-title,
  .motion .balance-finale {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
