@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-v4-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-v4-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-v4-latin-700.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/outfit-v4-latin-900.woff2") format("woff2");
}

@font-face {
  font-family: "Paytone One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/paytone-one-v16-latin-regular.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #f9f4da;
  --muted: #b9b3a7;
  --quiet: #878077;
  --night: #0f0d0e;
  --surface: #171515;
  --surface-2: #211e1f;
  --line: #393334;
  --line-strong: #5b5253;
  --yellow: #ffbf00;
  --purple: #a98bd4;
  --green: #55cf83;
  --blue: #55bde9;
  --pink: #f19bad;
  --orange: #ff9d3d;
  --red: #ff6167;
  --content: 1160px;
  --reading: 760px;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 1.075rem;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--yellow);
  content: "";
}

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

a {
  color: var(--blue);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

::selection {
  background: var(--yellow);
  color: #181207;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--yellow);
  color: #181207;
  font-weight: 900;
}

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

.shell {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 15;
  top: 0;
  border-bottom: 1px solid rgba(91, 82, 83, 0.72);
  background: rgba(15, 13, 14, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-family: "Paytone One", "Outfit", sans-serif;
  font-size: 1.03rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  color: var(--yellow);
}

.brand__mark {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  transform: rotate(-4deg);
  border: 2px solid #17120a;
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 4px 4px 0 var(--purple);
  color: #17120a;
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.52rem 0.72rem;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--yellow);
}

.breadcrumb {
  padding-top: 2.25rem;
  color: var(--quiet);
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.4rem;
  color: var(--line-strong);
  content: "/";
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  position: relative;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  width: min(34vw, 420px);
  height: 5px;
  background: var(--purple);
  content: "";
}

.page-hero__inner {
  max-width: 900px;
  border-left: 7px solid var(--yellow);
  padding-left: clamp(1.15rem, 3vw, 2rem);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--ink);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 900;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.55rem, 7vw, 5.35rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2vw, 1.48rem);
  letter-spacing: -0.02em;
}

.lede {
  max-width: 70ch;
  margin: 0;
  color: #d9d3c5;
  font-size: clamp(1.18rem, 2.2vw, 1.43rem);
  line-height: 1.55;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.5rem;
  color: var(--quiet);
  font-size: 0.9rem;
}

.page-meta strong {
  color: var(--muted);
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, var(--reading));
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: 4rem;
  padding-bottom: 5.5rem;
}

.table-of-contents {
  align-self: start;
  position: sticky;
  top: 6.5rem;
  padding: 1.1rem 1rem 1.15rem;
  border-top: 4px solid var(--purple);
  border-radius: 0 0 10px 10px;
  background: var(--surface);
}

.table-of-contents strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-of-contents ol,
.table-of-contents ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--line-strong);
  font-size: 0.92rem;
  line-height: 1.4;
}

.table-of-contents a {
  color: var(--muted);
  text-decoration: none;
}

.table-of-contents a:hover {
  color: var(--yellow);
}

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

.article-body > section,
.article-body > .content-section {
  margin-bottom: 4.25rem;
  scroll-margin-top: 6.5rem;
}

.article-body p,
.article-body li {
  color: #d2ccbf;
}

.article-body strong {
  color: var(--ink);
}

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

.article-body li + li {
  margin-top: 0.55rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 4px solid var(--green);
  color: var(--ink);
  font-size: 1.15rem;
}

.article-body blockquote p {
  margin: 0;
  color: inherit;
}

.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  background: var(--surface);
}

.callout--privacy {
  border-left-color: var(--pink);
}

.callout--source {
  border-left-color: var(--blue);
}

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

.callout > :last-child {
  margin-bottom: 0;
}

