:root {
  --cream: #f6f0e4;
  --paper: #fbf8f1;
  --ink: #1d261e;
  --ink-soft: #4a544b;
  --green: #2d4a32;
  --green-deep: #1c3021;
  --gold: #c9a86a;
  --tomato: #b4432c;
  --line: color-mix(in srgb, var(--ink) 14%, transparent);

  --font-display: "Sorts Mill Goudy", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --gutter: clamp(1rem, 4vw, 3rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --content-width: 76rem;
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.8rem, 1.8rem + 4.5vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tomato);
  margin-bottom: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--green); color: var(--cream); }
.button-primary:hover { background: var(--green-deep); }
.button-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.button-ghost:hover { background: var(--ink); color: var(--cream); }
.button-light { background: var(--cream); color: var(--green-deep); }
.button-light:hover { background: var(--gold); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button-row-center { justify-content: center; }

.text-link {
  font-weight: 500;
  text-decoration: none;
  color: var(--green);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.4s var(--ease-out);
}
.text-link::after { content: " \2192"; }
.text-link:hover { background-size: 100% 1.5px; }

:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }

.preview-banner {
  margin: 0;
  padding: 0.55rem var(--gutter);
  background: var(--tomato);
  color: var(--cream);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem var(--gutter);
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.wordmark { margin-right: auto; }
.wordmark img { height: 2.6rem; width: auto; }

@media (max-width: 480px) { .wordmark img { height: 2.1rem; } }

.site-nav { display: flex; gap: 1.75rem; font-weight: 500; font-size: 0.95rem; }
.site-nav a { text-decoration: none; position: relative; white-space: nowrap; }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1.5px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.header-call { font-weight: 700; text-decoration: none; color: var(--green); }

.nav-toggle {
  display: none;
  font: inherit;
  font-weight: 500;
  background: none;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 1080px) {
  .header-call { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 0 var(--gutter);
    background: var(--cream);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 400;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
  }
  .site-nav a { padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a:hover { color: var(--tomato); }

  @media (prefers-reduced-motion: no-preference) {
    .site-nav a {
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), color 0.2s;
    }
    .site-nav.is-open a { opacity: 1; transform: none; }
    .site-nav.is-open a:nth-child(2) { transition-delay: 0.04s; }
    .site-nav.is-open a:nth-child(3) { transition-delay: 0.08s; }
    .site-nav.is-open a:nth-child(4) { transition-delay: 0.12s; }
    .site-nav.is-open a:nth-child(5) { transition-delay: 0.16s; }
    .site-nav.is-open a:hover { transform: translateX(6px); transition-delay: 0s; }
  }
  .site-nav a::after { display: none; }
  .site-nav.is-open { max-height: 24rem; padding-block: 1rem 2rem; box-shadow: 0 20px 30px -20px rgb(29 38 30 / 0.3); }
}

/* hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) var(--gutter) var(--section-space);
}

.open-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 500;
}
.open-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--ink-soft);
}
.open-status.is-open::before { background: #3f9d4f; box-shadow: 0 0 0 3px rgb(63 157 79 / 0.2); }
.open-status.is-closed::before { background: var(--tomato); box-shadow: 0 0 0 3px rgb(180 67 44 / 0.15); }

.hero-title {
  font-size: clamp(4rem, 2rem + 8vw, 9rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin: 1.5rem 0 2rem;
  color: var(--green-deep);
}
.hero-line { display: block; padding-bottom: 0.06em; }
.hero-line-accent { font-style: italic; color: var(--tomato); }
.hero-lede { max-width: 34ch; font-size: 1.15em; color: var(--ink-soft); }

.hero-platters {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 34rem;
  justify-self: center;
}
.hero-platter { position: absolute; }
.hero-platter img {
  width: 100%;
  filter: drop-shadow(0 24px 28px rgb(29 38 30 / 0.28));
}
.hero-platter-main { width: 58%; max-width: 300px; left: 18%; top: 22%; z-index: 2; }
.hero-platter-top { width: 34%; max-width: 200px; right: 2%; top: 0; z-index: 1; rotate: 12deg; }
.hero-platter-bottom { width: 42%; max-width: 230px; left: 0; bottom: 2%; z-index: 3; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-platters { max-width: 24rem; }
}

/* sections */

.section { max-width: var(--content-width); margin: 0 auto; padding: var(--section-space) var(--gutter); }
.section-tight { padding-top: 0; }
.section-header { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-lede { font-size: 1.15em; color: var(--ink-soft); max-width: 46ch; }

.shelf-list {
  list-style: none;
  counter-reset: shelf;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.5rem);
}
.shelf-list li {
  counter-increment: shelf;
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
}
.shelf-list li::before {
  content: counter(shelf, decimal-leading-zero);
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--tomato);
  margin-bottom: 0.75rem;
}
.shelf-list p { color: var(--ink-soft); margin: 0; max-width: 32ch; }

