@font-face {
  font-family: Roboto;
  src: url('/assets/roboto-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #1a1a1a;
  --raised: #212021;
  --line: #ffffff1a;
  --ink: #f4f2f3;
  --muted: #b4afb1;
  --quiet: #938c90;
  --accent: #d6274d;
  --accent-text: #ff9fb5;
  --accent-subtle: #332027;
  --topbar: 64px;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
ul, ol { padding: 0; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--topbar) + 24px); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-150%);
  padding: 10px 15px; border-radius: 8px; color: var(--bg); background: var(--ink);
}
.skip-link:focus { transform: none; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: #111111fa; border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--topbar); max-width: 1536px; padding: 0 30px; margin: auto;
  display: flex; align-items: center; justify-content: space-between; gap: clamp(16px, 3vw, 46px);
}
.brand { display: inline-flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { width: 91px; height: auto; }
.brand span {
  padding: 2px 0 2px 13px; border-left: 1px solid #3a3436;
  color: var(--muted); font-size: 14px; font-weight: 560; white-space: nowrap;
}
.product-links { display: flex; gap: 18px; align-items: center; flex-shrink: 0; }
.product-links a, .primary-link {
  display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 620; white-space: nowrap;
}
.watch-link { color: var(--muted); }
.watch-link:hover { color: var(--ink); }
.studio-link, .primary-link {
  background: #202020; border: 1px solid var(--line); border-radius: 10px; min-height: 38px;
  padding: 0 12px;
}
.studio-link:hover, .primary-link:hover { background: #2a2527; border-color: #624452; }
.primary-link { margin-top: 12px; min-height: 42px; }

.site-layout {
  max-width: 1536px; padding: 0 30px; margin: 0 auto; display: grid;
  grid-template-columns: 222px minmax(0, 1fr); gap: clamp(28px, 3.5vw, 54px);
}
.sidebar {
  align-self: start; position: sticky; top: var(--topbar);
  padding: 30px 16px 28px 0;
  max-height: calc(100svh - var(--topbar)); overflow: auto; scrollbar-width: thin;
}
.nav-groups, .nav-articles, .breadcrumbs ol, .toc ul { margin: 0; list-style: none; }
.nav-groups { margin-top: 15px; display: grid; gap: 4px; }
.nav-link {
  display: flex; gap: 12px; align-items: center; min-height: 40px;
  padding: 7px 11px; border-radius: 9px; font-size: 14px; font-weight: 550; color: #ddd8da;
}
.nav-link svg { color: var(--muted); }
.nav-link:hover { background: var(--surface); color: var(--ink); }
.nav-link.is-current { background: var(--accent-subtle); color: var(--ink); }
.nav-link.is-current svg { color: var(--accent-text); }
.nav-articles { margin: 7px 0 10px 19px; border-left: 1px solid var(--line); padding-left: 11px; }
.nav-articles a {
  display: block; padding: 7px 7px 7px 11px; line-height: 1.35;
  color: var(--muted); font-size: 13px; border-radius: 6px;
}
.nav-articles a:hover { color: var(--ink); background: var(--surface); }
.nav-articles a[aria-current='page'] { color: var(--accent-text); font-weight: 650; }
.mobile-nav { display: none; }
.site-content { min-width: 0; padding-top: 30px; }
main { min-height: 58vh; }
.site-footer {
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 12px 24px; padding: 22px 0 30px; margin-top: 46px;
  font-size: 13px; color: var(--muted);
}
.site-footer nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.hero {
  position: relative; isolation: isolate; min-height: 269px; display: flex; align-items: center;
  border-radius: 20px; border: 1px solid #633342;
  padding: clamp(24px, 4vw, 55px);
  background: radial-gradient(ellipse at 95% 15%, #43222e 0, #281a20 38%, #20191b 66%, #1b1718 100%);
}
.hero-copy { position: relative; z-index: 2; width: min(100%, 640px); }
.hero h1 { font-size: clamp(34px, 4.5vw, 57px); font-weight: 740; line-height: 1.06; margin: 0; letter-spacing: -.039em; }
.hero p { margin: 13px 0 24px; color: #d7cbd0; line-height: 1.55; font-size: 16px; }
.hero-copy .search-form { width: min(100%, 540px); }
.hero-art {
  position: absolute; inset: 0 0 0 68%; overflow: hidden; pointer-events: none;
  border-radius: 0 19px 19px 0; display: grid; place-items: center;
}
.hero-orbit { position: absolute; top: 50%; left: 57%; border: 1px solid #ff8eaa22; border-radius: 50%; transform: translate(-50%, -50%); }
.hero-orbit-outer { width: 317px; height: 317px; box-shadow: 0 0 0 28px #ff719508; }
.hero-orbit-inner { width: 242px; height: 242px; box-shadow: inset 0 0 45px #d6274d1f; }
.hero-sheet {
  position: absolute; width: 119px; height: 140px; left: calc(57% - 60px); top: calc(50% - 70px);
  border: 1px solid #ffadc950; border-radius: 15px;
}
.hero-sheet-behind { transform: translate(21px,-9px) rotate(18deg); background: #372530; }
.hero-sheet-front {
  transform: translate(-13px,7px) rotate(-12deg);
  background: linear-gradient(135deg, #67404e, #35262c 55%); box-shadow: 0 13px 28px #11090f77;
  padding: 17px 15px 16px; display: grid; grid-template-rows: 50px 5px 5px; align-content: center; gap: 13px;
}
.hero-mark { width: 47px; height: 47px; display: grid; place-items: center; border: 1px solid #f67f9b56; border-radius: 12px; background: #371e29; }
.hero-mark img { width: 18px; height: 20px; }
.hero-rule { background: #d993a75c; border-radius: 5px; width: 75px; height: 5px; }
.hero-rule-short { width: 48px; background: #d993a736; }

.search-form { position: relative; min-width: 0; flex: 1 1 340px; }
.search-compact { max-width: 375px; }
.search-field {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 52px;
  padding: 0 7px 0 15px; background: #161416; border: 1px solid #5a454d; border-radius: 11px;
  color: #c0b8bd; box-shadow: 0 3px 14px #0002;
}
.search-field:focus-within { border-color: var(--accent-text); }
.search-compact .search-field { min-height: 39px; border-color: var(--line); padding-left: 12px; box-shadow: none; gap: 8px; }
.search-compact .search-field:focus-within { border-color: var(--accent-text); }
.search-field input {
  min-width: 0; flex: 1; border: 0; background: transparent; outline: none;
  padding: 9px 0; color: var(--ink); font-size: 15px;
}
.search-field input::placeholder { color: #b5aaaf; opacity: 1; }
.search-compact input { font-size: 14px; }
.search-field kbd {
  color: #bdb5b9; border: 1px solid #494146; border-radius: 5px;
  padding: 3px 5px; font-size: 11px; font-family: inherit; white-space: nowrap;
}
.search-go {
  display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px;
  background: var(--accent); color: #fff; flex: 0 0 auto;
}
.search-go:hover { background: #e3385d; }
.search-compact .search-go { color: var(--muted); background: transparent; width: 28px; height: 28px; }
.search-compact .search-go:hover { background: #2b2528; color: var(--ink); }
.search-suggestions {
  position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 6px);
  list-style: none; margin: 0; padding: 5px;
  background: #1d1a1d; border: 1px solid #523e46; border-radius: 11px; box-shadow: 0 14px 35px #0008;
}
.search-suggestions a { display: grid; gap: 3px; padding: 9px 10px; border-radius: 7px; }
.search-suggestions a:hover, .search-suggestions a[data-selected] { background: var(--accent-subtle); }
.suggestion-title { font-size: 14px; line-height: 1.3; font-weight: 600; }
.suggestion-topic { color: var(--muted); font-size: 12px; }
.search-page { max-width: 820px; }
.search-page-box { max-width: 580px; }
.search-status { margin: 21px 0 12px; color: var(--muted); font-size: 14px; }
.search-topic { color: var(--accent-text); font-size: 12px; }

.landing-section { margin-top: 33px; }
.landing-section h2 { margin: 0 0 13px; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card {
  position: relative; display: flex; gap: 12px; align-items: flex-start;
  min-height: 107px; padding: 17px 15px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--surface); transition: border-color .17s ease, background .17s ease, transform .17s ease;
}
.topic-card:hover { transform: translateY(-2px); border-color: #825065; background: #211c1e; }
.topic-card-copy { min-width: 0; padding-top: 2px; padding-right: 13px; }
.topic-card h3 { font-size: 16px; line-height: 1.3; margin: 0; font-weight: 690; letter-spacing: -.01em; }
.topic-card p { color: var(--muted); margin: 6px 0 0; font-size: 13px; line-height: 1.45; }
.topic-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px;
  border: 1px solid #ffffff0d; border-radius: 50%; color: #f9bdca; background: var(--accent-subtle);
}
.topic-arrow { color: var(--quiet); position: absolute; top: 17px; right: 12px; }
.topic-card:hover .topic-arrow { color: var(--accent-text); }
.popular-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.article-list { display: grid; gap: 9px; max-width: 850px; }
.article-card {
  display: grid; grid-template-columns: 21px minmax(0, 1fr) 15px; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px;
  min-height: 49px; line-height: 1.38;
}
.article-card:hover { background: #232021; border-color: #603e4b; }
.article-card > svg { color: var(--muted); }
.article-card:hover > svg { color: var(--accent-text); }
.article-card strong { display: block; font-weight: 620; }
.article-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.article-card-compact { font-size: 14px; padding-block: 11px; }

.breadcrumbs { margin: 0 0 20px; color: var(--muted); }
.breadcrumbs ol, .breadcrumbs li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumbs li { font-size: 13px; line-height: 1.4; }
.breadcrumbs a:hover { color: var(--accent-text); text-decoration: underline; }
.breadcrumbs svg { color: var(--quiet); }
.breadcrumbs span { color: var(--ink); }
.topic-heading { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
.topic-heading .topic-icon { width: 49px; height: 49px; margin-top: 2px; }
.topic-heading h1, .article-heading h1 {
  margin: 0; font-size: clamp(29px, 3.25vw, 45px); line-height: 1.11; font-weight: 740; letter-spacing: -.032em;
  overflow-wrap: anywhere;
}
.topic-heading p, .article-heading p { margin: 11px 0 0; color: var(--muted); line-height: 1.6; }
.article-heading { margin: 0 0 25px; max-width: 820px; }
.reading-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 192px;
  grid-template-areas: 'body toc'; align-items: start; gap: clamp(20px, 4vw, 54px);
}
.toc { grid-area: toc; position: sticky; top: calc(var(--topbar) + 26px); padding: 3px 0 3px 14px; border-left: 1px solid var(--line); }
.toc h2 { margin: 0 0 10px; font-size: 13px; font-weight: 720; }
.toc ul { display: grid; gap: 8px; }
.toc a { color: var(--muted); line-height: 1.4; font-size: 13px; }
.toc a:hover { color: var(--accent-text); text-decoration: underline; }
.article-body { grid-area: body; min-width: 0; max-width: 770px; font-size: 16px; line-height: 1.64; color: #dbd6d8; }
.article-body section + section { margin: 26px 0 0; padding: 23px 0 0; border-top: 1px solid var(--line); }
.article-body h2 { margin: 0 0 10px; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.article-body p { margin: 0 0 11px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--ink); }
.article-body a:not(.article-card) { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:not(.article-card):hover { color: #ffd0dc; }
.article-body :is(ul, ol) { margin: 0 0 12px; padding-left: 23px; }
.article-body :is(ul, ol) li + li { margin-top: 6px; }
.article-body code {
  font-size: .85em; padding: 2px 5px; color: #f3ced8; background: #282026; border-radius: 4px;
  overflow-wrap: anywhere;
}
.article-note { margin: 15px 0 0; padding: 11px 14px; background: #271b22; border: 1px solid #633747; border-radius: 9px; }
.article-note p { margin: 0; }
.article-table { margin: 12px 0; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.article-table table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.38; }
.article-table :is(td, th) { text-align: left; vertical-align: top; padding: 10px 11px; }
.article-table thead { color: var(--ink); background: #222022; }
.article-table tbody { background: #171617; }
.article-table tbody tr { border-top: 1px solid var(--line); }
.article-table tbody th { font-weight: 620; color: var(--ink); }
.article-columns { columns: 2; column-gap: 26px; }
.article-columns li { break-inside: avoid; }
.related-guides .article-card + .article-card { margin-top: 7px; }

@media (max-width: 1180px) {
  .site-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 24px; }
  .topic-card { padding-inline: 12px; gap: 10px; }
  .topic-card h3 { font-size: 15px; }
  .topic-arrow { display: none; }
  .topic-card-copy { padding-right: 0; }
  .hero-art { inset-inline-start: 72%; }
}
@media (max-width: 1040px) {
  .reading-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'toc' 'body'; gap: 22px; }
  .toc { position: static; }
  .toc ul { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); column-gap: 18px; }
  .hero-art { display: none; }
}
@media (max-width: 850px) {
  .site-layout { display: block; padding-inline: 22px; }
  .topbar-inner { padding-inline: 22px; gap: 20px; }
  .sidebar { display: none; }
  .mobile-nav { display: block; margin: 10px 0 0; border-bottom: 1px solid var(--line); }
  .mobile-nav summary {
    display: inline-flex; align-items: center; gap: 9px; padding: 8px 4px 11px;
    color: var(--muted); font-size: 14px; font-weight: 600; list-style: none;
  }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav[open] summary svg:last-child { transform: rotate(180deg); }
  .mobile-nav .help-nav { padding: 0 0 11px; }
  .mobile-nav .nav-groups { margin-top: 4px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .site-content { padding-top: 21px; }
  .watch-link { display: none !important; }
  .hero { min-height: 229px; }
}
@media (max-width: 620px) {
  :root { --topbar: 108px; }
  .site-layout, .topbar-inner { padding-inline: 15px; }
  .topbar-inner {
    min-height: 56px; padding-block: 10px; display: grid;
    grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px;
  }
  .topbar-inner .search-compact { max-width: none; grid-column: 1 / -1; grid-row: 2; }
  .brand { gap: 8px; }
  .brand img { width: 74px; }
  .brand span { padding-left: 8px; font-size: 12px; }
  .studio-link { padding-inline: 8px; font-size: 12px; min-height: 32px; gap: 3px !important; }
  .hero { padding: 24px 17px; min-height: 196px; border-radius: 14px; }
  .hero h1 { font-size: clamp(31px, 8.2vw, 42px); }
  .hero p { margin: 9px 0 16px; font-size: 14px; }
  .search-field kbd { display: none; }
  .search-field { padding-left: 11px; }
  .search-go { width: 33px; height: 33px; }
  .topic-grid, .popular-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .topic-card { min-height: 74px; padding: 12px; align-items: center; }
  .topic-arrow { display: block; top: 50%; transform: translateY(-50%); }
  .topic-card-copy { padding-right: 18px; padding-top: 0; }
  .topic-card p { margin-top: 3px; }
  .landing-section { margin-top: 25px; }
  .landing-section h2 { margin-bottom: 10px; }
  .breadcrumbs { margin-bottom: 16px; }
  .topic-heading { gap: 11px; }
  .topic-heading .topic-icon { width: 38px; height: 38px; }
  .topic-heading .topic-icon svg { width: 20px; height: 20px; }
  .article-body { font-size: 15px; }
  .article-table :is(td, th) { padding: 8px; }
  .article-columns { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.search-result-card { grid-template-columns: minmax(0, 1fr) 18px; }
.search-result-card .search-topic { display: block; margin-bottom: 4px; }
.search-result-arrow { color: var(--muted); font-size: 21px; }
