/* Saltmeadow Table. One idea: the fire is the kitchen.
   Palette: charred oak (bg), bone (text), one ember accent. Type: Bodoni Moda display, Geist text.
   Layout: 12-column grid inside .wrap, 8px spacing scale, square corners (2px). Circles belong to the plate only. */

@font-face {
  font-family: "Bodoni Moda";
  src: url("/concepts/saltmeadow-table/fonts/bodoni-moda.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bodoni Moda";
  src: url("/concepts/saltmeadow-table/fonts/bodoni-moda-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/concepts/saltmeadow-table/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --oak: #120f0c;
  --oak-2: #1b1713;
  --oak-3: #26201a;
  --bone: #ece4d6;
  --bone-2: rgba(236, 228, 214, .68);
  --rule: rgba(236, 228, 214, .16);
  --ember: #d9592a;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --text: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --gut: clamp(16px, 2.2vw, 28px);
  --pad: clamp(16px, 4vw, 56px);
  --sec: clamp(88px, 12vw, 168px);

  --cx-ink: var(--bone);
  --cx-paper: #1d1914;
  --cx-accent: var(--ember);
  --cx-on-accent: var(--oak);
  --cx-phone: #0a0807;
  --cx-in: #2e271f;
  --cx-in-ink: var(--bone);
  --cx-font: var(--text);
}

* { box-sizing: border-box; }
html { background: var(--oak); }
body {
  margin: 0;
  background: var(--oak);
  color: var(--bone);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
::selection { background: var(--ember); color: var(--oak); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gut); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; font-optical-sizing: auto; }
h2 { font-size: clamp(42px, 5.6vw, 88px); line-height: 1; letter-spacing: -.02em; }
h2 em, h1 em { font-style: italic; }
p { margin: 0; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--bone-2); max-width: 46ch; }

/* Buttons: square, ember or outlined. One label per intent across the page. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  background: var(--ember);
  color: var(--oak);
  font: 600 15px/1 var(--text);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--ember);
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .2s ease, color .2s ease;
}
.btn:hover { background: #e86a3a; border-color: #e86a3a; }
.btn:active { transform: scale(.97); }
.btn-ghost { background: rgba(18, 15, 12, .35); color: var(--bone); border-color: rgba(236, 228, 214, .55); }
.btn-ghost:hover { background: var(--bone); color: var(--oak); border-color: var(--bone); }
.demo-note { font-size: 13px; color: var(--bone-2); }

.tag {
  display: inline-block;
  justify-self: start;
  font: 600 11px/1 var(--text);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  border: 1px solid rgba(217, 89, 42, .55);
  padding: 6px 8px 5px;
  border-radius: 2px;
}

/* Header: sits over the hero, turns solid once the page moves. */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  margin-bottom: -72px;
  height: 72px;
  transition: background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(18, 15, 12, .9); border-color: var(--rule); backdrop-filter: blur(10px); }
.top-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.mark {
  font: 600 15px/1 var(--display);
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
  padding: 14px 0;
}
.top nav { display: flex; gap: 28px; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--bone-2); padding: 12px 0; transition: color .2s ease; }
.top nav a:hover { color: var(--bone); }
.top .btn { min-height: 44px; padding: 0 18px; }