.step-list {
  margin: 2rem 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.step-list > li {
  position: relative;
  min-height: 4rem;
  margin: 0;
  padding: 0 0 2.1rem 4.5rem;
  counter-increment: steps;
}

.step-list > li::before {
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  transform: rotate(-3deg);
  border-radius: 8px;
  background: var(--yellow);
  color: #17120a;
  content: counter(steps, decimal-leading-zero);
  font-weight: 900;
}

.step-list > li:not(:last-child)::after {
  position: absolute;
  top: 3.2rem;
  bottom: 0.2rem;
  left: 1.45rem;
  width: 2px;
  background: var(--line);
  content: "";
}

.step-list h3 {
  margin: 0 0 0.45rem;
}

.step-list p {
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.content-card {
  position: relative;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.content-card::before {
  position: absolute;
  top: 0;
  right: 1.5rem;
  left: 1.5rem;
  height: 3px;
  background: var(--purple);
  content: "";
}

.content-card:nth-child(3n + 2)::before {
  background: var(--green);
}

.content-card:nth-child(3n)::before {
  background: var(--orange);
}

.content-card h2,
.content-card h3 {
  margin-top: 0.45rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card__link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--yellow);
  font-weight: 900;
}

.idea-list {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.idea {
  padding: 1.4rem 1.5rem 1.5rem;
  border-left: 5px solid var(--green);
  background: var(--surface);
}

.idea:nth-child(even) {
  border-left-color: var(--purple);
}

.idea h3 {
  margin-bottom: 0.75rem;
}

.idea dl {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  margin: 0;
}

.idea dt {
  color: var(--ink);
  font-weight: 900;
}

.idea dd {
  margin: 0;
  color: #d2ccbf;
}

.link-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--blue);
  background: var(--surface);
}

.link-list a {
  font-weight: 700;
}

.check-list {
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0.65rem 0;
  padding-left: 1.8rem;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.faq-list {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 1.25rem 2.8rem 1.25rem 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 1.15rem;
  right: 0.2rem;
  color: var(--yellow);
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  padding: 0 2.8rem 1.25rem 0;
}

.faq-list details p {
  margin: 0;
}

.next-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.next-links a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.next-links a:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.button-link {
  display: inline-block;
  padding: 0.78rem 1rem;
  border: 2px solid var(--yellow);
  border-radius: 8px;
  background: var(--yellow);
  color: #17120a;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--purple);
}

.button-link:hover {
  transform: translate(-1px, -1px);
  color: #17120a;
  box-shadow: 6px 6px 0 var(--purple);
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 3rem;
  padding-top: 3.2rem;
  padding-bottom: 2.2rem;
}

.site-footer__intro p {
  max-width: 42ch;
  color: var(--quiet);
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer-links h2 {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links ul {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.91rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid #282324;
  color: #716a62;
  font-size: 0.82rem;
}

@media (max-width: 820px) {
  .site-header__inner {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 0.9rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .site-nav ul {
    width: max-content;
  }

  .site-nav a {
    padding: 0.35rem 0.6rem;
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .table-of-contents {
    position: static;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
  }

  .shell {
    width: min(calc(100% - 1.4rem), var(--content));
  }

  .breadcrumb {
    padding-top: 1.5rem;
  }

  .page-hero {
    padding-top: 2.2rem;
    padding-bottom: 3rem;
  }

  .page-hero__inner {
    border-left-width: 5px;
  }

  .content-layout {
    gap: 2rem;
    padding-top: 2.6rem;
  }

  .card-grid,
  .next-links,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .idea dl {
    grid-template-columns: 1fr;
  }

  .idea dt:not(:first-child) {
    margin-top: 0.45rem;
  }

  .step-list > li {
    padding-left: 3.8rem;
  }
}

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

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

@media print {
  body {
    background: #fff;
    color: #111;
  }

  .site-header,
  .site-footer,
  .table-of-contents,
  .next-links,
  .skip-link {
    display: none;
  }

  .page-hero,
  .article-body p,
  .article-body li,
  h1,
  h2,
  h3 {
    color: #111;
  }

  .content-layout {
    display: block;
  }

  a {
    color: #111;
  }
}
