:root {
  --bg: #0a0f1f;
  --bg-soft: #10182d;
  --text: #edf2ff;
  --muted: #b7c2de;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f5c76a;
  --gold-soft: rgba(245, 199, 106, 0.16);
  --accent: #89a6ff;
  --max-width: 860px;
  --header-width: 980px;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(245, 199, 106, 0.1), transparent 28%),
    radial-gradient(circle at left 20%, rgba(137, 166, 255, 0.09), transparent 22%),
    linear-gradient(180deg, #0a0f1f 0%, #0d1325 100%);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: #fff;
  color: #111;
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.wrap {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.wrap-wide {
  width: min(calc(100% - 32px), var(--header-width));
}

.site-header {
  padding: 64px 0 28px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: inherit;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  max-width: 14ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin-top: 56px;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-top: 34px;
}

.lead {
  max-width: 66ch;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  color: var(--muted);
  margin: 0;
}

.meta-line {
  margin: 18px 0 0;
  color: #93a1c7;
  font-size: 0.95rem;
}

.article {
  padding-bottom: 72px;
}

.article p,
.article li {
  font-size: 1.04rem;
  color: var(--text);
}

.article p {
  margin: 0 0 18px;
}

.article ul,
.article ol {
  padding-left: 1.15rem;
  margin: 0 0 22px;
}

.article li + li {
  margin-top: 10px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 18px 0 10px;
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-nav a {
  color: #d9e2ff;
  font-size: 0.96rem;
}

.feature-media,
.article section,
.article .table-scroll {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

.feature-media {
  margin: 26px 0 22px;
}

.hero-media {
  margin-top: 0;
  content-visibility: visible;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-media figcaption {
  margin-top: 10px;
  font-size: 0.92rem;
  color: #96a3c4;
}

.table-scroll {
  overflow-x: auto;
  margin: 18px 0 20px;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

thead th {
  color: var(--gold);
  font-weight: 700;
  background: rgba(245, 199, 106, 0.06);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

tbody tr:last-child td {
  border-bottom: none;
}

strong {
  color: #ffffff;
}

section {
  position: relative;
}

section::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 28px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

section:last-of-type::after {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
}

.site-footer p {
  margin: 0;
  color: #8c99bb;
  font-size: 0.92rem;
}

::selection {
  background: var(--gold);
  color: #111;
}

@media (max-width: 720px) {
  .site-header {
    padding-top: 42px;
  }

  .wrap,
  .wrap-wide {
    width: min(calc(100% - 24px), var(--header-width));
  }

  .article p,
  .article li {
    font-size: 1rem;
  }

  .article-nav {
    gap: 8px 14px;
    font-size: 0.94rem;
  }

  th,
  td {
    padding: 12px 13px;
  }
}

@media (max-width: 480px) {
  h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .eyebrow {
    letter-spacing: 0.11em;
  }

  .lead {
    font-size: 1rem;
  }

  .feature-media img {
    border-radius: 18px;
  }

  table {
    min-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}