@media (max-width: 960px) { .shelf-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shelf-list { grid-template-columns: 1fr; } }

/* cafeteria */

.cafeteria {
  background: var(--green-deep);
  color: var(--cream);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: var(--section-space) max(var(--gutter), calc((100% - var(--content-width)) / 2 + var(--gutter)));
}
.cafeteria .eyebrow { color: var(--gold); }
.cafeteria-copy > p { color: color-mix(in srgb, var(--cream) 78%, transparent); max-width: 38ch; }

.cafeteria-photos { position: relative; padding-bottom: 12%; }
.cafeteria-photo-main { width: 100%; max-width: 720px; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
.cafeteria-photo-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  max-width: 220px;
  border-radius: var(--radius);
  border: 6px solid var(--green-deep);
}

.cafeteria-hours { display: grid; gap: 0.5rem; margin: 2rem 0; }
.cafeteria-hours div {
  display: flex;
  justify-content: space-between;
  max-width: 22rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
}
.cafeteria-hours dt { font-weight: 700; }
.cafeteria-hours dd { margin: 0; }

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

/* platters */

.page-intro { max-width: var(--content-width); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 6vw, 5rem); }
.page-intro h1 { max-width: 14ch; color: var(--green-deep); }

.steps {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.steps li { display: flex; gap: 1rem; align-items: baseline; color: var(--ink-soft); }
.steps strong { color: var(--ink); font-weight: 700; }
.step-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  transform: translateY(0.3rem);
}

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

.platter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.platter-heading { font-size: 1.8rem; margin: 0; }
.platter-count { margin: 0.2rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }

.good-to-know {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem 2rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.good-to-know strong { color: var(--ink); }

.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}
.review {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}
.review blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
}
.review blockquote::before { content: "\201C"; }
.review blockquote::after { content: "\201D"; }
.review-author { margin: auto 0 0; font-weight: 700; }
.review-author span { font-weight: 400; color: var(--ink-soft); }

.filter-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.filter-chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--green); color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--green); }

.platter-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 1.75rem);
}
.platter-grid > [hidden] { display: none; }
.platter-grid-teaser { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) { .platter-grid-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .platter-grid-teaser { grid-template-columns: 1fr; } }

.platter-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}
.platter-card img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: #ebe2cf;
  margin-bottom: 1.1rem;
  transition: transform 0.5s var(--ease-out);
}
/* a pre-painted shadow that only fades, because animating box-shadow repaints every frame */
.platter-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow: 0 18px 30px -16px rgb(29 38 30 / 0.4);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.platter-card:hover img, .platter-card:hover::before { transform: translateY(-4px); }
.platter-card:hover::before { opacity: 1; }
.platter-card h3 { font-size: 1.5rem; margin-bottom: 0.35rem; transition: color 0.25s; }
.platter-card:hover h3 { color: var(--tomato); }
.platter-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0.75rem; }
.platter-card-cta {
  margin-top: auto;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--green);
}
.platter-card-cta::after { content: " \2192"; display: inline-block; transition: transform 0.3s var(--ease-out); }
.platter-card:hover .platter-card-cta::after { transform: translateX(4px); }

