/* Good Soil Labs — site styles
   Layout: one centered column (max 1248px) with full-width tinted bands for Work and About. */
:root {
  --ground: #EDEEE6;      /* page background */
  --band: #E3E5DA;        /* tinted section background */
  --paper: #F6F6F0;       /* cards and form */
  --ink: #2B241C;         /* main text */
  --ink-soft: #4A4238;    /* body text */
  --muted: #6B6254;       /* labels */
  --line: #D5D6CB;        /* borders */
  --field-line: #BFC0B3;
  --accent: #2F5A2C;      /* seedling green */
  --accent-dark: #1F3F1D;
  --live-bg: #DCE8D6;
  --retired-bg: #E6E1D6;
  --retired-fg: #5A4E3C;
  --offer-fg: #F1EFE6;
  --offer-soft: #D8D3C4;
  --offer-label: #C9B98F;

  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 96px);
  --radius: 10px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1248px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 96px); display: flex; flex-direction: column; gap: 48px; }
.band { background: var(--band); padding-block: clamp(64px, 9vw, 88px); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow.on-dark { color: var(--offer-label); }
h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 4.5vw, 48px); line-height: 1.1; }
h2.big { font-size: clamp(38px, 5.2vw, 56px); line-height: 1.08; max-width: 760px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; border: 0; transition: background-color .15s ease, color .15s ease; }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--offer-fg); color: var(--ink); flex-shrink: 0; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ground); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand svg { color: var(--accent); flex-shrink: 0; }
.brand span { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); content: ""; transition: transform .2s ease; }
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; align-items: end; padding-block: clamp(56px, 9vw, 96px) clamp(56px, 8vw, 88px); }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.02em; }
.lede { max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-soft); }
.hero-stats { margin: 0; border-top: 2px solid var(--ink); }
.hero-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.hero-stats > div:last-child { border-bottom: 0; }
.hero-stats dt { font-size: 15px; color: var(--ink-soft); }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

/* Section heads */
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 48px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 12px; }
.section-note { max-width: 440px; color: var(--ink-soft); }

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.card-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--line); background: var(--band); }
.card-img.placeholder { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #E6E7DC 0 12px, #EEEFE6 12px 24px); }
.card-img.placeholder span { font-family: var(--font-mono); font-size: 14px; color: var(--muted); background: var(--paper); padding: 6px 12px; border-radius: 4px; }
.card-img.placeholder.retired { filter: grayscale(1); }
.card-body { display: flex; flex-direction: column; gap: 14px; padding: 28px 32px 32px; flex-grow: 1; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.status.live { background: var(--live-bg); color: var(--accent-dark); }
.status.retired { background: var(--retired-bg); color: var(--retired-fg); }
.card h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 30px); line-height: 1.15; }
.card p { color: var(--ink-soft); }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: 4px; background: var(--band); color: var(--ink); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 15px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); column-gap: 32px; }
.service { display: flex; flex-direction: column; gap: 12px; padding: 32px 0 36px; border-bottom: 1px solid var(--line); min-width: 0; }
.service h3 { font-size: 21px; font-weight: 600; }
.service p { color: var(--ink-soft); max-width: 360px; }
.price { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.hourly { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 24px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.hourly > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hourly h3 { font-size: 19px; font-weight: 600; }
.hourly p { font-size: 15px; color: var(--ink-soft); }
.rates { margin: 0; display: flex; gap: 40px; flex-shrink: 0; }
.rates > div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rates dd { margin: 0; font-family: var(--font-display); font-size: 32px; font-variant-numeric: tabular-nums; }
.rates dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); order: 2; text-align: right; }

/* Founding offer */
.offer { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 64px); border-radius: 12px; background: var(--ink); color: var(--offer-fg); }
.offer > div { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.offer h2 { font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; }
.offer p:not(.eyebrow) { font-size: 17px; color: var(--offer-soft); }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--accent); }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { font-size: 15px; color: var(--ink-soft); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px 96px; }
.about-quote { display: flex; flex-direction: column; gap: 20px; }
.about-quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 30px); line-height: 1.35; }
.about-quote cite { font-style: normal; font-size: 15px; color: var(--muted); }
.about-copy { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-soft); max-width: 65ch; }

/* Contact */
.contact-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.contact-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: span 2; }
.field-submit { justify-content: flex-end; }
.field-submit .btn { width: 100%; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.form-status { grid-column: 1 / -1; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: var(--accent-dark); }
.form-status.err { color: #9B2C1F; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 28px; font-size: 14px; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stats { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .about { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; }
  .header-inner { min-height: 68px; }
  .brand span { font-size: 21px; }

  .section-head.split, .contact-head, .offer, .hourly { flex-direction: column; align-items: flex-start; }
  .work-grid, .services-grid, .steps, .contact-form { grid-template-columns: minmax(0, 1fr); }
  .field-wide { grid-column: auto; }
  .card-body { padding: 22px 20px 24px; }
  .rates { gap: 28px; }
  .rates > div { align-items: flex-start; }
  .rates dt { text-align: left; }
  .btn-row .btn { flex: 1 1 100%; }
}
