:root {
  --paper: #f7f6f1;
  --ink: #263028;
  --green: #315b3f;
  --line: #d9ddd5;
  --muted: #596159;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #172019;
    --ink: #e5e9e3;
    --green: #9bc7a5;
    --line: #3a463d;
    --muted: #aeb8b0;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { margin: 0; }
a { color: var(--green); text-underline-offset: .15em; }
img { max-width: 100%; height: auto; }

.banner { position: relative; overflow: hidden; background: #253d2c; color: white; }
.banner img { display: block; width: 100%; height: clamp(13rem, 28vw, 22rem); object-fit: cover; }
.layout-splash .banner img { height: clamp(22rem, 65vh, 40rem); }
.banner::after { position: absolute; inset: 0; content: ""; background: linear-gradient(transparent 25%, rgb(10 20 13 / 70%)); }
.banner__text { position: absolute; z-index: 1; right: 5vw; bottom: 2rem; left: 5vw; }
.banner__text a { color: inherit; font-size: clamp(2rem, 6vw, 4.5rem); font-weight: 700; line-height: 1; text-decoration: none; }
.banner__text p { max-width: 42rem; margin: .7rem 0 0; }

.footer { display: block; }
.footer img { display: block; width: 100%; }

@media (prefers-color-scheme: dark) {
  .footer { display: none; }
}

.site-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.5rem; padding: .85rem max(1.5rem, 5vw); border-bottom: 1px solid var(--line); }
.site-nav a { color: var(--ink); font-size: .88rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover { color: var(--green); }

.page { display: grid; grid-template-columns: minmax(10rem, 15rem) minmax(0, 46rem); gap: clamp(2rem, 6vw, 5rem); width: min(90%, 68rem); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) 0; }
.intro { color: var(--muted); font-size: .88rem; }
.intro img { display: block; width: min(100%, 11rem); margin: 0 auto 1.25rem; }
.intro p { margin: 0; }
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { margin-top: 2.4rem; }
li + li { margin-top: .5rem; }

@media (max-width: 42rem) {
  html { font-size: 16px; }
  .layout-splash .banner img { height: clamp(22rem, 70svh, 32rem); }
  .page { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro { display: grid; grid-template-columns: 7rem 1fr; align-items: center; gap: 1.25rem; }
  .intro img { margin: 0; }
}

figure {
  margin: 2rem 0;
}

figure > img {
  display: block;
  width: 100%;
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-family: system-ui, sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.4;
}
