:root {
  --ink: #0f2a5c;
  --muted: #3a5278;
  --paper: #f4f7fb;
  --card: #ffffff;
  --line: #d3deec;
  --navy: #0f2a5c;
  --navy-deep: #0a2048;
  --accent: #1f5fd6;
  --accent-bright: #4f8cff;
  --on-navy: #ffffff;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --read: 44rem;
  --header: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

p,
li {
  overflow-wrap: break-word;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 247, 251, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header);
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  flex: 0 0 auto;
}

.logo img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.menu-btn {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menu-btn .close-label {
  display: none;
}

.nav-toggle:checked + .menu-btn .open-label {
  display: none;
}

.nav-toggle:checked + .menu-btn .close-label {
  display: inline;
}

.nav-toggle:focus-visible + .menu-btn {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover,
.nav a[aria-current="page"],
.guides-menu summary:hover {
  color: var(--accent);
}

.guides-menu {
  position: relative;
}

.guides-menu summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 500;
  list-style: none;
}

.guides-menu summary::-webkit-details-marker,
.guides-menu summary::marker {
  display: none;
  content: "";
}

.guides-panel {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  z-index: 20;
  min-width: 18.5rem;
  padding: 0.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(15, 42, 92, 0.1);
}

.guides-panel a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

.guides-panel a:hover {
  background: rgba(15, 42, 92, 0.06);
}

.nav a.button {
  min-height: 3.05rem;
  padding: 0.72rem 1.4rem;
  font-size: 1.0625rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover,
.button:focus-visible {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
}

.nav a.button,
.nav a.button:hover,
.nav a.button:focus,
.nav a.button:focus-visible {
  color: #fff;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.prose {
  width: min(var(--read), calc(100% - 2.5rem));
  margin-inline: auto;
  padding: 2.5rem 0 4.5rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  align-items: baseline;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.crumbs a {
  color: var(--accent);
  font-weight: 600;
}

.crumbs [aria-current="page"] {
  color: var(--muted);
  font-weight: 500;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1.4rem;
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.8vw, 4.05rem);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h1.statement {
  max-width: 11.5em;
  font-size: clamp(2.45rem, 4.8vw, 3.5rem);
  line-height: 1.05;
}

h2 {
  margin: 2.75rem 0 0.85rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
}

h3 {
  margin: 1.6rem 0 0.45rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.prose a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 0.16em;
}

.prose a.button {
  color: #fff;
  text-decoration: none;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 1.15rem;
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.55rem 0;
}

.prose li strong {
  font-weight: 650;
}

.note,
.prompt {
  margin: 1.15rem 0 1.35rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
}

.note {
  padding: 1rem 1.15rem 1.05rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.prompt {
  padding: 1.05rem 1.15rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.45;
}

.next {
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.35;
}

.call-close {
  margin: 2.75rem 0 0;
  padding: 1.25rem 1.25rem 1.3rem;
  background: var(--navy);
  color: #fff;
  border-radius: 14px;
  scroll-margin-top: calc(var(--header) + 0.85rem);
}

.call-close h2 {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  line-height: 1.08;
}

.call-close .call-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 0.75rem;
}

.call-close .call-grid label:first-child {
  grid-column: 1 / -1;
}

.call-close label {
  display: grid;
  gap: 0.3rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.call-close input {
  width: 100%;
  min-height: 2.65rem;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border: 0;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
}

.call-close .button {
  width: 100%;
  margin-top: 0.85rem;
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.call-close .button:hover,
.call-close .button:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.call-close .button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.call-close .call-error {
  margin: 0 0 0.75rem;
  color: #ffc9c4;
  font-size: 0.98rem;
  font-weight: 600;
}

.call-close .call-status {
  margin: 0.15rem 0 0;
  color: #fff;
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.25;
}

.call-gotcha {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  background: var(--navy);
  color: #fff;
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: start;
}

.footer-line {
  margin: 0;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

.footer :focus-visible {
  outline-color: var(--accent-bright);
}

@media (min-width: 1041px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 1040px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.75rem 0;
  }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 0 0.85rem;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a,
  .guides-menu summary {
    padding: 0.7rem 0;
  }

  .guides-panel {
    position: static;
    min-width: 0;
    padding: 0 0 0.35rem 0.85rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .guides-panel a {
    padding: 0.55rem 0;
  }

  .nav a.button {
    margin-top: 0.55rem;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner,
  .prose {
    width: min(var(--wrap), calc(100% - 1.5rem));
  }

  .prompt {
    font-size: 1.08rem;
  }

  .prose .button {
    width: 100%;
  }

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

  h1 {
    font-size: 2.45rem;
  }

  h1.statement {
    font-size: 2.2rem;
  }

  .footer-line {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
