:root {
  --bg: #eaeaea;
  --surface: #ffffff;
  --text: #4a4a4a;
  --heading: #000067;
  --muted: #636363;
  --blue: #2179c1;
  --yellow: #ffb300;
  --footer: #f8f8f8;
  --line: #e4e4e4;
  --shadow: 0 14px 40px rgba(0, 0, 103, 0.1);
}

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

html {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 420px at 50% -80px, rgba(33, 121, 193, 0.08), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "Lato", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  width: min(1000px, calc(100% - 2rem));
  margin: 1.75rem auto 2.25rem;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  background: #ececee;
}

.hero::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow) 0 22%, var(--heading) 22% 100%);
}

.hero-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -4px;
}

.hero-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-compact {
  display: none;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.25rem 1.2rem;
}

.hero-compact img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(0, 0, 103, 0.18);
}

.wordmark,
.subtitle,
.byline {
  margin: 0;
}

.wordmark {
  color: var(--blue);
  font-size: 1.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.subtitle {
  margin-top: 0.28rem;
  color: var(--blue);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.byline {
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

main {
  padding: clamp(1.75rem, 4vw, 3.1rem) clamp(1.25rem, 5vw, 3.4rem) clamp(2rem, 4vw, 3.2rem);
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 1rem;
  color: var(--heading);
  font-size: clamp(1.7rem, 4.6vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lead {
  max-width: 40rem;
  margin: 0 0 0.85rem;
  color: #2a2a2a;
  font-size: clamp(1.12rem, 2.1vw, 1.28rem);
  line-height: 1.5;
}

.home p:not(.eyebrow):not(.lead):not(.thanks):not(.signature) {
  max-width: 40rem;
  margin: 0;
  color: #5c5c5c;
}

.thanks {
  max-width: 40rem;
  margin: 1.6rem 0 0;
  padding-top: 1.15rem;
  border-top: 3px solid var(--yellow);
  color: var(--heading);
  font-weight: 700;
}

.signature {
  max-width: 40rem;
  margin: 0.4rem 0 0;
  color: var(--heading);
  font-weight: 700;
}

.prose h2 {
  margin: 2.1rem 0 0.7rem;
  color: var(--heading);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h2:first-of-type {
  margin-top: 0.2rem;
}

.prose h3 {
  margin: 1.5rem 0 0.45rem;
  color: var(--heading);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.prose p {
  margin: 0 0 0.85rem;
}

.prose a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.prose a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  padding: 1.15rem clamp(1.25rem, 5vw, 3.4rem) 1.35rem;
  background: var(--footer);
  border-top: 1px solid var(--line);
}

.copyright {
  margin: 0;
  max-width: 28rem;
  color: #666666;
  font-size: 0.8rem;
  line-height: 1.45;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.05rem;
  margin: 0;
}

.legal a {
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.legal a:hover {
  color: var(--heading);
  text-decoration: underline;
}

.legal a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (max-width: 720px) {
  .page {
    width: min(1000px, calc(100% - 1rem));
    margin: 0.5rem auto 1rem;
    border-radius: 12px;
  }

  .hero-banner {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hero-compact {
    display: flex;
  }

  footer {
    flex-direction: column;
  }

  .legal {
    flex-direction: column;
    gap: 0.45rem;
  }
}

@media (max-width: 420px) {
  .hero-compact {
    align-items: flex-start;
  }

  .wordmark {
    font-size: 1.6rem;
  }

  .subtitle,
  .byline {
    font-size: 0.88rem;
  }
}
