/* Ember & Oat · concept by Tensaloom. Cinematic and photographic: dark
   charcoal acts for the film, cream acts for the reading, heavy uppercase type,
   one ember accent. */
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap; src: url(fonts/archivo-black-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url(/assets/fonts/geist-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url(/assets/fonts/geist-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --sc-font-display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --sc-font-text: "Geist", system-ui, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, monospace;
  --sc-canvas: #110d0a; --sc-surface: #1b1511;
  --sc-ink: #f4ebdd;    --sc-ink-soft: #b9ab99;
  --sc-accent: #f26a2e; --sc-accent-ink: #1b0f08;
  --cream: #efe5d4; --cream-2: #e6dac6;
  --ink: #1c150f; --ink-soft: #5f5246;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --gut: clamp(1.25rem, 5vw, 5rem);
  --dish: #f2c79d;
}

html { scroll-padding-top: 4rem; }
body { background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); font-size: 1.05rem; line-height: 1.6; }
h1, h2, h3, p, figure, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--sc-ink); color: var(--sc-canvas); padding: .5rem 1rem; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
img { display: block; max-width: 100%; }

/* ------------------------------------------------------------ type */
.mega { font: 400 clamp(3rem, 1.4rem + 5.4vw, 7.2rem)/.9 var(--sc-font-display); letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; }
.mega--md { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.6rem); line-height: .95; }
.mega--sm { font-size: clamp(2rem, 1.4rem + 1.8vw, 3.2rem); line-height: .95; }
.mega--ink { color: var(--ink); }
.kicker { font: .76rem var(--sc-font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sc-accent); }
.kicker--ink { color: #a8431a; }
.lede { font-size: clamp(1.05rem, .95rem + .35vw, 1.3rem); line-height: 1.5; color: var(--sc-ink-soft); max-width: 34rem; }
.body { color: var(--sc-ink-soft); max-width: 32rem; }
.body--ink { color: var(--ink-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .85rem 1.5rem; border-radius: 99px; border: 0; cursor: pointer;
  font: 500 1rem var(--sc-font-text); text-decoration: none; background: var(--sc-accent); color: var(--sc-accent-ink); transition: transform 160ms var(--ease), filter 160ms; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn--ghost { background: rgb(255 255 255 / .08); color: var(--sc-ink); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ink { background: var(--ink); color: var(--cream); }
.ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.ctas--center { justify-content: center; }

/* ------------------------------------------------------------ chrome */
.concept { position: relative; z-index: 41; padding: .45rem var(--gut); font: .7rem/1.4 var(--sc-font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--sc-ink-soft); background: #0b0806; }
.concept a { color: var(--sc-accent); }
.bar { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 2rem;
  padding: .7rem var(--gut); background: rgb(17 13 10 / .94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid rgb(255 255 255 / .06); }
.bar__mark { font: 400 1.05rem/1 var(--sc-font-display); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.bar__mark span, .foot__mark span { color: var(--sc-accent); }
.bar__nav { display: flex; gap: 1.75rem; }
.bar__nav a { font-size: .92rem; color: var(--sc-ink-soft); text-decoration: none; }
.bar__nav a:hover { color: var(--sc-ink); }
.pill { font: 500 .88rem var(--sc-font-text); padding: .55rem 1.05rem; border-radius: 99px; border: 0; cursor: pointer; background: var(--sc-accent); color: var(--sc-accent-ink); }

/* ------------------------------------------------------------ 1 · hero */
.hero__stage { background: #0b0806; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 7 5 / .88) 0%, rgb(10 7 5 / .62) 30%, rgb(10 7 5 / .08) 58%, transparent 70%); }
.hero__copy { position: absolute; z-index: 2; left: var(--gut); top: 50%; translate: 0 -46%; width: min(40rem, 50vw); display: grid; gap: 1.4rem; }
.hero__copy .mega { color: #fbf3e7; }

/* ------------------------------------------------------------ 2 · the problem */
.sad { padding: clamp(6rem, 16vh, 11rem) var(--gut); background: var(--sc-canvas); }
.sad__grid { max-width: 78rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.sad__copy { display: grid; gap: 1.75rem; }
.sad__photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .8); }
.sad__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7); }

/* ------------------------------------------------------------ 3 · the tear */
.tear__stage { background: #0a0806; }
.tear__copy { position: absolute; z-index: 2; display: grid; gap: 1rem; }
.tear__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(60% 55% at 18% 20%, rgb(8 6 4 / .62), transparent 70%); opacity: calc(1 - var(--sc-p, 0) * 1.6); }
.tear__copy--a { left: var(--gut); top: 14vh; }
.tear__copy--a .mega { color: #fbf3e7; text-shadow: 0 6px 40px rgb(0 0 0 / .6); }
.tear__copy--b { right: var(--gut); bottom: 10vh; max-width: 26rem; text-align: right; justify-items: end;
  padding: 1.25rem 1.5rem; border-radius: 18px; background: rgb(10 8 6 / .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tear__copy--b .lede { color: #e8dccb; }

/* ------------------------------------------------------------ 4 · made here */
.made { padding: clamp(6rem, 16vh, 11rem) var(--gut); background: var(--cream); color: var(--ink); }
.made__grid { max-width: 78rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.made__copy { display: grid; gap: 1.75rem; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid rgb(28 21 15 / .15); padding-top: 1.25rem; }
.facts b { display: block; font: 400 1.8rem/1 var(--sc-font-display); color: var(--ink); }
.facts span { font-size: .88rem; color: var(--ink-soft); }
.made__photos { position: relative; aspect-ratio: 1 / 1.05; }
.made__a, .made__b { position: absolute; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 70px -35px rgb(40 24 12 / .6); }
.made__a { right: 0; top: 0; width: 76%; aspect-ratio: 4 / 5; }
.made__b { left: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: 6px solid var(--cream); }
.made__a img, .made__b img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ 5 · the menu */
.menu__stage { display: grid; align-items: center; background: color-mix(in oklab, var(--cream) 72%, var(--dish)); transition: background-color 600ms var(--ease); }
.menu__grid { width: 100%; max-width: 80rem; margin-inline: auto; padding: 4.5rem var(--gut) 2rem;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); grid-template-rows: auto 1fr; gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start; }
.menu__head { display: grid; gap: 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tabs button { font: 500 .9rem var(--sc-font-text); padding: .55rem 1rem; border-radius: 99px; cursor: pointer; border: 1px solid rgb(28 21 15 / .22); background: transparent; color: var(--ink); transition: background-color 250ms, color 250ms; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plate { container-type: inline-size; grid-column: 2; grid-row: 1 / span 2; position: relative; aspect-ratio: 4 / 5; max-height: calc(100svh - 9rem); justify-self: center; width: auto; height: calc(100svh - 9rem); max-width: 100%;
  border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -40px rgb(40 24 12 / .55); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04) translateY(10px); transition: opacity 500ms var(--ease), transform 700ms var(--ease); }
.plate img.is-on { opacity: 1; transform: none; }
.plate__word { position: absolute; left: 50%; top: 6%; translate: -50% 0; white-space: nowrap; z-index: 1; pointer-events: none;
  font: 400 12cqw/1 var(--sc-font-display); text-transform: uppercase; letter-spacing: -.02em;
  color: rgb(255 255 255 / .38); mix-blend-mode: soft-light; }
.dish { display: grid; gap: 1rem; align-content: start; max-width: 30rem; }
.dish__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dish__price { font: 400 1.8rem var(--sc-font-display); color: var(--ink); }
.now { font: .72rem var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; padding: .4rem .75rem; border-radius: 99px; background: var(--ink); color: var(--cream); }
.now.is-off { background: transparent; color: var(--ink-soft); box-shadow: inset 0 0 0 1px rgb(28 21 15 / .3); }
.dish .btn { justify-self: start; margin-top: .5rem; }
[data-dish-name], [data-dish-desc], [data-dish-kicker] { transition: opacity 250ms; }
.dish.is-swapping [data-dish-name], .dish.is-swapping [data-dish-desc], .dish.is-swapping [data-dish-kicker] { opacity: 0; }

/* ------------------------------------------------------------ 6 · the café */
.room__stage { background: #0a0806; }
.room__img { position: absolute; inset: 0; transition: opacity 900ms var(--ease); }
.room__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--sc-p, 0) * .08)); transform-origin: 60% 45%; }
.room__img--evening { opacity: 0; }
.room__img--evening img { filter: brightness(.78) saturate(1.1); }
[data-time="evening"] .room__img--evening { opacity: 1; }
.room__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(10 7 5 / .9) 0%, rgb(10 7 5 / .55) 32%, transparent 60%); }
.room__copy { position: absolute; z-index: 2; left: var(--gut); right: var(--gut); bottom: clamp(2rem, 8vh, 5rem); display: grid; gap: 1rem; max-width: 44rem; }
.room__copy .mega { color: #fbf3e7; }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; justify-self: start; margin-top: .5rem; padding: .3rem; border-radius: 99px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.switch button { position: relative; z-index: 1; font: 500 .95rem var(--sc-font-text); padding: .65rem 1.4rem; border: 0; border-radius: 99px; background: transparent; color: #e8dccb; cursor: pointer; transition: color 300ms; }
.switch button[aria-checked="true"] { color: var(--sc-accent-ink); }
.switch__knob { position: absolute; top: .3rem; bottom: .3rem; left: .3rem; width: calc(50% - .3rem); border-radius: 99px; background: var(--sc-accent); transition: transform 450ms var(--ease); }
[data-time="evening"] .switch__knob { transform: translateX(100%); }
[data-now].is-swap { animation: swap 600ms var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------ 7 · out the door */
.door { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #0a0806; }
.door__img { position: absolute; inset: 0; }
.door__img img { width: 100%; height: 100%; object-fit: cover; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 7 5 / .7), transparent 55%), linear-gradient(0deg, rgb(10 7 5 / .6), transparent 45%); }
.door__copy { position: relative; z-index: 1; padding: 0 var(--gut) clamp(3rem, 10vh, 6rem); display: grid; gap: 1.25rem; }
.door__copy .mega { color: #fbf3e7; }

/* ------------------------------------------------------------ 8 · questions */
.faq { padding: clamp(6rem, 14vh, 10rem) var(--gut); background: var(--cream); color: var(--ink); }
.faq__grid { max-width: 78rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list { border-top: 1px solid rgb(28 21 15 / .18); }
.faq details { border-bottom: 1px solid rgb(28 21 15 / .18); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-weight: 500; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sc-font-display); color: #a8431a; transition: transform 250ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2.5rem 1.4rem 0; color: var(--ink-soft); }

/* ------------------------------------------------------------ 9 · close */
.close { position: relative; display: grid; overflow: hidden; background: #060403; }
.close__copy { position: relative; z-index: 2; justify-self: center; text-align: center; display: grid; justify-items: center; gap: 1.25rem; padding: clamp(5rem, 14vh, 9rem) var(--gut) 0; }
/* the film sits under the words, its dark top dissolving into the page */
.close__video { display: block; width: 100%; height: min(62svh, 56vw); margin-top: -4rem; object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 80%, transparent 100%); }
.close__copy .mega { color: #fbf3e7; }
.foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem 2rem; flex-wrap: wrap; padding: 1.5rem var(--gut) 2rem; border-top: 1px solid rgb(255 255 255 / .08); }
.foot__mark { font: 400 1.05rem var(--sc-font-display); letter-spacing: .04em; }
.foot__concept { max-width: 40rem; font-size: .85rem; color: var(--sc-ink-soft); }
.foot__concept a { color: var(--sc-accent); }

/* ------------------------------------------------------------ order dialog */
.order { width: min(34rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid rgb(255 255 255 / .1); border-radius: 22px; background: #1b1511; color: var(--sc-ink); box-shadow: 0 40px 100px rgb(0 0 0 / .7); }
.order::backdrop { background: rgb(5 3 2 / .7); backdrop-filter: blur(4px); }
.order[open] { animation: pop 260ms var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.order__x { position: absolute; right: .75rem; top: .75rem; }
.order__x button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgb(255 255 255 / .08); color: var(--sc-ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.order__form, .ticket { display: grid; gap: 1.1rem; padding: 1.75rem; }
.order__form[hidden], .ticket[hidden] { display: none; }
.order__title { font: 400 1.7rem/1 var(--sc-font-display); text-transform: uppercase; padding-right: 2.5rem; }
.order__sub { color: var(--sc-ink-soft); font-size: .95rem; }
.order__items { border: 0; margin: 0; padding: 0; border-top: 1px solid rgb(255 255 255 / .1); }
.order__items label { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgb(255 255 255 / .1); cursor: pointer; }
.order__items input { width: 1.1rem; height: 1.1rem; accent-color: var(--sc-accent); }
.order__items em { font-style: normal; font: .85rem var(--sc-font-mono); color: var(--sc-ink-soft); }
.order__items label.is-off { color: var(--sc-ink-soft); cursor: not-allowed; }
.order__items label.is-off span { text-decoration: line-through; }
.order__items label.is-off em::after { content: " sold out"; }
.order__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order__field { display: grid; gap: .35rem; font: .72rem var(--sc-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sc-ink-soft); }
.order__field select, .order__field input { font: 1rem var(--sc-font-text); color: var(--sc-ink); background: #110d0a; border: 1px solid rgb(255 255 255 / .14); border-radius: 10px; padding: .65rem .75rem; min-height: 2.9rem; }
.order__err { color: #ff9b8f; font-size: .9rem; }
.order__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.order__total b { font: 400 1.5rem var(--sc-font-display); margin-left: .4rem; }
.order__demo { font: .72rem var(--sc-font-mono); color: var(--sc-ink-soft); }
.ticket .btn { justify-self: start; }

/* ------------------------------------------------------------ phones */
@media (max-width: 900px) {
  .bar__nav { display: none; }
  .bar { grid-template-columns: 1fr auto; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .hero__shade { background: linear-gradient(0deg, rgb(10 7 5 / .96) 0%, rgb(10 7 5 / .86) 42%, rgb(10 7 5 / .45) 58%, transparent 74%); }
  .hero__copy { top: auto; bottom: 1.75rem; translate: none; left: 1.25rem; right: 1.25rem; width: auto; gap: 1rem; }
  .hero__copy .lede { font-size: 1rem; }
  .sad__grid, .made__grid, .faq__grid { grid-template-columns: 1fr; }
  .sad__photo { width: 88%; justify-self: end; }
  /* the tear: shown whole, full width, words above and below it */
  .tear__stage video[data-sc-scrub], .tear__stage .sc-stage__poster { object-fit: contain; }
  .tear__copy--a { top: 5.5rem; }
  .tear__copy--b { left: 1.25rem; right: 1.25rem; bottom: 2rem; text-align: left; justify-items: start; max-width: none; }
  .facts b { font-size: 1.4rem; }
  .made__photos { margin-top: 1rem; }
  .menu__grid { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding: 4.25rem 1.25rem 1.25rem; gap: 1rem; align-content: start; height: 100%; }
  .menu__head { gap: .9rem; }
  .menu__head .mega { font-size: 2rem; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .tabs button { flex: none; padding: .5rem .85rem; }
  .plate { grid-column: 1; grid-row: auto; height: 38svh; width: auto; justify-self: start; border-radius: 18px; }
  .dish { gap: .6rem; }
  .dish .mega--sm { font-size: 1.7rem; }
  .dish .body { font-size: .95rem; }
  .dish .btn { display: none; }
  .room__copy { bottom: 1.75rem; }
  .order__row { grid-template-columns: 1fr; }
  .close__video { margin-top: 1.5rem; height: auto; aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .plate img, .room__img, .switch__knob { transition: none; }
  .room__img img { transform: none; }
}
