/* Venturia — tokens from the build brief (v1). */
:root {
  --ivory: #faf8f2;
  --white: #ffffff;
  --ink: #1f2c24;
  --muted: #586358;
  --forest: #31563d;
  --forest-deep: #24412e;
  --sage: #e9eee3;
  --sand: #f2e7d5;
  --plum: #725368;
  --leaf-back: #c9d5be;
  --error: #9e2f28;
  --line: rgba(31, 44, 36, 0.14);
  --line-strong: rgba(31, 44, 36, 0.3);
  --control-border: #7d877e;

  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --content: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(3rem, 2rem + 6vw, 7rem);
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font: 400 clamp(1.0625rem, 1rem + 0.2vw, 1.125rem) / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 5rem); letter-spacing: -0.022em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 1.45rem + 2vw, 3rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--forest); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--forest-deep); text-decoration-thickness: 2px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: calc(720px + 2 * var(--gutter)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--ink); color: var(--ivory); border-radius: 8px; }
.skip-link:focus { top: 12px; color: var(--ivory); }

.site-banner { margin: 0; padding: 8px var(--gutter); background: var(--sage); color: var(--ink); font-size: 0.875rem; text-align: center; }
.site-banner-fixtures { background: var(--plum); color: var(--white); font-weight: 600; }

.eyebrow { font-family: var(--sans); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--forest); line-height: 1.4; }
h2.eyebrow { font-size: 0.8125rem; letter-spacing: 0.12em; }
.lede { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); line-height: 1.55; max-width: 36rem; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.4em;
  border: 1.5px solid var(--forest); border-radius: 999px;
  background: var(--forest); color: var(--ivory);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--ivory); text-decoration: none; }
.btn:disabled { cursor: default; opacity: 0.6; }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--sage); color: var(--forest-deep); }
.btn-small { min-height: 44px; padding: 0.55em 1.15em; font-size: 0.9375rem; }
.arrow { display: inline-block; transition: transform 180ms ease; }
a:hover .arrow { transform: translateX(3px); }
.text-link { display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; font-weight: 600; }
.link-button { padding: 0; min-height: 44px; border: 0; background: none; color: var(--forest); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { padding-block: 18px; }
.header-inner { display: flex; align-items: center; gap: 12px 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 1.625rem/1 var(--serif); letter-spacing: -0.01em; min-height: 44px; }
.wordmark:hover { color: var(--ink); }
.wordmark-leaf { width: 30px; height: 30px; color: var(--forest); flex: none; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.site-nav a:hover { color: var(--forest); text-decoration: underline; }

@media (max-width: 819px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; }
  .site-nav { order: 3; margin-left: 0; width: 100%; border-top: 1px solid var(--line); }
  .site-nav ul { gap: 0 22px; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 380px) {
  .header-cta { display: none; }
}

/* Hero */
.hero { padding-block: clamp(1.5rem, 1rem + 3vw, 4rem) var(--section); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 24px; max-width: 11ch; }
.hero-copy .lede { margin-bottom: 32px; }
.stage-note { margin-top: 20px; display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 0.9375rem; }
.stage-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); flex: none; transform: translateY(-0.1em); }
.hero-visual { position: relative; border-radius: 16px; overflow: hidden; }
.hero-visual-illustration { aspect-ratio: 4 / 5; background: var(--sand); display: flex; align-items: flex-end; }
.hero-illustration { width: 112%; max-width: none; margin-left: -6%; margin-bottom: -4%; }
.hero-grid:has(.hero-visual-photo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hero-visual-photo { margin: 0; overflow: visible; }
.hero-frame { position: relative; padding: 28px 0 0 28px; }
.hero-frame::before { content: ''; position: absolute; inset: 0 28px 28px 0; background: var(--sand); border-radius: 16px; }
.hero-frame picture { position: relative; z-index: 1; display: block; }
.hero-frame img { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px -24px rgba(31, 44, 36, 0.45); }
.hero-accent-leaf { position: absolute; left: -44px; top: -46px; width: 124px; color: var(--leaf-back); transform: rotate(-38deg); }
.hero-caption { margin-top: 12px; padding-left: 28px; font-size: 0.8125rem; color: var(--muted); }

@media (max-width: 759px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* Decorative illustration gives way before text shrinks. A real photo stays, cropped wider. */
  .hero-visual-illustration { display: none; }
  .hero-grid:has(.hero-visual-photo) { grid-template-columns: 1fr; }
  .hero-frame { padding: 16px 0 0 16px; }
  .hero-frame::before { inset: 0 16px 16px 0; }
  .hero-accent-leaf { width: 64px; left: -10px; top: -22px; }
  .hero-caption { padding-left: 16px; }
  .hero { position: relative; overflow: hidden; }
  .hero-copy h1 { max-width: none; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding-block: var(--section); }
.section-sage { background: var(--sage); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 + p { margin-top: 18px; color: var(--muted); font-size: 1.125em; }

/* Entry paths */
#paths { padding-top: 0; }
.path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.path-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: clamp(28px, 4vw, 48px); min-height: 300px;
  border: 1px solid transparent; border-radius: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.path-card-idea { background: var(--sand); }
.path-card-operator { background: var(--sage); }
.path-card:hover, .path-card:focus-within { border-color: var(--line-strong); box-shadow: 0 12px 32px -18px rgba(31, 44, 36, 0.35); }
.path-card p { color: var(--muted); max-width: 40ch; }
.path-card .btn { margin-top: auto; }
.contribute-link { margin-top: 20px; text-align: center; font-size: 0.9375rem; }
.contribute-link .text-link { font-weight: 500; }
@media (max-width: 719px) {
  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 0; }
  .path-card .btn { margin-top: 8px; }
}

/* Shared foundations */
.foundation-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); margin: 0; padding: 0; list-style: none; }
.foundation { padding-top: 20px; border-top: 1px solid var(--line-strong); }
.foundation h3 { margin: 12px 0 10px; font-size: 1.5rem; }
.foundation p:last-child { color: var(--muted); }
.status-tag { display: inline-block; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 959px) { .foundation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 539px) { .foundation-grid { grid-template-columns: 1fr; } }

