/* =========================================================================
   bluestem.io — "working ranch, modern tool"
   Calm, substantial, like a well-made field guide. Not a startup page.
   Palette drawn from bluestem prairie grass: straw/amber, prairie green,
   blue-stem slate, warm paper. One allowed gradient: hero text protection.
   ========================================================================= */

/* ---------- Display webfont: Fraunces (self-hosted subset, ~30KB) -------- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;        /* variable wght axis, opsz pinned for display */
  font-display: swap;
  src: url("assets/fonts/fraunces-display.woff2") format("woff2");
}

/* ---------- Design tokens ------------------------------------------------ */
:root {
  /* Warm paper */
  --paper:        #faf7f0;
  --paper-2:      #f3eee2;   /* sectioned panels */
  --paper-edge:   #e8e0cf;   /* hairline borders */

  /* Prairie green */
  --green:        #3d5a3a;
  --green-deep:   #2c4429;
  --green-soft:   #4f6e4a;

  /* Straw / amber */
  --straw:        #c9942e;
  --straw-deep:   #a9781f;
  --straw-pale:   #efe2c4;

  /* Blue-stem slate */
  --slate:        #5a6b7a;
  --slate-deep:   #44535f;

  /* Ink */
  --ink:          #2a2823;   /* body text on paper */
  --ink-soft:     #5c574c;   /* secondary text */
  --ink-faint:    #837c6d;

  /* Type */
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino,
             Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  /* Rhythm */
  --measure: 64ch;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(42, 40, 35, .06), 0 8px 24px -12px rgba(42, 40, 35, .22);
  --shadow-lift: 0 2px 4px rgba(42, 40, 35, .08), 0 18px 40px -16px rgba(42, 40, 35, .30);
}

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  /* faint warm paper texture via layered radial tints — no image, no gradient band */
  background-image:
    radial-gradient(circle at 18% 12%, rgba(201, 148, 46, .045), transparent 45%),
    radial-gradient(circle at 86% 78%, rgba(61, 90, 58, .045), transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (min-width: 700px) { body { font-size: 19px; } }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--straw-deep); }

:focus-visible {
  outline: 3px solid var(--straw);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Type scale --------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--green-deep);
  margin: 0 0 .5em;
  font-feature-settings: "onum" 1, "liga" 1;
}

h2 {
  font-size: clamp(1.7rem, 5.2vw, 2.6rem);
  margin-bottom: .35em;
}

h3 {
  font-size: clamp(1.15rem, 3vw, 1.35rem);
  font-weight: 600;
  color: var(--green);
}

p { margin: 0 0 1.1em; }

.brand {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.34em;
  font-size: .82rem;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
  color: var(--straw);
}

/* ---------- Section shell ------------------------------------------------ */
section {
  padding: var(--section-y) var(--pad-x);
}
section > * { max-width: var(--measure); margin-inline: auto; }

/* alternating panels for field-guide rhythm */
.proof   { background: var(--paper); }
.how     { background: var(--paper-2); border-block: 1px solid var(--paper-edge); }
.honest  { background: var(--paper); }
.program { background: var(--green-deep); color: var(--paper); }
.meet    { background: var(--paper-2); border-block: 1px solid var(--paper-edge); }
.calc    { background: var(--paper-2); border-block: 1px solid var(--paper-edge); }
.signup  { background: var(--paper); }

/* ---- hay-cost / breakeven calculator ---- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 640px) {
  .calc-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.calc-inputs label {
  display: block;
  font-weight: 650;
  font-size: .98rem;
  color: var(--ink);
  margin: 1rem 0 .35rem;
}
.calc-inputs label:first-of-type { margin-top: 0; }
.calc-inputs input {
  width: 100%;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 1.04rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.calc-inputs input:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 90, 58, .18);
  outline: 3px solid transparent;
}
.calc-assume {
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: .8rem;
  line-height: 1.45;
}
.calc-results {
  background: var(--paper);
  border: 1.5px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.calc-line { font-size: 1.05rem; color: var(--ink-soft); margin: 0 0 .6rem; }
.calc-line strong { color: var(--ink); }
.calc-big { font-size: 1.12rem; color: var(--ink); margin: .2rem 0 1.1rem; line-height: 1.4; }
.calc-big strong {
  font-family: var(--serif);
  font-size: 1.95rem;
  color: var(--green-deep);
}
.calc-sub { display: block; font-size: .95rem; color: var(--ink-soft); margin-top: .3rem; }
.calc-vs { padding-top: 1rem; border-top: 1px solid var(--paper-edge); }
.calc-breakeven {
  font-size: 1.06rem;
  color: var(--green-deep);
  background: var(--straw-pale);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 1rem 0 0;
  line-height: 1.5;
}
.calc-foot {
  font-size: .85rem;
  color: var(--ink-faint);
  font-style: italic;
  max-width: 60ch;
  margin-top: 1.6rem;
}

.section-lede {
  font-size: 1.08em;
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.program .section-lede { color: rgba(250, 247, 240, .82); }

/* Small decorative grass tick before each h2 (CSS only, no emoji) */
section > h2 {
  position: relative;
  padding-top: 1.1rem;
}
section > h2::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 2.6rem; height: 4px;
  background: var(--straw);
  border-radius: 2px;
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: flex-end;
  padding: var(--pad-x);
  padding-top: clamp(3rem, 10vh, 6rem);
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  color: var(--paper);
  background-color: var(--green-deep);
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 38%;
}

