:root {
  color-scheme: dark;
  --ink: #dbe4ef;
  --heading: #f1f5fb;
  --muted: #a7b5c8;
  --accent: #72d4cf;
  --line: #2d3b4d;
  --surface: #182333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #101722;
  line-height: 1.75;
  font-size: 17px;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f4b45b; outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.skip-link {
  position: absolute;
  z-index: 10;
  top: -5rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--surface);
}
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .page-shell { width: min(100% - 4rem, 1260px); margin-inline: auto; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: .7rem; font-size: 1.25rem; font-weight: 750; }
.brand, .external-nav a { color: var(--ink); text-decoration: none; }
.external-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; font-size: .85rem; font-weight: 600; }
.external-nav a:hover { color: var(--accent); text-decoration: underline; }
.product-nav { display: flex; gap: .3rem 1.8rem; flex-wrap: wrap; padding-block: 1.3rem; }
.product-nav a { padding-block: .25rem; font-size: .87rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.product-nav a[aria-current="page"] { color: var(--accent); box-shadow: 0 2px var(--accent); }
.product-nav a:hover { color: var(--accent); }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.3rem 2.7rem;
  border-radius: 10px;
  background: #182435;
  color: #fff;
}
.eyebrow { margin: 0 0 .75rem; color: #adcbd0; font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 20ch; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.18; letter-spacing: -.035em; }
.header-art { width: 270px; flex-shrink: 0; border-radius: 5px; }
.docs-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 3.4rem; margin-top: 3.4rem; }
.contents { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; padding: .25rem .7rem .5rem 0; }
.contents summary { cursor: pointer; font-weight: 750; font-size: .82rem; }
.contents ol { list-style: none; padding: .7rem 0 0; margin: 0; }
.contents li { margin: 0; }
.contents li a { display: block; border-left: 2px solid var(--line); padding: .45rem .85rem; font-size: .8rem; line-height: 1.5; text-decoration: none; color: var(--muted); }
.contents li a:hover, .contents li a:focus-visible { color: var(--accent); border-left-color: var(--accent); background: var(--surface); }
.back-to-top { display: inline-block; margin: 1.3rem 0 0 .9rem; font-size: .76rem; }
main { min-width: 0; }
.documentation { overflow-wrap: anywhere; }
.documentation section { margin-bottom: 3.7rem; }
.documentation section + section { border-top: 1px solid var(--line); padding-top: 2.4rem; }
.documentation h2 { margin: 0 0 1.2rem; font-size: 1.6rem; line-height: 1.3; letter-spacing: -.025em; color: var(--heading); scroll-margin-top: 1.5rem; }
.documentation p { margin: 0 0 1.5rem; }
.documentation strong { font-weight: 650; color: var(--heading); }
.documentation ul, .documentation ol { padding-left: 1.5rem; }
.screenshot { margin: 1.6rem 0 2rem; }
.screenshot a { display: block; width: fit-content; max-width: 100%; border-radius: 5px; }
.screenshot img { border-radius: 5px; background: #202020; }
.screenshot a:hover { outline: 2px solid var(--accent); outline-offset: 4px; }
.video { margin: 1.8rem 0 2rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.video-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--muted); }
.video .video-title { margin: .35rem 0 1.1rem; font-weight: 650; line-height: 1.5; }
.video-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.2rem; font-size: .82rem; }
.video-play { border: 0; border-radius: 4px; padding: .55rem 1rem; color: #102425; background: var(--accent); cursor: pointer; font-weight: 650; }
.video-play::before { content: "▶"; margin-right: .6rem; font-size: .75em; }
.video-play:hover { background: #91e1dc; }
.video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; margin-bottom: 1rem; background: #111; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1.5rem; border-top: 1px solid var(--line); padding-block: 1.6rem 2.5rem; font-size: .78rem; color: var(--muted); }
.heading-description { margin: 1rem 0 0; max-width: 48ch; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem; margin-block: 2.5rem 3.4rem; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); color: var(--ink); text-decoration: none; }
.project-card:hover, .project-card:focus-visible { border-color: var(--accent); }
.project-card-preview { display: grid; place-items: center; aspect-ratio: 16 / 9; background: #101722; border-bottom: 1px solid var(--line); }
.project-card-preview img { width: 100%; }
.project-card-content { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.project-card h2 { margin: 0 0 .75rem; color: var(--heading); font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.project-card p { margin: 0 0 1.4rem; color: var(--muted); font-size: .93rem; }
.project-card-link { margin-top: auto; color: var(--accent); font-size: .85rem; font-weight: 650; }
.project-card:hover .project-card-link { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1000px) {
  .header-art { width: 220px; }
  .docs-layout { grid-template-columns: 195px minmax(0, 1fr); gap: 2rem; }
  .page-heading { padding: 2rem; }
}

@media (max-width: 760px) {
  :root { font-size: 16px; }
  .header-inner, .page-shell { width: min(100% - 2.25rem, 1260px); }
  .header-inner { min-height: 76px; flex-wrap: wrap; padding-block: .9rem; gap: .65rem 1.5rem; }
  .external-nav { gap: 1.2rem; }
  .product-nav { gap: .6rem 1.3rem; padding-block: 1rem; }
  .page-heading { gap: 1.5rem; padding: 1.6rem; flex-wrap: wrap; }
  .header-art { width: 180px; }
  .docs-layout { display: block; margin-top: 1.5rem; }
  .contents { position: static; max-height: none; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 2rem; background: var(--surface); }
  .contents li a { padding-block: .65rem; font-size: .88rem; }
  .contents .back-to-top { display: none; }
  .documentation h2 { font-size: 1.5rem; }
  .documentation section { margin-bottom: 2.5rem; }
  .documentation section + section { padding-top: 1.8rem; }
  .video { padding: 1.1rem; }
  .project-grid { grid-template-columns: 1fr; gap: 1.5rem; margin-block: 1.5rem 2.5rem; }
  .project-card-content { padding: 1.25rem; }
}

@media print {
  :root {
    color-scheme: light;
    --ink: #243044;
    --heading: #172334;
    --muted: #586579;
    --accent: #116c70;
    --line: #dce3e8;
    --surface: #f4f7f8;
    font-size: 11pt;
    color: #000;
    background: #fff;
  }
  .site-header, .product-nav, .contents, .site-footer, .header-art, .video-play, .skip-link { display: none !important; }
  .page-shell { width: 100%; }
  .page-heading { padding: 0 0 1.5rem; background: none; color: #000; }
  .eyebrow { color: #444; }
  .docs-layout { display: block; margin-top: 1rem; }
  .documentation h2 { break-after: avoid; }
  .screenshot, .video { break-inside: avoid; }
  .screenshot img { max-height: 80vh; width: auto; }
  .video iframe { display: none; }
  .video a::after { content: " (" attr(href) ")"; }
  .project-card { break-inside: avoid; }
}
