@font-face {
  font-family: Baskervville;
  src: url("fonts/baskervville.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --paper: #f6f2e9;
  --paper-dark: #ece5d7;
  --ink: #28251e;
  --green: #344735;
  --muted: #635d50;
  --gold: #80602d;
  --line: #d8cdba;
  --serif: "Noto Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, "SimSun", Baskervville, serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --gutter: clamp(1.2rem, 5vw, 5rem);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.65 var(--sans); background: var(--paper); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
:focus-visible { outline: 2px solid #875715; outline-offset: 4px; }
:target { scroll-margin-top: 1.6rem; }
h1, h2, h3, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.24; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
em { color: var(--green); font-style: normal; }
strong { font-weight: 700; }
.shell { width: min(100% - var(--gutter) * 2, 81rem); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 2; left: 1rem; top: 1rem; background: var(--paper); padding: .5rem 1rem; }

.header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.header-inner { min-height: 5.2rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font: 600 1.55rem/1.15 var(--serif); white-space: nowrap; }
.brand small { display: block; margin-top: .14rem; color: var(--muted); font: .85rem/1.2 Baskervville, Georgia, serif; letter-spacing: .04em; }
.flower { color: var(--gold); font-family: Georgia, serif; font-size: 1.6rem; line-height: 1; }
.site-nav { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .4rem clamp(.8rem, 2.4vw, 2.1rem); font-size: .91rem; font-weight: 600; }
.site-nav a { display: inline-block; padding-block: .34rem; }
.site-nav a:hover, .site-nav a[aria-current], .footer-inner a:hover { text-decoration: underline; text-underline-offset: .31em; }
.site-nav a[aria-current] { color: var(--green); }

.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 3.2vw, 4rem); align-items: center; padding-block: clamp(2.25rem, 4vw, 4rem); }
.hero-copy { padding-block: 1.25rem 3.1rem; }
.eyebrow { font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--gold); }
.hero h1 { margin-block: 1.1rem 1.3rem; font-size: clamp(2.2rem, 4.45vw, 4.5rem); line-height: 1.25; text-wrap: unset; }
.hero-description { max-width: 28em; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.15rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.75rem; padding: .6rem 1rem; border: 1px solid var(--green); background: var(--green); color: var(--paper); font-size: .92rem; font-weight: 650; }
.button:hover { background: #455b43; }
.button-outline { background: transparent; color: var(--green); }
.button-outline:hover { color: var(--paper); background: var(--green); }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: .26em; font-weight: 650; }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-figure img { aspect-ratio: 1.5; object-fit: cover; background: var(--paper-dark); }
.hero-figure figcaption { margin-top: .52rem; color: var(--muted); font-size: .875rem; text-align: right; }
.hero-figure figcaption span { margin-inline: .25rem; }

.chapters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.65rem); padding-block: clamp(1.6rem, 4vw, 3.35rem); border-block: 1px solid var(--line); }
.chapter-image { overflow: hidden; background: var(--paper-dark); }
.chapter img { aspect-ratio: 1.32; object-fit: cover; transition: transform 220ms ease; }
.chapter:hover img { transform: scale(1.035); }
.chapter h2 { font-size: clamp(1.4rem, 2.05vw, 2rem); }
.chapter p { color: var(--muted); margin-top: .25rem; }
.chapter-text { padding-top: .8rem; }
.chapter:hover h2, .journal-teasers a:hover span, .featured-product:hover h3 { text-decoration: underline; text-underline-offset: .24em; text-decoration-thickness: 1px; }

.shop-preview, .journal-preview { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.15rem; }
.section-top h2 { margin-top: .4rem; }
.draft-note { color: var(--muted); font-size: .91rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.65rem clamp(.85rem, 2vw, 1.65rem); list-style: none; padding: 0; margin-top: 1.2rem; }
.product { display: flex; flex-direction: column; height: 100%; min-width: 0; border: 1px solid var(--line); }
.product img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-dark); }
.product-copy { padding: clamp(.7rem, 2vw, 1.25rem); display: flex; flex-direction: column; flex: 1; gap: .5rem; }
.product h2, .product h3 { font-size: clamp(1.25rem, 2.05vw, 1.9rem); text-wrap: unset; }
.product small { color: var(--muted); font-size: .875rem; }
.product-category { font-size: .82rem; font-weight: 650; color: var(--gold); }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; margin-top: auto; padding-top: .35rem; }
.product-bottom p, .featured-product .product-copy > p, .picnic-offer dd { color: var(--green); font-weight: 750; }
.product:target { outline: 2px solid var(--green); outline-offset: 2px; }