/* The one allowed gradient: text-protection overlay over the hero photo. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(28, 36, 26, .18) 0%,
    rgba(28, 36, 26, .34) 42%,
    rgba(24, 31, 22, .72) 78%,
    rgba(20, 27, 19, .86) 100%
  );
}

.hero-inner {
  max-width: 40ch;
  margin: 0;
  text-shadow: 0 1px 14px rgba(16, 22, 14, .55);
}
.hero .brand { color: var(--straw-pale); }

.hero h1 {
  font-size: clamp(2.05rem, 7.4vw, 3.7rem);
  line-height: 1.04;
  color: #fff;
  margin-bottom: .55em;
  font-weight: 540;
  letter-spacing: -0.015em;
}

.hero-sub {
  font-size: clamp(1.04rem, 2.6vw, 1.22rem);
  line-height: 1.55;
  color: rgba(250, 247, 240, .94);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

/* =========================================================================
   BUTTONS  (min 44px touch targets)
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .85rem 1.6rem;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.btn-primary {
  background: var(--straw);
  color: #2a1f08;
  border-color: var(--straw-deep);
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--straw-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  background: rgba(250, 247, 240, .08);
  color: #fff;
  border-color: rgba(250, 247, 240, .7);
  backdrop-filter: none;
}
.btn-ghost:hover {
  background: rgba(250, 247, 240, .16);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================================
   SATELLITE PROOF — frame the pair like evidence
   ========================================================================= */
.proof-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin-top: 1.4rem;
}
@media (min-width: 720px) {
  .proof-pair { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.proof-pair figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: .7rem;
  box-shadow: var(--shadow);
}
.proof-pair img {
  width: 100%;
  height: auto;
  border-radius: 3px;
  /* evidence framing: tight inner rule */
  outline: 1px solid rgba(42, 40, 35, .10);
  outline-offset: -1px;
}
.proof-pair figcaption {
  font-size: .96rem;
  line-height: 1.45;
  color: var(--ink-soft);
  padding: .8rem .35rem .25rem;
}

/* =========================================================================
   HOW IT WORKS
   ========================================================================= */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0 0 2.4rem;
  padding: 0;
  display: grid;
  gap: 1.4rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.6rem;
  min-height: 2.6rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--paper);
  background: var(--green);
  border-radius: 50%;
}
.steps strong { color: var(--green-deep); }

.dash-shot {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: .7rem;
  box-shadow: var(--shadow-lift);
}
.dash-shot img {
  width: 100%; height: auto;
  border-radius: 3px;
  outline: 1px solid rgba(42, 40, 35, .10);
  outline-offset: -1px;
}
.dash-shot figcaption {
  font-size: .96rem;
  color: var(--ink-soft);
  padding: .8rem .35rem .25rem;
}

/* =========================================================================
   HONESTY
   ========================================================================= */
.honest p { max-width: 60ch; }
.honest .personal-claim {
  margin-top: 1.6rem;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--straw);
  background: var(--straw-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  font-size: 1.02em;
}

/* =========================================================================
   FOUNDING RANCHER PROGRAM (dark green panel)
   ========================================================================= */
