:root {
  --background: #ffffff;
  --foreground: #102b46;
  --surface: #f5f7fa;
  --primary: #175da3;
  --primary-hover: #104b87;
  --primary-foreground: #ffffff;
  --muted-foreground: #526273;
  --border: #dce3eb;
  --button-border: #8797a8;
  color-scheme: light;
}

html.dark {
  --background: #101b2b;
  --foreground: #eef3f9;
  --surface: #172539;
  --primary: #91c6ff;
  --primary-hover: #badcff;
  --primary-foreground: #102b46;
  --muted-foreground: #b5c2d2;
  --border: #344359;
  --button-border: #71849b;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.page {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
}

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

.header {
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 5rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 2rem;
  flex-shrink: 0;
}

html.dark .brand img {
  background: #ffffff;
  border-radius: 0.25rem;
  box-shadow: 0 0 0 5px #ffffff;
}

.brand-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.brand-name span {
  display: block;
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.025em;
}

.nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 0.5rem;
}

.nav a,
.theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 0.25rem;
}

.nav a {
  padding-inline: 0.5rem;
  font-size: 0.875rem;
  font-weight: 550;
  text-decoration: none;
}

.nav a:hover,
.theme:hover {
  background: var(--surface);
}

.theme {
  width: 2.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.tracking-full,
.icon-sun {
  display: none;
}

html.dark .icon-moon {
  display: none;
}

html.dark .icon-sun {
  display: block;
}

.main {
  flex: 1;
}

.hero {
  padding-block: 3.5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.6;
  text-transform: uppercase;
}

.eyebrow a {
  color: var(--primary);
  text-decoration: none;
}

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

.hero h1 {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(2.125rem, 4.5vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.lede {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted-foreground);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

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

.button-outline {
  border-color: var(--button-border);
  background: var(--background);
}

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

.cards {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.cards li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: var(--surface);
}

.cards h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.cards p {
  margin: 0.65rem 0 0;
  color: var(--muted-foreground);
  font-size: 1rem;
  line-height: 1.6;
}

.band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.band-inner {
  display: grid;
  gap: 2rem;
  padding-block: 2.5rem;
}

.band h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.band h3 {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.band address {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.75;
}

.contact a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  width: fit-content;
  max-width: 100%;
  color: var(--primary);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact a:hover {
  color: var(--foreground);
}

.footer-inner {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding-block: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.7;
}

.footer p {
  margin: 0;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  flex-shrink: 0;
}

.footer a:hover {
  color: var(--foreground);
}

.enter {
  animation: enter 0.4s ease-out both;
}

.delay-1 { animation-delay: 50ms; }
.delay-2 { animation-delay: 100ms; }
.delay-3 { animation-delay: 150ms; }
.delay-4 { animation-delay: 200ms; }

@keyframes enter {
  from { transform: translateY(0.4rem); }
  to { transform: translateY(0); }
}

@media (min-width: 640px) {
  .wrap {
    width: min(70rem, calc(100% - 4rem));
  }

  .tracking-full {
    display: inline;
  }

  .hero h1 em {
    display: block;
  }

  .tracking-short {
    display: none;
  }

  .hero {
    padding-block: 4.5rem;
  }

  .lede {
    font-size: 1.125rem;
  }

  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 3.5rem;
  }

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

  .band h2 {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .band-inner {
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 3rem;
    padding-block: 3rem;
  }

  .band h2 {
    grid-column: auto;
  }
}

@media (max-width: 374px) {
  .wrap {
    width: calc(100% - 2rem);
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .nav {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enter {
    animation: none;
  }
}
