:root {
  --background: #f4fbf7;
  --surface: #ffffff;
  --surface-alt: #e4f3ea;
  --border: #c7e3d2;
  --foreground: #12261c;
  --muted: #4b6357;
  --faint: #7c9488;
  --accent: #3c7eb8;
  --accent-alt: #2f6494;
  --accent-2: #ff8552;
  --dark: #0f2038;
  --dark-2: #35608f;
  --halo-center: #a3bfe0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Karla", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.display {
  font-family: "League Spartan", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--foreground);
}

.brand img {
  height: 110px;
  width: auto;
}

.brand span {
  font-size: 18px;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  /* Keeps a multi-word link (e.g. "Team Manager") on one line — without
     this, a narrow viewport can wrap mid-link instead of between links. */
  white-space: nowrap;
}

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

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px;
}

.hero {
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.1;
  margin: 0;
}

.hero p.tagline {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
  max-width: 480px;
}

/* Homepage-only dark hero: the header/logo/nav sit inside it, so they get
   their own light-on-dark treatment scoped to .hero-band, rather than
   changing the shared header used on every page. */
.hero-band {
  background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
  padding-bottom: 96px;
}

.hero-band header {
  border-bottom: none;
}

.hero-band nav a {
  color: #dde8f5;
}

.hero-band .hero h1 {
  color: #f4fbf7;
}

.hero-band .hero p.tagline {
  color: #aec4dc;
}

.hero-band .button.secondary {
  background: transparent;
  color: #f4fbf7;
  border-color: #3d5a7a;
}

.hero-band .button.secondary:hover {
  background: rgba(244, 251, 247, 0.08);
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Logo sits on a light halo so its navy wordmark stays legible against
   the dark hero — the source logo.png has a transparent background, not
   a light ring baked in. */
.logo-halo {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo-center) 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-halo img {
  height: 140px;
  width: auto;
}

/* Secondary pages (About, Privacy — everything but the homepage): a
   persistent diagonal-gradient header instead of the homepage's big hero,
   a smaller halo'd logo (lighter halo center than the homepage's, since a
   smaller badge needs more contrast to read clearly), Onest instead of
   League Spartan for headings, and a warm-cream body palette instead of
   the homepage's mint — scoped to body.secondary so the homepage is
   unaffected. */
body.secondary {
  --background: #faf7f0;
  --surface-alt: #f0ebe0;
  --border: #e6ddc9;
  --foreground: #2b2620;
  --muted: #6b6152;
  --faint: #a89d87;
}

body.secondary .display {
  font-family: "Onest", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

.header-dark {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-bottom: none;
}

.header-dark nav a {
  color: #dde8f5;
}

.logo-halo-sm {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #eef4fb 0%, var(--dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-halo-sm img {
  height: 108px;
  width: auto;
}

.stats-row {
  max-width: 920px;
  width: 100%;
  margin: -56px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.stats-row .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(12, 26, 19, 0.14);
}

.stats-row .stat {
  background: var(--surface);
  padding: 24px 16px;
  text-align: center;
}

.stats-row .stat .number {
  font-size: 30px;
  color: var(--accent-alt);
}

.stats-row .stat .label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.bio-teaser {
  max-width: 760px;
  width: 100%;
  margin-top: 72px;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-alt);
}

.button.secondary {
  background: var(--surface);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.button.secondary:hover {
  background: var(--surface-alt);
}

.content {
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.content h1 {
  font-size: 32px;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bio-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bio-header img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.bio-header h2 {
  margin: 0;
  font-size: 22px;
}

.bio-header p {
  margin: 4px 0 0;
  color: var(--faint);
  font-size: 14px;
}

.legal h2 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--foreground);
}

.legal p,
.legal li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal .updated {
  color: var(--faint);
  font-size: 13px;
}

footer {
  padding: 24px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}

footer a {
  color: var(--faint);
}

@media (max-width: 480px) {
  /* The full-size logo (110px tall, badge-shaped) eats too much header
     width next to the nav on a phone screen — shrink it so both sides
     have room without wrapping. */
  .brand img {
    height: 64px;
  }

  .logo-halo {
    width: 96px;
    height: 96px;
  }

  .logo-halo img {
    height: 84px;
  }

  .logo-halo-sm {
    width: 84px;
    height: 84px;
  }

  .logo-halo-sm img {
    height: 74px;
  }

  .hero h1 {
    font-size: 32px;
  }

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

  .bio-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}