/* Hero: the oven photo, embers over it, then the photo closes into a plate on scroll. */
.hero { position: relative; height: 230vh; }
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  --q: 0;
}
.disc { position: absolute; inset: 0; background: var(--oak-2); will-change: clip-path; }
.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph-oven { object-position: 62% 40%; transform: scale(calc(1.06 - var(--q) * .06)); opacity: clamp(0, 1 - (var(--q) - .36) * 3.4, 1); }
/* Sized so the plate's rim lands inside the closed circle (the rim is 41% of the photo's width). */
.ph-plate {
  inset: auto;
  left: 50%;
  top: var(--cy, 55%);
  width: var(--pw, 60vmin);
  height: auto;
  aspect-ratio: 1;
  opacity: clamp(0, (var(--q) - .44) * 4, 1);
  transform: translate(-50%, -50%) scale(calc(1.8 - var(--q) * .8));
}
.embers { position: absolute; inset: 0; width: 100%; height: 100%; opacity: calc(1 - var(--q) * 1.8); pointer-events: none; }
.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(18, 15, 12, .7), rgba(18, 15, 12, 0) 22%),
    linear-gradient(to top, rgba(18, 15, 12, .94) 0%, rgba(18, 15, 12, .55) 34%, rgba(18, 15, 12, 0) 62%),
    linear-gradient(to right, rgba(18, 15, 12, .6), rgba(18, 15, 12, 0) 55%);
  opacity: calc(1 - var(--q) * 2.4);
}
.ring {
  position: absolute;
  left: 50%;
  top: var(--cy, 55%);
  width: calc(var(--rend, 200px) * 2 + 36px);
  aspect-ratio: 1;
  border: 1px solid rgba(236, 228, 214, .22);
  border-radius: 50%;
  translate: -50% -50%;
  opacity: clamp(0, (var(--q) - .78) * 5, 1);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: clamp(28px, 6vh, 64px);
  opacity: calc(1 - var(--q) * 3.4);
  transform: translateY(calc(var(--q) * -80px));
}
.stage.closing .hero-copy { pointer-events: none; }
.hero-copy .grid { align-items: end; row-gap: 28px; }
.hero h1 {
  grid-column: 1 / span 9;
  font-size: clamp(56px, 7.8vw, 128px);
  line-height: .94;
  letter-spacing: -.025em;
  font-weight: 500;
}
.hero h1 .ln { display: block; padding-bottom: .04em; }
@media (min-width: 1081px) { .hero h1 .ln { white-space: nowrap; } }
.hero-side { grid-column: 10 / span 3; display: grid; gap: 18px; padding-bottom: 10px; }
.hero-side p:first-child { font-size: 17px; color: var(--bone); max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-gen { position: absolute; right: var(--pad); top: 88px; opacity: clamp(0, .72 - (var(--q) - .45) * 3, .72); }
.plate-gen { position: absolute; left: 0; right: 0; text-align: center; top: calc(var(--cy, 55%) + var(--rend, 200px) + 34px); opacity: clamp(0, (var(--q) - .8) * 3.6, .72); }

.cx-js .hero h1 .ln { animation: rise 1.1s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .12s); }
.cx-js .hero-side { animation: rise 1.1s var(--ease) .5s both; }
@keyframes rise { from { opacity: 0; transform: translateY(36px); } }
@media (prefers-reduced-motion: reduce) {
  .cx-js .hero h1, .cx-js .hero h1 .ln, .cx-js .hero-side { animation-duration: 1.8s; }
}

.board-intro {
  position: absolute;
  left: 0;
  right: 0;
  top: max(84px, 10vh);
  text-align: center;
  padding: 0 var(--pad);
  opacity: clamp(0, (var(--q) - .62) * 3.2, 1);
  transform: translateY(calc((1 - var(--q)) * 40px));
  pointer-events: none;
}
.board-intro h2 { font-size: clamp(44px, 6.4vw, 104px); }
.board-intro p { margin-top: 10px; color: var(--bone-2); }

/* The board: a printed weekly menu. */
.board { padding: clamp(56px, 8vw, 104px) 0 var(--sec); }
.board-grid { align-items: start; }
.board-photo { grid-column: 1 / span 4; margin: 0; position: sticky; top: 96px; }
.board-photo img { width: 100%; height: auto; aspect-ratio: 896 / 1200; object-fit: cover; }
.board-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--bone-2); display: grid; gap: 4px; }
.sheet {
  grid-column: 6 / span 7;
  border-top: 2px solid var(--bone);
}
.sheet-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 14px 0 18px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--bone-2);
  border-bottom: 1px solid var(--rule);
}
.course { padding: 40px 0 8px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 24px; }
.course + .course { border-top: 1px solid var(--rule); }
.course h3 { font-size: 26px; line-height: 1.1; font-style: italic; }
.course ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.dish { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; }
.dish b { font: 500 22px/1.2 var(--display); }
.dish .price { font: 500 20px/1 var(--display); font-variant-numeric: lining-nums tabular-nums; }
.dish small { grid-column: 1 / -1; font-size: 15px; color: var(--bone-2); margin-top: 2px; }
.dish i {
  font: 600 10.5px/1 var(--text);
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ember);
  margin-left: 10px;
  vertical-align: 3px;
}
.sheet-foot { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--bone-2); max-width: 62ch; }
.sheet-foot b { color: var(--bone); font-weight: 600; }