/* Businesses */
.empty-panel {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end;
  padding: clamp(28px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: 16px;
}
.empty-panel .eyebrow { margin-bottom: 16px; }
.empty-panel h2 { margin-bottom: 16px; }
.empty-panel p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
.empty-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 759px) { .empty-panel { grid-template-columns: 1fr; } }

.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.business-grid-stacked { grid-template-columns: 1fr; }
.business-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: border-color 180ms ease, box-shadow 180ms ease; }
.business-card:hover, .business-card:focus-within { border-color: var(--line-strong); box-shadow: 0 12px 32px -18px rgba(31, 44, 36, 0.35); }
.business-card > p:not(.status-tag) { color: var(--muted); }
.business-facts { margin: 4px 0 0; display: grid; gap: 10px; font-size: 0.9375rem; }
.business-facts dt { font-weight: 600; }
.business-facts dd { margin: 0; color: var(--muted); }
.business-updated { font-size: 0.875rem; }
.business-card .btn { margin-top: auto; }
.section-more { margin-top: 24px; }
@media (max-width: 959px) { .business-grid { grid-template-columns: 1fr; } }

/* About + FAQ */
#about { border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(40px, 6vw, 96px); }
.about h2 { margin-bottom: 20px; }
.statement { font: 400 clamp(1.5rem, 1.25rem + 1vw, 2.125rem) / 1.3 var(--serif); letter-spacing: -0.01em; max-width: 22ch; }
.faq h2 { margin-bottom: 8px; }
.faq-item { padding-block: 20px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: 6px; }
.faq-item p { color: var(--muted); max-width: 60ch; }
@media (max-width: 819px) { .about-grid { grid-template-columns: 1fr; } }

/* Closing */
.closing { position: relative; overflow: hidden; background: var(--sand); padding-block: var(--section); }
.closing-inner { position: relative; z-index: 1; }
.closing h2 { max-width: 14ch; margin-bottom: 16px; }
.closing p { font-size: 1.1875rem; margin-bottom: 32px; max-width: 30ch; }
.closing-leaf { position: absolute; right: max(-60px, calc(50% - 760px)); bottom: -110px; width: clamp(260px, 32vw, 440px); color: var(--leaf-back); transform: rotate(-8deg); transform-origin: 50% 100%; }
@media (max-width: 759px) {
  .closing-leaf { width: 220px; right: -70px; bottom: -80px; opacity: 0.7; }
  .closing .actions .btn { flex: 1 1 100%; }
}

/* Footer */
.site-footer { padding-block: 28px 36px; border-top: 1px solid var(--line); font-size: 0.9375rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.footer-name { font-family: var(--serif); color: var(--ink); font-size: 1.0625rem; }
.footer-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* Form pages */
.form-section { padding-block: clamp(2rem, 1rem + 4vw, 5rem) var(--section); }
.page-head { margin-bottom: 32px; }
.page-head h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); margin-bottom: 16px; }
.page-head .lede { color: var(--muted); }
.info-note, .preview-notice { padding: 18px 22px; border-radius: 12px; margin-bottom: 24px; display: grid; gap: 4px; }
.info-note { background: var(--sage); }
.preview-notice { background: var(--white); border: 1.5px dashed var(--forest); }
.preview-notice p:last-child, .info-note p:last-child { color: var(--muted); }

