:root {
  --canvas: #f3ead8;
  --paper: #fffaf0;
  --ink: #24140f;
  --muted: #6c5349;
  --accent: #e65f2b;
  --cool: #77a9bd;
  --rule: #cbb9a4;
  --focus: #0b5b78;
  --gutter: clamp(1.125rem, 4vw, 4rem);
  --rail: 73.75rem;
  --header-h: 5.25rem;
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-width: 20rem; }

body {
  overflow-x: clip;
  background: var(--canvas);
  font-size: clamp(1rem, .96rem + .18vw, 1.12rem);
  line-height: 1.6;
}

img, video { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: .2em; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: .2rem solid var(--focus);
  outline-offset: .25rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: .75rem auto auto .75rem;
  padding: .75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  font-weight: 800;
}

.skip-link:focus { transform: translateY(0); }

.content-rail {
  width: min(var(--rail), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.concept-bar {
  min-height: 2.5rem;
  padding: .55rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--cool);
  color: #102127;
  font-size: .76rem;
  letter-spacing: .025em;
}

.concept-bar p { margin: 0; }
.concept-bar a { font-weight: 750; white-space: nowrap; }

.opening {
  position: relative;
  min-height: 92svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  color: #fff8ec;
  background: #4d1c0a;
}

.opening__media,
.opening__grade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.opening__media {
  z-index: -3;
  object-fit: cover;
  object-position: 56% 50%;
  filter: saturate(.88) contrast(1.02);
}

.opening__grade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(25, 9, 4, .87) 0%, rgba(25, 9, 4, .64) 42%, rgba(25, 9, 4, .12) 78%),
    linear-gradient(0deg, rgba(25, 9, 4, .56) 0%, transparent 42%);
}

.site-header {
  position: relative;
  z-index: 3;
  width: min(var(--rail), calc(100% - 2 * var(--gutter)));
  min-height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 248, 236, .34);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
  line-height: 1;
}

.wordmark span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.04em;
}

