/* FarmerSites design system — tokens, base, components. No build step; plain CSS. */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --green: #1e5a3c;
  --green-deep: #143f2a;
  --green-light: #2f7a52;
  --green-tint: #e4efe7;
  --gold: #e3a72f;
  --gold-dark: #b9821c;
  --gold-light: #f5d27a;
  --gold-tint: #fbf1d8;
  --soil: #4a3728;
  --cream: #fbf8f1;
  --parchment: #f2ebdc;
  --paper: #ffffff;
  --ink: #1c1a17;
  --stone: #5f594f;
  --line: #e6dfd0;
  --sky: #2f6f93;
  --tomato: #c8502d;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(28, 26, 23, 0.05), 0 8px 24px -12px rgba(28, 26, 23, 0.18);
  --shadow-lg: 0 2px 4px rgba(28, 26, 23, 0.05), 0 24px 48px -16px rgba(28, 26, 23, 0.25);
  --max: 1160px;
  --gutter: clamp(1rem, 4vw, 2rem);

  --step--1: clamp(0.9rem, 0.87rem + 0.15vw, 1rem);
  --step-0: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.7rem + 3vw, 4rem);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover {
  color: var(--green-deep);
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
  font-variation-settings: "opsz" 48, "SOFT" 50;
}
h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
  font-variation-settings: "opsz" 36, "SOFT" 50;
}
h4 {
  font-size: var(--step-1);
  font-variation-settings: "opsz" 24, "SOFT" 50;
}
p {
  margin: 0 0 1em;
}
ul,
ol {
  padding-left: 1.3em;
}
strong {
  font-weight: 600;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--parchment);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap--narrow {
  width: min(760px, 100% - 2 * var(--gutter));
}
.wrap--wide {
  width: min(1320px, 100% - 2 * var(--gutter));
}
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.section--tight {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.section--paper {
  background: var(--paper);
}
.section--parchment {
  background: var(--parchment);
}
.section--green {
  background: var(--green);
  color: #fff;
}
.section--green h1,
.section--green h2,
.section--green h3 {
  color: #fff;
}
.section--green a {
  color: var(--gold-light);
}
.section--ink {
  background: var(--green-deep);
  color: #e8efe9;
}
.section--ink h2,
.section--ink h3 {
  color: #fff;
}
.grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}
.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--reverse > :first-child {
    order: 2;
  }
}
.stack > * + * {
  margin-top: var(--stack, 1rem);
}
.center {
  text-align: center;
}
.measure {
  max-width: 62ch;
}
.center .measure {
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
  display: block;
}
.section--green .eyebrow,
.section--ink .eyebrow {
  color: var(--gold-light);
}
.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--stone);
  text-wrap: pretty;
}
.section--green .lead,
.section--ink .lead {
  color: rgba(255, 255, 255, 0.82);
}
.muted {
  color: var(--stone);
}
.small {
  font-size: var(--step--1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.9rem 1.5rem;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(30, 90, 60, 0.6);
}
.btn--primary:hover {
  background: var(--green-deep);
  color: #fff;
}
.btn--gold {
  background: var(--gold);
  color: var(--ink);
}
.btn--gold:hover {
  background: var(--gold-light);
  color: var(--ink);
}
.btn--outline {
  background: transparent;
  border-color: var(--green);
  color: var(--green);
}
.btn--outline:hover {
  background: var(--green-tint);
}
.btn--light {
  background: #fff;
  color: var(--green);
}
.btn--light:hover {
  background: var(--cream);
  color: var(--green-deep);
}
.btn--ghost {
  background: transparent;
  color: var(--green);
  padding-inline: 0.75rem;
}
.btn--lg {
  font-size: 1.1rem;
  padding: 1.05rem 1.8rem;
}
.btn--sm {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}
.btn svg {
  width: 1.1em;
  height: 1.1em;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.center .btn-row {
  justify-content: center;
}
.arrow-link {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.arrow-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.arrow-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0;
  font-variation-settings: "opsz" 36;
}
.logo svg {
  width: 36px;
  height: 36px;
}
.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--green-tint);
  color: var(--green-deep);
}
.nav .btn {
  margin-left: 0.5rem;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--cream);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 0.65rem 0.25rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn {
  margin-top: 1rem;
  border-bottom: 0;
  color: #fff;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 9vw, 7rem) clamp(4rem, 10vw, 8rem);
}
.hero__in {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero__in {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}
.hero h1 {
  font-size: var(--step-4);
  margin-bottom: 1rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--green);
}
.hero .lead {
  margin-bottom: 1.75rem;
}
.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--stone);
}
.hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero__proof svg {
  width: 18px;
  height: 18px;
  color: var(--green);
}
.hero__art {
  position: relative;
}
.hero__art svg {
  width: 100%;
  height: auto;
}

