/* Public website and CMS share the same composition. Radix grass/sand scales. */
:root {
  --paper: #fdfdfc; /* sand 1 */
  --ink: #21201c; /* sand 12 */
  --muted: #63635e; /* sand 11 */
  --brand-green: #2a7e3b; /* grass 11 */
  --brand-orange: #2a7e3b;
  --brand-peach: #e9f6e9; /* grass 3 */
  --soft: #f3fcf3; /* grass 2 */
  --line: #d3d2ce; /* sand 7 */
  --dark: #203c25; /* grass 12 */
  --gutter: clamp(24px, 5vw, 80px);
  --section-space: 96px;
  --body-size: 16px;
  --heading-size: 48px;
  --reading-line: 1.75;
  --text-small: 14px;
  --text-title: 24px;
}
html { scroll-padding-top: 104px; }
body { font-size: var(--body-size); line-height: var(--reading-line); background: var(--paper); }
::selection { color: var(--paper); background: var(--brand-green); }
a { text-underline-offset: .24em; }
:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--brand-green); outline-offset: 5px; }
button { min-width: 44px; min-height: 44px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.section-wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); }
.section-index, .hero-kicker, .story-mark, .food-number, .food-arrow, .food-doodles, .food-orbit-mark, .food-hover-photo { display: none; }
.site-header { height: 88px; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 48px; padding-inline: var(--gutter); }
.site-header .brand { grid-column: 1; grid-row: 1; justify-self: start; max-width: 180px; }
.site-header .brand img { max-height: 56px; object-fit: contain; object-position: left center; }
.site-header .main-nav { grid-column: 2; grid-row: 1; justify-content: center; gap: clamp(24px, 3vw, 48px); }
.site-header .main-nav > a { font-size: var(--text-small); min-height: 44px; }
.main-nav > a:hover, .main-nav > a[aria-current] { color: var(--brand-green); text-decoration: underline; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 44px; padding: 0 20px; background: var(--dark); color: var(--paper); font-size: var(--text-small); transition: background-color 250ms ease-out; }
.header-cta:hover { background: var(--brand-green); }
.hero { height: clamp(480px, 40vw, 740px); min-height: 480px; color: var(--dark); background: var(--soft); }
.hero-slide { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: stretch; }
.hero-slide::before { display: none; }
.hero-slide picture { position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: auto; overflow: hidden; background: var(--brand-peach); }
.hero-slide picture img { height: 100%; width: 100%; object-fit: contain; }
.hero-copy { position: static; grid-column: 1; grid-row: 1; align-self: center; width: auto; min-width: 0; padding: 48px var(--gutter); color: var(--dark); text-align: left; text-shadow: none; transform: none; }
.hero :is(h1, h2) { margin: 0; font-family: 'Noto Serif SC', serif; font-size: var(--heading-size); line-height: 1.3; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: anywhere; }
.hero-desc { margin: 28px 0 0; font-size: var(--body-size); line-height: 1.9; font-weight: 400; }
.hero-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; padding-block: 10px; border-bottom: .5px solid currentColor; font-size: var(--text-small); }
.hero-controls { left: var(--gutter); bottom: 24px; transform: none; gap: 8px; }
.hero-controls .hero-prev, .hero-controls .hero-next { display: inline-grid; place-items: center; padding: 0; border: .5px solid var(--line); background: var(--paper); color: var(--dark); }
.hero-dot { width: 44px; height: 44px; }
.hero-dot::before { width: 6px; height: 6px; background: var(--line); }
.hero-dot.is-active { border: 0; }
.hero-dot.is-active::before { background: var(--brand-green); }
.story, .chain, .news, .follow, .join { padding-block: var(--section-space); }
.story-grid { padding: 0; border: 0; gap: 12%; }
:is(.story, .chain, .signature, .space, .join) h2 { font-family: 'Noto Serif SC', serif; font-size: var(--heading-size); line-height: 1.4; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; overflow-wrap: anywhere; }
:is(.story, .chain, .signature, .join) h2 em { color: var(--brand-green); font-style: normal; }
.story-body { max-width: 34em; color: var(--muted); }
.story-body .story-lead, .story-body p { font-size: var(--body-size); line-height: 1.9; }
.story-body .text-link { color: var(--ink); margin-top: 16px; }
.text-link { min-height: 44px; align-items: center; padding-block: 8px; font-size: var(--text-small); }
.signature { padding: 0; background: var(--soft); }
.signature-inner { padding-block: var(--section-space); }
.signature-head { align-items: end; gap: 48px; margin-bottom: 44px; max-width: none; }
.signature-head > p { max-width: 26em; margin: 0 0 4px; color: var(--muted); font-size: var(--body-size); line-height: 1.75; }
.food-list { display: flex; gap: 28px; width: 100%; margin: 0; padding: 0 0 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: thin; scrollbar-color: var(--brand-green) var(--brand-peach); }
.food-list::-webkit-scrollbar { display: block; height: 4px; }
.food-list::-webkit-scrollbar-thumb { background: var(--brand-green); }
.food-list::-webkit-scrollbar-track { background: var(--brand-peach); }
.food-item { flex: 0 0 calc((100% - 56px) / 3); margin: 0; scroll-snap-align: start; text-align: left; transition: none; transform: none !important; }
.food-stage { display: block; aspect-ratio: 1; width: 100%; }
.food-stage::before, .food-stage::after { display: none; }
.food-photo, .food-item.is-active .food-photo, .food-item:hover .food-photo, .food-item:focus-within .food-photo { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; transform: none; filter: none; transition: none; }
.food-caption { margin: 20px 0 0; padding: 0; }
.food-caption h3 { font-family: 'Noto Serif SC', serif; font-size: var(--text-title); line-height: 1.5; font-weight: 600; color: var(--dark); }
.food-caption p { margin: 8px 0 0; color: var(--muted); font-size: var(--text-small); }
.food-caption p:empty { display: none; }
.food-controls { display: flex; justify-content: end; gap: 8px; margin-top: 20px; }
.food-controls > button { display: inline-grid; place-items: center; border: .5px solid var(--line); border-radius: 0; color: var(--dark); background: transparent; padding: 0; }
.food-controls > button:hover { background: var(--brand-peach); }
.food-controls > button:disabled { color: var(--muted); opacity: .45; cursor: default; background: transparent; }
.food-dots { gap: 0; }
.food-dot { display: grid; place-items: center; width: 44px; height: 44px; background: transparent; border-radius: 0; transform: none !important; }
.food-dot::before { content: ''; width: 6px; height: 6px; background: var(--line); border-radius: 50%; }
.food-dot.is-active { background: transparent; }
.food-dot.is-active::before { background: var(--brand-green); }
.menu-note { display: block; margin: 16px 0 0; text-align: left; color: var(--muted); font-size: var(--text-small); }
.space { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; color: var(--paper); background: var(--dark); }
.space-image { display: block; width: 100%; height: 100%; min-height: 0; max-height: 700px; aspect-ratio: 1.15; object-fit: cover; }
.space-copy { min-width: 0; padding: clamp(40px, 5vw, 80px); }
.space h2 { margin: 0; }
.space-copy > p { margin: 24px 0; font-size: var(--body-size); line-height: 1.9; color: var(--brand-peach); }
.space .text-link { color: var(--paper); border-color: var(--brand-peach); }
.space .text-link span { color: inherit; }
.space :focus-visible { outline-color: var(--paper); }
.join-row { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 12%; }
.join h2 { margin: 0; }
.join-action p { margin: 0 0 16px; color: var(--muted); font-size: var(--body-size); }
.join-action a[href] { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: .5px solid var(--brand-green); color: var(--brand-green); }
.join-action a:not([href]) { display: block; color: var(--muted); font-size: var(--text-small); }
#managed-contact:empty { display: none; }
#managed-contact { margin-top: 24px; overflow-wrap: anywhere; }
.site-footer { display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 48px; padding: 36px var(--gutter); color: var(--brand-peach); background: var(--dark); font-size: var(--text-small); }
.footer-brand { width: 140px; padding: 0; }
.site-footer > p { margin: 0; }
.site-footer :focus-visible { outline-color: var(--paper); }
.chain-grid { padding: 0; }
.news-head { margin-top: 0; }
.stats { padding-block: var(--section-space); background: var(--dark); }
.website-load-error { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 24px; padding: var(--gutter); }
.website-load-error a { min-height: 44px; padding: 10px 24px; background: var(--dark); color: var(--paper); }
@media (max-width: 1000px) {
  .site-header { grid-template-columns: 150px 1fr auto; gap: 24px; }
  .site-header .main-nav { gap: 24px; }
  .hero-slide { grid-template-columns: 1fr 1fr; }
  .food-item { flex-basis: calc((100% - 28px) / 2); }
  .space-copy { padding: 40px 32px; }
  .site-footer { grid-template-columns: 140px 1fr; gap: 24px; }
  .site-footer > span { grid-column: 2; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 84px; }
  .site-header { height: 72px; grid-template-columns: 1fr auto; gap: 16px; }
  .site-header .brand { width: min(140px, 50vw); }
  .header-cta { display: none; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; grid-column: 2; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; }
  .menu-toggle span { width: 24px; height: 1.5px; background: var(--dark); }
  .site-header .main-nav { position: absolute; inset: 72px 0 auto; display: none; height: auto; padding: 16px var(--gutter) 24px; border-bottom: .5px solid var(--line); background: var(--paper); }
  .site-header .main-nav.is-open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
  .site-header .main-nav > a { padding-block: 12px; }
  .hero { height: auto; min-height: 0; }
  .hero-slides { position: relative; }
  .hero-slide { position: relative; grid-template-columns: 1fr; display: none; }
  .hero-slide.is-active { display: grid; }
  .hero-copy { grid-column: 1; grid-row: 1; padding: 48px var(--gutter) 40px; }
  .hero-slide picture { grid-column: 1; grid-row: 2; height: auto; aspect-ratio: 4/3; }
  .hero :is(h1, h2) { font-size: clamp(28px, 7.5vw, var(--heading-size)); }
  .hero-desc { margin-top: 20px; }
  .hero-link { margin-top: 24px; }
  .hero-controls { position: static; justify-content: center; padding: 12px; }
  .story, .chain, .news, .follow, .join, .signature-inner { padding-block: calc(var(--section-space) * .67); }
  :is(.story, .chain, .signature, .space, .join) h2 { font-size: clamp(28px, 7.5vw, var(--heading-size)); }
  .story-grid, .join-row, .chain-grid { grid-template-columns: 1fr; gap: 28px; }
  .signature-head { display: block; width: auto; margin-bottom: 28px; }
  .signature-head > p { margin-top: 16px; }
  .food-list { gap: 20px; }
  .food-item { flex-basis: 84%; }
  .food-caption { margin-top: 16px; }
  .food-controls { justify-content: space-between; }
  .food-dot { width: 32px; min-width: 32px; }
  .space { grid-template-columns: 1fr; }
  .space-image { height: auto; aspect-ratio: 4/3; }
  .space-copy { padding: 40px var(--gutter) 48px; }
  .space-copy > p { margin-block: 20px; }
  .site-footer { display: flex; flex-direction: column; align-items: start; gap: 20px; padding-block: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, a, button { transition: none; }
}

/* Older CMS clients inject selector-based spacing; keep one layout boundary. */
.story-grid { padding-block: 0 !important; }
.food-dots { display: none; }