.wordmark small {
  margin-top: .38rem;
  font-size: .62rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.site-header nav { display: flex; align-items: center; gap: clamp(.85rem, 2.5vw, 2rem); }

.site-header nav a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:not(.nav-call) { border-bottom: 1px solid transparent; }
.site-header nav a:not(.nav-call):hover { border-color: currentColor; }

.nav-call {
  padding-inline: 1.2rem;
  background: var(--accent);
  color: #1d0e09 !important;
}

.opening__content {
  min-height: calc(92svh - var(--header-h));
  padding-block: clamp(4rem, 11svh, 8rem) 7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow,
.section-index {
  margin: 0 0 1.15rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.opening h1,
.details h2,
.selection h2,
.visit h2,
.scroll-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: .86;
  text-wrap: balance;
}

.opening h1 {
  max-width: 8.5ch;
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 8.7rem);
}

.opening h1 em { color: #ffc28e; font-weight: 400; }

.opening__lead {
  max-width: 35rem;
  margin: 1.65rem 0 0;
  color: rgba(255, 248, 236, .9);
  font-size: clamp(1rem, 1rem + .35vw, 1.35rem);
}

.action-row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.button {
  min-height: 3rem;
  padding: .8rem 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  border: 1px solid transparent;
  color: inherit;
  font-size: .84rem;
  font-weight: 820;
  letter-spacing: .045em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button--primary { background: var(--accent); color: #1d0e09; }
.button--primary:hover { background: #ff8652; }
.button--ghost { border-color: rgba(255, 248, 236, .65); background: rgba(18, 7, 3, .2); }
.button--ghost:hover { background: rgba(255, 248, 236, .12); }
.button--light { background: #fff8ec; color: var(--ink); }
.button--light:hover { background: #ffc28e; }
.button--cream { background: var(--canvas); color: var(--ink); }
.button--cream:hover { background: #fff; }
.button--outline { border-color: rgba(255,255,255,.45); }
.button--outline:hover { background: rgba(255,255,255,.1); }

.media-note {
  margin: 0;
  color: rgba(255, 248, 236, .78);
  font-size: .7rem;
  letter-spacing: .05em;
}

.opening__note { position: absolute; left: var(--gutter); bottom: 1.3rem; z-index: 2; }

.opening__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 1.1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section-pad { padding-block: clamp(5.5rem, 11vw, 10rem); }

.details { background: var(--canvas); }

.details__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(22rem, 1.05fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.details h2,
.selection h2,
.visit h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
}

.details__intro > p:not(.section-index),
.selection__copy > p:not(.section-index) {
  max-width: 38rem;
  margin: 2rem 0 1.25rem;
  color: var(--muted);
}

.text-link { font-weight: 820; text-decoration-thickness: .1em; }

.detail-ledger { margin: 0; border-top: 1px solid var(--rule); }

.detail-ledger div {
  padding: 1.4rem 0;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.detail-ledger dt {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.detail-ledger dd { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.25; }

.scroll-scene { position: relative; background: var(--ink); color: #fff8ec; }

.scroll-scene[data-motion-state="enhanced"] { height: 300svh; }
.scroll-scene[data-motion-state="enhanced"] .scroll-stage { position: sticky; top: 0; height: 100svh; }

.scroll-stage {
  position: relative;
  min-height: 92svh;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #2f1710 url("assets/images/dough-poster.webp") center / cover no-repeat;
}

.scroll-stage__video,
.scroll-stage__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-stage__video { z-index: -3; object-fit: cover; object-position: 55% center; }

.scroll-stage__shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(20, 7, 3, .86) 0%, rgba(20, 7, 3, .56) 52%, rgba(20, 7, 3, .2) 100%),
    linear-gradient(0deg, rgba(20, 7, 3, .7), transparent 45%);
}

.scroll-copy {
  position: absolute;
  inset: 0;
  padding-block: clamp(6rem, 16svh, 10rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.section-index--light { color: #ffc28e; }

.scroll-copy h2 { max-width: 10ch; margin: 0; font-size: clamp(3.25rem, 7.5vw, 7.7rem); }

.scroll-copy__body { max-width: 32rem; margin: 1.5rem 0; color: rgba(255,248,236,.78); }

.scene-meter {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  width: .2rem;
  height: min(36vh, 15rem);
  overflow: hidden;
  background: rgba(255,255,255,.24);
  transform: translateY(-50%);
}

.scene-meter span { display: block; width: 100%; height: calc(var(--scene-progress, 0) * 100%); background: var(--accent); }

.motion-fallback {
  position: absolute;
  right: var(--gutter);
  bottom: 3.2rem;
  z-index: 4;
  max-width: 23rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(21, 8, 4, .76);
  backdrop-filter: blur(.5rem);
}

.motion-fallback p { margin: 0; font-size: .78rem; }

.motion-fallback button {
  min-height: 2.75rem;
  margin-top: .6rem;
  padding: .55rem .8rem;
  border: 0;
  background: #fff8ec;
  color: var(--ink);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.scroll-scene[data-motion-state="enhanced"] .motion-fallback { display: none; }
.scroll-stage__note { position: absolute; left: var(--gutter); bottom: 1.4rem; z-index: 3; }
.noscript-note { margin: 0; padding: 1rem var(--gutter); background: #372019; color: #fff8ec; }

.selection { background: var(--paper); }

.selection__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(28rem, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 8rem);
}

.fine-print { font-size: .8rem; }

.selection-card {
  position: relative;
  min-height: clamp(28rem, 58vw, 44rem);
  display: block;
  overflow: hidden;
  background: #7c3e23;
  color: #fff8ec;
  text-decoration: none;
}

.selection-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; }

.selection-card__rest {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  padding: .4rem .6rem;
  background: rgba(27, 12, 7, .72);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.selection-card__overlay {
  position: absolute;
  inset: auto 0 0;
  min-height: 46%;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(0deg, rgba(28, 10, 4, .96), rgba(28, 10, 4, .14));
  opacity: .08;
  transform: translateY(24%);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.22, 1, .36, 1);
}

.selection-card__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.selection-card__overlay strong { margin-block: .55rem 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 5rem); line-height: .9; letter-spacing: -.055em; }
.selection-card__overlay > span:last-child { font-size: .84rem; font-weight: 820; letter-spacing: .06em; text-transform: uppercase; }

.selection-card:hover .selection-card__overlay,
.selection-card:focus .selection-card__overlay,
.selection-card:focus-visible .selection-card__overlay,
.selection-card[data-touch-active="true"] .selection-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.media-credit { margin-top: 1rem; color: var(--muted); font-size: .72rem; }

.visit { background: var(--ink); color: #fff8ec; }

.visit__heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .55fr); align-items: end; gap: clamp(2rem, 8vw, 8rem); }
.visit__heading p { max-width: 30rem; margin: 0; color: rgba(255,248,236,.72); }

.visit__ledger {
  margin-top: clamp(3.5rem, 8vw, 7rem);
  display: grid;
  grid-template-columns: 1.1fr 1fr .7fr;
  border-block: 1px solid rgba(255,255,255,.22);
}

.visit__ledger > div { min-height: 10rem; padding: 1.5rem; border-right: 1px solid rgba(255,255,255,.22); }
.visit__ledger > div:first-child { padding-left: 0; }
.visit__ledger > div:last-child { border-right: 0; }
.visit__ledger span { display: block; margin-bottom: 1.1rem; color: #ffc28e; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.visit__ledger strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.35; }

.visit__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

.site-footer { padding-block: clamp(4rem, 8vw, 7rem) 2rem; background: #160b08; color: rgba(255,248,236,.78); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.site-footer__grid p { margin: .5rem 0; font-size: .82rem; }
.site-footer__grid strong { color: #fff8ec; }
.wordmark--footer { color: #fff8ec; }
.site-footer__bottom { margin-top: 4rem; padding-top: 1.3rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 54rem) {
  .details__grid,
  .selection__grid,
  .visit__heading { grid-template-columns: 1fr; }

  .selection-card { min-height: min(34rem, 76svh); }
  .visit__ledger { grid-template-columns: 1fr; }
  .visit__ledger > div { min-height: auto; padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .visit__ledger > div:last-child { border-bottom: 0; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  :root { --header-h: 4.65rem; }
  .concept-bar { align-items: flex-start; font-size: .68rem; }
  .concept-bar a { display: none; }
  .site-header { gap: .75rem; }
  .site-header nav { gap: .35rem; }
  .site-header nav a { padding-inline: .45rem; font-size: .68rem; }
  .site-header nav a[href="#details"] { display: none; }
  .nav-call { padding-inline: .8rem !important; }
  .opening { min-height: 92svh; }
  .opening__media { object-position: 58% center; }
  .opening__grade { background: linear-gradient(90deg, rgba(25,9,4,.85), rgba(25,9,4,.42)), linear-gradient(0deg, rgba(25,9,4,.68), transparent 55%); }
  .opening__content { min-height: calc(92svh - var(--header-h)); padding-bottom: 8rem; }
  .opening h1 { font-size: clamp(3.35rem, 18vw, 5.35rem); }
  .opening__lead { max-width: 26rem; }
  .opening__note { max-width: 70%; }
  .opening__scroll { display: none; }
  .details__grid { gap: 3.5rem; }
  .detail-ledger div { grid-template-columns: 1fr; gap: .5rem; }
  .scroll-scene[data-motion-state="enhanced"] { height: 240svh; }
  .scroll-stage__video { object-position: 58% center; }
  .scroll-copy { padding-bottom: 9rem; }
  .scroll-copy h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .scroll-copy__body { max-width: 80%; }
  .motion-fallback { left: var(--gutter); right: var(--gutter); bottom: 3.4rem; }
  .scroll-stage__note { max-width: 75%; }
  .selection-card { min-height: 29rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div:first-child { grid-column: auto; }
  .site-footer__bottom { flex-direction: column; }
}

@media (hover: none) and (pointer: coarse) {
  .selection-card__overlay {
    min-height: 52%;
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .selection-card__overlay { transform: none; }
}