.program h2, .program h3 { color: #fff; }
.deal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  margin: 2rem 0;
}
@media (min-width: 720px) {
  .deal { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.deal-col {
  background: rgba(250, 247, 240, .055);
  border: 1px solid rgba(250, 247, 240, .14);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.deal-col h3 { margin-bottom: .8rem; }
.deal-col ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: .9rem;
}
.deal-col li {
  position: relative;
  padding-left: 1.5rem;
  color: rgba(250, 247, 240, .92);
  line-height: 1.5;
}
.deal-col li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .55rem; height: .55rem;
  background: var(--straw);
  border-radius: 1px;
  transform: rotate(45deg);
}
.counties {
  margin-top: 1.4rem;
  color: rgba(250, 247, 240, .9);
  max-width: 62ch;
}
.counties strong { color: var(--straw-pale); }

/* =========================================================================
   MEET US
   ========================================================================= */
.people {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.4rem;
}
@media (min-width: 640px) {
  .people { grid-template-columns: 1fr 1fr; }
}
.person { margin: 0; }
.person img {
  width: 132px; height: 132px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--paper);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.person figcaption {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
}
.person figcaption strong { color: var(--green-deep); }

/* =========================================================================
   SIGN UP
   ========================================================================= */
.signup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.6rem;
  align-items: start;
}
@media (min-width: 800px) {
  .signup-grid { grid-template-columns: 1.4fr 1fr; gap: 2.6rem; }
}

.signup-form {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: 1.6rem clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}

.signup-form label {
  font-weight: 650;
  font-size: .98rem;
  color: var(--ink);
  margin: 1rem 0 .35rem;
}
.signup-form label:first-of-type { margin-top: 0; }

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  min-height: 48px;
  font-family: var(--sans);
  font-size: 1.04rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--paper-edge);
  border-radius: var(--radius);
  padding: .7rem .85rem;
  transition: border-color .14s ease, box-shadow .14s ease;
  -webkit-appearance: none;
  appearance: none;
}
.signup-form textarea { min-height: 92px; resize: vertical; line-height: 1.5; }

.signup-form select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(1.25rem),
    calc(100% - 14px) calc(1.25rem);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.signup-form input:focus-visible,
.signup-form select:focus-visible,
.signup-form textarea:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(61, 90, 58, .18);
  outline: 3px solid transparent; /* visible in forced-colors mode */
}

.signup-form .btn {
  margin-top: 1.6rem;
  width: 100%;
}

.privacy {
  margin: 1rem 0 0;
  font-size: .9rem;
  color: var(--ink-soft); /* ink-faint #837c6d was 3.57:1 on paper-2; ink-soft #5c574c is 6.21:1 — WCAG AA */
  text-align: center;
}

/* Visually hide the honeypot — kept in layout flow for bots, gone for humans */
.botcheck {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* "Rather just talk?" aside */
.talk-instead {
  background: var(--green-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.6rem clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.talk-instead h3 { color: #fff; margin-bottom: 1rem; }
.talk-instead p { color: rgba(250, 247, 240, .9); }
.talk-instead a { color: var(--straw-pale); }
.talk-instead a:hover { color: #fff; }
.phone-big {
  font-family: var(--display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 560;
  margin: 0 0 .4rem;
}
.phone-big a { text-decoration: none; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background: var(--green-deep);
  color: rgba(250, 247, 240, .78);
  text-align: center;
  padding: 2.6rem var(--pad-x);
  font-size: .95rem;
  border-top: 4px solid var(--straw);
}
.footer p { margin: .25rem 0; }
.footer strong { color: #fff; letter-spacing: .12em; }

/* =========================================================================
   THANKS PAGE
   ========================================================================= */
.thanks-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--pad-x);
  text-align: center;
  background: var(--green-deep);
  color: var(--paper);
  background-image:
    radial-gradient(circle at 20% 18%, rgba(201, 148, 46, .10), transparent 50%),
    radial-gradient(circle at 80% 82%, rgba(79, 110, 74, .35), transparent 55%);
}
.thanks {
  width: 100%;
  max-width: min(34rem, 100%);
}
.thanks h1,
.thanks p { overflow-wrap: break-word; }
.thanks .brand { color: var(--straw-pale); }
.thanks h1 {
  color: #fff;
  font-size: clamp(1.55rem, 6vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: .8rem;
  text-wrap: balance;
}
.thanks p { color: rgba(250, 247, 240, .9); font-size: 1.1rem; }
.thanks a { color: var(--straw-pale); }
.thanks a:hover { color: #fff; }

/* =========================================================================
   MOTION — respect reduced-motion
   ========================================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    opacity: 0;
    animation: rise .7s cubic-bezier(.2, .7, .3, 1) forwards;
  }
  .hero .brand   { animation-delay: .05s; }
  .hero h1       { animation-delay: .14s; }
  .hero-sub      { animation-delay: .26s; }
  .hero-ctas     { animation-delay: .38s; }

  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
