:root {
  --bg-0: #070d12;
  --bg-1: #0c161e;
  --ink: #e8f0f4;
  --ink-soft: #a8bcc8;
  --muted: #7a93a3;
  --line: rgba(232, 240, 244, 0.1);
  --surface: rgba(18, 28, 36, 0.88);
  --surface-solid: #121c24;
  --brand: #40c4ff;
  --brand-deep: #80d8ff;
  --cta: #e85d04;
  --cta-hover: #d14f00;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Sora", "Outfit", system-ui, sans-serif;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(2, 136, 209, 0.25), transparent 55%),
    radial-gradient(700px 420px at 5% 12%, rgba(232, 93, 4, 0.08), transparent 50%),
    linear-gradient(165deg, var(--bg-0) 0%, var(--bg-1) 45%, #0a1820 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--brand-deep); text-decoration: none; }
a:hover { color: #fff; text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 14px 16px 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0 12px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
}
.top-cta {
  flex-shrink: 0;
  background: var(--cta);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
}
.top-cta:hover { background: var(--cta-hover); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.crumbs a { color: var(--ink-soft); }
.crumbs span { color: var(--muted); }

/* Simple 16:9 hero — no max-height hacks */
.hero-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  background: var(--surface-solid);
}

.kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 4.2vw, 1.95rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.lede {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 14px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cta-box {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(64,196,255,0.12), rgba(232,93,4,0.1));
  border: 1px solid rgba(64,196,255,0.25);
  margin: 18px 0 24px;
}
.cta-box strong { font-family: var(--display); font-size: 1.02rem; }
.cta-box p { color: var(--ink-soft); font-size: 0.92rem; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  background: var(--cta);
  color: #fff !important;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 999px;
  text-decoration: none !important;
}
.btn-primary:hover { background: var(--cta-hover); }

.article h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 24px 0 8px;
}
.article h3 {
  font-size: 1.02rem;
  margin: 16px 0 6px;
  color: var(--brand-deep);
}
.article p { margin-bottom: 10px; }
.article ul, .article ol {
  margin: 0 0 12px 1.15rem;
  color: var(--ink-soft);
}
.article li { margin-bottom: 7px; }
.article li strong { color: var(--ink); }

.article figure {
  margin: 16px 0;
}
.article figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.article figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 20px;
}
.toc strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 6px;
}
.toc ol { margin: 0 0 0 1.05rem; color: var(--ink-soft); font-size: 0.9rem; }
.toc li { margin-bottom: 5px; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 8px;
  padding: 10px 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .faq-a {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.related {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.related h2 { font-family: var(--display); font-size: 1.1rem; margin-bottom: 12px; }
.related-grid {
  display: grid;
  gap: 10px;
}
@media (min-width: 560px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
.related-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none !important;
  min-width: 0;
}
.related-card:hover { border-color: rgba(64,196,255,0.45); }
.related-card img {
  width: 96px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.related-card span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.hub-grid {
  display: grid;
  gap: 14px;
}
.hub-card {
  display: grid;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  color: inherit;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}
.hub-card:hover { border-color: rgba(64,196,255,0.4); }
.hub-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hub-card .body { padding: 12px 14px 16px; }
.hub-card .tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.hub-card h2 {
  font-family: var(--display);
  font-size: 1.08rem;
  margin: 5px 0 6px;
  color: var(--ink);
}
.hub-card p { color: var(--ink-soft); font-size: 0.88rem; }

footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}
footer a { color: var(--ink-soft); }