/* ---------- Photos (bin/photos.php) ---------- */
.fs-photo {
  display: block;
  width: 100%;
  height: 100%;
}
.fs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}
.hero__art .fs-photo img {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.photo-band {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--shadow);
}
.photo-band .fs-photo img {
  border-radius: 0;
}
.split .fs-photo img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ---------- Hills divider ---------- */
.hills {
  display: block;
  width: 100%;
  height: clamp(40px, 8vw, 110px);
  margin-bottom: -1px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  position: relative;
}
.card--flat {
  box-shadow: none;
}
.card--tint {
  background: var(--green-tint);
  border-color: transparent;
}
.card--gold {
  background: var(--gold-tint);
  border-color: transparent;
}
.card h3 {
  margin-bottom: 0.5rem;
}
.card p:last-child {
  margin-bottom: 0;
}
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.card__icon svg {
  width: 28px;
  height: 28px;
}
.card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.card--link .arrow-link {
  margin-top: 1rem;
}

/* Segment cards with illustration */
.seg {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0;
}
.seg__art {
  background: var(--parchment);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}
.seg__art svg {
  width: 100%;
  height: 100%;
}
.seg__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}
.feature-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}
.feature-list .ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  display: grid;
  place-items: center;
}
.feature-list .ico svg {
  width: 24px;
  height: 24px;
}
.feature-list strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
}
.feature-list p {
  margin: 0;
  color: var(--stone);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 0;
}
.checks li {
  padding-left: 1.8rem;
  position: relative;
  margin-bottom: 0.55rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center/70% no-repeat;
}
.checks--gold li::before {
  background-color: var(--gold);
}
.checks--muted li::before {
  background-color: var(--line);
  background-image: none;
}
.checks--muted li {
  color: var(--stone);
}

/* ---------- Steps ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.steps strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.steps p {
  margin: 0;
  color: var(--stone);
}
.steps--dark p {
  color: rgba(255, 255, 255, 0.78);
}
.steps--dark strong {
  color: #fff;
}

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
}
.plan {
  display: flex;
  flex-direction: column;
}
.plan--featured {
  border-color: var(--green);
  box-shadow: var(--shadow-lg);
}
.plan__badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.plan__for {
  color: var(--stone);
  min-height: 3em;
  margin-bottom: 1rem;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.plan__price b {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan__price span {
  color: var(--stone);
}
.plan__setup {
  color: var(--stone);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}
.plan .checks {
  flex: 1;
  margin-bottom: 1.5rem;
}
.plan .btn {
  width: 100%;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
  min-width: 640px;
}
.compare th,
.compare td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  background: var(--parchment);
}
.compare thead th:first-child {
  border-top-left-radius: var(--radius);
}
.compare thead th:last-child {
  border-top-right-radius: var(--radius);
}
.compare td.yes {
  color: var(--green);
  font-weight: 600;
}
.compare td.no {
  color: var(--stone);
}
.compare th.hl,
.compare td.hl {
  background: var(--green-tint);
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.9rem 2.2rem 0.9rem 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 0 1.1rem;
  color: var(--stone);
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Testimonial / quote ---------- */
.quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
}
.quote + .cite {
  margin-top: 1rem;
  color: var(--stone);
  font-weight: 600;
}