.run-listings { margin-bottom: 40px; }
.run-listings h2 { font-size: 1.75rem; margin-bottom: 20px; }

.lead-form { display: grid; gap: 24px; padding: clamp(24px, 4vw, 40px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.fieldset { display: grid; gap: 24px; margin: 0; padding: 0; border: 0; min-width: 0; }
.required-note { font-size: 0.9375rem; color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 0.9375rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--control-border); border-radius: 10px;
  background: var(--white); color: var(--ink); font: inherit; line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(49, 86, 61, 0.28); }
.field [aria-invalid='true'] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 600; font-size: 0.9375rem; display: flex; gap: 8px; align-items: baseline; }
.field-error::before { content: '!'; display: inline-grid; place-items: center; flex: none; width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--error); color: var(--white); font-size: 0.8em; line-height: 1; transform: translateY(0.1em); }
.counter { justify-self: end; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.form-helper { font-size: 0.9375rem; color: var(--muted); padding: 14px 16px; background: var(--ivory); border-radius: 10px; }
.form-actions .btn { min-width: 12rem; }
.demo-tag { font-weight: 400; opacity: 0.85; }
.privacy-note, .noscript { font-size: 0.9375rem; color: var(--muted); }
.noscript { color: var(--error); font-weight: 600; }
.selected-business { padding: 14px 16px; background: var(--sage); border-radius: 10px; }

.error-summary, .form-alert:not(:empty) { margin-bottom: 24px; padding: 18px 22px; border: 2px solid var(--error); border-radius: 12px; background: var(--white); }
.error-summary h2 { font: 600 1.0625rem/1.4 var(--sans); letter-spacing: 0; margin-bottom: 8px; }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--error); font-weight: 600; }
.form-alert:not(:empty) { color: var(--error); font-weight: 600; }

.form-result { display: grid; gap: 14px; justify-items: start; padding: clamp(24px, 4vw, 40px); background: var(--sage); border-radius: 16px; }
.form-result:focus { outline: none; }
.form-result:focus-visible { outline: 3px solid var(--ink); }
.form-result h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem); }
.result-label { font-size: 0.9375rem; color: var(--muted); }
.result-quote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--forest); }
.result-quote-title { font-family: var(--serif); font-size: 1.25rem; }

/* Privacy and other prose */
.prose h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); margin-bottom: 12px; }
.prose .updated { color: var(--muted); margin-bottom: 32px; }
.prose h2 { font-size: 1.625rem; margin: 36px 0 10px; }
.prose p { max-width: 60ch; }
.prose p + p { margin-top: 12px; }

/* Motion — gentle, once, and only when welcome. Without it everything is in its final state. */
@media (prefers-reduced-motion: no-preference) {
  .hero-illustration { animation: leaf-reveal 800ms var(--ease) both; }
  @keyframes leaf-reveal {
    from { opacity: 0; transform: translateY(14px) rotate(-3deg) scale(0.97); }
  }
  .hero-accent-leaf { animation: accent-leaf-reveal 800ms 150ms var(--ease) both; }
  @keyframes accent-leaf-reveal {
    from { opacity: 0; transform: rotate(-44deg) scale(0.8); }
  }
  .js-reveal .reveal { transition: opacity 450ms ease, transform 450ms ease; }
  .js-reveal .reveal:not(.is-in) { opacity: 0; transform: translateY(8px); }
  .closing-leaf { transition: transform 900ms var(--ease), opacity 900ms var(--ease); }
  .js-reveal .closing:not(.is-in) .closing-leaf { transform: rotate(-26deg) scale(0.86); opacity: 0; }
}

/* Holding page */
.simple main { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 48px var(--gutter); }
.holding { display: grid; justify-items: center; gap: 14px; text-align: center; max-width: 40rem; }
.holding-leaf { width: 64px; height: 64px; color: var(--forest); margin-bottom: 10px; }
.holding h1 { font-size: clamp(3rem, 2rem + 5vw, 5.5rem); }
.holding-tagline { font: 400 clamp(1.375rem, 1.1rem + 1.2vw, 2rem) / 1.3 var(--serif); }
.holding-parent { color: var(--muted); }
.holding-small { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (prefers-reduced-motion: no-preference) {
  .holding-leaf { animation: leaf-reveal 800ms var(--ease) both; }
}
