/* California Supplies Food - sibling to california.supplies (warm-paper). */
@font-face {
  font-family: "Hanken Grotesk";
  src: url(/fonts/HankenGrotesk-var.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/fonts/IBMPlexMono-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --surface: #f5f5f2;
  --surface-raised: #fbfbf8;
  --surface-darker: #e7e7e3;
  --surface-hover: #ededea;
  --fg: #171717;
  --ink: rgba(38, 35, 35, 0.8);
  --ink-strong: rgba(38, 35, 35, 0.9);
  --ink-muted: rgba(38, 35, 35, 0.7);
  --ink-faint: rgba(38, 35, 35, 0.5);
  --border: rgba(32, 32, 32, 0.1);
  --border-card: #dee2de;
  --hair: rgba(32, 32, 32, 0.08);
  --sky: #1a6fd1;
  --success: #34a853;
  --hot: #ff672f;
  --lime: #bbf451;
  --draft: #7a1f1f;
  --draft-bg: #f8e4e0;
  --font-sans: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 8px;
  --radius-card: 10px;
  --shadow-btn-light: 0 2px 3px rgba(0, 0, 0, 0.06), inset 0 0 0.357px 1.5px rgba(255, 255, 255, 0.35),
    inset 0 2px 0 #fff;
  --shadow-btn-dark: 0 0 0 1px rgba(64, 64, 64, 0.12), inset 0 2px 0 rgba(255, 255, 255, 0.24),
    inset 0 -0.5px 2px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.03), 0 3px 4px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 0 0 0.83px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 0 0 0.83px #fff;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-hover: 150ms;
  --container: 1100px;
  --gutter: 24px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--fg);
  font: 400 16px/24px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--ink-strong);
}
::selection {
  background: #dae9fb;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
}
.skip:focus {
  left: 0;
  z-index: 80;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* Header - solid sibling of california.supplies scrolled state */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 245, 242, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #fff, 0 1px 0 1px rgba(32, 32, 32, 0.04);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
}
.wordmark svg {
  width: 24px;
  height: 24px;
  flex: none;
  image-rendering: pixelated;
}
.wordmark .wm-text {
  font-size: 18px;
  font-weight: 440;
  letter-spacing: -0.25px;
  line-height: 1;
}
.wordmark .wm-text i {
  font-style: normal;
  opacity: 0.62;
}
.section-chip {
  margin-left: 4px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font: 400 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-strong);
  background: rgba(231, 231, 227, 0.9);
  border: 1px solid rgba(32, 32, 32, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 15px;
  font-weight: 410;
  letter-spacing: 0.15px;
  color: var(--ink);
  padding: 0 12px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  transition: background-color var(--dur-hover) var(--ease-std);
}
.nav a:hover {
  background: #e7e7e3;
  color: var(--fg);
}

.draft-banner {
  background: var(--draft-bg);
  color: var(--draft);
  text-align: center;
  font: 400 12px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(122, 31, 31, 0.2);
}

main.wrap {
  padding: 40px 0 88px;
}

