/* ============================================
   nancy's garden — design tokens
   ============================================ */
:root {
  --bone: #F1ECDD;
  --cream: #FAF6E9;
  --ink: #1C1A14;
  --forest: #2A3A28;
  --sage: #8FA37C;
  --clay: #B85C2E;
  --wheat: #D4A85C;
  --rhubarb: #94343A;

  --container: 1240px;
  --pad-x-d: 48px;
  --pad-x-m: 24px;

  --rhythm-d: 120px;
  --rhythm-m: 80px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
}

/* ============================================
   reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ============================================
   utility — container, mono labels, dividers
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x-d);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--pad-x-m); }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "·";
  font-weight: 700;
  color: var(--clay);
  font-size: 14px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 24px;
  text-transform: lowercase;
}

.section-lead {
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 64px;
}

section { padding: var(--rhythm-d) 0; }
@media (max-width: 720px) { section { padding: var(--rhythm-m) 0; } }

/* divider with sprout stamp */
.divider {
  position: relative;
  height: 1px;
  background: var(--sage);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0;
}
.divider .stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: var(--bone);
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--clay);
}
.divider .stamp svg { display: block; }

/* ============================================
   almanac strip (sticky)
   ============================================ */
.almanac-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--bone);
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: lowercase;
}
.almanac-strip .row {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x-d);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.almanac-strip .center { text-align: center; }
.almanac-strip .right { text-align: right; }
@media (max-width: 720px) {
  .almanac-strip .row { padding: 0 var(--pad-x-m); font-size: 10px; gap: 8px; }
  .almanac-strip .right { display: none; }
  .almanac-strip { height: 38px; }
}

/* ============================================
   hero
   ============================================ */
.hero {
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero .grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero .grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero .masthead {
  font-family: var(--serif);
  font-weight: 900;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(56px, 8vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 18px 0 28px;
  text-transform: lowercase;
}
.hero .dedication {
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.hero .signed {
  font-family: var(--hand);
  font-size: 34px;
  color: var(--clay);
  line-height: 1;
  margin: 0;
}

.hero .hero-print {
  position: relative;
  width: 100%;
  max-width: 360px;
  justify-self: end;
}
.hero .hero-print .print {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 18px 38px rgba(28, 26, 20, 0.14), 0 4px 10px rgba(28, 26, 20, 0.08);
}
.hero .hero-print .bleed-chili {
  position: absolute;
  right: -28%;
  bottom: -22%;
  width: 60%;
  height: auto;
  transform: rotate(-65deg);
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(28, 26, 20, 0.18));
  z-index: 2;
}

@media (max-width: 900px) {
  .hero .hero-print { justify-self: center; max-width: 320px; }
}
@media (max-width: 540px) {
  .hero .hero-print { max-width: 280px; }
  .hero .hero-print .bleed-chili { right: -22%; bottom: -16%; width: 56%; }
}

/* ============================================
   weather
   ============================================ */
.weather .cards {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  text-decoration: none;
  color: inherit;
}
.weather .cards:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 6px;
  border-radius: 12px;
}
.weather .card { transition: border-color 200ms ease, transform 200ms ease; }
@media (hover: hover) {
  .weather .cards:hover .card { border-color: var(--clay); }
}

.weather .weather-source {
  margin-top: 18px;
  text-align: right;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
}
@media (max-width: 900px) {
  .weather .cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 8px;
    margin: 0 calc(-1 * var(--pad-x-m));
    padding-left: var(--pad-x-m);
    padding-right: var(--pad-x-m);
  }
  .weather .card { flex: 0 0 128px; scroll-snap-align: start; }
}

.weather .card {
  background: var(--cream);
  border: 1px solid var(--sage);
  border-radius: 12px;
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.weather .card .day {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.weather .card .date {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  margin: 4px 0 10px;
  color: var(--ink);
}
.weather .card .glyph { width: 56px; height: 56px; margin: 6px 0 14px; }
.weather .card .hi {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.weather .card .lo {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 14px;
  color: var(--sage);
  margin-top: 2px;
}
.weather .card .precip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--forest);
  margin-top: 6px;
  padding-bottom: 14px;
}
.weather .card .frost {
  margin-top: auto;
  margin-left: -14px;
  margin-right: -14px;
  background: var(--clay);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 0;
  width: calc(100% + 28px);
}

.weather .card.skeleton {
  animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.9; }
}

/* ============================================
   produce grid
   ============================================ */
.produce .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .produce .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.produce .tile {
  background: var(--cream);
  padding: 20px 18px 18px;
  display: grid;
  grid-template-rows: 160px auto auto auto;
  gap: 10px;
  justify-items: center;
  align-items: center;
  position: relative;
  border-radius: 4px;
}
.produce .tile .illo {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.produce .tile .illo svg,
.produce .tile .illo img {
  max-width: 90%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.produce .tile .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.1;
  text-align: center;
  margin: 0;
  color: var(--ink);
  text-transform: lowercase;
}
.produce .tile .pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--sage);
  white-space: nowrap;
}
.produce .tile .pill[data-status="in-season"],
.produce .tile .pill[data-status="ready"] { border-color: var(--clay); color: var(--clay); }
.produce .tile .pill[data-status="coming-soon"],
.produce .tile .pill[data-status="harvested"] { border-color: var(--wheat); color: var(--wheat); }

