:root {
  color-scheme: light dark;
  --bg: #0b0e14;
  --fg: #e6e6e6;
  --muted: #a6adbb;
  --card: rgba(255, 255, 255, 0.06);
  --max: 58rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #4b5563;
    --card: rgba(17, 24, 39, 0.06);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
}

.site-header {
  width: 100%;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: underline;
}

.site-nav {
  display: flex;
  gap: 1rem;
}

.site-navlink {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.9;
}

.site-navlink:hover {
  opacity: 1;
  text-decoration: underline;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 2rem;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--muted);
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  color: var(--muted);
}

/* --- Home hero --- */

.home {
  min-height: 100svh;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.hero__slides {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      1000px 700px at 30% 30%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65));
}

.hero__slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 1400ms ease;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__fallback {
  background: linear-gradient(135deg, #111827, #0b0e14);
}

.hero__overlay {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  pointer-events: none;
}

.site-header,
.hero__content {
  pointer-events: auto;
}


.hero__content {
  flex: 1;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero__lede {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 40rem;
}

@media (max-width: 520px) {
  .hero__nav {
    gap: 0.75rem;
  }
}