/* gift baskets */

.basket-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto var(--section-space);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper);
  border-radius: calc(var(--radius) * 2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.basket-band p:not(.eyebrow) { color: var(--ink-soft); max-width: 44ch; }
.basket-band-photo { width: 280px; border-radius: var(--radius); }

@media (max-width: 760px) {
  .basket-band { grid-template-columns: 1fr; margin-inline: var(--gutter); }
  .basket-band-photo { width: 100%; max-width: 280px; }
}

/* order form */

.order { border-top: 1px solid var(--line); }

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  max-width: 52rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.field[hidden] { display: none; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; }
.optional { font-weight: 400; color: var(--ink-soft); }

.field input:not([type="radio"]), .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--tomato); }

.field-hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.field-hint.is-error { color: var(--tomato); font-weight: 500; }

.field-choice { gap: 0.6rem; }
.field-choice legend { margin-bottom: 0.4rem; }
.field-choice label { display: flex; align-items: center; gap: 0.6rem; font-weight: 400; cursor: pointer; }
.field-choice input { accent-color: var(--green); width: 1.1rem; height: 1.1rem; }

.order-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.order-confirmation { margin: 0; color: var(--green); font-weight: 500; max-width: 40ch; }

@media (max-width: 640px) {
  .order-form { grid-template-columns: 1fr; }
}

/* story */

.story {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter);
}
.story-photo { width: 300px; border-radius: 999px 999px var(--radius) var(--radius); }
.story p:not(.eyebrow) { color: var(--ink-soft); max-width: 52ch; }

@media (max-width: 760px) {
  .story { grid-template-columns: 1fr; }
  .story-photo { width: 100%; max-width: 280px; }
}

/* visit */

.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter);
  border-top: 1px solid var(--line);
}

.hours { width: 100%; border-collapse: collapse; font-size: 1.05em; }
.hours caption { text-align: left; font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 1rem; }
.hours th, .hours td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; color: var(--ink-soft); }
.hours tr.is-today > * { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green-deep); font-weight: 700; border-bottom-color: transparent; }
.hours tr.is-today th { border-radius: 10px 0 0 10px; }
.hours tr.is-today td { border-radius: 0 10px 10px 0; }
.hours tr:has(+ tr.is-today) > * { border-bottom-color: transparent; }
.hours tr.is-today th::after {
  content: "Today";
  margin-left: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--cream);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.15em;
}

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

/* footer */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 2rem;
  overflow: hidden;
}
.footer-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem);
  line-height: 1;
  color: var(--gold);
  margin: 0 0 2rem;
}
.footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: color-mix(in srgb, var(--cream) 70%, transparent); }

/* motion: one-shot entrances only, nothing loops */

@media (prefers-reduced-motion: no-preference) {
  .hero-line { animation: fade-up 1s var(--ease-out) both; }
  .hero-line:nth-child(2) { animation-delay: 0.08s; }
  .hero-line:nth-child(3) { animation-delay: 0.16s; }
  .open-status, .hero-lede, .hero .button-row { animation: fade-up 0.9s var(--ease-out) both; }
  .hero-lede { animation-delay: 0.3s; }
  .hero .button-row { animation-delay: 0.4s; }

  /* the drop-shadow sits on the inner img so the animated wrapper never repaints the filter */
  .hero-platter { animation: platter-in 1.2s var(--ease-out) both; will-change: transform, opacity; }
  .hero-platter-main { animation-delay: 0.15s; }
  .hero-platter-top { animation-delay: 0.3s; }
  .hero-platter-bottom { animation-delay: 0.45s; }

  .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@keyframes fade-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes platter-in {
  from { transform: translateY(40px) rotate(-25deg) scale(0.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}
