/* ====================================================
   Tiny Leaves — style.css
   Living Label design system
   Fonts: Bricolage Grotesque / Outfit / IBM Plex Mono
   ==================================================== */

/* 0. TOKENS & RESET
   ================================================== */

:root {
  /* Brand amber */
  --amber-deep:   #7A3A18;
  --amber:        #B85C2A;
  --amber-light:  #E8A868;

  /* Neutrals */
  --ink:    #1E1C18;
  --grey:   #8A8478;
  --stone:  #E0DCD4;
  --warm:   #F5E8D8;
  --paper:  #FAF6F0;

  /* Typography */
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-body:    'Outfit', system-ui, sans-serif;
  --f-mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Nav */
  --nav-h: 60px;

  /* Radii */
  --r-sm:   4px;
  --r-md:   8px;
  --r-pill: 999px;

  /* Max widths */
  --max-w:        1120px;
  --max-w-text:   680px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background: var(--warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Focus visible — accessible, unobtrusive */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}


/* 1. NAVIGATION
   ================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--warm);
  border-bottom: 1px solid var(--amber-deep);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
  color: var(--amber);
}

.nav-links a[aria-current="page"] {
  color: var(--amber-deep);
  background: rgba(184, 92, 42, 0.08);
}

.nav-links .nav-batch {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--stone);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-left: 8px;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links .nav-batch:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
  background: transparent;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: rgba(0,0,0,0.05);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.22s, opacity 0.22s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--warm);
    border-bottom: 1px solid var(--amber-deep);
    padding: 12px 0 20px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px clamp(20px, 4vw, 48px);
    border-radius: 0;
    font-size: 16px;
  }

  .nav-links .nav-batch {
    margin-left: clamp(20px, 4vw, 48px);
    margin-top: 8px;
    width: auto;
  }
}


/* 2. FOOTER
   ================================================== */

.site-footer {
  background: var(--ink);
  color: var(--stone);
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 48px;
  align-items: start;
}

.footer-brand img {
  height: 22px;
  width: auto;
  opacity: 0.9;
  filter: invert(1) brightness(0.9);
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 14px;
  color: var(--stone);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--amber-light);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-contact a {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
  transition: color 0.15s;
}

.footer-contact a:hover {
  color: var(--amber-light);
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}


/* 3. LAYOUT UTILITIES
   ================================================== */

.section {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 4vw, 48px);
}

.section--paper  { background: var(--paper); }
.section--warm   { background: var(--warm); }
.section--ink    { background: var(--ink); color: var(--paper); }
.section--amber  { background: var(--amber); color: var(--paper); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: var(--max-w-text);
  margin: 0 auto;
}

.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section--ink .section-heading,
.section--amber .section-heading {
  color: inherit;
}

.section-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 62ch;
}

.section--ink .section-body {
  color: var(--stone);
}


/* 4. COMPONENTS
   ================================================== */

/* 4.1 Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.15s;
  white-space: nowrap;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--amber);
  color: var(--paper);
  border-color: var(--amber);
}

.btn--primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
}

.btn--secondary {
  background: transparent;
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}

.btn--secondary:hover {
  background: var(--amber-deep);
  color: var(--paper);
}

.btn--ghost {
  background: transparent;
  color: var(--amber-deep);
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
}

.btn--ghost:hover {
  color: var(--amber);
}

.btn--sm {
  font-size: 13px;
  padding: 9px 18px;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 4.2 Tags */

.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  white-space: nowrap;
}

.tag--amber {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
  background: rgba(122, 58, 24, 0.07);
}

.tag--stone {
  color: var(--grey);
  border-color: var(--stone);
}

/* 4.3 Divider */

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.divider .divider-line {
  height: 1px;
  background: var(--amber-deep);
  opacity: 0.3;
}

.divider--plain {
  grid-template-columns: 1fr;
}

.divider--plain .divider-line {
  opacity: 0.25;
}

/* 4.4 Mono data block */

.mono-block {
  font-family: var(--f-mono);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mono-row {
  display: flex;
  gap: 12px;
}

.mono-label {
  color: var(--grey);
  font-weight: 400;
  width: 90px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  padding-top: 1px;
}

.mono-value {
  color: var(--ink);
  font-weight: 500;
}

/* 4.5 Status dot */

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4CA64C;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* 4.6 Variety color token helpers (set via inline style) */
/* --vdark, --vcontrast, --vsubtle applied per card */


/* 5. HOME PAGE
   ================================================== */

/* Amber rule lines (top/bottom of hero frame) */
.amber-rule {
  height: 1px;
  background: var(--amber-deep);
  opacity: 0.5;
  margin: 0 clamp(20px, 4vw, 48px);
}

/* Hero */
.hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px 64px;
  align-items: start;
}

