:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --border: #e6e2da;
  --text: #17150f;
  --muted: #6b665c;
  --accent: #b4552a;
  --chip-bg: #f3f0ea;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131210;
    --surface: #1b1a17;
    --border: #2e2c27;
    --text: #f2efe9;
    --muted: #9c968a;
    --accent: #e08b5e;
    --chip-bg: #24221e;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

/* Sticky header — full height at rest, shrinks once the page scrolls */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 17, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-compact {
  background: rgba(18, 17, 15, 0.97);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 2.5rem);
  transition: padding 0.25s ease;
}

.site-header.is-compact .site-header__inner {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.site-header__brand {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.site-header__logo {
  display: block;
  width: auto;
  height: 64px;
  transition: height 0.25s ease;
}

.site-header.is-compact .site-header__logo {
  height: 40px;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 2.25rem);
}

.nav__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(242, 239, 233, 0.72);
  transition: color 0.18s ease;
}

.nav__link:hover {
  color: #ffffff;
}

.nav__cta {
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.18s ease;
}

.nav__cta:hover {
  filter: brightness(1.12);
}

@media (max-width: 560px) {
  .nav__link {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .nav__cta {
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }
  .site-header__logo {
    height: 46px;
  }
  .site-header.is-compact .site-header__logo {
    height: 34px;
  }
}

/* Sections */

.section {
  margin-bottom: clamp(3rem, 8vw, 5.5rem);
  scroll-margin-top: 110px;
}

.section__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__lede {
  max-width: 34rem;
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem 2.5rem;
  max-width: 60rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.points li {
  font-size: 0.925rem;
  color: var(--muted);
  text-wrap: pretty;
}

.points strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: var(--text);
}

/* Masthead */

.masthead {
  max-width: 34rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.masthead__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.masthead__title {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.masthead__lede {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.card__name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card__tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
}

.card__description {
  margin: 0;
  font-size: 0.925rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* Stack chips */

.card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.card__stack li {
  padding: 0.2rem 0.55rem;
  background: var(--chip-bg);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--muted);
}

.card__link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.card__link:hover {
  text-decoration: underline;
}

/* Status badge */

.badge {
  flex-shrink: 0;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--chip-bg);
  color: var(--muted);
}

.badge--live {
  background: color-mix(in srgb, #2f9e5f 16%, transparent);
  color: #2f9e5f;
}

.badge--building {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}

/* Footer */

.footer {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 110px;
}

.footer__title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__line {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.footer__line a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.footer__line a:hover {
  border-bottom-color: var(--accent);
}

.footer__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
