:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #fffdf8;
  --text: #161616;
  --muted: #5e5a53;
  --line: #d8d1c3;
  --accent: #0d6b4d;
  --accent-soft: rgba(13, 107, 77, 0.08);
  --max: 760px;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  background:
    radial-gradient(circle at top left, rgba(13, 107, 77, 0.08), transparent 32%),
    linear-gradient(180deg, #faf8f2 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 32px 0 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.brand {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.panel {
  background: color-mix(in srgb, var(--surface) 92%, white 8%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(19, 24, 19, 0.05);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.94;
  font-weight: 600;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  line-height: 1.05;
}

p {
  margin: 0 0 18px;
  color: var(--muted);
}

.lede {
  max-width: 34rem;
  margin-top: 20px;
  font-size: 1.08rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  background: var(--surface);
}

.button.primary {
  background: var(--text);
  color: white;
  border-color: var(--text);
}

.button.soft {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 40px;
}

.card {
  padding: 22px;
}

.card p {
  margin-bottom: 20px;
}

.card-link {
  color: var(--text);
  text-decoration: none;
}

.meta {
  padding: 10px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.page {
  padding: 28px 0 72px;
}

.page .panel {
  padding: 32px 28px;
}

.page h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  margin-bottom: 18px;
}

.page h2 {
  margin-top: 26px;
}

.page ul {
  margin: 0 0 18px 20px;
  color: var(--muted);
}

.note {
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  color: var(--text);
}

@media (max-width: 760px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 20px;
  }
}
