/* The Bushcraft School — marketing site
   Static, no build step, no framework. Mobile-first with two breakpoints.
   Palette matches apps/web/tailwind.config.ts so the marketing site and the
   teacher portal stay visually the same product. */

:root {
  --forest-50:#f0f7f0; --forest-100:#dceedc; --forest-200:#baddba;
  --forest-300:#91c491; --forest-500:#4a8f4a; --forest-600:#3a7038;
  --forest-700:#2f5a2f; --forest-800:#264726; --forest-900:#1f3b1f;

  --moss-50:#f5f7f3; --moss-100:#e8ece2; --moss-200:#d2dac5;
  --moss-300:#b4c19e; --moss-500:#778755; --moss-700:#4a5533;

  --earth-50:#faf7f2; --earth-100:#f2ebe0; --earth-200:#e3d5bf;
  --earth-500:#a67f52; --earth-600:#8b6841; --earth-700:#6f5235;

  --ink:#1f3b1f;
  --ink-muted:#41513f;

  --serif:'Literata', Georgia, 'Times New Roman', serif;
  --sans:'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap:1200px;
  --gap:clamp(2.5rem, 6vw, 6rem);
  --radius:14px;
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px — never below 16 */
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

h1, h2, h3, h4, blockquote, .display, .wordmark {
  font-family: var(--serif);
  color: var(--forest-800);
  line-height: 1.18;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--forest-700); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Focus — designed rather than left to the browser. Earth against both
   light and dark backgrounds, with an offset so it never hugs the glyphs. */
:focus-visible {
  outline: 3px solid var(--earth-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 0.75rem; top: -4rem; z-index: 100;
  background: var(--forest-800); color: #fff;
  padding: 0.7rem 1.1rem; border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none; font-weight: 600;
  transition: top 0.15s ease-in;
}
.skip-link:focus { top: 0; }

/* ---------- Shared pieces ---------- */

.eyebrow, .section-label {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--earth-700);
  margin: 0 0 0.9rem;
}

.lead { font-size: clamp(1.125rem, 1.8vw, 1.3rem); color: var(--ink); margin-top: 1.25rem; }
.supporting { color: var(--ink-muted); }
.intro { max-width: 62ch; color: var(--ink-muted); margin-top: 1rem; }
.statement { font-family: var(--serif); font-size: clamp(1.25rem,2.4vw,1.7rem); color: var(--forest-700); margin-bottom: var(--gap); }
.display { letter-spacing: -0.01em; }
.tm { font-size: 0.55em; vertical-align: super; font-weight: 400; }

.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-lg { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }
.btn-primary { background: var(--forest-700); color: #fff; }
.btn-primary:hover { background: var(--forest-800); }
.btn-secondary { background: transparent; color: var(--forest-700); border-color: var(--forest-300); }
.btn-secondary:hover { background: var(--forest-50); border-color: var(--forest-500); }
.btn-onDark { background: var(--forest-100); color: var(--forest-900); }
.btn-onDark:hover { background: #fff; }
.btn-quiet { background: transparent; color: var(--forest-800); border-color: var(--moss-300); }
.btn-quiet:hover { background: #fff; }
.btn:disabled, .btn[disabled] { background: var(--moss-200); color: var(--moss-700); cursor: not-allowed; }

/* Placeholder art. Replaced by real photography — see the shot list in
   docs/marketing-site-design-prompt.md. Deliberately obvious so nobody
   mistakes one for a finished image. */
.img-placeholder {
  display: grid; place-items: center; text-align: center;
  min-height: 260px; padding: 1.5rem;
  background:
    repeating-linear-gradient(135deg, var(--moss-100) 0 12px, var(--moss-50) 12px 24px);
  border: 1px dashed var(--moss-300);
  border-radius: var(--radius);
  color: var(--moss-700); font-size: 0.9rem; font-style: italic;
}
.img-tall { min-height: 420px; }
.img-short { min-height: 180px; margin-top: 1.25rem; }
figure { margin: 0; }

.band { padding-block: var(--gap); }
.band-moss { background: var(--moss-50); }
.band-tint { background: var(--forest-50); }

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--moss-100);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap; padding-block: 1rem;
}
.wordmark {
  font-size: 1.2rem; font-weight: 700; color: var(--forest-800);
  text-decoration: none; white-space: nowrap;
}
/* On narrow screens the nav wraps onto its own row rather than hiding behind
   a menu button — five short links fit, and it keeps the site JavaScript-free. */
.site-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  order: 3; width: 100%;
  padding-top: 0.85rem; border-top: 1px solid var(--moss-100);
}
.site-nav a { color: var(--forest-800); text-decoration: none; font-weight: 500; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-cta { margin-inline-start: auto; padding: 0.7rem 1.2rem; }

@media (min-width: 62rem) {
  .site-nav {
    order: 0; width: auto; margin-inline-start: auto;
    gap: 1.6rem; padding-top: 0; border-top: 0;
  }
  .header-cta { margin-inline-start: 0; }
}

/* ---------- Hero ---------- */

.hero { padding-block: var(--gap); background: linear-gradient(180deg, #fff 0%, var(--forest-50) 100%); }
.hero-inner { display: grid; gap: var(--gap); }
.hero-copy .btn { margin-top: 1.75rem; }
.hero h1 { margin-bottom: 0; }

@media (min-width: 62rem) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---------- Split rows ---------- */

.split { display: grid; gap: var(--gap); align-items: center; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: var(--gap) 0 0; padding: 0; display: grid; gap: 2.5rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem; position: relative; }
.step-num {
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
  color: var(--forest-700); background: #fff;
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--moss-200);
}
/* the route line between waypoints */
.step:not(:last-child)::before {
  content: ""; position: absolute; left: 1.625rem; top: 3.5rem; bottom: -2.5rem;
  border-left: 2px dashed var(--moss-200);
}
.step-body p { color: var(--ink-muted); margin-top: 0.5rem; max-width: 66ch; }

.note-card {
  margin-top: var(--gap); padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--earth-50); border: 1px solid var(--earth-200);
  border-radius: var(--radius);
}
.note-card p { color: var(--ink-muted); margin-top: 0.75rem; max-width: 70ch; }

/* ---------- Quote ---------- */

.quote-band { background: var(--forest-900); color: var(--forest-100); padding-block: var(--gap); }
.quote-band blockquote {
  margin: 0; font-family: var(--serif); color: var(--forest-100);
  font-size: clamp(1.4rem, 3vw, 2.15rem); line-height: 1.35;
  max-width: 24ch; text-wrap: balance;
}

/* ---------- Waypoints ---------- */

.waypoints { list-style: none; margin: var(--gap) 0 0; padding: 0; display: grid; gap: 2.5rem; }
@media (min-width: 46rem) { .waypoints { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .waypoints { grid-template-columns: repeat(4, 1fr); } }

.waypoint-label {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--earth-700); margin-bottom: 0.6rem;
}
.marker {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--earth-500); box-shadow: 0 0 0 4px var(--earth-100);
  flex: none;
}
.waypoint p:not(.waypoint-label) { color: var(--ink-muted); margin-top: 0.5rem; }

/* ---------- Cards & tiers ---------- */

.cards, .tiers { list-style: none; margin: var(--gap) 0 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .cards, .tiers { grid-template-columns: repeat(3, 1fr); } }

.card, .tier {
  background: #fff; border: 1px solid var(--moss-200);
  border-radius: var(--radius); padding: clamp(1.5rem, 2.5vw, 2rem);
}
.card-num {
  display: inline-block; font-family: var(--serif); font-weight: 700;
  color: var(--earth-600); margin-bottom: 0.75rem;
}
.card p, .tier p { color: var(--ink-muted); margin-top: 0.6rem; }
.tier-price { font-family: var(--serif); font-weight: 600; color: var(--forest-700); }

/* ---------- Enquiry form ---------- */

.enquiry-form {
  margin-top: var(--gap); padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff; border: 1px solid var(--moss-200); border-radius: var(--radius);
  display: grid; gap: 1.25rem;
}
@media (min-width: 46rem) { .enquiry-form { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 0.95rem; color: var(--forest-800); }
input, textarea {
  font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--moss-300); border-radius: 10px;
  background: #fff;
}
input:hover, textarea:hover { border-color: var(--moss-500); }
textarea { resize: vertical; }
.hint { font-size: 0.9rem; color: var(--ink-muted); margin: 0; }

/* ---------- Instructor band ---------- */

.instructor-band { background: var(--earth-50); border-block: 1px solid var(--earth-200); padding-block: 2rem; }
.instructor-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.instructor-inner p { color: var(--ink-muted); margin: 0; }
.instructor-inner strong { color: var(--forest-800); }

/* ---------- Footer ---------- */

.site-footer { background: var(--forest-900); color: var(--forest-100); padding-block: var(--gap) 2rem; }
.site-footer a { color: var(--forest-100); }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 62rem) { .footer-top { grid-template-columns: 1.2fr 1fr 0.8fr; } }
.footer-wordmark { color: var(--forest-100); font-size: 1.15rem; margin-bottom: 0.9rem; }
.footer-brand p { color: var(--forest-200); }
.strapline { margin-top: 1rem; color: var(--moss-300); }
.footer-display { color: #fff; font-size: clamp(1.3rem, 2.2vw, 1.75rem); margin-bottom: 1.25rem; }
.footer-nav { display: grid; gap: 0.6rem; align-content: start; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base {
  margin-top: var(--gap); padding-top: 1.5rem;
  border-top: 1px solid rgba(220, 238, 220, 0.22);
  display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: space-between;
  font-size: 0.9rem; color: var(--forest-200);
}
.tagline { color: var(--moss-300); }
