@import url("tokens.css");

:root {
  --sans: "Figtree", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --header: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(214, 178, 94, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--gold-bright);
}

img {
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 30;
  background: var(--gold);
  color: var(--bg);
  padding: 8px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 28ch;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

p {
  margin: 0 0 12px;
}

.lede,
.fine {
  color: var(--muted);
}

.lede {
  max-width: 38rem;
  font-size: 1.05rem;
}

.fine {
  font-size: 0.92rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header);
  padding: 0 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.brand em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.nav a:hover,
.nav a.is-current {
  color: var(--text);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
}

.btn-solid {
  background: var(--gold);
  color: #1a1408;
  font-weight: 650;
}

.btn-solid:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 64px 28px 36px;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 14px;
}

.panel {
  background: linear-gradient(180deg, var(--bg-elev), var(--surface));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.panel-head,
.pass-row,
.tier-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.panel-head {
  color: var(--dim);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.live {
  color: var(--ice);
}

.live i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ice);
}

.belt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  margin: 8px 8px 18px;
  padding: 0 12px;
}

.belt span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(214, 178, 94, 0.7);
}

.belt span:nth-child(2) {
  width: 12px;
  height: 12px;
  background: var(--text);
  transform: translateY(-10px);
}

.pass-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.pass-row span {
  color: var(--dim);
}

.stats,
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats article,
.card,
.tier,
.frame,
.log li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stats article {
  padding: 16px;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
}

.stats span,
.frame span,
.log span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cards {
  display: grid;
  gap: 14px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.card,
.tier {
  padding: 18px;
}

.sky,
.tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tiers {
  grid-template-columns: repeat(3, 1fr);
}

.frame {
  padding: 14px;
}

.frame b {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
}

.tier-top b {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gold-bright);
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--dim);
  font-size: 0.85rem;
}

input,
select {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  padding: 0 12px;
  font: inherit;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
  color: var(--dim);
  font-size: 0.9rem;
}

.footer a {
  color: var(--muted);
}

.status {
  color: var(--ice);
}

.is-app {
  min-height: 100vh;
}

.desk-label {
  margin: 0 auto 0 8px;
  color: var(--muted);
}

.desk {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.side article,
.log li {
  padding: 12px 14px;
  margin-bottom: 10px;
}

.side b,
.log b {
  display: block;
}

.side span,
.log span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
}

.log {
  list-style: none;
  padding: 0;
  margin: 0;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.swatch {
  border-radius: 14px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
}

.split,
.dome-grid,
.news {
  display: grid;
  gap: 14px;
}

.split {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.dome-grid,
.news {
  grid-template-columns: 1fr 1fr;
}

.news article,
.report,
.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.report + .report,
.note + .note {
  margin-top: 12px;
}

.meta {
  color: var(--dim);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.orion-fig {
  width: 180px;
  height: auto;
  margin-bottom: 8px;
}

.orion-fig .star {
  animation: star-twinkle 3.2s ease-in-out infinite;
}

.orion-fig .star:nth-child(2) {
  animation-duration: 4.1s;
  animation-delay: -1.2s;
}

.orion-fig .star:nth-child(3) {
  animation-duration: 2.6s;
  animation-delay: -0.4s;
}

.orion-fig .star:nth-child(4) {
  animation-duration: 3.8s;
  animation-delay: -2.1s;
}

.orion-fig .star:nth-child(5) {
  animation-duration: 2.9s;
  animation-delay: -1.7s;
}

.orion-fig .star:nth-child(6) {
  animation-duration: 4.4s;
  animation-delay: -0.8s;
}

.orion-fig .star:nth-child(7) {
  animation-duration: 3.5s;
  animation-delay: -2.6s;
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.28;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orion-fig .star {
    animation: none;
    opacity: 1;
  }
}

.sky-now p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--dim);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.spec {
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.spec b {
  display: inline-block;
  min-width: 9rem;
  color: var(--dim);
  font-weight: 500;
}

.rules {
  margin: 0;
  padding-left: 1.2rem;
}

.rules li {
  margin: 0 0 10px;
}

.page-intro {
  max-width: 40rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav,
  .header .btn-solid {
    display: none;
  }

  .header.is-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    padding: 16px 28px 20px;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .lead,
  .desk,
  .stats,
  .cards.three,
  .sky,
  .tiers,
  .swatches,
  .split,
  .dome-grid,
  .news {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }
}