.produce .tile .planting {
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed rgba(143, 163, 124, 0.4);
  display: grid;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
}
.produce .tile .planting .row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
}
.produce .tile .planting .label {
  color: var(--sage);
}
.produce .tile .planting .value {
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.produce .tile .planting input[type="date"] {
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  background: transparent;
  border: 0;
  padding: 2px 0;
  color: var(--ink);
  width: 100%;
  cursor: pointer;
  font-family: var(--mono);
}
.produce .tile .planting input[type="date"]:focus {
  outline: 0;
  color: var(--clay);
}
.produce .tile .planting input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.4) sepia(1) saturate(4) hue-rotate(355deg);
  cursor: pointer;
  margin-left: 2px;
}
.produce .tile .planting .harvest .value { color: var(--clay); }
.produce .tile .planting .harvest.empty { display: none; }


/* ============================================
   the kitchen — dropdown picker + results
   ============================================ */
.kitchen .picker-wrap {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 56px;
}

.picker {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 560px;
}
.picker .trigger {
  width: 100%;
  height: 80px;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: left;
}
.picker .trigger:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.picker .trigger .prefix {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  white-space: nowrap;
  flex-shrink: 0;
}
.picker .trigger .value {
  flex: 1;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1;
  text-transform: lowercase;
  color: var(--ink);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.picker .trigger .value.placeholder { color: var(--sage); font-weight: 500; }
.picker .trigger .chevron {
  width: 20px;
  height: 20px;
  color: var(--clay);
  flex-shrink: 0;
  transition: transform 200ms ease;
}
.picker[data-open="true"] .trigger .chevron { transform: rotate(180deg); }

.picker .menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-radius: 8px;
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 30;
  box-shadow: 0 18px 40px rgba(28, 26, 20, 0.12);
  display: none;
  list-style: none;
  margin: 0;
}
.picker[data-open="true"] .menu { display: block; }

.picker .menu .option {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  text-transform: lowercase;
  color: var(--ink);
}
.picker .menu .option:hover,
.picker .menu .option[aria-selected="true"] {
  background: var(--bone);
}
.picker .menu .option .opt-illo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.picker .menu .option .opt-illo img,
.picker .menu .option .opt-illo svg {
  max-width: 28px;
  max-height: 28px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.picker .menu .option .opt-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}
.picker .menu .option .opt-status[data-status="in-season"] { color: var(--clay); }
.picker .menu .option .opt-status[data-status="coming-soon"] { color: var(--wheat); }

.picker-sources {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  text-align: center;
  max-width: 560px;
}

.kitchen .empty-state {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1;
  text-transform: lowercase;
  text-align: center;
  color: var(--sage);
  padding: 48px 0 32px;
  margin: 0;
}

.kitchen .results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .kitchen .results { grid-template-columns: 1fr; gap: 18px; } }

.recipe-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--sage);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out, border-color 200ms ease;
}
.recipe-card.in { opacity: 1; transform: translateY(0); }
.recipe-card:hover { border-color: var(--clay); }
.recipe-card:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

.recipe-card .body {
  padding: 20px 96px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 200px;
}

.recipe-card .veg {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 88px;
  height: 88px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(28, 26, 20, 0.10));
  transform: rotate(-6deg);
}
.recipe-card .meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
}
.recipe-card .title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  text-transform: lowercase;
  color: var(--ink);
  margin: 0;
}
.recipe-card .desc {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recipe-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.recipe-card .tags span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  border: 1px solid var(--sage);
  color: var(--forest);
  border-radius: 999px;
  padding: 3px 8px;
}
.recipe-card .open {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.recipe-card .open::before { content: "→"; }

/* ============================================
   footer
   ============================================ */
.sawtooth {
  background: var(--forest);
  color: var(--bone);
  padding: 0;
  margin-top: 60px;
}
.sawtooth .mountain-band {
  width: 100%;
  padding: 36px var(--pad-x-d) 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.sawtooth .mountain-band .sun {
  width: clamp(48px, 5vw, 72px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--wheat);
  box-shadow: 0 0 40px rgba(212, 168, 92, 0.4);
}
.sawtooth .mountain-band .mountains {
  width: clamp(280px, 44vw, 620px);
  height: auto;
  display: block;
}
.sawtooth .signature {
  font-family: var(--hand);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--bone);
  text-align: center;
  line-height: 1.3;
  padding: 56px var(--pad-x-d) 80px;
  margin: 0 auto;
  max-width: 720px;
}
.sawtooth .signature .from {
  color: var(--wheat);
  margin-left: 6px;
}

/* ============================================
   scroll animations
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .divider .stamp svg { animation: none; }
}
