@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Outfit:wght@300;400;500;600;700&display=swap");

:root {
  --bg-deep: #060912;
  --bg-surface: rgba(18, 26, 42, 0.65);
  --bg-elevated: rgba(28, 38, 58, 0.85);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #e8eef8;
  --text-muted: rgba(232, 238, 248, 0.68);
  --accent: #4ae8ff;
  --accent-soft: rgba(74, 232, 255, 0.14);
  --violet: #9b8cff;
  --violet-soft: rgba(155, 140, 255, 0.12);
  --warn: #ffc971;
  --warn-bg: rgba(255, 201, 113, 0.1);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 999px;
  --shadow-glow: 0 0 60px rgba(74, 232, 255, 0.08);
  --font-display: "Fraunces", "Georgia", serif;
  --font-ui: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 100% 70% at 0% -10%, rgba(74, 232, 255, 0.11), transparent 52%),
    radial-gradient(ellipse 80% 55% at 100% 0%, rgba(155, 140, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 45% at 50% 110%, rgba(30, 60, 100, 0.35), transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 18px;
  color: var(--bg-deep);
  background: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
}

.skip-link:focus {
  top: 16px;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  background: linear-gradient(
    180deg,
    rgba(6, 9, 18, 0.92) 0%,
    rgba(6, 9, 18, 0.72) 100%
  );
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  min-height: 76px;
  padding: 12px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 4px 0;
  border-radius: var(--radius-md);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.brand-logo {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 24px rgba(74, 232, 255, 0.15));
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle-label:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav-toggle-label span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle-label span::after {
  position: absolute;
  top: 7px;
}

.site-nav {
  justify-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  padding: 9px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--violet-soft);
  border-color: var(--stroke-strong);
  box-shadow: 0 0 20px rgba(155, 140, 255, 0.12);
}

.age-banner {
  margin: 0;
  padding: 11px 20px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: linear-gradient(92deg, #4ae8ff 0%, #9b8cff 48%, #7cf0d6 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ——— Layout ——— */
.layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 36px 28px 100px;
}

.hero-shell {
  margin-bottom: 32px;
}

.page-hero {
  position: relative;
  padding: clamp(28px, 5vw, 56px) clamp(24px, 4vw, 48px);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow), 0 24px 48px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  background: radial-gradient(circle, rgba(74, 232, 255, 0.12) 0%, transparent 68%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.45;
}

.page-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.68rem;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(74, 232, 255, 0.28);
}

.page-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.8vw, 3.55rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 18ch;
  background: linear-gradient(135deg, var(--text) 20%, rgba(232, 238, 248, 0.78) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not (background-clip: text) {
  .page-hero h1 {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
  }
}

.lead {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

.content-flow {
  display: grid;
  gap: 28px;
}

.page-intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 22px;
  align-items: stretch;
}

.page-map {
  padding: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.page-map a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.15);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.page-map a:hover {
  color: var(--accent);
  border-color: rgba(74, 232, 255, 0.35);
  background: var(--accent-soft);
}

.status-card {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--violet-soft) 0%, rgba(18, 26, 42, 0.9) 100%);
  border: 1px solid rgba(155, 140, 255, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.status-card p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

.status-card strong {
  color: var(--violet);
  font-weight: 600;
}

.prose {
  padding: clamp(22px, 3.5vw, 44px) clamp(22px, 3.5vw, 48px);
  background: var(--bg-surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.prose-wide {
  max-width: 100%;
}

.prose h2 {
  margin: 2.4rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.prose p,
.prose li {
  font-size: 1.02rem;
  color: var(--text-muted);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 232, 255, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.prose a:hover {
  border-bottom-color: var(--accent);
  color: #7eedff;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li::marker {
  color: var(--violet);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stroke-strong);
  font-size: 0.9rem;
}

.prose th,
.prose td {
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  text-align: left;
}

.prose th {
  background: var(--bg-elevated);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.68rem;
  font-family: var(--font-ui);
  font-weight: 600;
}

.prose td {
  background: rgba(0, 0, 0, 0.12);
  color: var(--text-muted);
}

.prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.callout {
  margin: 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 201, 113, 0.28);
  background: var(--warn-bg);
}

.callout p {
  margin: 0;
  color: var(--warn);
}

.site-footer {
  margin-top: 8px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-footer nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--stroke);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.site-footer nav a:hover {
  color: var(--accent);
  border-color: rgba(74, 232, 255, 0.35);
  background: var(--accent-soft);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle-label {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--stroke-strong);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .nav-toggle-input:checked ~ .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .page-intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .layout {
    padding: 24px 16px 80px;
  }

  .header-inner {
    min-height: 68px;
    padding: 10px 16px;
  }

  .brand-logo {
    width: clamp(120px, 48vw, 180px);
  }

  .page-hero {
    border-radius: 18px;
  }

  .prose {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
