/* Fallow & Fields Kitchen - preview site
   Palette taken from the venue's own photographs: barn timber, straw, dusk sky and the
   ember of the container kitchen at night. */

:root {
  --ink: #1c2620;
  --ink-soft: #46544c;
  --ink-faint: #75837a;
  --paper: #f4efe4;
  --paper-deep: #ece4d4;
  --card: #fffdf8;
  --ember: #a84f26;
  --ember-deep: #8b3f1d;
  --sage: #6e8069;
  --line: #d9cfba;
  --line-soft: #e6ddcc;

  --shell: min(1180px, 100% - 3rem);
  --radius: 3px;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.89rem);
  --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.11rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.38vw, 1.44rem);
  --step-2: clamp(1.45rem, 1.29rem + 0.75vw, 1.94rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.45vw, 2.75rem);
  --step-4: clamp(2.3rem, 1.7rem + 2.9vw, 4.1rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 20, "WONK" 0;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2.5px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  font-family: var(--text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 1.9rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.lede {
  font-size: var(--step-1);
  line-height: 1.48;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.35rem;
  font-family: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--solid { background: var(--ember); color: #fff; }
.btn--solid:hover { background: var(--ember-deep); }

.btn--line { border-color: currentColor; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

/* ---------- header ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 228, 0.93);
  backdrop-filter: saturate(1.4) blur(9px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 66px;
}

.wordmark {
  text-decoration: none;
  display: grid;
  line-height: 1.1;
  margin-right: auto;
}

.wordmark b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.03rem;
  letter-spacing: -0.01em;
}

.wordmark span {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.mainnav { display: flex; gap: 1.6rem; }

.mainnav a {
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.mainnav a:hover { color: var(--ink); border-bottom-color: var(--ember); }

.masthead .btn { padding: 0.58rem 1.05rem; white-space: nowrap; }

/* The full number is the better call-to-action where it fits. Below that it wraps to two
   lines and drags the sticky header to twice its height, so the short label takes over. */
.btn__short { display: none; }

@media (max-width: 940px) {
  .mainnav { display: none; }
}

@media (max-width: 620px) {
  .masthead__inner { gap: 0.9rem; }
  .wordmark b { font-size: 0.88rem; }
  .wordmark span { font-size: 0.58rem; letter-spacing: 0.11em; }
  .masthead .btn { padding: 0.55rem 0.95rem; font-size: 0.85rem; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
}

/* ---------- hero ---------- */

.hero { position: relative; background: var(--ink); }

.hero__media { position: relative; }

.hero__media img {
  width: 100%;
  height: clamp(390px, 66vh, 640px);
  object-fit: cover;
  object-position: center 58%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* The last stop is fully opaque so the image meets the section's ink background with no
     visible seam where the panel overlaps it. */
  background: linear-gradient(178deg, rgba(20, 26, 22, 0.5) 0%, rgba(20, 26, 22, 0.12) 38%, rgba(20, 26, 22, 0.88) 86%, rgb(28, 38, 32) 100%);
}

.hero__panel {
  position: relative;
  z-index: 2;
  margin-top: -8.5rem;
  padding-bottom: 3.2rem;
  color: #fff;
}

.hero__panel h1 {
  font-size: var(--step-4);
  max-width: 15ch;
  color: #fff;
  text-wrap: balance;
}

.hero__kicker {
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8c9a8;
  margin: 0 0 0.9rem;
}

.hero__sub {
  font-size: var(--step-1);
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
  margin: 1.1rem 0 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

/* ---------- fact strip ---------- */

.strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.11);
}

.strip__cell { background: var(--ink); padding: 1.5rem 0 1.5rem; }
.strip__inner .strip__cell:not(:first-child) { padding-left: 1.6rem; }

.strip dt {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c99b6d;
  margin-bottom: 0.4rem;
}

.strip dd {
  margin: 0;
  font-family: var(--display);
  font-size: var(--step-1);
  line-height: 1.25;
}

.strip dd small {
  display: block;
  font-family: var(--text);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

@media (max-width: 720px) {
  .strip__inner { grid-template-columns: 1fr; }
  .strip__inner .strip__cell:not(:first-child) { padding-left: 0; padding-top: 1.3rem; }
  .strip__cell { padding: 1.3rem 0; }
}

/* ---------- generic section ---------- */

.section { padding: clamp(3.6rem, 7vw, 6.4rem) 0; }
.section--paper { background: var(--paper-deep); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, 0.86); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .eyebrow { color: #c99b6d; }
.section--ink .lede { color: rgba(255, 255, 255, 0.78); }

.section__head { max-width: 46ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head h2 { font-size: var(--step-3); text-wrap: balance; }
.section__head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section__head p { color: rgba(255, 255, 255, 0.75); }

/* ---------- split layouts ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: center;
}

.split--flip > figure { order: -1; }

.split figure { margin: 0; }

.split figure img {
  width: 100%;
  border-radius: var(--radius);
}

.split figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.6rem;
  letter-spacing: 0.01em;
}

.section--ink .split figcaption { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip > figure { order: 0; }
}

/* ---------- menu ---------- */

/* Four courses, so two even columns beat auto-fit: at three across the fourth card is left
   stranded on a row of its own. */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
}

@media (min-width: 780px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}

.course {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.1rem);
}

.course > h3 {
  font-size: var(--step-2);
  margin-bottom: 0.25rem;
}

.course__when {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 1.4rem;
}

.dish {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 0.75rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-soft);
  align-items: baseline;
}

.dish:first-of-type { border-top: 0; padding-top: 0; }

.dish__name {
  font-weight: 600;
  line-height: 1.35;
  font-size: 0.99rem;
}

.dish__price {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dish__note {
  grid-column: 1 / -1;
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-top: 0.22rem;
}

.tag {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  padding: 0.12rem 0.42rem;
  margin-left: 0.4rem;
  border: 1px solid var(--sage);
  color: var(--sage);
  border-radius: 2px;
  vertical-align: 0.12em;
}

.course--adds { background: transparent; border-style: dashed; }

.adds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adds li {
  font-size: 0.88rem;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 100px;
  padding: 0.28rem 0.75rem;
}

.adds b { font-variant-numeric: tabular-nums; }

.menu-note {
  margin-top: 2.2rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid var(--ember);
  background: var(--card);
  font-size: 0.92rem;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* A tall portrait shot tucked under a landscape one, overlapping into the text column.
   Reads as a spread rather than two stacked photographs. */
.figpair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.figpair figure:last-child { margin-top: 2.6rem; }
.figpair img { width: 100%; border-radius: var(--radius); }
.figpair figure:first-child img { aspect-ratio: 3 / 2; object-fit: cover; }
.figpair figure:last-child img { aspect-ratio: 4 / 5; object-fit: cover; }

@media (max-width: 520px) {
  .figpair figure:last-child { margin-top: 0; }
}

/* ---------- image band ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}

.gallery figure { margin: 0; }

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.55rem;
}

.section--ink .gallery figcaption { color: rgba(255, 255, 255, 0.5); }

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:last-child { grid-column: 1 / -1; }
  .gallery figure:last-child img { aspect-ratio: 16 / 9; }
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.3rem, 2.6vw, 2rem);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.section--ink .card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
}

.card h3 { font-size: var(--step-1); margin-bottom: 0.55rem; }
.card p { font-size: 0.94rem; color: var(--ink-soft); }
.section--ink .card p { color: rgba(255, 255, 255, 0.72); }

/* ---------- visit ---------- */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hours caption {
  text-align: left;
  font-family: var(--display);
  font-size: var(--step-2);
  margin-bottom: 1rem;
  color: var(--ink);
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.62rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
}

.hours th { font-weight: 500; color: var(--ink-soft); }
.hours td { text-align: right; font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }

.hours tr[data-today] th,
.hours tr[data-today] td { color: var(--ember); font-weight: 700; }

.hours__last {
  font-size: 0.84rem;
  color: var(--ink-faint);
  margin-top: 0.9rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.contact-list dt,
.contact-list .label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

.contact-list a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.contact-list .big { font-size: var(--step-1); font-family: var(--display); font-weight: 600; }

address { font-style: normal; line-height: 1.55; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.62);
  padding: 3.2rem 0 2.4rem;
  font-size: 0.9rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

.footer h2 { font-size: var(--step-1); color: #fff; margin-bottom: 0.7rem; }

.footer h3 {
  font-family: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #c99b6d;
  margin-bottom: 0.8rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__base {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 2rem;
  gap: 1.1rem;
}

.notfound h1 { font-size: var(--step-3); }
.notfound p { color: var(--ink-soft); max-width: 44ch; margin-inline: auto; }
.notfound .btn { justify-self: center; }
