/* District Farms website styles */
:root {
  --ink: #0D1B12;
  --ink-2: #13261A;
  --green: #1F7A3A;
  --lime: #D4F05C;
  --mint: #EEF3E6;
  --bg: #FBFBF8;
  --muted: #4A5A50;
  --line: #DDE2D6;
  --on-dark: #C9D3CC;
  --on-dark-2: #B9C6BD;
  --rule-dark: #2E4235;
  --display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --pad: 56px;
  --section: 112px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img, video { display: block; max-width: 100%; }
picture { display: contents; }
picture > source { display: none; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: currentColor; flex-shrink: 0; }
.eyebrow.on-dark { color: var(--lime); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.035em; }
.h2.sm { font-size: clamp(30px, 3.4vw, 48px); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.lime { color: var(--lime); }
.accent { color: var(--green); }
.nw { white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 8px; font: 600 16px/1 var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-block { width: 100%; height: 56px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .bar { height: 84px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { height: 38px; width: auto; }
.brand span { font: 600 22px/1 var(--display); letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--green); box-shadow: inset 0 -2px 0 var(--green); padding-bottom: 4px; }
.nav .nav-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 600; }
.nav .nav-cta[aria-current="page"] { background: var(--green); box-shadow: none; padding-bottom: 0; color: #fff; }
.menu-btn { display: none; height: 44px; padding: 0 14px; border: 0; border-radius: 8px; background: var(--ink); color: #fff; font: 600 14px/1 var(--body); cursor: pointer; align-items: center; gap: 8px; }

/* Hero (photo or video) */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; min-height: 600px; display: flex; align-items: center; }
.hero.home { min-height: min(780px, calc(100vh - 84px)); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,27,18,.86) 0%, rgba(13,27,18,.6) 45%, rgba(13,27,18,.08) 82%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero-copy { max-width: 820px; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.04em; }
.hero p { font-size: 19px; line-height: 1.55; color: #E3EAE4; max-width: 580px; }
.video-toggle { position: absolute; right: var(--pad); bottom: 40px; z-index: 2; width: 56px; height: 56px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(13,27,18,.35); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }

/* Sections */
.section { padding-top: var(--section); padding-bottom: var(--section); }
.mint { background: var(--mint); }
.dark { background: var(--ink); color: #fff; }
.dark-2 { background: var(--ink-2); color: #fff; }
.split { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.split > :first-child { grid-column: 1; }
.split > :last-child { grid-column: 3; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 52px; }
.head-row .lede { max-width: 440px; }
.dark .lede, .dark-2 .lede { color: var(--on-dark-2); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.card h3 { font-size: 24px; line-height: 1.15; letter-spacing: -.02em; }
.card p { color: var(--muted); }
.card .top { display: flex; align-items: center; justify-content: space-between; }
.card .tag { font: 600 14px/1 var(--display); color: var(--green); }
.icon { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--green); }
.icon svg { width: 26px; height: 26px; }
.photo { width: 100%; object-fit: cover; border-radius: var(--radius); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step .num { display: flex; align-items: center; gap: 12px; }
.step .num span:first-child { width: 36px; height: 36px; border-radius: 999px; background: var(--lime); color: var(--ink); font: 600 15px/1 var(--display); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step .num span:last-child { flex-grow: 1; height: 1px; background: #3A4C40; }
.step img, .step .tile { width: 100%; height: 260px; object-fit: cover; border-radius: 10px; }
.step .tile { background: var(--lime); color: var(--ink); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.step .tile strong { font: 500 40px/1 var(--display); letter-spacing: -.03em; }
.step h3 { font-size: 24px; letter-spacing: -.02em; }
.step p { font-size: 15px; color: var(--on-dark-2); }

/* Crops */
.crops { display: grid; grid-template-columns: 1.25fr 1fr .85fr; gap: 24px; align-items: stretch; }
.crop { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.crop img { width: 100%; height: 340px; object-fit: cover; }
.crop .body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.crop h3 { font-size: 30px; letter-spacing: -.02em; }
.crop p { color: var(--muted); }
.pill { display: inline-block; padding: 4px 10px; border-radius: 6px; background: var(--lime); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid #C9D8BC; border-radius: 8px; background: var(--mint); color: var(--ink); font: 500 16px/1.2 var(--body); cursor: pointer; }
.chip svg { width: 14px; height: 14px; color: var(--green); }
.hint { font-size: 13px; color: var(--muted); }
.cart { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 18px; }
.cart h3 { font-size: 36px; line-height: 1.04; letter-spacing: -.03em; }
.cart p { font-size: 20px; line-height: 1.6; color: var(--on-dark); }

/* Dialog */
dialog.variety { border: 0; border-radius: 14px; padding: 36px; width: min(560px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(13,27,18,.3); color: var(--ink); }
dialog.variety::backdrop { background: rgba(13,27,18,.55); }
dialog.variety .stack { gap: 14px; }
dialog.variety h3 { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
dialog.variety .aka { font-size: 14px; color: var(--muted); }
dialog.variety dl { margin: 0; border-bottom: 1px solid var(--line); }
dialog.variety dl div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-top: 1px solid var(--line); }
dialog.variety dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
dialog.variety dd { margin: 0; text-align: right; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--mint); cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Greenhouse */
.place { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: stretch; }
.place .photo { grid-column: 1; height: 100%; min-height: 560px; object-position: center 70%; }
.place .stack { grid-column: 3; justify-content: center; }
.facts { border-bottom: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.facts strong { font: 500 28px/1.1 var(--display); letter-spacing: -.02em; }
.facts span { font-size: 15px; color: var(--muted); }

/* Founders */
.founders { border-radius: 16px; background: var(--mint); padding: 72px; display: grid; grid-template-columns: 6fr 1fr 5fr; align-items: center; }
.founders .stack { grid-column: 1; }
.founders img { grid-column: 3; height: 460px; }
.founders .big { font-size: 19px; line-height: 1.6; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq details:first-child { border-top-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font: 500 22px/1.3 var(--display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--mint); display: flex; align-items: center; justify-content: center; }
.faq summary .pm svg { width: 16px; height: 16px; }
.faq details[open] .v { display: none; }
.faq details p { padding: 0 72px 26px 0; font-size: 17px; line-height: 1.6; color: var(--muted); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile-link { min-height: 340px; padding: 40px; border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile-link h2 { font-size: 36px; line-height: 1.05; letter-spacing: -.03em; }
.tile-link p { opacity: .8; }
.tile-link .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.tile-link .go svg { width: 18px; height: 18px; }
.tile-link.white { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.tile-link.mint { color: var(--ink); }
.tile-link.dark .go, .tile-link.dark .eyebrow { color: var(--lime); }

/* Proof band */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.proof div { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--lime); }
.proof strong { font: 500 clamp(40px, 4.2vw, 60px)/1 var(--display); letter-spacing: -.03em; color: var(--lime); }
.proof span { color: #D3DCD5; }

/* Forms */
.form-section { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.form-section > .stack { grid-column: 1; }
.form-section > form { grid-column: 3; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form.bordered { border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { height: 52px; padding: 0 16px; border: 1.5px solid #B3BCAE; border-radius: 8px; font: 16px var(--body); color: var(--ink); background: #fff; width: 100%; }
.field select { padding: 0 12px; }
.field textarea { height: auto; padding: 14px 16px; resize: vertical; }
.field input[type="file"] { height: auto; padding: 14px 16px; border-style: dashed; background: var(--mint); font-size: 15px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--green); }
.honey { display: none; }
.note { padding: 20px 22px; border: 1px solid var(--rule-dark); border-radius: 10px; font-size: 14px; line-height: 1.6; color: var(--on-dark); }
.note strong { display: block; margin-bottom: 6px; color: #fff; }
.small { font-size: 14px; color: #93A398; }
.list-ruled > div { padding: 16px 0; border-top: 1px solid var(--rule-dark); display: flex; align-items: center; gap: 12px; color: #E3EAE4; }
.list-ruled > div:last-child { border-bottom: 1px solid var(--rule-dark); }
.list-ruled > div::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); }
.topic-hint { grid-column: 1 / -1; padding: 16px 18px; border-radius: 8px; background: var(--mint); border-left: 3px solid var(--green); font-size: 15px; line-height: 1.55; }
.topic-hint a { font-weight: 600; }
.topic-hint[hidden] { display: none; }

/* Openings */
.openings { border: 1.5px dashed #AEB8A8; border-radius: var(--radius); background: #fff; padding: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.openings .row { display: flex; align-items: center; gap: 14px; }
.openings h3 { font-size: 26px; letter-spacing: -.02em; }

/* Topic chips */
.tags { display: flex; flex-wrap: wrap; gap: 12px; }
.tags span { padding: 12px 18px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 500; }

/* Contact */
.contact-head { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: end; }
.contact-head h1 { font-size: clamp(52px, 6.2vw, 88px); line-height: .96; letter-spacing: -.045em; }
.email-card { grid-column: 3; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.email-card a { font: 500 28px/1.2 var(--display); letter-spacing: -.02em; color: #fff; }
.email-card span { color: var(--on-dark-2); }
.contact-body { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: start; }
.contact-body form { grid-column: 1; }
.contact-body aside { grid-column: 3; display: flex; flex-direction: column; gap: 14px; }
.route { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.route strong { display: block; font: 500 22px/1.2 var(--display); letter-spacing: -.02em; }
.route small { font-size: 14px; color: var(--muted); }
.route .arr { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; background: var(--mint); display: flex; align-items: center; justify-content: center; color: var(--green); }
.route .arr svg { width: 18px; height: 18px; }
.retail { padding: 24px; border-radius: var(--radius); background: var(--lime); display: flex; flex-direction: column; gap: 8px; }
.retail strong { font: 500 22px/1.2 var(--display); }
.retail span { font-size: 14px; line-height: 1.55; }

/* Simple page */
.simple { min-height: 60vh; display: flex; align-items: center; }
.simple .stack { max-width: 640px; }
.simple h1 { font-size: clamp(44px, 6vw, 80px); line-height: .98; letter-spacing: -.04em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-2); border-top: 1px solid #25372B; padding-top: 72px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 56px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer .tag { font: 500 32px/1.1 var(--display); letter-spacing: -.03em; color: #fff; max-width: 420px; margin-top: 18px; }
.site-footer .cols { display: flex; gap: 72px; font-size: 15px; }
.site-footer .cols div { display: flex; flex-direction: column; gap: 12px; }
.site-footer .cols b { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a.mail { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid #25372B; font-size: 13px; }

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad: 32px; --section: 88px; }
  .nav { gap: 20px; font-size: 14px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crops { grid-template-columns: 1fr 1fr; }
  .crops .cart { grid-column: 1 / -1; }
  .founders { padding: 48px; }
}

/* Collapse nav */
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(13,27,18,.18); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 24px; font-size: 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .nav a[aria-current="page"] { box-shadow: none; padding-bottom: 14px; }
  .nav .nav-cta { margin-top: 16px; height: 52px; justify-content: center; border-top: 0; }
  .split, .form-section, .place, .founders, .contact-head, .contact-body { grid-template-columns: 1fr; gap: 40px; }
  .split > *, .form-section > *, .place > *, .founders > *, .contact-head > *, .contact-body > * { grid-column: 1 !important; }
  .founders img, .place img { grid-column: 1 !important; }
  .place .photo { min-height: 0; height: 360px; }
  .founders img { height: 340px; }
  .head-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .tiles { grid-template-columns: 1fr; }
  .tile-link { min-height: 0; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .top { flex-direction: column; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --pad: 20px; --section: 56px; }
  .site-header .bar { height: 64px; }
  .brand img { height: 30px; }
  .brand span { font-size: 19px; }
  .hero, .hero.home { min-height: 600px; align-items: flex-end; }
  .hero::after { background: linear-gradient(180deg, rgba(13,27,18,.25) 0%, rgba(13,27,18,.55) 40%, rgba(13,27,18,.92) 100%); }
  .hero-inner { padding-top: 120px; padding-bottom: 40px; }
  .hero-copy { gap: 18px; }
  .hero p { font-size: 16px; }
  .hero .btn { width: 100%; }
  .video-toggle { top: 16px; bottom: auto; right: 16px; width: 44px; height: 44px; }
  .cards, .cards.four, .crops { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step img, .step .tile { height: 200px; }
  .crop img { height: 220px; }
  .cart p { font-size: 16px; }
  .cart h3 { font-size: 28px; }
  .founders { padding: 28px 22px; }
  .founders img { height: 220px; }
  .faq summary { font-size: 18px; padding: 18px 0; }
  .faq details p { padding-right: 0; font-size: 15px; }
  .form { grid-template-columns: 1fr; padding: 24px; }
  .proof { gap: 24px 16px; }
  .facts strong { font-size: 22px; }
  .tile-link { padding: 24px; }
  .tile-link h2 { font-size: 26px; }
  dialog.variety { padding: 24px; }
  dialog.variety h3 { font-size: 30px; }
  dialog.variety dl div { flex-direction: column; gap: 2px; }
  dialog.variety dd { text-align: left; }
  .site-footer .cols { flex-wrap: wrap; gap: 32px; }
  .site-footer .bottom { flex-direction: column; }
  .nw { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
