:root {
  color-scheme: dark;
  --bg: #08100f;
  --surface: #101917;
  --surface-strong: #17231f;
  --line: rgba(218, 229, 213, 0.16);
  --text: #eef4ea;
  --muted: #aab7ad;
  --frost: #9bd2cf;
  --ember: #d99745;
  --ok: #87d49c;
  --shadow: rgba(0, 0, 0, 0.4);
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 56px);
  background: rgba(8, 16, 15, 0.74);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 850;
}

.brand-mark__sigil {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(217, 151, 69, 0.55);
  background: rgba(217, 151, 69, 0.12);
  color: var(--ember);
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a {
  padding: 8px 0;
}

.site-nav a:hover {
  color: var(--text);
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 118px;
  max-width: 230px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(155, 210, 207, 0.28);
  background: rgba(155, 210, 207, 0.08);
  color: var(--frost);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-pill[data-auth-state="in"] {
  border-color: rgba(135, 212, 156, 0.38);
  background: rgba(135, 212, 156, 0.1);
  color: #a9e0b8;
}

.auth-pill[data-auth-state="out"] {
  border-color: rgba(217, 151, 69, 0.45);
  background: rgba(217, 151, 69, 0.1);
  color: var(--ember);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(20px, 6vw, 72px) 72px;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("taiga-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero__shade {
  background:
    radial-gradient(circle at 76% 32%, rgba(155, 210, 207, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(8, 16, 15, 0.96) 0%, rgba(8, 16, 15, 0.78) 38%, rgba(8, 16, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(8, 16, 15, 0.86) 0%, transparent 44%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 104px;
  line-height: 0.92;
}

h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.05;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: #dce7dc;
  font-size: 20px;
  line-height: 1.58;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(238, 244, 234, 0.08);
  color: var(--text);
  font-weight: 750;
}

.button--primary {
  border-color: rgba(217, 151, 69, 0.72);
  background: #b8732d;
  color: #fff8ee;
}

.button:hover {
  filter: brightness(1.1);
}

.button--ghost {
  background: rgba(238, 244, 234, 0.06);
}

.news-section,
.status-band,
.access-section {
  padding: 72px clamp(20px, 6vw, 72px);
}

.section-head {
  width: min(var(--max), 100%);
  margin: 0 auto 32px;
}

.section-head--wide {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: end;
}

.section-head p:not(.eyebrow),
.news-card p,
.access-copy p,
.access-steps p,
.status-item span {
  color: var(--muted);
  line-height: 1.55;
}

.news-section {
  background:
    linear-gradient(180deg, rgba(47, 106, 79, 0.14), transparent 340px),
    #0a1210;
}

.news-list {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.news-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 250px;
  padding: 24px;
  background: var(--surface);
}

.news-card--lead {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(217, 151, 69, 0.16), transparent 64%),
    var(--surface-strong);
}

.news-card time {
  color: var(--frost);
  font-size: 13px;
  font-weight: 850;
}

.news-card p {
  margin: 0;
}

.text-link {
  align-self: end;
  width: max-content;
  color: #e1bd78;
  font-weight: 800;
}

.text-link:hover {
  color: #f0d29b;
}

.status-band {
  background: #0c1513;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-grid {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.status-item {
  display: grid;
  gap: 10px;
  min-height: 132px;
  padding: 20px;
  background: var(--surface);
}

.status-item__label {
  color: var(--frost);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-item strong {
  font-size: 19px;
}

.signal--ok {
  color: var(--ok);
}

.access-section {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.access-steps article {
  min-height: 166px;
  padding: 22px;
  background: var(--surface);
}

.access-steps span {
  display: block;
  margin-bottom: 18px;
  color: var(--ember);
  font-weight: 850;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 6vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .auth-pill {
    max-width: min(230px, 48vw);
  }

  .section-head--wide,
  .access-section {
    grid-template-columns: 1fr;
  }

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

  .news-card--lead {
    grid-column: span 2;
  }

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

  h1 {
    font-size: 76px;
  }

  h2 {
    font-size: 40px;
  }
}

@media (max-width: 620px) {
  .site-header {
    flex-direction: column;
    gap: 12px;
  }

  .auth-pill {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    min-height: 82vh;
    padding-top: 168px;
  }

  .hero__lead {
    font-size: 17px;
  }

  .news-section,
  .status-band,
  .access-section {
    padding: 54px 20px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 34px;
  }

  .news-list,
  .status-grid,
  .access-steps {
    grid-template-columns: 1fr;
  }

  .news-card--lead {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
