:root {
  color-scheme: light;
  --ink: #171b17;
  --muted: #526157;
  --green: #1f6947;
  --paper: #bce8c7;
  --panel: rgba(255, 255, 255, .22);
  --line: rgba(23, 27, 23, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}

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

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

header,
main,
footer {
  width: min(980px, calc(100% - 2rem));
  margin-inline: auto;
}

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

.brand {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  text-decoration: none;
}

main {
  padding: clamp(2.2rem, 7vw, 5rem) 0;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.12;
}

h1 {
  max-width: 13ch;
  margin: 0 0 1rem;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: -.04em;
}

h2 {
  margin-top: 2rem;
  font-size: 1.55rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: .65rem 0 1rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

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

.card,
.notice {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.card h2,
.card h3 {
  margin: 0 0 .55rem;
}

.card p,
.notice p {
  margin: 0;
  color: var(--muted);
}

.notice {
  margin: 1rem 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  padding: 0;
  list-style: none;
}

.links a {
  font-weight: 700;
}

footer {
  padding: 1.5rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 760px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

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