:root {
  --paper: #f1f1f1;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #8a8a8a;
  --line: #e0e0e0;
  --blue: #1a5cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--blue);
  color: #fff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  border-radius: 999px;
  background: var(--blue);
  padding: 0.65rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  padding: 0;
}

@media (min-width: 640px) {
  .shell {
    padding: 12px 12px 0;
  }
}

@media (min-width: 768px) {
  .shell {
    padding: 16px 16px 0;
  }
}

@media (min-width: 1024px) {
  .shell {
    padding: 24px 24px 0;
  }
}

@media (min-width: 1440px) {
  .shell {
    padding: 32px 32px 0;
  }
}

.frame {
  max-width: 1320px;
  margin: 0 auto;
  overflow: visible;
  background: var(--surface);
  border-radius: 0;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .frame {
    border-radius: 20px 20px 0 0;
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  .frame {
    padding-bottom: 112px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.site-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
}

@media (min-width: 640px) {
  .site-header-inner {
    padding: 16px 24px;
  }
}

@media (min-width: 1024px) {
  .site-header-inner {
    padding: 20px 40px;
  }
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: auto;
}

@media (min-width: 1024px) {
  .logo img {
    height: 32px;
  }
}

.site-nav {
  display: none;
}

@media (min-width: 1024px) {
  .site-nav {
    position: absolute;
    left: 50%;
    display: block;
    transform: translateX(-50%);
  }

  .site-nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav a {
    font-size: 14px;
    transition: color 0.15s ease;
  }

  .site-nav a:hover,
  .site-nav a[aria-current='page'] {
    color: var(--blue);
  }
}

.header-actions {
  position: relative;
  z-index: 10;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  padding: 12px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

@media (min-width: 640px) {
  .btn {
    padding: 14px 28px;
    font-size: 15px;
  }
}

.btn:hover {
  background: #fff;
  color: var(--blue);
}

.btn-cta {
  padding: 10px 16px;
  font-size: 12px;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .btn-cta {
    padding: 14px 28px;
    font-size: 15px;
  }
}

.btn-label-long {
  display: none;
}

@media (min-width: 1024px) {
  .btn-label-short {
    display: none;
  }

  .btn-label-long {
    display: inline;
  }
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.menu-panel nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.menu-panel nav a:not(.btn) {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.menu-panel nav a:not(.btn):hover {
  color: var(--blue);
}

.menu-panel nav .btn {
  margin-top: 16px;
}

article,
.article {
  padding-top: 88px;
}

@media (min-width: 640px) {
  article,
  .article {
    padding-top: 112px;
  }
}

@media (min-width: 1024px) {
  article,
  .article {
    padding-top: 144px;
  }
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 640px) {
  .prose {
    padding: 0 24px;
  }
}

.prose h1 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3.4vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lede {
  margin: 0 0 40px;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #444;
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.prose p,
.prose ul {
  margin: 0 0 16px;
  color: #444;
}

.prose ul {
  padding-left: 1.2em;
}

.prose li {
  margin: 0.4em 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--blue);
}

.cta-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 72px 20px 0;
}

@media (min-width: 640px) {
  .cta-wrap {
    padding: 88px 24px 0;
  }
}

@media (min-width: 1024px) {
  .cta-wrap {
    padding: 112px 40px 0;
  }
}

.cta {
  border-radius: 20px;
  background: var(--blue);
  padding: 64px 32px;
  color: #fff;
  text-align: center;
}

@media (min-width: 1024px) {
  .cta {
    padding: 80px 64px;
  }
}

.cta h2 {
  max-width: 700px;
  margin: 0 auto;
  font-size: clamp(1.75rem, 3.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.cta p {
  max-width: 560px;
  margin: 24px auto 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn {
  margin-top: 40px;
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}

.cta .btn:hover {
  background: transparent;
  color: #fff;
}

.site-footer {
  width: 100%;
  background: var(--ink);
  color: #fff;
}

.site-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

@media (min-width: 640px) {
  .site-footer-inner {
    padding: 40px 24px 0;
  }
}

@media (min-width: 1024px) {
  .site-footer-inner {
    padding: 48px 40px 0;
  }
}

.footer-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-label {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-grid ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid li + li {
  margin-top: 8px;
}

.footer-grid a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s ease;
}

.footer-grid a:hover,
.footer-grid a[aria-current='page'] {
  color: #fff;
}

.footer-blurb,
.footer-legal {
  max-width: 20rem;
  margin: 12px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-legal {
  margin-top: 12px;
}

.footer-legal + .footer-legal {
  margin-top: 4px;
}

.footer-logo {
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .footer-logo {
    margin-top: 40px;
  }
}

.footer-logo img {
  height: clamp(2.75rem, 7vw, 4.5rem);
  width: auto;
}

.footer-copy {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: var(--muted);
}