/* Pickup: a timeline by the clock, its line burns along with scroll. */
.pickup { padding: var(--sec) 0; background: var(--oak-2); }
.texts h2, .room h2, .faq h2 { font-size: clamp(40px, 4.4vw, 68px); line-height: 1.02; }
.pickup-head { display: grid; gap: 20px; max-width: 760px; }
.fuse { position: relative; list-style: none; margin: 72px 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gut); --f: 0; }
.fuse::before, .fuse::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--rule); }
.fuse::after { background: var(--ember); transform-origin: left; transform: scaleX(var(--f)); }
.fuse li { position: relative; padding-top: 36px; }
.fuse li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--oak-2);
  border: 2px solid rgba(236, 228, 214, .4);
  z-index: 1;
  transition: background-color .4s ease, border-color .4s ease;
}
.fuse li.lit::before { background: var(--ember); border-color: var(--ember); }
.fuse time { display: block; font: 500 34px/1 var(--display); font-variant-numeric: lining-nums; margin-bottom: 12px; }
.fuse p { color: var(--bone-2); max-width: 26ch; }
.pickup-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* FlowWays features in the kitchen's own voice. */
.texts { padding: var(--sec) 0; }
.texts-grid { row-gap: 64px; }
.texts-copy { grid-column: 1 / span 5; display: grid; gap: 28px; align-content: start; position: sticky; top: 104px; }
.feat { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); }
.feat h3 { font-size: 26px; line-height: 1.15; }
.feat p { color: var(--bone-2); }
.phones { grid-column: 7 / span 6; display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); align-items: start; }
.phones figure { margin: 0; display: grid; gap: 16px; }
.phones figure:nth-child(2) { margin-top: 120px; }
.phones figcaption { font-size: 14px; color: var(--bone-2); max-width: 32ch; margin: 0 auto; text-align: center; }
.cx-screen { min-height: 470px; }
.cx-msg { font-size: 13.5px; }
.cx-msg a { color: inherit; }

.desk { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gut); }
.desk > div { background: var(--oak-2); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); display: grid; gap: 18px; align-content: start; }
.desk h3 { font-size: 30px; line-height: 1.1; }
.asks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.asks li { font: italic 500 19px/1.35 var(--display); color: var(--bone); }
.asks li::before { content: "\201C"; color: var(--ember); margin-right: 2px; }
.asks li::after { content: "\201D"; color: var(--ember); }
.desk .btn-ghost { justify-self: start; }
.slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.slots a {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgba(236, 228, 214, .3);
  border-radius: 2px;
  text-decoration: none;
  font: 500 18px/1 var(--display);
  font-variant-numeric: lining-nums;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease);
}
.slots a:hover { background: var(--ember); color: var(--oak); border-color: var(--ember); }
.slots a:active { transform: scale(.97); }

/* Back room: a floor plan whose seats get set as you scroll. */
.room { padding: var(--sec) 0; background: var(--oak-2); border-top: 1px solid var(--rule); }
.room-grid { align-items: center; row-gap: 48px; }
.plan { grid-column: 1 / span 7; margin: 0; }
.plan svg { width: 100%; height: auto; }
.plan figcaption { margin-top: 12px; font-size: 14px; color: var(--bone-2); }
.room-photo { grid-column: 1 / -1; margin: 0; }
.room-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; }
.room-photo figcaption { margin-top: 12px; }
.seat { fill: var(--oak-2); stroke: rgba(236, 228, 214, .45); stroke-width: 1.5; transition: fill .35s ease, stroke .35s ease; }
.seat.on { fill: var(--ember); stroke: var(--ember); }
.room-copy { grid-column: 9 / span 4; display: grid; gap: 24px; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.facts li span:last-child { color: var(--bone); text-align: right; font-family: var(--display); font-size: 19px; }
.facts li span:first-child { color: var(--bone-2); }

/* Reviews: one large, three small. */
.reviews { padding: var(--sec) 0; }
.reviews h2 { grid-column: 1 / -1; margin-bottom: 56px; }
.rev { margin: 0; display: grid; gap: 14px; align-content: start; }
.rev blockquote { margin: 0; font-family: var(--display); }
.rev figcaption { font-size: 14px; color: var(--bone-2); display: grid; gap: 2px; }
.rev figcaption b { color: var(--bone); font-weight: 600; }
.rev-big { grid-column: 1 / span 7; padding-right: 24px; }
.rev-big blockquote { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.12; font-style: italic; letter-spacing: -.01em; }
.rev-list { grid-column: 9 / span 4; display: grid; gap: 36px; }
.rev-list .rev { padding-top: 20px; border-top: 1px solid var(--rule); }
.rev-list blockquote { font-size: 21px; line-height: 1.35; }

/* FAQ */
.faq { padding: var(--sec) 0; background: var(--oak-2); }
.faq h2 { grid-column: 1 / span 4; align-self: start; position: sticky; top: 104px; }
.faq-list { grid-column: 6 / span 7; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 16px 0;
  font: 500 22px/1.25 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 28px/1 var(--text); color: var(--ember); transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--bone-2); max-width: 60ch; }