.eyebrow {
  font: 400 11.5px/1.5 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero {
  max-width: 40rem;
  padding: 8px 0 28px;
  animation: rise 0.55s var(--ease-out) both;
}
.hero h1 {
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.4px;
  margin: 0 0 14px;
  color: var(--fg);
  text-wrap: balance;
}
.hero h1 .fade {
  color: var(--ink-faint);
}
.hero .lede,
.lead {
  font-size: 16px;
  line-height: 1.45;
  font-weight: 460;
  letter-spacing: 0.15px;
  color: var(--ink-muted);
  margin: 0 0 22px;
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-size: 15.5px;
  font-weight: 440;
  letter-spacing: 0.1px;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.14s ease-out, box-shadow 0.14s ease-out, color 0.14s ease-out,
    border-color 0.14s ease-out;
}
.btn-dark,
.btn.primary,
button.btn[type="submit"] {
  color: #fff;
  background: linear-gradient(rgba(32, 32, 32, 0.1), rgba(32, 32, 32, 0.1)),
    linear-gradient(#4f4f4f, rgba(32, 32, 32, 0.85));
  border-color: #383838;
  box-shadow: var(--shadow-btn-dark);
}
.btn-dark:hover,
.btn.primary:hover,
button.btn[type="submit"]:hover {
  background: linear-gradient(rgba(32, 32, 32, 0.28), rgba(32, 32, 32, 0.28)),
    linear-gradient(#4f4f4f, rgba(32, 32, 32, 0.9));
  color: #fff;
}
.btn-light,
.btn.secondary {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: var(--shadow-btn-light);
  color: var(--fg);
}
.btn-light:hover,
.btn.secondary:hover {
  background: var(--surface-hover);
  color: var(--fg);
}

.panel {
  background: var(--surface-raised);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  margin: 16px 0;
  animation: rise 0.65s var(--ease-out) both;
}
.panel h2,
.panel h3 {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
  color: var(--fg);
}
.panel p {
  color: var(--ink-muted);
  font-weight: 460;
  letter-spacing: 0.12px;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.ripe-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ripe-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.ripe-list li:last-child {
  border-bottom: 0;
}
.ripe-list .fruit {
  font-weight: 460;
  color: var(--hot);
}
.meta,
.fact-meta,
.fine {
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 460;
}
.fact-meta {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}
.empty-state {
  padding: 8px 0 4px;
  color: var(--ink-muted);
}

.harvest-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 14px 0;
}
.harvest-strip span {
  text-align: center;
  font: 400 11px/1 var(--font-mono);
  letter-spacing: 0.04em;
  padding: 10px 4px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f0f0ec;
  color: var(--ink-faint);
}
.harvest-strip span.on {
  background: #e7f4eb;
  border-color: rgba(52, 168, 83, 0.35);
  color: var(--ink-strong);
  font-weight: 460;
}

.sources {
  font-size: 0.92rem;
}
.sources li {
  margin-bottom: 0.4rem;
  color: var(--ink-muted);
}

form.stack {
  display: grid;
  gap: 14px;
}
form.stack label {
  display: grid;
  gap: 6px;
  font-weight: 460;
  color: var(--ink-strong);
  font-size: 14.5px;
}
form.stack input,
form.stack select,
form.stack textarea {
  font: inherit;
  padding: 0 12px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05), 0 1px 0 #fff;
  width: 100%;
  color: var(--fg);
}
form.stack textarea {
  height: auto;
  min-height: 6rem;
  padding: 12px;
  resize: vertical;
}
.flash {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(52, 168, 83, 0.35);
  background: #e7f4eb;
  color: var(--ink-strong);
  margin-bottom: 16px;
  font-weight: 460;
}
.flash.error {
  border-color: rgba(122, 31, 31, 0.3);
  background: var(--draft-bg);
  color: var(--draft);
}

.qr-card {
  max-width: 28rem;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.qr-card img,
.qr-card svg {
  width: min(100%, 220px);
  height: auto;
}
.qr-card h1 {
  font-weight: 400;
  font-size: 1.5rem;
  margin: 0.75rem 0 0.25rem;
}

.site-footer {
  border-top: 1px solid var(--hair);
  padding: 48px 0 56px;
  background: rgba(251, 251, 248, 0.7);
}
.footer-inner {
  display: grid;
  gap: 16px;
  max-width: 48rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  margin-bottom: 8px;
}
.footer-brand .wm-text {
  font-size: 17px;
  font-weight: 440;
  letter-spacing: -0.2px;
}
.footer-brand .wm-text i {
  font-style: normal;
  opacity: 0.62;
}
.footer-inner p {
  margin: 0;
  color: var(--ink-muted);
  font-weight: 460;
  font-size: 14.5px;
  line-height: 1.5;
}
.footer-inner a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes rise {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .panel {
    animation: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .draft-banner,
  .hero-actions,
  .nav {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .qr-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
