/* cloudflare/tendacre-site/public/site.css */
:root {
  --ink: #1e3214;      /* deep leaf: text, headings */
  --leaf: #3f6b22;     /* field green: buttons, links */
  --sprout: #7fa04a;   /* light row */
  --gold: #d9a23a;     /* harvest gold: one accent */
  --mist: #edf1e3;     /* page */
  --paper: #fbfcf7;    /* form surface */
  --line: #c9d3b6;
  --muted: #4c5a40;
  --error: #9b2c1f;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  accent-color: var(--leaf);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.1875rem/1.6 var(--serif);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2 { font-family: var(--serif); line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; top: .5rem; }

/* Bar */
.bar { background: var(--ink); color: #fff; }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 3.5rem; }
.name { color: #fff; text-decoration: none; font: 800 1.45rem/1 var(--serif); letter-spacing: .01em; }
.name:hover { color: #fff; }
.bar-link { color: #f3e3bd; font: 500 1.05rem/1 var(--sans); text-decoration: none; padding: .5rem .2rem; }
.bar-link:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(4.5rem, 9vw, 7rem); }
.hero-in { display: grid; gap: 2rem; align-items: center; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 34em; }
.hero-badge img { width: min(440px, 100%); margin-inline: auto; filter: drop-shadow(0 14px 22px rgba(30, 50, 20, .18)); }
@media (min-width: 860px) {
  .hero-in { grid-template-columns: 1.15fr 1fr; gap: 3rem; }
}
@media (max-width: 859px) {
  .hero-badge { order: -1; }
  .hero-badge img { width: min(360px, 86vw); }
}
.rows { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 8vw, 120px); }
.rows .r1 { fill: var(--sprout); }
.rows .r2 { fill: var(--gold); }
.rows .r3 { fill: var(--ink); }

/* Buttons */
.btn {
  display: inline-block; cursor: pointer; border: 0; border-radius: 999px;
  background: var(--leaf); color: #fff; text-decoration: none;
  font: 700 1.1rem/1.2 var(--sans); padding: .9rem 1.6rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 3px 0 #2a4a16;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { background: #355d1c; color: #fff; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 0 #2a4a16; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Jobs */
.jobs { background: var(--ink); color: #eef2e4; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.jobs h2 { color: #fff; }
.jobs .sub { color: #c7d3b2; max-width: 36em; }
.job-list { margin: 2rem 0 0; display: grid; gap: 1.6rem 2.5rem; }
@media (min-width: 720px) { .job-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .job-list { grid-template-columns: repeat(3, 1fr); } }
.job-list div { border-top: 2px solid var(--gold); padding-top: .8rem; }
.job-list dt { font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: .25rem; }
.job-list dd { margin: 0; color: #d3dcc2; font-size: 1.05rem; line-height: 1.55; }

/* Fit */
.fit { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.two { display: grid; gap: 2rem 3.5rem; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.fit p { max-width: 34em; }

/* Apply */
.apply { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 7vw, 5rem); scroll-margin-top: 1rem; }
.apply-in { align-items: start; }
.apply-text p { max-width: 32em; }
.form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem); font-family: var(--sans);
  box-shadow: 0 1px 0 #fff inset, 0 10px 30px rgba(30, 50, 20, .08);
}
.field { margin-bottom: 1.05rem; }
.field label { display: block; font-weight: 700; font-size: 1.02rem; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--sans); color: var(--ink);
  background: #fff; border: 1.5px solid #b7c49f; border-radius: 9px; padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(217, 162, 58, .45); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: .4rem 0 .8rem; min-height: 65px; }
.form-msg { min-height: 1.4em; margin: 0 0 .8rem; font-weight: 500; }
.form-msg.is-error { color: var(--error); }
.form .btn { width: 100%; }
.fine { font-size: .95rem; color: var(--muted); margin: .9rem 0 0; }
.sent { text-align: left; }
.sent h3 { font: 700 1.5rem/1.2 var(--serif); margin: 0 0 .5rem; }

/* Footer */
.foot { background: var(--ink); color: #d3dcc2; padding: 2rem 0 2.5rem; font-family: var(--sans); font-size: 1rem; }
.foot a { color: #f3e3bd; }
.foot a:hover { color: #fff; }
.foot p { margin: 0 0 .35rem; }
.foot-name { font: 800 1.3rem/1.2 var(--serif); color: #fff; margin-bottom: .5rem !important; }

/* Simple pages */
.page { padding: clamp(3rem, 8vw, 6rem) 0; min-height: 60vh; }
.page p { max-width: 34em; }
