:root {
  color-scheme: dark;
  --bg: #000000;
  --bg2: #0a0a12;
  --ink: #fafafa;
  --body: #a1a1aa;
  --faint: #27272a;
  --gold: #ffd60a;
  --gold-soft: #fde68a;
  --cyan: #2fb1de;
  --nav-height: 4rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-width: 18rem;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(47, 177, 222, 0.12), transparent 32rem),
    radial-gradient(circle at 5% 72%, rgba(255, 214, 10, 0.06), transparent 28rem),
    var(--bg);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--nav-height);
  border-bottom: 1px solid rgba(255, 214, 10, 0.58);
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  width: min(60rem, calc(100% - 1.5rem));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  color: var(--body);
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.nav-inner a {
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-inner a:hover,
.nav-inner a[aria-current="page"] {
  color: var(--gold);
}

.nav-mark {
  color: rgba(255, 214, 10, 0.55);
  user-select: none;
}

.door-shell,
.footer-inner {
  width: min(42.5rem, calc(100% - 2rem));
  margin: 0 auto;
}

.door-shell {
  padding: clamp(5rem, 11vw, 8rem) 0 clamp(5rem, 10vw, 7rem);
}

.eyebrow,
.router-label {
  color: var(--gold);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.eyebrow {
  margin: 0 0 1.15rem;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.95;
  text-wrap: balance;
}

.door-copy {
  margin-top: clamp(3rem, 8vw, 4.75rem);
}

.copy-section {
  padding: 1.4rem 0;
  border-top: 1px solid var(--faint);
}

.copy-section:last-child {
  border-bottom: 1px solid var(--faint);
}

.copy-section p {
  margin: 0;
  color: var(--body);
  font-size: clamp(1.02rem, 2.2vw, 1.14rem);
}

.visual {
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  padding: clamp(0.35rem, 1vw, 0.65rem);
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 214, 10, 0.08), rgba(47, 177, 222, 0.05)),
    var(--bg2);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.45);
}

.visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.4rem;
}

.router {
  margin-top: clamp(4rem, 10vw, 6.5rem);
}

.router-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1rem;
}

.router-label::after {
  height: 1px;
  flex: 1;
  content: "";
  background: linear-gradient(90deg, rgba(255, 214, 10, 0.55), transparent);
}

.route-list {
  display: grid;
  border-top: 1px solid var(--faint);
}

.route-link {
  display: flex;
  min-height: 3.8rem;
  padding: 0.9rem 0;
  align-items: center;
  border-bottom: 1px solid var(--faint);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  transition: color 160ms ease, padding-left 160ms ease;
}

.route-link:hover {
  padding-left: 0.45rem;
  color: var(--cyan);
}

footer {
  padding: 2.75rem 0 3.25rem;
  color: var(--body);
  background: var(--bg2);
  font-size: 0.78rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: center;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--gold-soft);
  text-underline-offset: 0.25em;
}

.footer-note {
  margin-top: 0.55rem;
}

@media (min-width: 42rem) {
  .nav-inner {
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-inner a,
  .route-link {
    transition: none;
  }
}
