:root {
  color-scheme: light;
  --cream: #f8eed9;
  --paper: #fff8e9;
  --paper-warm: #f3dfbd;
  --ink: #392613;
  --muted: #735d43;
  --soil: #4d321f;
  --leaf: #496d35;
  --leaf-soft: #d9e3bd;
  --tomato: #ad4f35;
  --eggplant: #5a355f;
  --straw: #e7c26a;
  --line: rgba(89, 57, 30, 0.22);
  --shadow: 0 22px 60px rgba(75, 47, 19, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(230, 180, 92, 0.28), transparent 26rem),
    radial-gradient(circle at 85% 18%, rgba(90, 53, 95, 0.12), transparent 30rem),
    linear-gradient(90deg, rgba(73, 109, 53, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(73, 109, 53, 0.05) 1px, transparent 1px),
    var(--cream);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(45deg, rgba(89,57,30,0.025) 0 2px, transparent 2px 10px),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.42), transparent 28rem);
  mix-blend-mode: multiply;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 56px;
  position: relative;
}

.hero {
  text-align: center;
  padding: 34px 16px 30px;
  position: relative;
}
.hero::before,
.hero::after {
  content: "✦";
  position: absolute;
  top: 42%;
  color: rgba(73, 109, 53, 0.42);
  font-size: clamp(1.4rem, 4vw, 2.5rem);
}
.hero::before { left: 4%; transform: rotate(-12deg); }
.hero::after { right: 4%; transform: rotate(14deg); }

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 0.76rem;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  width: fit-content;
  margin: 0 auto 12px;
  padding: 0.16em 0.28em 0.22em;
  font-size: clamp(3.2rem, 11vw, 7.4rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-wrap: balance;
  color: var(--soil);
  background: linear-gradient(180deg, transparent 56%, rgba(231, 194, 106, 0.56) 56%);
  transform: rotate(-1.2deg);
}

.scale-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  padding: clamp(20px, 4vw, 34px);
  border: 2px solid rgba(89, 57, 30, 0.2);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 248, 233, 0.94), rgba(242, 222, 188, 0.9)),
    repeating-linear-gradient(0deg, rgba(89,57,30,0.035) 0 1px, transparent 1px 8px);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}
.scale-hero::after {
  content: "farm stand favorite";
  position: absolute;
  right: 20px;
  top: 18px;
  padding: 7px 12px;
  border: 1px dashed rgba(89,57,30,0.38);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 248, 233, 0.72);
  font-size: 0.82rem;
  transform: rotate(3deg);
}
.scale-copy { position: relative; z-index: 2; }
.scale-copy h2 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin-bottom: 14px;
  color: var(--eggplant);
}
.scale-copy p:not(.tag) {
  color: var(--muted);
  line-height: 1.45;
  font-size: clamp(1.18rem, 2.2vw, 1.52rem);
  font-weight: 800;
}

.tag, .label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border: 1px dashed rgba(89,57,30,0.36);
  border-radius: 8px;
  background: #fff3cf;
  color: var(--soil);
  box-shadow: 0 6px 14px rgba(75, 47, 19, 0.11);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 900;
  transform: rotate(-1.5deg);
}
.label { background: #f6eccd; color: var(--leaf); }

.scale-meter {
  width: min(360px, 100%);
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(89,57,30,0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}
.scale-meter span { display: block; color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.scale-meter strong { display: block; margin-bottom: 10px; color: var(--tomato); font-size: 1.35rem; font-family: Georgia, "Times New Roman", serif; }
.scale-meter div {
  height: 12px;
  border-radius: 999px;
  background: rgba(89,57,30,0.13);
  overflow: hidden;
}
.scale-meter i {
  display: block;
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--leaf), var(--straw), var(--tomato));
}

.scale-image {
  margin: 0;
  min-height: 380px;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, auto) auto;
  justify-items: center;
  align-items: center;
  gap: 14px;
}
.scale-image img {
  display: block;
  max-height: 520px;
  max-width: 100%;
  min-width: 0;
  padding: 10px;
  border: 10px solid #fff7e6;
  border-radius: 18px;
  background: #f7e4bd;
  transform: rotate(-2.5deg);
  box-shadow: 0 24px 50px rgba(75, 47, 19, 0.32);
  position: relative;
  z-index: 1;
}
.zoomable-image { cursor: zoom-in; }
.zoomable-image:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 4px;
}
.scale-image::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(90,53,95,0.18), transparent 62%);
  filter: blur(28px);
  z-index: 0;
}
.scale-image figcaption {
  width: fit-content;
  max-width: min(90%, 420px);
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 248, 233, 0.82);
  color: var(--soil);
  text-align: center;
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.eggplant-feature img { max-height: 560px; }

.section-block { margin-top: 34px; scroll-margin-top: 24px; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(260px, 0.42fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
  padding: 0 6px;
}
.section-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -7px; }
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--soil);
}
.section-heading p { color: var(--muted); line-height: 1.35; margin-bottom: 0; font-weight: 800; }

