:root {
  --paper: #ffffff;
  --paper-deep: #f8fafc;
  --ink: #111827;
  --ink-soft: #4b5563;
  --clay: #1d4ed8;
  --link: #1d4ed8;
  --button: #2563eb;
  --button-hover: #1d4ed8;
  --button-text: #ffffff;
  --line: #e5e7eb;
  --sep: #9ca3af;
  --header: rgba(255, 255, 255, 0.92);
  --wash: rgba(248, 250, 252, 0.9);
  --wash-legal: rgba(248, 250, 252, 0.95);
  --glow-clay: rgba(37, 99, 235, 0.08);
  --glow-navy: rgba(14, 165, 233, 0.07);
  --measure: 40rem;
  --header-pad: clamp(0.85rem, 2vw, 1.25rem);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111827;
    --paper-deep: #1f2937;
    --ink: #f9fafb;
    --ink-soft: #d1d5db;
    --clay: #93c5fd;
    --link: #93c5fd;
    --button: #2563eb;
    --button-hover: #1d4ed8;
    --button-text: #ffffff;
    --line: #374151;
    --sep: #6b7280;
    --header: rgba(17, 24, 39, 0.92);
    --wash: rgba(17, 24, 39, 0.2);
    --wash-legal: rgba(17, 24, 39, 0.35);
    --glow-clay: rgba(37, 99, 235, 0.22);
    --glow-navy: rgba(14, 165, 233, 0.12);
    color-scheme: dark;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 45% at 0% -10%, var(--glow-clay), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, var(--glow-navy), transparent 50%),
    linear-gradient(180deg, var(--wash), transparent 18rem);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

body.legal-page {
  background-image: linear-gradient(180deg, var(--wash-legal), transparent 12rem);
}

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

a {
  color: var(--link);
}

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

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: var(--header-pad) clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--header);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand .wordmark {
  width: auto;
  height: 1.7rem;
  display: block;
  filter: brightness(0);
}

@media (prefers-color-scheme: dark) {
  .brand .wordmark {
    filter: none;
  }
}

.brand:hover .wordmark {
  opacity: 0.8;
}

.brand:hover {
  color: var(--clay);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}

.nav a:hover {
  color: var(--clay);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--button);
  color: var(--button-text);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.button:hover {
  background: var(--button-hover);
  color: var(--button-text);
}

.nav .button,
.nav a.button:hover {
  color: var(--button-text);
}

.nav .sign-in {
  font-weight: 700;
}

main {
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.15rem, 4vw, 2.5rem) 4.5rem;
}

.measure {
  max-width: var(--measure);
  margin: 0 auto;
}

.hero h1,
.page-title,
h2,
h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}

.hero h1,
.page-title {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  margin: 0 0 1.25rem;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 72;
}

.lede,
.section p,
.legal p,
.legal li {
  color: var(--ink-soft);
}

.lede {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.hero-actions,
.close-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 1.75rem;
}

.quiet {
  color: var(--ink-soft);
  margin: 0;
}

.quiet a {
  font-weight: 700;
}

.band {
  margin-top: clamp(3.5rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 4rem);
  border-top: 1px solid var(--line);
}

.band h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1.75rem;
  max-width: 18ch;
}

.feature {
  margin: 0 0 2.25rem;
  padding-left: 1rem;
  border-left: 3px solid var(--paper-deep);
}

.feature h3 {
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
}

.feature p,
.band > p,
.section p {
  margin: 0 0 1rem;
}

.feature p:last-child,
.section p:last-child {
  margin-bottom: 0;
}

.close {
  background: var(--paper-deep);
  border: 0;
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.close h2 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  margin: 2.5rem 0 0.9rem;
}

.page-kicker {
  margin: 0 0 0.6rem;
  color: var(--clay);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.updated {
  color: var(--ink-soft);
  margin: 0 0 0.5rem;
}

.legal h2 {
  font-size: 1.55rem;
  margin: 2.1rem 0 0.7rem;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

.contact-line {
  margin-top: 2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.15rem, 4vw, 2.5rem) 2.5rem;
  color: var(--ink-soft);
}

.site-footer p,
.footer-links {
  max-width: 46rem;
  margin: 0 auto;
}

.site-footer .tagline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.site-footer .mark {
  width: 1.65rem;
  height: 1.65rem;
  display: block;
  flex: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--ink-soft);
}

.footer-links .sep {
  color: var(--sep);
}

@media (max-width: 640px) {
  .brand .wordmark {
    height: 1.35rem;
  }

  .nav {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero .lede,
  .hero-actions {
    animation: rise 0.7s ease both;
  }

  .hero .lede {
    animation-delay: 0.08s;
  }

  .hero-actions {
    animation-delay: 0.16s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}
