/* Colours sampled from the logo: lettering green, foliage, bark and paper.
   Text pairs meet WCAG AAA (7:1) except link hover (AA, 5:1); moss is decoration only. */
:root {
  --paper: #efe3ce;
  --paper-2: #e8dac1;
  --card: #f7efe1;
  --field: #fffaf2;
  --ink: #262f1f;
  --ink-soft: #3f4637;
  --oak: #2d3722;        /* logo lettering */
  --oak-hover: #3b4a2c;
  --moss: #5c6233;       /* logo foliage: rules and borders only */
  --link-hover: #4f5f2a;
  --bark: #4f4932;
  --line: #d6c6a8;
  --field-border: #8c7c5e; /* 3:1 against the field, per WCAG non-text contrast */
  --focus: #8a6d1f;
  --error: #8f2a1d;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* 19px body: health.gov guidance for sites with many older readers. */
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.65 "Lora", Georgia, serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Cormorant has a small x-height, so it is only used large, set tight. */
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--oak);
  font-weight: 600;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 3.7rem); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(2.05rem, 4.2vw, 2.8rem); line-height: 1.1; letter-spacing: -.005em; }
h3 { font-size: 1.65rem; line-height: 1.2; font-weight: 700; }

/* 60-70 characters per line. */
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
a { color: var(--oak); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Header: sticky, translucent paper, logo mark + wordmark styled like the logo's lockup. */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(239, 227, 206, .94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--oak); text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand-name { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-top { font: 700 1.4rem/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .05em; text-transform: uppercase; }
.brand-sub {
  display: flex; align-items: center; gap: 7px; margin-top: 5px;
  font: 600 .6rem/1 "Lora", Georgia, serif; letter-spacing: .3em; text-transform: uppercase;
}
.brand-sub::before, .brand-sub::after { content: ""; width: 16px; height: 1px; background: currentColor; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .95rem; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; }
.site-nav a:not(.button):hover { color: var(--link-hover); text-decoration: underline; }
section[id] { scroll-margin-top: 84px; }

/* Hero */
.hero { text-align: center; padding: 32px 0 72px; }
.hero img { width: min(620px, 100%); height: auto; display: block; margin: 0 auto 16px; }
.hero h1 { max-width: 22ch; margin: 0 auto .45em; }
.hero .lede { max-width: 38em; margin: 0 auto 32px; color: var(--ink-soft); font-size: 1.16rem; line-height: 1.6; }
.hero .fine { margin: 14px auto 0; }

/* 52px tall: above the 48px touch-target minimum. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  background: var(--oak);
  color: var(--card);
  border: 0;
  border-radius: 4px;
  font: 600 1rem/1.2 "Lora", Georgia, serif;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
}
.button-small { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.button:hover { background: var(--oak-hover); color: #fff; }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.fine { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }

/* Sections: spacing on an 8px scale. */
section { padding: 80px 0; }
section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 680px; margin-bottom: 40px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-3 > div { border-top: 3px solid var(--moss); padding-top: 20px; }
.grid-3 p { margin-bottom: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 20px; }
.steps li::before {
  content: counter(step);
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--oak); color: var(--card);
  font: 700 1.45rem "Cormorant Garamond", Georgia, serif;
}
.steps h3 { margin-bottom: .2em; padding-top: 6px; }
.steps p { margin-bottom: 0; }

/* Form: labels above fields, 16px+ text so phones don't zoom, 52px targets. */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 40px; margin-top: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 1rem; line-height: 1.35; margin-bottom: 8px; }
label .opt { font-weight: 400; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%;
  min-height: 52px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-border);
  border-radius: 4px;
  padding: 12px 14px;
}
input::placeholder, textarea::placeholder { color: #6b6553; }
textarea { min-height: 128px; resize: vertical; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-weight: 400; font-size: .9rem; line-height: 1.55; color: var(--ink-soft); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--oak); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 600; margin-bottom: 16px; }

/* About */
.about { display: grid; grid-template-columns: 3fr 2fr; gap: 56px; align-items: start; }

/* Legal pages */
.legal { padding-bottom: 64px; }
.legal h1 { margin-top: 48px; font-size: clamp(2.2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.75rem; margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; max-width: 66ch; }
.legal li { margin-bottom: .5em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .9rem; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer nav a { margin-right: 20px; }

@media (max-width: 760px) {
  body { font-size: 18px; line-height: 1.6; }
  .wrap { padding: 0 16px; }
  section { padding: 56px 0; }
  .hero { padding: 16px 0 56px; }
  .grid-3, .about, .fields { grid-template-columns: 1fr; }
  .grid-3, .about { gap: 32px; }
  .form-card { padding: 24px 18px; }
  .button:not(.button-small) { width: 100%; }
  .site-header .wrap { min-height: 64px; }
  .brand img { height: 32px; }
  .brand-top { font-size: 1.2rem; }
  .site-nav { gap: 0; }
  .site-nav a:not(.button) { display: none; }
  .button-small { min-height: 44px; padding: 0 14px; font-size: .85rem; }
}
