:root {
  --bg: #070b12;
  --bg-elevated: #0c1220;
  --navy: #10192b;
  --text: #e8eef6;
  --muted: #9aabc0;
  --accent: #5ec8d8;
  --accent-dim: rgba(94, 200, 216, 0.14);
  --line: rgba(232, 238, 246, 0.1);
  --focus: #8ad8e4;
  --max: 68rem;
  --gutter: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  background: radial-gradient(56rem 32rem at 20% -20%, rgba(94, 200, 216, 0.07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-wrap: break-word;
}

main {
  min-width: 0;
  max-width: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #8ad8e4;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}

.site-header,
.site-footer {
  border-color: var(--line);
  max-width: 100%;
}

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding-block: 1.15rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  padding: 3rem 0 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 100%;
  min-width: 0;
  font-size: clamp(1.65rem, 7.2vw, 3.15rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 600;
  overflow-wrap: break-word;
}

.lede {
  margin: 0;
  max-width: 100%;
  min-width: 0;
  color: var(--muted);
  font-size: 1.05rem;
  overflow-wrap: break-word;
}

.notice {
  display: inline-block;
  max-width: 100%;
  margin-top: 1.5rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 4rem;
  min-width: 0;
}

.card {
  min-width: 0;
  max-width: 100%;
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(232, 238, 246, 0.18);
  border-radius: 1rem;
  background: var(--bg-elevated);
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: break-word;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  overflow-wrap: break-word;
}

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  margin: 0 0 1rem;
  max-width: 100%;
  font-size: clamp(1.65rem, 6vw, 2.3rem);
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

.page p {
  max-width: min(40rem, 100%);
  color: var(--muted);
  overflow-wrap: break-word;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  min-width: 0;
}

@media (min-width: 721px) {
  .hero {
    padding: 4.5rem 0 3rem;
  }

  .hero h1 {
    max-width: 16ch;
  }

  .lede {
    max-width: 40rem;
    font-size: 1.125rem;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
