/* Garrow's — a sample site. Direction: the dark room (lit things in one dark field).
   Palette taken from the forge itself: soot ground, ash-white ink, one ember accent on the action. */

@font-face { font-family: "Clash Grotesk"; src: url("assets/fonts/clash-grotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("assets/fonts/clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #14100d;          /* soot */
  --surface: #221b16;     /* one tone step: the card, the controls */
  --ink: #eceae6;         /* ash white, not pure white */
  --muted: #b5aa9c;
  --accent: #ffa63d;      /* ember: the one action */
  --accent-strong: #ffb85f;
  --accent-ink: #14100d;

  --font: "Clash Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);   /* 14–15 */
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17–19 */
  --step-lead: clamp(1.25rem, 1.05rem + 0.75vw, 1.75rem);      /* 20–28 */
  --step-statement: clamp(1.5rem, 1.05rem + 1.5vw, 2.25rem);   /* 24–36 */
  --step-head: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);           /* 40–68 */

  --margin: clamp(1.25rem, 2.2vw, 2rem);
  --gutter: clamp(1rem, 2vw, 2rem);
  --gap: clamp(6rem, 13vw, 12.5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
h1, h2, h3, p, figure, ul, dl, dd, address { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; hyphens: none; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: rgb(236 234 230 / 0.45); transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:target { scroll-margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-color: currentColor; }
}

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

/* ---------- the one action ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0 1.75rem; background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--wide { display: flex; width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
}

/* ---------- header ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 5; display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; padding: 1.5rem var(--margin); }
.top__mark { font-weight: 500; text-decoration: none; letter-spacing: 0.01em; }
.top__nav { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); }
.top__link { text-decoration-color: transparent; }
.top__link--book { text-decoration-color: currentColor; }

/* ---------- hero: the fire as the object on the counter ---------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5rem var(--margin) 2.5rem; text-align: center; }
.hero__fire { height: min(52svh, 36vw); aspect-ratio: 4 / 5; overflow: clip; background: #120d0a; }
.hero__clip { width: 100%; height: 100%; object-fit: cover; background: #120d0a; transform: scale(1.25); transform-origin: 50% 25%; }
.hero__name { margin-top: 1.75rem; font-size: clamp(3.25rem, 7.4vw, 8rem); line-height: 0.92; font-weight: 400; text-transform: uppercase; white-space: nowrap; }
.hero__letters { display: inline-block; letter-spacing: var(--ls, 0.4em); margin-right: calc(-1 * var(--ls, 0.4em)); }
.hero__tight { letter-spacing: calc(var(--ls, 0.4em) * 0.18); }
.hero__line { margin-top: 1.75rem; font-size: var(--step-statement); line-height: 1.2; max-width: 34em; }
.hero__row { margin-top: 2.25rem; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 3rem; }
.hero__status { justify-self: end; text-align: right; }
.hero__addr { justify-self: start; text-align: left; }

/* ---------- the old forge: a statement held on the left while the paintings pass on the right ---------- */
.story { margin-top: calc(var(--gap) * 0.6); padding-inline: var(--margin); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.story__pin { grid-column: 1 / 7; }
.story__text { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; max-width: 42rem; padding-right: var(--gutter); }
.story__title { font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.story__statement { margin-top: 1.75rem; font-size: var(--step-statement); line-height: 1.22; }
.story__pics { grid-column: 7 / 13; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gutter); align-content: start; padding: 30svh 0 2svh; }
.story__pic img { width: 100%; filter: brightness(0.86) contrast(1.04); }
.story__pic figcaption { margin-top: 0.75rem; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.story__pic--a { grid-column: 1 / 5; }
.story__pic--a img { aspect-ratio: 4 / 5; object-fit: cover; }
.story__pic--b { grid-column: 1 / 7; margin-top: 12svh; }
.story__pic--b img { aspect-ratio: 16 / 10; object-fit: cover; }
.story__pic--c { grid-column: 3 / 7; margin-top: 12svh; }
.story__pic--c img { aspect-ratio: 1; object-fit: cover; }

/* ---------- the menu: one size, the fire's clock in the third column ---------- */
.menu { margin-top: var(--gap); padding-inline: var(--margin); }
.menu__head { align-items: end; row-gap: 1.25rem; }
.menu__title { grid-column: 1 / 5; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.menu__intro { grid-column: 5 / 10; max-width: 46ch; }
.menu__table { width: 100%; margin-top: 3rem; border-collapse: collapse; font-size: var(--step-lead); line-height: 1.5; font-variant-numeric: tabular-nums; }
.menu__part { display: block; }
.menu__table tr { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.menu__table th, .menu__table td { padding: 0; text-align: left; font-weight: 400; vertical-align: baseline; }
.menu__parthead { position: sticky; top: 0; z-index: 1; margin-top: 3rem; padding: 0.75rem 0 0.75rem; background: var(--bg); }
.menu__part:first-of-type .menu__parthead { margin-top: 0; }
.menu__parthead th { grid-column: 1 / -1; font-weight: 500; }
.menu__when { margin-left: 0.6em; font-weight: 400; color: var(--muted); }
.menu__dish { grid-column: 1 / 5; }
.menu__with { grid-column: 5 / 9; }
.menu__fire { grid-column: 9 / 12; color: var(--muted); }
.menu__price { grid-column: 12 / 13; text-align: right !important; }
.menu__firem { display: none; }
.menu__note { margin-top: 3.5rem; margin-left: calc((100% - 11 * var(--gutter)) / 3 + 4 * var(--gutter)); max-width: 46ch; color: var(--muted); }

/* ---------- the long table: the paragraph opens with a picture the size of a drop capital ---------- */
.long { margin-top: var(--gap); padding-inline: var(--margin); }
.long__grid { row-gap: 2.5rem; }
.long__title { grid-column: 5 / 13; font-size: var(--step-head); line-height: 1; letter-spacing: -0.02em; }
.long__facts { grid-column: 1 / 4; grid-row: 2; display: grid; gap: 1rem; align-content: start; padding-top: 0.4rem; font-size: var(--step-body); line-height: 1.4; }
.long__body { grid-column: 5 / 13; grid-row: 2; }
.long__lead { font-size: var(--step-lead); line-height: 1.32; max-width: 52ch; }
.long__lead + .long__lead { margin-top: 1.32em; }
.long__lead--soft { color: var(--muted); }
.long__cap { float: left; width: 5.2em; height: 5.2em; margin: 0.3em 0.65em 0.2em 0; object-fit: cover; }
.long__first { font-weight: 500; }
.long__ask { display: inline-block; margin-top: 2.25rem; font-size: var(--step-lead); text-decoration-color: currentColor; }

/* ---------- visit: the booking card on the painted table (slow crossfade behind) ---------- */
.visit { position: relative; margin-top: var(--gap); min-height: 100svh; display: flex; justify-content: flex-end; align-items: flex-start; padding: 3.75rem var(--margin); overflow: clip; background: #1a1410; }
.visit__pics { position: absolute; inset: 0; }
.visit__pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; opacity: 0; filter: brightness(0.9); transition: opacity 1.6s ease; }
.visit__pics img.is-on { opacity: 1; }
.visit__card { position: relative; width: 27rem; max-width: 100%; padding: 1.75rem 2rem 2rem; background: var(--surface); }
.visit__title { font-size: var(--step-statement); line-height: 1.05; letter-spacing: -0.01em; font-weight: 500; }
.visit__status { margin-top: 0.75rem; line-height: 1.4; }
.visit__hours { margin-top: 1.5rem; display: grid; gap: 0.2rem; font-variant-numeric: tabular-nums; }
.visit__hours div { display: flex; justify-content: space-between; gap: 1rem; }
.visit__hours dd { text-align: right; }
.visit__where { margin-top: 1rem; line-height: 1.45; color: var(--muted); }
.visit__where a { color: var(--ink); }

.booker { display: none; margin-top: 1.5rem; }
.js .booker { display: block; }
.js .booker-fallback { display: none; }
.booker-fallback { margin-top: 1.5rem; }
.booker-fallback .button { margin-top: 1.25rem; }
.booker__set { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.booker__label { display: block; margin-bottom: 0.5rem; padding: 0; font-size: var(--step-small); color: var(--muted); }
.booker__days { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.375rem; }
.booker__day { display: grid; place-items: center; min-height: 3.25rem; padding: 0.35rem 0; background: var(--bg); line-height: 1.15; text-align: center; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.booker__day small { display: block; font-size: var(--step-small); color: var(--muted); transition: color var(--t-hover) ease; }
.booker__day[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.booker__day[aria-pressed="true"] small { color: var(--bg); }
.booker__guests { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.booker__guests .booker__label { margin: 0; }
.booker__stepper { display: flex; align-items: center; gap: 0.25rem; }
.booker__step { width: 2.75rem; height: 2.75rem; background: var(--bg); font-size: var(--step-body); line-height: 1; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.booker__step:disabled { opacity: 0.4; cursor: default; }
.booker__count { min-width: 2.5ch; text-align: center; font-variant-numeric: tabular-nums; }
.booker__times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.375rem; min-height: 2.75rem; }
.booker__time { min-height: 2.75rem; background: var(--bg); font-variant-numeric: tabular-nums; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.booker__time[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.booker__day:active, .booker__time:active, .booker__step:active { transform: scale(0.96); }
.booker__none { grid-column: 1 / -1; align-self: center; }
.booker__note { margin-top: 0.875rem; font-size: var(--step-small); line-height: 1.45; color: var(--muted); }
.booker [data-request] { margin-top: 0.5rem; }
@media (hover: hover) and (pointer: fine) {
  .booker__day:hover:not([aria-pressed="true"]), .booker__time:hover:not([aria-pressed="true"]), .booker__step:hover:not(:disabled) { background: #3a2f27; }
}

/* ---------- good to know: large questions, answers beside ---------- */
.faq { margin-top: var(--gap); padding-inline: var(--margin); }
.faq__row { align-items: baseline; }
.faq__row + .faq__row { margin-top: 3.75rem; }
.faq__title, .faq__q { grid-column: 1 / 7; font-size: var(--step-statement); line-height: 1.12; letter-spacing: -0.01em; }
.faq__title { color: var(--muted); }
.faq__q { font-weight: 500; }
.faq__a { grid-column: 7 / 12; max-width: 46ch; }

/* ---------- footer: the name across the last painting ---------- */
.foot { margin-top: var(--gap); }
.foot__scene { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem var(--margin) 2rem; overflow: clip; background: #120d0a; }
.foot__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: brightness(0.5); }
.foot__top { position: relative; display: flex; justify-content: space-between; gap: 2rem; }
.foot__links { display: grid; gap: 0.35rem; align-content: start; }
.foot__links a, .foot__contact a { text-decoration-color: transparent; }
.foot__contact { text-align: right; }
.foot__bottom { position: relative; }
.foot__name { font-size: 19.4vw; line-height: 0.8; letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; margin-left: -0.04em; }
.foot__legal { margin-top: 1.5rem; font-size: var(--step-small); }
.foot__end { padding: 3rem var(--margin) 2.5rem; display: grid; gap: 1.5rem; }
.foot__credits { max-width: 62ch; font-size: var(--step-small); line-height: 1.6; color: var(--muted); }
.foot__credits a { color: var(--ink); }
.foot__sample { font-size: var(--step-small); }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .hero__row { grid-template-columns: 1fr; row-gap: 1rem; justify-items: center; }
  .hero__status, .hero__addr { justify-self: center; text-align: center; }
  .hero__fire { height: min(46svh, 52vw); }
  .story { display: block; }
  .story__text { position: static; height: auto; display: block; max-width: 36rem; }
  .story__pics { display: block; padding: 3rem 0 0; }
  .story__pic--a { width: 58%; }
  .story__pic--b { width: 80%; margin: 2.5rem 0 0 auto; }
  .story__pic--c { width: 48%; margin: 2.5rem 0 0 8%; }
  .menu__title { grid-column: 1 / 13; }
  .menu__intro { grid-column: 1 / 10; }
  .faq__title, .faq__q { grid-column: 1 / 13; }
  .faq__a { grid-column: 1 / 11; margin-top: 0.75rem; }
}

/* ---------- the menu as two-line entries, tablet and phone ---------- */
@media (max-width: 899px) {
  .menu__table { margin-top: 2rem; }
  .menu__table tr { grid-template-columns: 1fr auto; column-gap: 1rem; }
  .menu__table tr[data-row] { padding: 0.55rem 0; }
  .menu__parthead { margin-top: 2rem; padding: 0.6rem 0; }
  .menu__parthead th { grid-column: 1 / -1; }
  .menu__when { display: block; margin: 0.1rem 0 0; font-size: var(--step-small); }
  .menu__dish { grid-column: 1; line-height: 1.3; }
  .menu__price { grid-column: 2; grid-row: 1; }
  .menu__with { grid-column: 1 / -1; grid-row: 2; font-size: var(--step-body); line-height: 1.45; color: var(--muted); }
  .menu__firem { display: inline; }
  .menu__fire { display: none; }
  .menu__note { margin-left: 0; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .menu__table tr[data-row] { padding: 0.7rem 0; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 699px) {
  .top { padding-top: 1.25rem; }
  .top__link--wide { display: none; }

  .hero { justify-content: flex-start; padding-top: 16svh; padding-bottom: 2.5rem; }
  .hero__fire { height: auto; width: 70%; }
  .hero__name { margin-top: 1.75rem; width: 100%; }
  .hero__line { margin-top: 1.25rem; max-width: none; }
  .hero__row { margin-top: 1.75rem; grid-template-columns: 1fr; row-gap: 0.875rem; justify-items: center; }
  .hero__status, .hero__addr { justify-self: center; text-align: center; }
  .hero__row .button { width: 100%; }

  .story__pics { padding-top: 2.5rem; }
  .story__pic--a { width: 64%; }
  .story__pic--b { width: 84%; margin-top: 2rem; }
  .story__pic--c { width: 52%; margin: 2rem 0 0; }


  .long__title, .long__body { grid-column: 1 / -1; }
  .long__facts { grid-column: 1 / -1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; font-size: var(--step-small); }
  .long__lead { line-height: 1.3; }
  .long__cap { width: 5.2em; height: 5.2em; }

  .visit { display: block; padding: 0; min-height: 0; background: none; overflow: visible; }
  .visit__pics { position: relative; height: 70svh; overflow: clip; }
  .visit__card { width: auto; margin: -5rem 1rem 0; padding: 1.5rem 1.25rem; }
  .booker__days { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booker__step { width: 3rem; height: 3rem; }
  .booker__time { min-height: 3rem; }
  .booker [data-request] { min-height: 3.5rem; }

  .faq__row + .faq__row { margin-top: 3.5rem; }
  .faq__a { grid-column: 1 / -1; }

  .foot__scene { min-height: 88svh; }
  .foot__pic { object-position: 58% 50%; }
  .foot__top { flex-direction: column; gap: 1.5rem; }
  .foot__contact { text-align: left; }
}

/* ---------- motion: content is painted on the first frame; this only adds arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
  .js .hero [data-load="0"] { transform: none; clip-path: inset(100% 0 0 0); animation: open 1100ms var(--ease-in-out) 80ms forwards; opacity: 1; }
  .js .hero [data-load="0"] .hero__clip { transform: scale(1.4); animation: settle 1400ms var(--ease-expo) 80ms forwards; }
  .js .hero [data-load="1"] { --d: 380; }
  .js .hero [data-load="2"] { --d: 480; }
  .js .hero [data-load="3"] { --d: 560; }

  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .menu__table tr[data-row], .js .menu__parthead { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
  .js .menu__table tr[data-row].is-in, .js .menu__table tr.menu__parthead.is-in { opacity: 1; transform: none; }
  .js .story__pic img { transform: scale(1.06); transition: transform 1600ms var(--ease-soft); }
  .js .story__pic.is-in img { transform: none; }
  .js .foot__name { transform: translateY(18%); opacity: 0; transition: transform 1200ms var(--ease-expo), opacity 900ms var(--ease-out); }
  .js .foot__name.is-in { transform: none; opacity: 1; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open { to { clip-path: inset(0); } }
@keyframes settle { to { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) {
  .visit__pics img { transition: none; }
}
