:root {
  --primary: #16324f;
  --primary-dark: #0f263e;
  --secondary: #2f5d50;
  --accent: #b45f2a;
  --background: #f7f5f0;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5e6670;
  --border: #d8d4ca;
  --input-border: #9ba1a8;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--background);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-size: 1rem;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(180, 95, 42, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 10;
  transform: translateY(-150%);
  background: var(--primary);
  color: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner,
.section,
.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  text-decoration: none;
}

.brand img {
  width: min(100%, 22rem);
  display: block;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  padding: 0.35rem 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 5px;
}

main {
  min-height: 60vh;
}

.section {
  padding: 4rem 0;
}

.section-tight {
  padding-top: 2.5rem;
}

.hero {
  display: grid;
  gap: 2rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.65rem, 11vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 7vw, 2.625rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.45rem, 5vw, 2rem);
  line-height: 1.18;
}

p {
  margin: 0;
}

.lede {
  max-width: 43rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 4vw, 1.35rem);
  line-height: 1.55;
}

.measure {
  max-width: 72ch;
}

.measure p + p {
  margin-top: 1.25rem;
}

.stack-link {
  margin-top: 1.25rem;
}

.intro-grid,
.split-grid {
  display: grid;
  gap: 2rem;
}

.panel {
  border-top: 3px solid var(--primary);
  background: var(--surface);
  padding: 1.5rem;
}

.panel p {
  color: var(--muted);
}

.panel p + p {
  margin-top: 1rem;
}

.panel h3 + p,
.program-copy h2 + p,
.program-copy h3 + p {
  margin-top: 0.9rem;
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

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

.card p {
  margin-top: 0.75rem;
  color: var(--muted);
}

.cta-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cta-inner {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  color: var(--surface);
  padding: 0.75rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.button:hover {
  background: var(--primary-dark);
  color: var(--surface);
}

.button.secondary {
  background: transparent;
  color: var(--primary);
}

.button.secondary:hover {
  background: #edeae2;
  color: var(--primary);
}

.program-copy {
  max-width: 76ch;
}

.program-copy p {
  margin-top: 1rem;
}

.program-copy + .program-copy {
  margin-top: 4rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

label {
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 0.875rem;
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
}

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

.form-actions {
  margin-top: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--primary);
  color: var(--surface);
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
  padding: 2rem 0;
}

.footer-brand {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.footer-inner a {
  color: var(--surface);
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .brand img {
    width: 24rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
    align-items: end;
  }

  .intro-grid,
  .split-grid,
  .card-grid,
  .cta-inner,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .field-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 80rem) {
  .section {
    padding: 6rem 0;
  }

  .section-tight {
    padding-top: 3.5rem;
  }
}