.standout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.produce-card, .gallery-card, .curator-panel {
  border: 2px solid rgba(89,57,30,0.18);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(75, 47, 19, 0.18);
  overflow: hidden;
}
.produce-card {
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.produce-card:nth-child(2) { transform: rotate(0.5deg); }
.produce-card:nth-child(3) { transform: rotate(-0.4deg); }
.sticker-note {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  max-width: 155px;
  padding: 7px 10px;
  border: 1px solid rgba(89,57,30,0.2);
  border-radius: 999px;
  background: #fff3cf;
  color: var(--soil);
  box-shadow: 0 8px 18px rgba(75,47,19,0.16);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  transform: rotate(3deg);
}
.produce-card:nth-child(2) .sticker-note { left: 12px; right: auto; transform: rotate(-4deg); }
.produce-card:nth-child(3) .sticker-note { background: #ead7ef; color: var(--eggplant); transform: rotate(2deg); }
.produce-card img {
  display: block;
  width: 100%;
  height: 300px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.55), transparent 62%),
    repeating-linear-gradient(90deg, rgba(73,109,53,0.08) 0 12px, rgba(255,248,233,0.2) 12px 24px);
  filter: drop-shadow(0 18px 18px rgba(75,47,19,0.28));
}
.produce-card div {
  padding: 20px;
  position: relative;
  z-index: 1;
  background: rgba(255, 248, 233, 0.88);
}
.produce-card h3 { font-size: 1.55rem; line-height: 1.02; margin: 12px 0 8px; color: var(--soil); }
.produce-card p { color: var(--muted); line-height: 1.35; margin-bottom: 0; font-weight: 800; font-size: 1.04rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 22px;
  padding: 8px 4px 2px;
}
.gallery-card {
  margin: 0;
  min-height: 420px;
  border: 10px solid #fff7e6;
  border-bottom-width: 58px;
  border-radius: 10px;
  position: relative;
  background: #fff7e6;
  overflow: visible;
  transform: rotate(-1.3deg);
}
.gallery-card:nth-child(2) { transform: rotate(1.4deg) translateY(8px); }
.gallery-card:nth-child(3) { transform: rotate(-0.7deg) translateY(-4px); }
.gallery-card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  z-index: 3;
  width: 88px;
  height: 28px;
  border-radius: 4px;
  background: rgba(238, 214, 156, 0.72);
  box-shadow: 0 4px 12px rgba(75,47,19,0.12);
  transform: translateX(-50%) rotate(2deg);
}
.gallery-card img {
  width: 100%;
  height: calc(100% + 48px);
  min-height: 372px;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}
.gallery-card figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -48px;
  display: grid;
  gap: 3px;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}
.gallery-card strong { color: var(--soil); font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.gallery-card span { color: var(--muted); font-size: 0.96rem; font-weight: 800; }

.pie-section {
  padding: clamp(18px, 3vw, 30px);
  border: 2px solid rgba(90, 53, 95, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 16% 18%, rgba(173,79,53,0.13), transparent 22rem),
    radial-gradient(circle at 84% 24%, rgba(90,53,95,0.11), transparent 24rem),
    linear-gradient(135deg, rgba(255,248,233,0.94), rgba(243,223,189,0.78));
}
.pie-feature {
  display: grid;
  grid-template-columns: minmax(260px, 0.68fr) minmax(260px, 0.32fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  margin: 0;
}
.pie-feature img {
  display: block;
  width: 100%;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border: 10px solid #fff7e6;
  border-radius: 18px;
  background: #fff7e6;
  box-shadow: var(--shadow);
}
.pie-feature figcaption {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  background: rgba(255,248,233,0.94);
  border: 1px solid rgba(89,57,30,0.2);
  box-shadow: 0 16px 42px rgba(75,47,19,0.14);
}
.pie-feature strong {
  color: var(--eggplant);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}
.pie-feature span {
  color: var(--soil);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 900;
}

.stron-section {
  padding: clamp(18px, 3vw, 28px);
  border: 2px dashed rgba(89,57,30,0.22);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(173,79,53,0.13), transparent 22rem),
    linear-gradient(135deg, rgba(255,248,233,0.88), rgba(243,223,189,0.74));
}
.stron-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
}
.stron-card figure {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.tiny-specimen {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 16px 18px 34px;
  border: 2px solid rgba(89,57,30,0.18);
  border-radius: 26px;
  background:
    linear-gradient(90deg, rgba(89,57,30,0.08) 1px, transparent 1px),
    linear-gradient(rgba(89,57,30,0.07) 1px, transparent 1px),
    rgba(255,248,233,0.72);
  background-size: 22px 22px;
}
.stron-card img {
  display: block;
  width: min(100%, 430px);
  max-height: 470px;
  object-fit: contain;
  padding: 10px;
  border: 10px solid #fff7e6;
  border-radius: 22px;
  background: #f7e4bd;
  box-shadow: 0 22px 48px rgba(75,47,19,0.25);
  transform: rotate(1.4deg);
}
.tiny-sticker {
  position: absolute;
  left: -6px;
  top: 18px;
  z-index: 3;
  padding: 8px 10px;
  border-radius: 10px;
  background: #dfeaba;
  color: var(--leaf);
  box-shadow: 0 8px 18px rgba(75,47,19,0.16);
  font-size: 0.76rem;
  font-weight: 950;
  transform: rotate(-7deg);
}
.ruler-mark {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  height: 18px;
  border-bottom: 3px solid rgba(89,57,30,0.46);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.ruler-mark::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 10px;
  background: repeating-linear-gradient(90deg, rgba(89,57,30,0.52) 0 2px, transparent 2px 18px);
}
.stron-card figcaption {
  max-width: 430px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,248,233,0.86);
  color: var(--soil);
  text-align: center;
  font-weight: 900;
}
.stron-card h3 {
  margin: 14px 0 12px;
  color: var(--tomato);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.stron-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  font-weight: 900;
  line-height: 1.42;
}

