@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600&display=swap");

:root {
  --bg: #f4f8f4;
  --surface: #ffffff;
  --text: #11231a;
  --muted: #496255;
  --border: #d4e2d9;
  --primary: #1a7f5a;
  --primary-dark: #14573f;
  --accent: #e9f7f0;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(12, 51, 35, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0 0, #d8efe4 0, var(--bg) 40%);
}

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

nav a {
  text-decoration: none;
  margin-left: 1rem;
  color: var(--muted);
}

main {
  padding-bottom: 4rem;
}

.hero {
  margin: 2rem 0;
}

.eyebrow {
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", Georgia, serif;
}

h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  margin-bottom: 0.8rem;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
  margin: 1rem 0;
}

legend {
  font-weight: 600;
}

label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.62rem;
  border: 1px solid #b8cbc0;
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 82px;
}

.btn {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn.secondary {
  background: #2f5f89;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check-row input {
  width: auto;
  margin: 0;
}

.headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
}

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

.hidden {
  display: none;
}

.term-grid {
  display: grid;
  gap: 0.8rem;
}

.hp {
  position: absolute;
  left: -9999px;
}

.error-list {
  color: #8f1f1f;
}

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

@media (min-width: 720px) {
  .term-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    padding: 1.5rem;
  }
}
