@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;700;800&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #0a1420;
  --surface: #0f1d2e;
  --border: #1f3247;
  --text: #eaf1f8;
  --muted: #8ea2b8;
  --accent: #e0b04c;
  --blue: #5fb3ff;
  --red: #ff4d4d;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--body);
}

.top-nav {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.75rem;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.top-nav::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red);
}
.top-nav .brand {
  font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text); text-decoration: none;
}
.top-nav .brand::first-letter { color: var(--blue); }
.top-nav .links { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.top-nav .links a {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 0.2rem 0; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.top-nav .links a:hover { color: var(--text); }
.top-nav .links a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.top-nav .legacy {
  margin-left: auto; font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none; opacity: 0.7;
}
.top-nav .legacy:hover { opacity: 1; }
.top-nav .brand .short { display: none; }
@media (max-width: 640px) {
  /* One compact row: short brand + sideways-scrolling links. */
  .top-nav { flex-wrap: nowrap; gap: 0.9rem; padding: 0.55rem 0.9rem; }
  .top-nav .brand .full { display: none; }
  .top-nav .brand .short { display: inline; }
  .top-nav .links {
    flex: 1; flex-wrap: nowrap; gap: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; padding-bottom: 2px; margin: 0 -0.9rem 0 0; padding-right: 0.9rem;
    mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .top-nav .links::-webkit-scrollbar { display: none; }
  .top-nav .links a { white-space: nowrap; }
  .top-nav .legacy { display: none; }
}

main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
h1 { margin: 0 0 1rem; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
h2 { margin: 2rem 0 0.5rem; font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); font-size: 0.9rem; }
main a { color: var(--blue); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 0.4rem 0.6rem; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.primary {
  font-family: var(--display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.45rem 0.9rem; border-radius: 3px; border: 1px solid var(--red); background: var(--red); color: #fff; cursor: pointer;
}
.primary:hover { filter: brightness(1.1); }

.eyebrow {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--red);
}
.countdown { margin: 1rem 0 2rem; }
.clock { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0.4rem 0 0.5rem; }
.unit { display: flex; align-items: baseline; gap: 0.3rem; }
.unit b { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 10vw, 5.5rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.unit small { font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }

.pivot { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1.25rem; }
.pivot a {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 0.35rem 0.8rem; border: 1px solid var(--border); border-radius: 999px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pivot a:hover { color: var(--text); border-color: var(--muted); }
.pivot a[aria-current="page"] { color: #111; background: var(--accent); border-color: var(--accent); }