.hero-wordmark {
  width: clamp(160px, 24vw, 240px);
  height: auto;
  margin-bottom: 24px;
}

.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(44px, 6.5vw, 80px);
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 28px;
  max-width: 13ch;
}

.hero-heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

.hero-lede {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  max-width: 58ch;
  margin-bottom: 12px;
}

.hero-lede + .hero-lede {
  color: #4a4641;
  font-size: 15px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Data panel - right column of hero */
.hero-data-panel {
  border: 1px solid var(--amber-deep);
  border-radius: var(--r-md);
  padding: 20px 20px 18px;
  background: var(--paper);
  position: relative;
}

.hero-data-panel::before {
  content: 'LABEL / TL-V1';
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--stone);
}

/* Sap decoration */
.sap-bg {
  position: absolute;
  right: -48px;
  bottom: -64px;
  width: clamp(240px, 32vw, 420px);
  height: auto;
  opacity: 0.055;
  pointer-events: none;
  transform: rotate(6deg);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-data-panel {
  position: relative;
  z-index: 1;
}

/* Variety preview strip */
.variety-strip {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px);
  background: var(--paper);
  overflow: hidden;
}

.variety-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.variety-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.variety-strip-title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.variety-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
}

.variety-chip {
  border-radius: var(--r-md);
  padding: 10px 12px;
  background: var(--vsubtle, #E0ECDE);
  border-left: 3px solid var(--vcontrast, #78A870);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chip-name {
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--vdark, #4A6848);
  line-height: 1.2;
}

.chip-days {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--vdark, #4A6848);
  opacity: 0.7;
}

/* Brand pillars strip */
.pillars {
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 48px);
}

.pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2px;
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  overflow: hidden;
}

.pillar-item {
  padding: 28px 24px;
  background: var(--paper);
}

.pillar-item:nth-child(even) {
  background: var(--warm);
}

.pillar-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-title {
  font-family: var(--f-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.2;
}

.pillar-desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}

/* Hero responsive */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-data-panel {
    max-width: 380px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
    text-align: center;
  }
}


/* 6. VARIETIES PAGE
   ================================================== */

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--stone);
  color: var(--grey);
  background: transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.filter-btn:hover {
  color: var(--amber-deep);
  border-color: var(--amber-deep);
}

.filter-btn.active {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  color: var(--paper);
}

.variety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.variety-card {
  background: var(--vsubtle, var(--paper));
  border-left: 3px solid var(--vcontrast, var(--stone));
  border-radius: var(--r-md);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.variety-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 28, 24, 0.09);
}

.variety-card.hidden {
  display: none;
}

.card-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.card-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--vdark, var(--grey));
  opacity: 0.7;
  flex-shrink: 0;
}

.card-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--vdark, var(--ink));
  line-height: 1.2;
  flex: 1;
}

.card-days {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--vdark, var(--grey));
  opacity: 0.8;
  white-space: nowrap;
  flex-shrink: 0;
}

.card-botanical {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--grey);
  letter-spacing: 0.04em;
  font-style: italic;
}

.card-flavor {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

.card-uses {
  font-size: 13px;
  color: var(--grey);
  line-height: 1.4;
}

.card-safety {
  font-size: 12px;
  color: var(--grey);
  line-height: 1.45;
  font-style: italic;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.card-season {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--vcontrast, var(--stone));
  color: var(--vdark, var(--grey));
}


/* 7. STORY PAGE
   ================================================== */

.story-hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) clamp(32px, 4vw, 48px);
}

.story-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}

.story-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 32px;
}

.story-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
}

.story-body p + p {
  margin-top: 20px;
}

.story-body strong {
  font-weight: 600;
}

.story-signature {
  font-family: var(--f-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  color: var(--amber-deep);
  margin-top: 32px;
}

.story-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 40px 0;
}

.story-stat {
  padding: 24px 20px;
  background: var(--paper);
}

.stat-value {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--amber-deep);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
  line-height: 1.4;
}


/* 8. CHEFS PAGE
   ================================================== */

.chefs-hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) clamp(40px, 5vw, 64px);
}

.chefs-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: start;
}

.chefs-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 24px;
}

