/* edsouthwood.com — hand-written, no build step */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f5;
  --text: #1b1f1d;
  --muted: #5f6864;
  --line: #e4e7e3;
  --accent: #3b6d4a;        /* hedgerow green — links, primary button, one highlight */
  --accent-ink: #ffffff;
  --warn-bg: #fbf4e6;
  --warn-line: #d9a44a;
  --max: 1040px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121514; --bg-soft: #191d1b; --text: #ece9e2; --muted: #a3aca7;
    --line: #2a302d; --accent: #7cc494; --accent-ink: #0f1a13;
    --warn-bg: #2d2517; --warn-line: #b88a3c;
  }
}
:root[data-theme="dark"] {
  --bg: #121514; --bg-soft: #191d1b; --text: #ece9e2; --muted: #a3aca7;
  --line: #2a302d; --accent: #7cc494; --accent-ink: #0f1a13;
  --warn-bg: #2d2517; --warn-line: #b88a3c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }
p, li { max-width: 65ch; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: 72px; border-top: 1px solid var(--line); }
section.soft { background: var(--bg-soft); }
.lede { font-size: 1.2rem; color: var(--muted); }
.kicker {
  text-transform: uppercase; letter-spacing: .14em; font-size: .76rem;
  color: var(--accent); font-weight: 600; margin-bottom: .8em;
}
.section-head { max-width: 40em; margin-bottom: 40px; }

/* header / nav */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); }
.brand span { color: var(--muted); font-weight: 400; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; color: var(--text); font: inherit; }
@media (max-width: 720px) {
  .nav-toggle { display: inline-block; }
  nav { display: none; width: 100%; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 10px; padding-block: 10px; }
  header.site .wrap { flex-wrap: wrap; }
}

/* buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px; text-decoration: none;
  font-weight: 600; border: 1px solid var(--accent); color: var(--accent); background: transparent;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row .link { font-weight: 600; }

/* hero — headline on white, photo band beneath */
.hero { border-top: 0; padding-block: 64px 0; }
.hero h1 { max-width: 16em; }
.hero .lede { max-width: 36em; }
.hero .band { margin-top: 48px; height: min(52vh, 520px); overflow: hidden; }
.hero .band img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
@media (max-width: 720px) { .hero { padding-top: 40px; } .hero .band { margin-top: 32px; height: 46vw; min-height: 200px; } }

/* facts strip under the hero */
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: .95rem; }
.facts li::before { content: "— "; color: var(--accent); }
section.facts-strip { padding-block: 22px; border-top: 0; }

/* lists (replaces cards) */
.list { display: grid; gap: 36px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.list > * { border-top: 1px solid var(--line); padding-top: 18px; text-decoration: none; color: inherit; }
.list .who { color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.list h3 { margin-bottom: .35em; }
.list p { margin-bottom: .6em; }
.list .cost { font-size: .9rem; color: var(--muted); margin: 0; }
.list a.more { font-weight: 600; text-decoration: none; font-size: .95rem; }
a.list-item:hover h3 { color: var(--accent); }
.list-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }

/* stats row */
.stats { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 32px 0 0; }
.stat b { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }

/* pricing */
.prices { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.price { border-top: 1px solid var(--line); padding: 20px 0 0; display: flex; flex-direction: column; }
.price.featured { border: 1px solid var(--accent); border-radius: 10px; padding: 20px; }
.price .amount { font-size: 1.5rem; font-weight: 700; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.price .amount small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.price ul { padding-left: 18px; margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.price a { margin-top: auto; font-weight: 600; text-decoration: none; }

/* how I work */
.steps { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; margin: 0; }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps h3 { font-size: 1.05rem; }

/* about */
.about { display: grid; gap: 48px; grid-template-columns: 300px 1fr; align-items: start; }
.about img { border-radius: 8px; width: 100%; }
.about figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 720px) { .about { grid-template-columns: 1fr; } .about figure { max-width: 280px; margin: 0; } }

/* callouts */
.callout { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 40px 0 0; }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px; padding: 20px 22px; margin: 0; }
.callout p:last-child { margin-bottom: 0; }

/* case-study article */
article.case { max-width: 46em; }
article.case h2 { font-size: 1.35rem; margin-top: 2em; }
article.case figure { margin: 28px 0; }
article.case figcaption { font-size: .88rem; color: var(--muted); margin-top: 8px; }
article.case .meta { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .9rem; border-block: 1px solid var(--line); padding: 12px 0; margin: 20px 0 28px; }
article.case .meta b { color: var(--text); font-weight: 600; }
pre { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 14px; overflow-x: auto; font-size: .85rem; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 14px; }
footer.site a { color: inherit; }

/* utilities */
.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 720px) { .two-col { grid-template-columns: 1fr; } }
figure { margin: 0; }
