@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("/assets/fonts/clash-display-medium.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/assets/fonts/cabinet-grotesk-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0a0907;
  --ink-raised: #13120f;
  --paper: #fcfffa;
  --muted: rgba(252, 255, 250, 0.68);
  --muted-soft: rgba(252, 255, 250, 0.48);
  --line: rgba(252, 255, 250, 0.13);
  --cream: #ffe9b4;
  --amber: #ffb367;
  --blue: #99d9ff;
  --page-width: 1180px;
  --article-width: 740px;
  --gutter: clamp(20px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(62, 144, 191, 0.15), transparent 34rem),
    var(--ink);
  color: var(--paper);
  font-family: "Clash Display", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 9, 7, 0.76);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--page-width));
  margin-inline: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  text-decoration: none;
}

.wordmark img {
  width: 17px;
  height: 17px;
  margin-top: 3px;
}

.header-nav,
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.header-nav a,
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 180ms ease;
}

.header-nav a:hover,
.footer-links a:hover {
  color: var(--paper);
}

.header-nav .header-cta {
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  font-weight: 700;
}

.guide-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 136px) var(--gutter) clamp(68px, 9vw, 118px);
  border-bottom: 1px solid var(--line);
}

.guide-hero::before {
  position: absolute;
  width: min(46rem, 86vw);
  aspect-ratio: 1;
  top: -62%;
  right: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 103, 0.21), rgba(255, 179, 103, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
  content: "";
}

.hero-inner {
  position: relative;
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted-soft);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumbs span[aria-hidden="true"] {
  color: rgba(255, 255, 255, 0.24);
}

.guide-kicker {
  margin: 40px 0 0;
  color: var(--amber);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 970px;
  margin: 16px 0 0;
  font-size: clamp(48px, 7.2vw, 94px);
  font-weight: 600;
  letter-spacing: -0.056em;
  line-height: 0.96;
  text-wrap: balance;
}

.guide-deck {
  max-width: 720px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.guide-meta {
  margin: 28px 0 0;
  color: var(--muted-soft);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.article-shell {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--page-width));
  margin-inline: auto;
  padding: clamp(64px, 8vw, 112px) 0 clamp(88px, 11vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, var(--article-width)) minmax(230px, 1fr);
  align-items: start;
  gap: clamp(54px, 8vw, 110px);
}

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

.article-body > :first-child {
  margin-top: 0;
}

.article-body h2,
.article-body h3 {
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  text-wrap: balance;
}

.article-body h2 {
  margin: 2.35em 0 0.7em;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.article-body h3 {
  margin: 1.8em 0 0.5em;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-body p,
.article-body li {
  color: var(--muted);
}

.article-body p {
  margin: 1em 0;
}

.article-body a:not(.button) {
  color: var(--cream);
}

.article-body ol,
.article-body ul {
  margin: 1.2em 0;
  padding-left: 1.25em;
}

.article-body li {
  margin: 0.65em 0;
  padding-left: 0.35em;
}

.lede-answer {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(153, 217, 255, 0.22);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(153, 217, 255, 0.1), rgba(255, 233, 180, 0.05));
  color: rgba(252, 255, 250, 0.85) !important;
  font-size: 20px;
  line-height: 1.55;
}

.step-list {
  margin: 28px 0;
  padding: 0;
  counter-reset: guide-step;
  list-style: none;
}

.step-list li {
  position: relative;
  margin: 0;
  padding: 23px 0 23px 66px;
  border-top: 1px solid var(--line);
  counter-increment: guide-step;
}

.step-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.step-list li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--ink);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 13px;
  font-weight: 800;
  content: counter(guide-step, decimal-leading-zero);
}

.step-list strong {
  display: block;
  margin-bottom: 3px;
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
}

.note,
.decision-box {
  margin: 30px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--amber);
  border-radius: 0 20px 20px 0;
  background: rgba(255, 179, 103, 0.08);
}

.note strong,
.decision-box strong {
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
}

.comparison-wrap {
  width: 100%;
  margin: 30px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.comparison {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
}

.comparison th,
.comparison td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.comparison th {
  color: var(--paper);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 14px;
}

.comparison th:first-child,
.comparison td:first-child {
  width: 24%;
  color: rgba(252, 255, 250, 0.86);
}

.comparison tr:last-child td {
  border-bottom: 0;
}

.article-aside {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 18px;
}

.aside-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(19, 18, 15, 0.8);
}

.aside-label {
  margin: 0 0 15px;
  color: var(--amber);
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.aside-card nav {
  display: grid;
}

.aside-card nav a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.aside-card nav a:last-child {
  border-bottom: 0;
}

.aside-card nav a:hover {
  color: var(--paper);
}

.aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.button {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--paper);
  color: var(--ink) !important;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.aside-card .button {
  width: 100%;
  margin-top: 19px;
}

.related {
  padding: clamp(74px, 9vw, 116px) var(--gutter);
  border-top: 1px solid var(--line);
  background: #11100e;
}

.related-inner {
  width: min(100%, var(--page-width));
  margin-inline: auto;
}

.related h2 {
  margin: 0;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.related-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  min-height: 230px;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, rgba(153, 217, 255, 0.08), rgba(255, 179, 103, 0.04));
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.related-card:hover {
  border-color: rgba(255, 233, 180, 0.38);
  transform: translateY(-3px);
}

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

.related-card strong {
  max-width: 430px;
  font-family: "Cabinet Grotesk", sans-serif;
  font-size: clamp(24px, 3.1vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.site-footer {
  padding: 42px var(--gutter);
  border-top: 1px solid var(--line);
  background: #0a0a09;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-links {
  justify-content: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted-soft);
  font-size: 11px;
}

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

  .article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

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

  .header-nav a:not(.header-cta) {
    display: none;
  }

  .wordmark {
    font-size: 25px;
  }

  .guide-hero {
    padding-top: 58px;
  }

  .guide-kicker {
    margin-top: 30px;
  }

  .guide-hero h1 {
    overflow-wrap: anywhere;
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
    text-wrap: pretty;
  }

  .article-aside,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .article-body h2 {
    margin-top: 2em;
  }

  .step-list li {
    padding-left: 58px;
  }

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

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

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