.chefs-heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

.chefs-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}

.chefs-body p + p {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .chefs-hero-inner {
    grid-template-columns: 1fr;
  }
}

/* Formats table */
.formats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.formats-table th,
.formats-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--stone);
}

.formats-table th {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--warm);
}

.formats-table tr:hover td {
  background: var(--paper);
}

.formats-table .format-name {
  font-weight: 600;
  color: var(--ink);
}

/* Segment cards */
.segments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.segment-card {
  border: 1px solid var(--stone);
  border-radius: var(--r-md);
  padding: 24px 22px;
  background: var(--paper);
}

.segment-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.segment-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}

.segment-desc {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
}


/* 9. JOURNAL PAGE
   ================================================== */

.journal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.journal-article {
  padding: clamp(36px, 5vw, 56px) 0;
  border-bottom: 1px solid var(--stone);
}

.journal-article:last-child {
  border-bottom: none;
}

.journal-article-inner {
  max-width: var(--max-w-text);
}

.article-num {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

.article-title {
  font-family: var(--f-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 20px;
}

.article-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.article-body p + p {
  margin-top: 16px;
}

.article-body strong {
  font-weight: 600;
}

.article-note {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--paper);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.55;
}

.article-note strong {
  color: var(--amber-deep);
}


/* 10. BATCH PAGE
   ================================================== */

.batch-hero {
  padding: clamp(48px, 7vw, 88px) clamp(20px, 4vw, 48px) 0;
}

.batch-hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.batch-heading {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 16px;
}

.batch-subhead {
  font-size: 16px;
  color: var(--grey);
  margin-bottom: 32px;
  line-height: 1.55;
}

/* Batch search form */
.batch-form {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.batch-input {
  flex: 1;
  min-width: 180px;
  font-family: var(--f-mono);
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--stone);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s;
}

.batch-input::placeholder {
  color: var(--grey);
  opacity: 0.7;
}

.batch-input:focus {
  outline: none;
  border-color: var(--amber);
}

/* Batch result display */
.batch-result {
  display: none;
}

.batch-result.visible {
  display: block;
}

.batch-card {
  border: 2px solid var(--vcontrast, var(--stone));
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}

.batch-card-header {
  padding: 20px 24px;
  background: var(--vsubtle, var(--warm));
  border-bottom: 1px solid var(--vcontrast, var(--stone));
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.batch-variety-name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--vdark, var(--ink));
  line-height: 1;
}

.batch-id-display {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--vdark, var(--grey));
  opacity: 0.8;
}

.batch-card-body {
  padding: 24px;
}

.batch-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.batch-data-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.batch-data-label {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

.batch-data-value {
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.batch-safety {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--warm);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--grey);
  line-height: 1.5;
}

.batch-safety strong {
  color: var(--amber-deep);
}

.batch-demo-note {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--grey);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.batch-demo-note a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.batch-not-found {
  display: none;
  padding: 32px;
  text-align: center;
}

.batch-not-found.visible {
  display: block;
}

.batch-not-found p {
  font-size: 15px;
  color: var(--grey);
  margin-bottom: 8px;
}

/* Sample IDs */
.sample-ids {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sample-id-btn {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 14px;
  border: 1px solid var(--stone);
  border-radius: var(--r-pill);
  color: var(--amber-deep);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  letter-spacing: 0.04em;
  background: var(--paper);
}

.sample-id-btn:hover {
  background: var(--warm);
  border-color: var(--amber);
}

@media (max-width: 480px) {
  .batch-data-grid {
    grid-template-columns: 1fr;
  }
}


/* 11. 404 PAGE
   ================================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(20px, 4vw, 48px);
  text-align: center;
}

.error-code {
  font-family: var(--f-display);
  font-size: clamp(80px, 18vw, 160px);
  font-weight: 800;
  color: var(--stone);
  line-height: 1;
  margin-bottom: 8px;
}

.error-heading {
  font-family: var(--f-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-body {
  font-size: 16px;
  color: var(--grey);
  max-width: 42ch;
  margin-bottom: 32px;
  line-height: 1.55;
}


/* 12. SHARED RESPONSIVE
   ================================================== */

@media (max-width: 600px) {
  .variety-grid {
    grid-template-columns: 1fr;
  }

  .story-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .batch-data-grid {
    grid-template-columns: 1fr;
  }

  .batch-form {
    flex-direction: column;
  }

  .batch-input {
    min-width: 0;
  }
}
