:root {
  --bg: #faf7f2;
  --ink: #2c2c2c;
  --muted: #5e5954;
  --line: #e6e0d6;
  --card: #ffffff;
  --green: #3f5c48;
  --green-soft: #e7efe8;
  --gold: #6f5424;
  --gold-soft: #f6eedc;
  --crisis: #6e2e32;
  --crisis-bg: #f8eeee;
  --max: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--green); }

a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 2;
}

.skip:focus { top: 0.75rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(250, 247, 242, 0.94);
}

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

nav { display: flex; gap: 1rem; font-size: 0.95rem; }

nav a { color: var(--muted); text-decoration: none; }

nav a[aria-current="page"] { color: var(--green); font-weight: 700; }

main { padding: 1.5rem 0 3rem; }

h1, h2, h3 {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.25;
  font-weight: 650;
}

h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin: 0.4rem 0 0.8rem; }

h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }

h3 { font-size: 1.05rem; margin: 1.4rem 0 0.35rem; }

p, li { color: var(--ink); }

.lede { font-size: 1.15rem; color: var(--muted); }

.banner, .crisis, .card, .confirm-block {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}

.banner {
  background: var(--gold-soft);
  border: 1px solid #e4d3a8;
}

.crisis {
  background: var(--crisis-bg);
  border: 1px solid #e4c8c8;
}

.crisis strong, .crisis h2 { color: var(--crisis); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
}

.confirm {
  background: var(--gold-soft);
  color: var(--gold);
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.92em;
  font-weight: 650;
  padding: 0.05em 0.28em;
  border-radius: 0.25em;
}

ul, ol { padding-left: 1.2rem; }

li + li { margin-top: 0.35rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }

.button {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 650;
}

.button.secondary {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--green);
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 1.25rem 0 2rem;
}

dl { margin: 0; }

dt {
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  margin-top: 0.9rem;
}

dd { margin: 0.2rem 0 0; }

@media (max-width: 640px) {
  .bar { align-items: flex-start; flex-direction: column; }
}
