:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --ink: #172033;
  --muted: #5e6675;
  --line: #d8d0c2;
  --panel: #fffaf1;
  --blue: #1d4f91;
  --blue-dark: #143763;
  --accent: #c46d2d;
  --radius: 18px;
  --max: 980px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(29, 79, 145, .14), transparent 34rem),
    linear-gradient(180deg, #fffaf1 0%, var(--bg) 52%, #ece5d8 100%);
  color: var(--ink);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, .88);
  backdrop-filter: blur(12px);
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 1rem 1.25rem;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: .02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--blue);
  text-decoration: none;
}

main {
  margin: 0 auto;
  max-width: var(--max);
  padding: 4.5rem 1.25rem 2rem;
}

.hero {
  max-width: 760px;
}

.eyebrow {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .13em;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  letter-spacing: -.07em;
  line-height: .92;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  letter-spacing: -.035em;
  line-height: 1.1;
  margin-bottom: .75rem;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: .45rem;
}

p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.lede {
  color: #30394d;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.section {
  margin-top: 4rem;
}

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

.card {
  background: rgba(255, 250, 241, .74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card p:last-child,
.split p:last-child {
  margin-bottom: 0;
}

.split {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 1fr;
}

.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li {
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
  padding: .85rem 0;
}

.cta {
  align-items: center;
  background: var(--blue);
  border-radius: calc(var(--radius) + 8px);
  color: #fff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 4rem;
  padding: 1.4rem;
}

.cta p {
  color: rgba(255, 255, 255, .76);
  margin: 0;
}

.button,
button[type="submit"] {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 800;
  padding: .82rem 1.1rem;
}

.button:hover,
button[type="submit"]:hover {
  background: var(--blue-dark);
  text-decoration: none;
}

form {
  max-width: 680px;
}

label {
  color: var(--ink);
  display: block;
  font-size: .9rem;
  font-weight: 800;
  margin: 1.1rem 0 .35rem;
}

input,
textarea {
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  padding: .85rem .95rem;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(29, 79, 145, .14);
  outline: none;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.help-text {
  color: var(--muted);
  font-size: .95rem;
  margin-top: .45rem;
}

.alert {
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding: .9rem 1rem;
}

.alert-success {
  background: #e3f2e7;
  border: 1px solid #9fcfaf;
  color: #245c36;
}

.alert-error {
  background: #f8e4dd;
  border: 1px solid #e1a38f;
  color: #7c2c18;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 4rem;
  padding: 2rem 1.25rem;
  text-align: center;
}

.site-footer p {
  font-size: .92rem;
  margin: 0;
}

@media (max-width: 720px) {
  .site-nav,
  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  main {
    padding-top: 3rem;
  }

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