:root {
  --ink: #0b0a08;
  --ink-soft: #12110d;
  --paper: #e7dfc9;
  --muted: #a9a38f;
  --acid: #d9ff43;
  --line: rgba(231, 223, 201, 0.17);
  --content: 1180px;
  --pad: clamp(20px, 5vw, 72px);
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: dark;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 85% 12%, rgba(160, 131, 58, 0.09), transparent 26%),
    var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

::selection {
  color: var(--ink);
  background: var(--acid);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--acid);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.guide-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 9, 7, 0.9);
  backdrop-filter: blur(18px);
}

.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.guide-brand::before {
  width: 15px;
  height: 15px;
  content: "";
  border: 1px solid var(--acid);
  background:
    linear-gradient(var(--acid), var(--acid)) center / 1px 23px no-repeat,
    linear-gradient(90deg, var(--acid), var(--acid)) center / 23px 1px no-repeat;
}

.guide-brand sup {
  color: var(--acid);
  font-family: var(--body);
  font-size: 7px;
}

.guide-nav {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
}

.guide-nav a {
  color: rgba(231, 223, 201, 0.64);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.guide-nav a:hover,
.guide-nav a:focus-visible {
  color: var(--acid);
}

.guide-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.guide-hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(6, 6, 4, 0.98), rgba(6, 6, 4, 0.84) 52%, rgba(6, 6, 4, 0.36)),
    linear-gradient(0deg, rgba(6, 6, 4, 0.92), transparent 65%),
    url("/assets/liminal-corridor.webp") 65% center / cover;
  filter: saturate(0.75);
}

.guide-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.guide-hero-inner {
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 130px) 0 clamp(70px, 9vw, 116px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 28px;
  color: rgba(231, 223, 201, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--acid);
}

.breadcrumbs i {
  width: 16px;
  height: 1px;
  background: currentColor;
}

.guide-category {
  margin: 0 0 12px;
  color: var(--acid);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(48px, 7.1vw, 104px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.96;
  text-transform: uppercase;
}

.guide-deck {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(231, 223, 201, 0.75);
  font-size: clamp(16px, 1.6vw, 20px);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(54px, 10vw, 140px);
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 124px) 0;
}

.article-main {
  min-width: 0;
}

.answer-label,
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--acid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.answer-label::after,
.section-label::after {
  width: 46px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.45;
}

.article-lead {
  margin: 0 0 34px;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.article-copy {
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
}

.article-copy p {
  margin: 0 0 24px;
}

.fact-panel {
  position: relative;
  margin: 48px 0;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  background: var(--acid);
  overflow: hidden;
}

.fact-panel::after {
  position: absolute;
  right: -62px;
  bottom: -74px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(11, 10, 8, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(11, 10, 8, 0.04), 0 0 0 62px rgba(11, 10, 8, 0.025);
}

.fact-panel small {
  display: block;
  margin-bottom: 9px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.fact-panel strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  text-transform: uppercase;
}

.source-block {
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.source-block h2,
.related h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
}

.source-block p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.source-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.source-links a:hover {
  color: var(--ink);
  border-color: var(--acid);
  background: var(--acid);
}

.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(18, 17, 13, 0.72);
}

.aside-card h2 {
  margin: 0 0 20px;
  color: var(--acid);
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.aside-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.aside-facts div {
  display: grid;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.aside-facts div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-facts dt {
  color: rgba(231, 223, 201, 0.42);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.aside-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
}

.aside-cta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--acid);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
}

.related {
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 0 0 clamp(80px, 9vw, 124px);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.related-card {
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.related-card small {
  color: var(--acid);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.related-card strong {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.1;
  text-transform: uppercase;
}

.related-card span {
  color: var(--muted);
  font-size: 16px;
}

.related-card:hover,
.related-card:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.related-card:hover small,
.related-card:focus-visible small {
  color: var(--ink);
}

.guide-footer {
  display: grid;
  grid-template-columns: 0.7fr 1fr 0.7fr;
  gap: 30px;
  align-items: center;
  padding: 32px var(--pad);
  color: rgba(231, 223, 201, 0.42);
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-footer p {
  margin: 0;
  text-align: center;
}

.guide-footer div:last-child {
  text-align: right;
}

.hub-hero .guide-hero-inner {
  padding-top: clamp(76px, 11vw, 150px);
}

.hub-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: clamp(50px, 10vw, 140px);
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 120px) 0 54px;
}

.hub-intro h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 70px);
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.hub-intro p {
  margin: 0;
  color: var(--muted);
}

.hub-categories {
  width: min(var(--content), calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding-bottom: clamp(90px, 10vw, 140px);
}

.hub-category {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.hub-category-header {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 26px;
}

.hub-category-header span {
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.hub-category-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  text-transform: uppercase;
}

.hub-category-header small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hub-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.hub-links a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 18px 20px;
  background: var(--ink);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.hub-links a span:last-child {
  color: var(--acid);
  font-size: 18px;
}

.hub-links a:hover,
.hub-links a:focus-visible {
  color: var(--ink);
  background: var(--acid);
}

.hub-links a:hover span:last-child,
.hub-links a:focus-visible span:last-child {
  color: var(--ink);
}

@media (max-width: 860px) {
  .article-shell,
  .hub-intro {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }

  .aside-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .aside-card h2 {
    grid-column: 1 / -1;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .guide-footer div:last-child {
    text-align: center;
  }
}

@media (max-width: 620px) {
  :root {
    --pad: 20px;
  }

  .guide-header {
    min-height: 62px;
  }

  .guide-nav a:first-child {
    display: none;
  }

  .guide-hero::before {
    background:
      linear-gradient(90deg, rgba(6, 6, 4, 0.94), rgba(6, 6, 4, 0.52)),
      linear-gradient(0deg, rgba(6, 6, 4, 0.94), transparent 58%),
      url("/assets/liminal-corridor.webp") 66% center / cover;
  }

  .guide-hero h1 {
    max-width: 100%;
    overflow-wrap: break-word;
    font-size: clamp(36px, 11.3vw, 54px);
    letter-spacing: -0.065em;
  }

  .article-shell {
    gap: 46px;
  }

  .article-lead {
    font-size: 28px;
  }

  .aside-card {
    grid-template-columns: 1fr;
  }

  .aside-card h2 {
    grid-column: auto;
  }

  .related-grid,
  .hub-links {
    grid-template-columns: 1fr;
  }

  .related-card {
    min-height: 150px;
  }

  .hub-category-header {
    grid-template-columns: 38px 1fr;
  }

  .hub-category-header small {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