.curator-panel {
  margin-top: 32px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 26px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255,248,233,0.94), rgba(244,226,193,0.92));
}
.curator-panel h2 {
  margin-bottom: 10px;
  color: var(--soil);
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
}
.curator-panel p { color: var(--muted); margin: 0 auto; max-width: 680px; line-height: 1.45; font-weight: 900; font-size: 1.12rem; }
.note-panel {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 243, 207, 0.95), rgba(235, 223, 184, 0.95));
}
.note-panel h2 { color: var(--tomato); }
.curator-credit { transform: rotate(0.35deg); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 14px;
  padding: 58px 18px 24px;
  background: rgba(34, 22, 13, 0.88);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}
.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}
body.lightbox-open { overflow: hidden; }
.lightbox-image {
  max-width: min(100%, 1180px);
  max-height: 82vh;
  object-fit: contain;
  border: 8px solid #fff7e6;
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0,0,0,0.72);
}
.lightbox-caption {
  max-width: min(760px, 100%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255,248,233,0.92);
  color: var(--soil);
  text-align: center;
  line-height: 1.45;
  font-weight: 900;
}
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 51;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  background: rgba(255,248,233,0.92);
  color: var(--soil);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:focus-visible {
  outline: 3px solid var(--tomato);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .shell { width: min(100% - 20px, 720px); padding-top: 18px; }
  .hero { padding: 22px 4px 24px; }
  .hero::before, .hero::after { display: none; }
  h1 { font-size: clamp(3.25rem, 16vw, 5.8rem); }
  .scale-hero, .section-heading, .standout-grid, .gallery-grid { grid-template-columns: 1fr; }
  .pie-feature { grid-template-columns: 1fr; }
  .stron-card { grid-template-columns: 1fr; }
  .scale-hero { border-radius: 24px; gap: 14px; }
  .scale-hero::after { display: none; }
  .scale-image { min-height: 0; align-items: start; }
  .scale-image img { max-height: 320px; transform: none; }
  .produce-card, .produce-card:nth-child(2), .produce-card:nth-child(3), .gallery-card, .gallery-card:nth-child(2), .gallery-card:nth-child(3), .curator-credit { transform: none; }
  .produce-card img { height: 260px; }
  .gallery-card { min-height: 360px; overflow: hidden; border-width: 8px; border-bottom-width: 54px; border-radius: 18px; }
  .gallery-card img { min-height: 306px; }
  .pie-feature img { max-height: 640px; }
  .gallery-card::before { display: none; }
  .stron-card figure { max-width: min(100%, 360px); margin-inline: auto; }
  .stron-card img { width: min(100%, 340px); max-height: 340px; transform: none; }
}

@media (max-width: 560px) {
  .section-block { margin-top: 24px; }
  .section-heading { gap: 10px; }
  .scale-copy h2 { font-size: 2.25rem; }
  .scale-image img { max-height: 280px; }
  .produce-card img { height: 230px; }
  .sticker-note { max-width: 126px; font-size: 0.66rem; padding: 6px 8px; }
  .gallery-grid { gap: 18px; padding-inline: 0; }
  .gallery-card { min-height: 310px; border-bottom-width: 50px; }
  .gallery-card img { min-height: 260px; }
  .pie-section { padding: 16px; border-radius: 24px; }
  .pie-feature { gap: 14px; }
  .pie-feature img { max-height: 560px; border-width: 8px; }
  .pie-feature figcaption { padding: 16px; border-radius: 16px; }
  .stron-section { padding: 16px; border-radius: 24px; }
  .stron-card figure { max-width: min(100%, 280px); }
  .stron-card img { width: min(72vw, 260px); max-height: 260px; padding: 8px; border-width: 7px; }
  .tiny-specimen { padding: 12px 12px 30px; }
  .tiny-sticker { left: 4px; top: 10px; font-size: 0.68rem; }
  .ruler-mark { left: 14px; right: 14px; font-size: 0.62rem; }
  .lightbox { padding: 62px 10px 18px; }
  .lightbox-image { max-height: 78vh; border-radius: 16px; }
  .lightbox-caption { font-size: 0.92rem; }
}

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