:root {
  color-scheme: light;
  /* Brand palette (POI): Rust, Ivory and black. */
  --paper: #f6f6ef;      /* brand Ivory */
  --terracotta: #c76837; /* brand Rust: use black text on it (5.5:1), not Ivory (3.5:1) */
  --ink: #000;
  --field: #fbfbf7;      /* slightly lighter Ivory for form fields */
  --line: #d6d6cc;
  --error: #b42318;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 4.25rem;
  /* Vertical rhythm between story blocks, roomy like the reference. */
  --breathe: clamp(5.5rem, 13vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
h1, h2, h3, p, figure, dl, dd, ul { margin: 0; }
h2 { font: 400 clamp(2.1rem, 4.4vw, 3.9rem)/1.02 var(--sans); letter-spacing: -.045em; }
img { display: block; max-width: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.small { font-size: .875rem; }
.label { margin-bottom: .35rem; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: var(--gutter);
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Header: always visible, always ink on light ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  background: rgb(246 246 239 / 94%);
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
  transition: background-color .35s ease, box-shadow .35s ease;
}
/* Over the photo the bar is clear; the hero's top wash keeps the links legible. */
.site-header.over-hero { background: transparent; box-shadow: none; }
.site-header nav { display: flex; gap: clamp(1rem, 2.6vw, 2.25rem); }
.site-header a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header a:hover { text-decoration: underline; }

/* ---------- Hero: photo holds still, page slides over it ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 30rem;
  padding: var(--header-h) var(--gutter) 5rem;
  /* Clips the fixed photo to the hero's box, so it is revealed only here
     and the story section visibly passes over it. */
  clip-path: inset(0);
  background: #e6dccd;
  text-align: center;
}
.hero-image {
  position: fixed;
  inset: 0 0 auto;
  z-index: -2;
  height: 100vh;
  height: 100lvh; /* stays full-height while mobile browser bars collapse */
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* A light wash at the top for the nav and a soft lift behind the wordmark. */
  background:
    linear-gradient(180deg, rgb(246 246 239 / 62%), rgb(246 246 239 / 0) 22%),
    radial-gradient(ellipse 60% 38% at 50% 48%, rgb(251 251 247 / 34%), transparent 70%);
}
.hero-identity { width: min(74vw, 46rem); }
.hero-logotype { width: 100%; height: auto; }
.hero-identity p {
  margin-top: clamp(.9rem, 2.2vw, 1.75rem);
  font: italic 400 clamp(1.2rem, 2.6vw, 2.25rem)/1.2 var(--serif);
}
.hero-address {
  position: absolute;
  bottom: max(clamp(1.25rem, 3vw, 2.25rem), env(safe-area-inset-bottom));
  left: 50%;
  translate: -50% 0;
  padding: .5rem .9rem;
  background: rgb(246 246 239 / 92%);
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.hero-address:hover { text-decoration: underline; }

/* ---------- Story: one calm column ---------- */
.story { position: relative; z-index: 1; background: var(--paper); }

.intro {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  padding: var(--breathe) var(--gutter);
  text-align: center;
}
.intro p, .menu-copy > p { max-width: 36ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }

.menu {
  display: grid;
  justify-items: center;
  gap: clamp(3.5rem, 8vw, 6.5rem);
  padding: 0 var(--gutter) var(--breathe);
  text-align: center;
}
.menu-image { width: min(100%, 30rem); aspect-ratio: 3 / 4; overflow: hidden; background: #c79a73; }
.menu-image img { width: 100%; height: 100%; object-fit: cover; }
.menu-copy { display: grid; justify-items: center; gap: 1.1rem; width: min(100%, 36rem); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .9rem 1.5rem;
  margin-top: .75rem;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: .6rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s ease;
}
.button:hover { background: var(--terracotta); color: var(--ink); }
.text-link { font-weight: 600; }

.archive { width: min(100%, 24rem); margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9375rem; }
summary { cursor: pointer; }
summary:hover { text-decoration: underline; }
.archive ul { width: fit-content; margin: 1rem auto .75rem; padding-left: 1.25rem; text-align: left; }
.archive p { font-size: .875rem; opacity: .8; }

.visit-image {
  width: min(calc(100% - 2 * var(--gutter)), 60rem);
  margin: 0 auto var(--breathe);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #8e8a86;
}
.visit-image img { width: 100%; height: 100%; object-fit: cover; }
.visit-copy {
  display: grid;
  justify-items: center;
  gap: 2rem;
  padding: var(--breathe) var(--gutter);
  background: var(--terracotta);
  color: var(--ink);
  text-align: center;
}
.visit-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
}
address { font-style: normal; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; }
.visit .small { margin-top: .35rem; } /* no fading: keeps 4.5:1 on Rust */
.visit .button { background: var(--ink); color: var(--paper); }
.visit .button:hover { background: var(--paper); color: var(--ink); }

/* ---------- Contact form ---------- */
.contact {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  padding: var(--breathe) var(--gutter);
  text-align: center;
}
.contact-intro { max-width: 36ch; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.contact-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  width: min(100%, 44rem);
  margin-top: 1.5rem;
  text-align: left;
}
.field { display: grid; gap: .4rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: .875rem; font-weight: 600; }
.optional { font-weight: 400; opacity: .7; }
.field input, .field textarea {
  width: 100%;
  padding: .75rem .85rem;
  border: 1px solid #a9aa9c;
  border-radius: 0;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px+ stops iOS zooming into the field */
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .875rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.contact-form .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.contact-form .button[disabled] { opacity: .6; cursor: progress; }
.form-status:empty { display: none; }
.form-status { font-weight: 600; }
.form-status.is-error { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) max(2.5rem, env(safe-area-inset-bottom));
  background: var(--paper);
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-brand { width: clamp(7rem, 14vw, 10rem); }
.footer-brand img { width: 100%; height: auto; }
.photo-credits p { margin-top: .5rem; }

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  :root { --header-h: 3.75rem; }
  body { font-size: 1rem; }
  .site-header { font-size: .9375rem; }
  .site-header nav { gap: 1rem; }
  /* Keep the wordmark large; its proportions come from width + height:auto. */
  .hero { padding-bottom: 9rem; }
  .hero-identity { width: 84vw; }
  /* Portrait crop: keep the counter, stools and menu board in frame. */
  .hero-image img { object-position: 62% 60%; }
  .hero-address { font-size: .875rem; }
  .menu-image { width: 100%; }
  .visit-image { width: 100%; aspect-ratio: 4 / 3; }
  .visit-details { flex-direction: column; align-items: center; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 25rem) {
  .header-brand { display: none; }
}

/* ---------- Reduced motion: photo simply scrolls with the page ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-image { position: absolute; inset: 0; height: auto; }
  .site-header, .button { transition: none; }
}