/* ---------- Forms ---------- */
[hidden] {
  display: none !important;
}
.form {
  display: grid;
  gap: 1.1rem;
}
.stepper {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  counter-reset: st;
}
.stepper li {
  counter-increment: st;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--stone);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--line);
}
.stepper li::before {
  content: counter(st);
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--line);
  color: var(--stone);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex: none;
}
.stepper li.is-active {
  color: var(--green-deep);
  border-color: var(--green);
}
.stepper li.is-active::before {
  background: var(--green);
  color: #fff;
}
.stepper li.is-done {
  color: var(--green);
  border-color: var(--green-light);
}
.stepper li.is-done::before {
  background: var(--green-light);
  color: #fff;
  content: "✓";
}
@media (max-width: 520px) {
  .stepper li span {
    display: none;
  }
}
.form__row {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 640px) {
  .form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field .hint {
  display: block;
  color: var(--stone);
  font-size: 0.9rem;
  margin-top: 0.3rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 90, 60, 0.15);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--tomato);
}
.field .error {
  color: var(--tomato);
  font-size: 0.9rem;
  margin-top: 0.3rem;
  display: block;
}
.choice-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
.choice {
  position: relative;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.choice span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  height: 100%;
  transition: border-color 0.15s, background 0.15s;
}
.choice span b {
  font-weight: 600;
}
.choice span small {
  color: var(--stone);
}
.choice input:checked + span {
  border-color: var(--green);
  background: var(--green-tint);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 1.5rem;
}
.notice--ok {
  background: var(--green-tint);
  border-color: var(--green-light);
  color: var(--green-deep);
}
.notice--err {
  background: #fcebe5;
  border-color: var(--tomato);
  color: #8a3418;
}

/* ---------- Prose (guides) ---------- */
.prose {
  font-size: 1.12rem;
  line-height: 1.7;
}
.prose > * + * {
  margin-top: 1.2em;
}
.prose h2 {
  margin-top: 2.2em;
  font-size: var(--step-2);
}
.prose h3 {
  margin-top: 1.8em;
  font-size: var(--step-1);
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose blockquote {
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.25em;
  border-left: 4px solid var(--gold);
  color: var(--stone);
  font-style: italic;
}
.prose img {
  border-radius: var(--radius);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.prose th,
.prose td {
  border-bottom: 1px solid var(--line);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--parchment);
}
.prose .callout {
  background: var(--green-tint);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.prose .callout--gold {
  background: var(--gold-tint);
}
.prose hr {
  margin: 2.5em 0;
}
.article-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.article-head h1 {
  font-size: var(--step-3);
}
.article-meta {
  color: var(--stone);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}
.toc {
  background: var(--parchment);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
}
.toc strong {
  display: block;
  margin-bottom: 0.5rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.2em;
}
.toc a {
  text-decoration: none;
}
.toc a:hover {
  text-decoration: underline;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--green-tint);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
}
.tag--gold {
  color: var(--soil);
  background: var(--gold-tint);
}
.post-card h3 {
  font-size: 1.3rem;
}
.post-card h3 a {
  text-decoration: none;
  color: var(--ink);
}
.post-card h3 a:hover {
  color: var(--green);
}
.post-card .tag {
  margin-bottom: 0.75rem;
}
.post-card p {
  color: var(--stone);
}

/* ---------- CTA band ---------- */
.cta {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 860px) {
  .cta {
    grid-template-columns: 1.3fr auto;
  }
}
.cta h2 {
  color: #fff;
  margin-bottom: 0.4rem;
}
.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.cta .btn-row {
  justify-content: flex-start;
}
.cta::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.18;
  pointer-events: none;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.section--green .stat b,
.section--ink .stat b {
  color: var(--gold-light);
}
.stat span {
  color: var(--stone);
}
.section--green .stat span,
.section--ink .stat span {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Breadcrumb ---------- */
.crumbs {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 1rem;
}
.crumbs a {
  text-decoration: none;
}
.crumbs span {
  margin: 0 0.4rem;
}

/* ---------- Browser frame (example previews) ---------- */
.frame {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--parchment);
  border-bottom: 1px solid var(--line);
}
.frame__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.frame__bar i:nth-child(1) {
  background: #e8a19a;
}
.frame__bar i:nth-child(2) {
  background: var(--gold-light);
}
.frame__bar i:nth-child(3) {
  background: #a8d5b5;
}
.frame__url {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: var(--stone);
  background: #fff;
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
  flex: 1;
}
.frame__body {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.frame__body svg,
.frame__body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.98rem;
}
.footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer__grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.footer__brand {
  grid-column: span 2;
  max-width: 340px;
}
.footer__brand .logo {
  color: #fff;
  margin-bottom: 1rem;
}
.footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 0.5rem;
}
.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bottom a {
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Utilities ---------- */
.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 1rem;
}
.mt-2 {
  margin-top: 2rem;
}
.mt-3 {
  margin-top: 3rem;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head h2 {
  margin-bottom: 0.5rem;
}
.section-head .lead {
  margin: 0;
}
@media (max-width: 480px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .header,
  .footer,
  .cta,
  .mobile-nav {
    display: none !important;
  }
}
