:root {
  --paper: #f4efe6;
  --paper-deep: #e9dfcf;
  --ink: #211f1b;
  --muted: #716b61;
  --line: rgba(33, 31, 27, .14);
  --tomato: #557160;
  --tomato-dark: #3f5849;
  --sage: #557160;
  --white: #fffdf8;
  --radius: 18px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.dialog-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e69a43; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.mobile-dock { display: none; }

.site-header { height: 78px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: absolute; inset: 0 0 auto; z-index: 10; transition: background .25s, box-shadow .25s; }
.site-header.stuck { position: fixed; background: rgba(244,239,230,.91); backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 31px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.site-header nav { display: flex; gap: 32px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-header nav a:hover { color: var(--ink); }
.search-trigger { justify-self: end; border: 0; background: none; display: flex; gap: 7px; align-items: center; cursor: pointer; color: var(--ink); padding: 8px; }

.hero { min-height: 780px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(440px, .98fr); align-items: center; padding: 130px clamp(24px, 6vw, 104px) 80px; overflow: hidden; background: radial-gradient(circle at 74% 28%, rgba(205,142,74,.21), transparent 27%), var(--paper); }
.hero-copy { max-width: 690px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 18px; color: var(--tomato); font-size: 12px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: .98; margin: 0; }
h1 { font-size: clamp(54px, 6.2vw, 102px); }
h1 em { color: var(--tomato); font-weight: inherit; }
.hero-intro { max-width: 525px; margin: 30px 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { min-height: 48px; border-radius: 999px; padding: 0 22px; display: inline-flex; gap: 18px; align-items: center; justify-content: center; border: 0; text-decoration: none; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--tomato); }
.button-primary:hover { background: var(--tomato-dark); }
.button-secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.text-link { text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.hero-stats { display: flex; gap: clamp(28px, 4vw, 62px); margin: 60px 0 0; }
.hero-stats div { display: grid; }
.hero-stats dt { font-family: var(--serif); font-size: 30px; line-height: 1; }
.hero-stats dd { margin: 5px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; }

.hero-visual { min-height: 610px; position: relative; }
.hero-card {
  position: absolute;
  margin: 0;
  padding: 9px 9px 13px;
  z-index: 1;
  background: var(--white);
  box-shadow: 0 28px 70px rgba(63,45,30,.22);
}
.hero-card-main { width: min(76%, 480px); right: 7%; top: 0; z-index: 2; transform: rotate(2.5deg); }
.hero-card-small { width: min(41%, 250px); z-index: 2; }
.hero-card-left { left: -1%; bottom: 14px; z-index: 1; transform: rotate(-7deg); }
.hero-card-right { width: min(34%, 210px); right: -2%; top: 88px; z-index: 3; transform: rotate(8deg); }
.hero-card .image-shell { box-shadow: none; border: 0; }
.hero-card-main .image-shell { aspect-ratio: 4 / 5; }
.hero-card-small .image-shell { aspect-ratio: 1 / 1.15; }
.hero-card figcaption {
  width: 100%;
  max-width: none;
  margin: 8px 0 0;
  padding: 0 6px;
  color: var(--sage);
  background: transparent;
  font-family: var(--hand);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  overflow-wrap: anywhere;
}
.hero-card figcaption time {
  color: var(--muted);
  font-size: .72em;
  font-weight: 500;
  white-space: nowrap;
}
.hero-card-right figcaption { font-size: clamp(18px, 1.7vw, 25px); }
.image-shell { overflow: hidden; background: linear-gradient(135deg, #d8b482, #a5503e 52%, #506a57); }
.image-shell img { height: 100%; object-fit: cover; transition: transform .55s ease, opacity .3s; }
.image-shell img[src=""], .image-shell img:not([src]) { opacity: 0; }

.latest, .archive { padding: clamp(76px, 9vw, 130px) clamp(24px, 6vw, 104px); }
.latest { background: var(--white); }
.section-heading, .archive-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading h2, .archive-heading h2, .about h2 { font-size: clamp(45px, 5.4vw, 76px); }
.latest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.latest-card { min-width: 0; cursor: pointer; }
.latest-card .image-shell { aspect-ratio: 4 / 5; border-radius: var(--radius); }
.latest-card:nth-child(even) { padding-top: 40px; }
.latest-card:hover img { transform: scale(1.035); }
.card-title { font-family: var(--serif); font-size: 23px; line-height: 1.1; margin: 14px 0 4px; }
.card-meta { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.archive-heading > div > p:last-child { color: var(--muted); margin-bottom: 0; }
.result-summary { color: var(--muted); margin: 0; }
.result-summary strong { color: var(--ink); }
.filter-bar { position: sticky; top: 78px; z-index: 7; display: grid; grid-template-columns: minmax(250px, 1fr) auto auto; gap: 20px; align-items: center; padding: 16px; margin: 0 -16px 42px; background: rgba(244,239,230,.93); backdrop-filter: blur(18px); border-block: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 10px; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: #8e877b; }
kbd { color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 2px 7px; font-family: var(--sans); font-size: 11px; white-space: nowrap; }
.filters { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.filter { white-space: nowrap; border: 0; border-radius: 999px; background: transparent; padding: 8px 13px; color: var(--muted); cursor: pointer; font-size: 13px; }
.filter.active { background: var(--ink); color: white; }
.sort-control select { border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 13px; }
.gallery { columns: 4; column-gap: 18px; }
.dish-card { break-inside: avoid; margin: 0 0 26px; display: inline-block; width: 100%; cursor: pointer; position: relative; }
.dish-card .image-shell { border-radius: var(--radius); aspect-ratio: var(--ratio, 4 / 5); position: relative; }
.dish-card .image-shell::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(20,15,12,.72)); opacity: 0; transition: opacity .3s; }
.dish-card:hover .image-shell::after, .dish-card:focus-within .image-shell::after { opacity: 1; }
.dish-card:hover img { transform: scale(1.035); }
.dish-card button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; border-radius: var(--radius); }
.dish-card-copy { margin: 13px 4px 0; }
.dish-card-copy h3 { font-family: var(--serif); font-size: 21px; font-weight: 400; line-height: 1.1; margin: 0 0 5px; }
.ingredients { color: var(--muted); font-size: 12px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-more-wrap { display: grid; place-items: center; margin-top: 48px; }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state span { font-size: 42px; color: var(--tomato); }
.empty-state h3 { font-family: var(--serif); font-size: 32px; margin: 12px 0 0; }

.about { color: var(--white); background: var(--sage); padding: clamp(80px, 10vw, 150px) clamp(24px, 9vw, 155px); }
.about-kicker { color: #d9ccad; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; }
.about-content { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(60px, 10vw, 150px); align-items: start; }
.about-content h2 { max-width: 700px; }
.about-content > div { padding-top: 10px; color: rgba(255,253,248,.8); font-size: 18px; }
.text-link-light { color: white; display: inline-block; margin-top: 18px; }
footer { padding: 35px clamp(24px, 6vw, 104px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
.footer-brand { color: var(--ink); }

.dish-dialog { width: min(980px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--ink); overflow: hidden; box-shadow: 0 30px 100px rgba(20,15,12,.35); }
.dish-dialog::backdrop { background: rgba(27,23,19,.68); backdrop-filter: blur(7px); }
.dish-dialog[open] { display: grid; grid-template-columns: 1.05fr .95fr; }
.dialog-image { min-height: 620px; }
.dialog-copy { padding: clamp(35px, 6vw, 72px); display: flex; flex-direction: column; }
.dialog-copy h2 { font-size: clamp(45px, 6vw, 70px); }
.dialog-close { position: absolute; z-index: 2; top: 16px; right: 16px; width: 42px; aspect-ratio: 1; border: 0; border-radius: 50%; background: rgba(255,253,248,.9); cursor: pointer; font-size: 25px; }
.dialog-label { margin: 42px 0 12px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ingredient-list li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.dialog-nav { margin-top: auto; display: flex; justify-content: space-between; padding-top: 35px; border-top: 1px solid var(--line); }
.dialog-nav button { border: 0; background: none; cursor: pointer; color: var(--muted); }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr .72fr; }
  .hero-visual { min-height: 520px; }
  .latest-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 3; }
  .filter-bar { grid-template-columns: 1fr auto; }
  .filters { grid-row: 2; grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --mobile-gutter: 18px; --mobile-dock-height: 68px; }
  html { scroll-padding-top: 78px; }
  body { padding-bottom: calc(var(--mobile-dock-height) + env(safe-area-inset-bottom)); }
  .site-header { height: 64px; padding: 0 var(--mobile-gutter); grid-template-columns: 1fr auto; }
  .site-header.stuck { background: rgba(244,239,230,.95); }
  .brand { font-size: 15px; }
  .brand-mark { width: 30px; font-size: 18px; }
  .site-header nav { display: none; }
  .search-trigger { width: 44px; height: 44px; justify-content: center; padding: 0; border-radius: 50%; background: rgba(85,113,96,.1); color: var(--sage); font-size: 20px; }
  .search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .hero { min-height: 0; grid-template-columns: 1fr; padding: 104px var(--mobile-gutter) 64px; background: radial-gradient(circle at 82% 22%, rgba(205,142,74,.18), transparent 30%), var(--paper); }
  .hero-copy { max-width: 520px; }
  .eyebrow { margin-bottom: 13px; font-size: 10px; letter-spacing: .14em; }
  h1 { font-size: clamp(46px, 13.4vw, 66px); line-height: .94; }
  .hero-intro { margin: 22px 0 25px; font-size: 16px; line-height: 1.55; }
  .hero-actions { align-items: center; flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .hero-actions .button { min-height: 50px; padding-inline: 20px; }
  .hero-stats { justify-content: space-between; gap: 12px; margin: 38px 0 0; padding-top: 23px; border-top: 1px solid var(--line); }
  .hero-stats div { min-width: 0; }
  .hero-stats dt { font-size: 27px; }
  .hero-stats dd { font-size: 9px; letter-spacing: .06em; }
  .hero-visual { min-height: 430px; margin: 42px auto 0; width: min(100%, 430px); }
  .hero-card { padding: 6px 6px 9px; box-shadow: 0 18px 42px rgba(63,45,30,.2); }
  .hero-card-main { width: 68%; right: 12%; top: 0; }
  .hero-card-small { width: 38%; }
  .hero-card-left { left: 0; bottom: 7px; transform: rotate(-5deg); }
  .hero-card-right { width: 34%; right: 0; top: 65px; transform: rotate(6deg); }
  .hero-card figcaption { margin-top: 6px; padding: 0 3px; font-size: clamp(16px, 5vw, 22px); line-height: 1; }
  .hero-card-right figcaption { font-size: clamp(14px, 4vw, 19px); }
  .hero-card figcaption time { display: block; margin-top: 3px; font-size: .58em; }
  .latest, .archive { padding: 72px var(--mobile-gutter); }
  .section-heading, .archive-heading { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  .section-heading h2, .archive-heading h2, .about h2 { font-size: clamp(42px, 12vw, 58px); }
  .section-heading > .text-link { align-self: flex-end; }
  .latest-grid { gap: 12px; }
  .latest-card:nth-child(even) { padding-top: 24px; }
  .card-title { font-size: 19px; }
  .filter-bar { top: 64px; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 8px; margin: 0 calc(var(--mobile-gutter) * -1) 30px; padding: 12px var(--mobile-gutter) 10px; border-top: 0; box-shadow: 0 8px 20px rgba(50,42,33,.05); }
  .search-field { min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
  .sort-control select { min-height: 44px; max-width: 108px; padding: 0 25px 0 10px; border: 1px solid var(--line); border-radius: 13px; background-color: var(--white); }
  .filters { gap: 7px; margin-inline: calc(var(--mobile-gutter) * -1); padding: 2px var(--mobile-gutter) 4px; scroll-padding-inline: var(--mobile-gutter); }
  .filter { min-height: 40px; padding: 8px 15px; background: rgba(255,253,248,.64); border: 1px solid var(--line); }
  .filter.active { border-color: var(--ink); }
  kbd { display: none; }
  .gallery { columns: 2; column-gap: 12px; }
  .dish-card { margin-bottom: 20px; }
  .dish-card .image-shell { border-radius: 13px; }
  .dish-card-copy { margin: 10px 2px 0; }
  .dish-card-copy h3 { font-size: 18px; }
  .ingredients { font-size: 11px; }
  .about { padding: 78px var(--mobile-gutter); }
  .about-content { grid-template-columns: 1fr; gap: 28px; }
  .about-content > div { padding-top: 0; font-size: 16px; }
  footer { grid-template-columns: 1fr; gap: 13px; padding: 32px var(--mobile-gutter); text-align: left; }
  footer p:last-child { text-align: left; }
  .mobile-dock {
    position: fixed;
    z-index: 20;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    height: var(--mobile-dock-height);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px 5px;
    border: 1px solid rgba(33,31,27,.12);
    border-radius: 21px;
    background: rgba(255,253,248,.94);
    box-shadow: 0 12px 35px rgba(30,25,20,.16);
    backdrop-filter: blur(18px);
  }
  .mobile-dock a, .mobile-dock button { min-width: 0; border: 0; border-radius: 15px; background: transparent; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10px; font-weight: 600; cursor: pointer; }
  .mobile-dock a > span:first-child, .mobile-dock button > span:first-child { color: var(--sage); font-family: var(--serif); font-size: 21px; line-height: 1.1; }
  .mobile-dock a:active, .mobile-dock button:active { background: rgba(85,113,96,.1); transform: scale(.97); }
  .dish-dialog { width: 100%; max-width: none; max-height: min(92dvh, 820px); margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dish-dialog[open] { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(230px, 42dvh) auto; overflow-y: auto; }
  .dialog-image { min-height: 230px; height: auto; }
  .dialog-copy { min-height: 360px; padding: 30px var(--mobile-gutter) calc(26px + env(safe-area-inset-bottom)); }
  .dialog-copy h2 { padding-right: 30px; font-size: clamp(40px, 12vw, 58px); }
  .dialog-label { margin-top: 28px; }
  .dialog-close { position: fixed; top: auto; right: 14px; margin-top: 14px; width: 46px; box-shadow: 0 5px 20px rgba(20,15,12,.16); }
  .dialog-nav { margin-top: 32px; }
  .dialog-nav button { min-height: 44px; }
}

@media (max-width: 430px) {
  .gallery { columns: 1; }
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 390px; }
  .dish-card-copy h3 { font-size: 21px; }
  .ingredients { font-size: 12px; }
}

@media (hover: none) and (pointer: coarse) {
  .button:hover, .latest-card:hover img, .dish-card:hover img { transform: none; }
  .dish-card .image-shell::after { display: none; }
}

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