:root {
  color-scheme: light;
  --bg: #f5f5f2;
  --surface: #ffffff;
  --text: #20211f;
  --muted: #666862;
  --line: #d9d9d2;
  --accent: #315c48;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.container {
  width: min(100% - 2rem, 960px);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

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

nav a:hover,
.site-footer a:hover,
.card a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.container {
  padding: 4rem 0;
}

.eyebrow {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: .5rem 0 1rem;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  line-height: 1.05;
}

h2 {
  line-height: 1.2;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.card h2 {
  margin-top: 0;
}

.card a {
  color: var(--accent);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

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

  .cards {
    grid-template-columns: 1fr;
  }
}