.menu, .visit { background: var(--paper-dark); padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.menu-inner, .visit-inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 5vw, 5rem); }
.menu-copy h2, .split-copy h2, .story h2, .visit h2 { margin-block: .4rem 1rem; }
.menu-copy p + p, .split-copy p + p, .story p + p, .visit p + p { margin-top: .8rem; }
.menu-copy .text-link, .story .text-link { display: inline-block; margin-top: 1rem; }
.menu-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.95rem, 3vw, 2.5rem); background: var(--paper); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2.2rem); }
.menu-board h3 { font-size: 1.35rem; padding-bottom: .6rem; }
.menu-board dl > div, .picnic-offer > div { display: flex; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding: .55rem 0; }
.menu-board dd { color: var(--green); font-weight: 650; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: clamp(1.5rem, 6vw, 6rem); padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.split-image img { aspect-ratio: 5 / 4; object-fit: cover; background: var(--paper-dark); }
.picnic-offer { margin-top: 1rem; border-bottom: 1px solid var(--line); }
.split-copy .draft-note { margin-block: .65rem 1.15rem; }

.journal-preview { border-block: 1px solid var(--line); }
.journal-teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1.65rem); margin-top: 1.4rem; }
.journal-teasers img { aspect-ratio: 5 / 3; object-fit: cover; background: var(--paper-dark); }
.journal-teasers span { display: block; margin-top: .4rem; font: 600 clamp(1rem, 1.9vw, 1.45rem)/1.3 var(--serif); }
.story { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.7rem, 6vw, 6rem); padding-block: clamp(2.7rem, 6vw, 5.6rem); }
.news h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); }
.news > p { color: var(--muted); }
.news ul { list-style: none; padding: 0; margin-top: .6rem; border-bottom: 1px solid var(--line); }
.news li { border-top: 1px solid var(--line); }
.news li a { display: flex; gap: .65rem 1.1rem; align-items: baseline; padding: .65rem 0; }
.news li a:hover span { text-decoration: underline; text-underline-offset: .25em; }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .88rem; white-space: nowrap; }
.visit address { font-style: normal; font-weight: 650; margin-bottom: .9rem; }
.map { min-width: 0; }
.map iframe { display: block; width: 100%; height: clamp(16rem, 32vw, 27rem); background: #e4e6d8; border: 1px solid var(--line); }
.map figcaption { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
.map figcaption a { text-decoration: underline; text-underline-offset: .2em; }

.page { min-height: 66vh; padding-block: clamp(2.1rem, 5vw, 4.6rem); }
.page-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; column-gap: 1.5rem; row-gap: .75rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; }
.page-intro h1 { margin-top: .5rem; font-size: clamp(2.45rem, 6vw, 4.75rem); }
.page-intro > p { color: var(--muted); max-width: 31em; }
.catalog-controls { margin: 1.3rem 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button, .small-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #a49984; background: transparent; color: var(--green); padding: .32rem .72rem; min-height: 2.42rem; font-size: .875rem; }
.filters button[aria-pressed="true"], .filters button:hover, .small-button:not(:disabled):hover { background: var(--green); border-color: var(--green); color: var(--paper); }
#list-count { display: inline-grid; min-width: 1.45rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .77rem; }
.gallery-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem 1.25rem; margin-bottom: 1rem; }
.gallery-search { width: min(100%, 17rem); }
.gallery-search input, #copy-fallback { width: 100%; color: var(--ink); padding: .45rem .7rem; background: transparent; border: 1px solid #a49984; border-radius: 0; }
#gallery-status { margin-bottom: .95rem; color: var(--muted); font-size: .9rem; }
.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem clamp(.65rem, 1.8vw, 1.35rem); }
.photo-open { display: block; }
.photo-open img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-dark); }
.photo-open span { display: block; margin-top: .4rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.photo-open:hover span { text-decoration: underline; }
.pagination, .viewer-step { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.45rem; }

.viewer { background: var(--paper); color: var(--ink); border: 0; padding: 0; width: min(56rem, 100% - 2rem); max-height: calc(100% - 2rem); }
.viewer.cart { width: min(35rem, 100% - 2rem); }
.viewer-inner { padding: clamp(.8rem, 2vw, 1.45rem); }
.viewer::backdrop { background: #231f19c9; }
.viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .85rem; }
.viewer-toolbar h2 { font-size: clamp(1.2rem, 3vw, 2.2rem); overflow-wrap: anywhere; }
.viewer-toolbar button { white-space: nowrap; }
.viewer img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--paper-dark); }
.viewer figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .6rem; font-size: .9rem; }
.viewer-step { margin-top: .8rem; }
.cart-items { list-style: none; padding: 0; }
.cart-items li { display: flex; justify-content: space-between; align-items: center; column-gap: .6rem; padding-block: .7rem; border-top: 1px solid var(--line); }
.cart-items strong, .cart-items li > div:first-child span { display: block; }
.cart-items li > div:first-child span { color: var(--muted); font-size: .85rem; }
.quantity { display: flex; align-items: center; gap: .55rem; }
.quantity button { min-width: 2.35rem; }
.cart-total { text-align: right; font-weight: 700; padding-top: .5rem; }
.cart-total:empty, #copy-status:empty { display: none; }
#copy-status { margin-top: .7rem; }
#copy-fallback { margin-top: .5rem; min-height: 7rem; }

footer { background: var(--green); color: var(--paper); }
.footer-inner { min-height: 7.5rem; padding-block: 1.3rem; flex-wrap: wrap; font-size: .91rem; }
.footer-inner > div { display: grid; gap: .4rem; }
.footer-inner .flower { color: #e2b46e; }
.footer-inner .brand small { color: var(--paper); }

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .hero h1 { font-size: clamp(2rem, 4.7vw, 4.2rem); }
  .header-inner { gap: .5rem 1.1rem; }
  .site-nav { gap: .15rem 1rem; }
}
@media (max-width: 720px) {
  .hero, .split, .story, .visit-inner, .menu-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.15rem, 8.5vw, 3.75rem); }
  .split-image { order: 1; }
  .site-nav { justify-content: start; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapter p { font-size: .9rem; }
  .header-inner { padding-block: .75rem; min-height: 0; }
}
@media (max-width: 520px) {
  .header-inner { align-items: start; flex-direction: column; gap: .5rem; }
  .site-nav { width: 100%; gap: .12rem .8rem; font-size: .875rem; }
  .brand { font-size: 1.38rem; }
  .chapter h2 { font-size: 1.12rem; }
  .chapter p { display: none; }
  .chapter-text { padding-top: .55rem; }
  .chapters { gap: .62rem; }
  .chapter img { aspect-ratio: 1; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news li a { gap: .6rem; }
}
@media (max-width: 360px) {
  .menu-board { grid-template-columns: 1fr; }
  .site-nav { column-gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