/* Visit */
.visit { padding: var(--sec) 0 calc(var(--sec) * .8); }
.visit-grid { row-gap: 48px; }
.map { grid-column: 1 / span 7; margin: 0; }
.map svg { width: 100%; height: auto; background: var(--oak-2); border: 1px solid var(--rule); }
.map figcaption { margin-top: 10px; font-size: 13px; color: var(--bone-2); }
.visit-copy { grid-column: 9 / span 4; display: grid; gap: 28px; align-content: start; }
.addr { font: 500 26px/1.25 var(--display); }
.addr a { text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.hours li span:first-child { color: var(--bone-2); }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 15px; }
.foot-grid { row-gap: 32px; }
.foot-biz { grid-column: 1 / span 6; display: grid; gap: 6px; }
.foot-biz .mark { padding: 0 0 8px; font-size: 18px; }
.foot-biz p { color: var(--bone-2); }
.foot-fw { grid-column: 8 / span 5; display: grid; gap: 8px; align-content: start; color: var(--bone-2); }
.foot-fw a { color: var(--bone); }

@media (max-width: 1080px) {
  .top nav { display: none; }
  .hero h1 { grid-column: 1 / -1; }
  .hero-side { grid-column: 1 / span 8; }
  .board-photo { grid-column: 1 / span 5; }
  .sheet { grid-column: 6 / span 7; }
  .course { grid-template-columns: 1fr; gap: 18px; }
  .texts-copy { grid-column: 1 / -1; position: static; }
  .phones { grid-column: 1 / -1; }
  .room-copy, .visit-copy { grid-column: 1 / -1; }
  .plan, .map { grid-column: 1 / -1; }
  .room-photo img { aspect-ratio: 16 / 9; }
  .rev-big, .rev-list { grid-column: 1 / -1; }
  .rev-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
  .faq h2 { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .faq-list { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { height: 64px; margin-bottom: -64px; }
  .top-in { gap: 12px; }
  .mark { font-size: 13px; letter-spacing: .2em; }
  .hero { height: 200vh; }
  .ph-oven { object-position: 64% 40%; }
  .scrim { background: linear-gradient(to bottom, rgba(18, 15, 12, .7), rgba(18, 15, 12, 0) 20%), linear-gradient(to top, rgba(18, 15, 12, .96) 0%, rgba(18, 15, 12, .7) 42%, rgba(18, 15, 12, .1) 70%); }
  .hero-copy .grid { row-gap: 18px; }
  .hero h1 { font-size: clamp(50px, 14.4vw, 76px); }
  /* On phones the headline flows as one paragraph, so it animates as a whole. */
  .hero h1 .ln { display: inline; }
  .cx-js .hero h1 .ln { animation: none; }
  .cx-js .hero h1 { animation: rise 1.1s var(--ease) .12s both; }
  .hero-copy { padding-bottom: 92px; }
  .hero-side { grid-column: 1 / -1; gap: 14px; }
  .hero-gen { top: 76px; }
  .board-photo { grid-column: 1 / -1; position: static; }
  .board-photo img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
  .sheet { grid-column: 1 / -1; margin-top: 40px; }
  .dish b { font-size: 20px; }
  .fuse { grid-template-columns: 1fr; gap: 32px; margin: 48px 0; padding-left: 36px; }
  .fuse::before, .fuse::after { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .fuse::after { transform-origin: top; transform: scaleY(var(--f)); }
  .fuse li { padding-top: 0; }
  .fuse li::before { left: -36px; top: 6px; }
  .fuse time { font-size: 28px; margin-bottom: 6px; }
  .phones { grid-template-columns: 1fr; gap: 56px; }
  .phones figure:nth-child(2) { margin-top: 0; }
  .desk { grid-template-columns: 1fr; }
  .rev-list { grid-template-columns: 1fr; }
  .facts li span:last-child { font-size: 17px; }
  .foot-biz, .foot-fw { grid-column: 1 / -1; }
}
