.site-header { background: var(--darker); position: sticky; top: 0; z-index: 20; }
.site-nav { min-height: var(--header-height); display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); position: relative; }
.site-nav::after { content: ''; position: absolute; left: var(--fluid-gutter); right: var(--fluid-gutter); bottom: 0; height: 1px; background: var(--rule); }
.site-nav > a { color: var(--lighter); text-decoration: none; font-size: var(--fluid-text-base); font-weight: 500; }
.site-nav > a:hover, .site-nav > a[aria-current] { color: var(--brand-1); }
.site-nav > a[aria-current] { text-decoration: underline; text-underline-offset: 0.4em; }
.site-brand { margin-right: auto; display: flex; align-items: center; }
.site-logo { width: clamp(4.5rem, 6.25vw, 5.625rem); height: auto; }
.github-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.github-link svg { width: 28px; height: 28px; }
.skip-link { position: fixed; top: 0.5rem; left: 1rem; z-index: 30; transform: translateY(-200%); padding: 0.5rem 1rem; color: var(--black); background: var(--brand-1); font-size: 1rem; }
.skip-link:focus { transform: none; }
.scrollable-content { min-width: 0; }
.site-footer { margin-top: var(--fluid-space-lg); padding-block: var(--fluid-space-md); font-size: var(--fluid-text-base); color: var(--light); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--rule); padding-top: var(--fluid-space-md); }
.site-footer a { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

.release { padding-top: var(--fluid-space-md); padding-bottom: var(--fluid-space-xl); }
.release-title { font-size: clamp(3rem, 1rem + 5.8vw, 6rem); line-height: 0.95; letter-spacing: -0.04em; font-weight: 900; margin: 0 0 var(--fluid-space-md); max-width: none; }
.release-title em { font-style: normal; color: var(--brand-1); }
.release-layout { display: grid; grid-template-columns: minmax(0, 2.8fr) minmax(15rem, 1fr); grid-template-areas: 'video intro' 'video attributes' 'video install'; gap: var(--fluid-space-md); align-items: start; }
.release-intro { grid-area: intro; min-width: 0; }
.hero-summary { margin: 0 0 var(--fluid-space-sm); font-size: clamp(1.2rem, 1.7vw, 1.625rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; color: var(--lighter); max-width: 100%; }
.hero-summary code { padding: 0; border: 0; background: none; color: var(--brand-1); white-space: nowrap; }
.button-primary, .docs-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 1rem; background: var(--brand-1); color: var(--black); padding: 0.8rem 1rem; font-weight: 700; text-decoration: none; font-size: var(--fluid-text-base); min-height: 48px; }
.button-primary { width: 100%; }
.button-primary svg { width: 24px; height: 24px; flex-shrink: 0; }
.button-primary:hover, .docs-link:hover { background: var(--lighter); text-decoration: none; }
.release-video { grid-area: video; margin: 0; min-width: 0; }
.video-frame { aspect-ratio: 16 / 9; position: relative; background: var(--darker); border: 1px solid var(--rule); }
.demo-video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--darker); visibility: hidden; }
.demo-video.is-loaded { visibility: visible; }
.release-video figcaption { margin-top: 0.5rem; font-size: 0.85rem; color: var(--light); }
.release-video figcaption a { color: var(--light); }
.release-attributes { grid-area: attributes; margin: 0; font-size: var(--fluid-text-base); line-height: 1.4; }
.release-attributes dt { margin-bottom: 0.3rem; color: var(--brand-1); font-weight: 600; }
.release-attributes dt code { border: 0; background: none; padding: 0; color: inherit; font-size: 1rem; }
.release-attributes dd { margin: 0 0 var(--fluid-space-sm); }
.release-attributes dd:last-child { margin-bottom: 0; }
.release-install { grid-area: install; min-width: 0; }
.release-install h2 { font-size: 1.1rem; margin: 0 0 0.75rem; letter-spacing: -0.02em; }
.release-install code { display: block; padding: 0; border: 0; background: none; font-size: 0.8rem; line-height: 1.6; overflow-wrap: anywhere; }
.copy-button { min-width: 48px; min-height: 36px; padding: 0.3rem 0.65rem; border: 1px solid var(--rule); background: var(--dark); color: var(--lighter); font-size: 0.8rem; font-weight: 500; line-height: 1.4; }
.copy-button:hover, .copy-button[data-copied] { border-color: var(--brand-1); color: var(--brand-1); }
.release-install .copy-button { margin-top: 0.75rem; }

.feature { padding-block: var(--fluid-space-2xl); }
.feature h2 { margin-top: 0; max-width: 30ch; }
.feature > p { max-width: 70ch; }
.feature-band { background: var(--dark); }
.feature-intro { margin-top: var(--fluid-space-3xs); }
.feature .highlight { max-width: 62rem; }
.feature .docs-link { margin-block: var(--fluid-space-md); }
.nowrap { white-space: nowrap; }
.code-shell { position: relative; }
.code-shell > .copy-button { position: absolute; top: 0.65rem; right: 0.65rem; z-index: 1; }
div.highlight { margin-block: var(--fluid-space-md); }
.highlight { border-radius: 4px; background: var(--black); color: var(--lighter); font-size: var(--fluid-text-base); line-height: 1.65; padding: 0; text-align: left; max-width: 100%; overflow-x: auto; }
pre.highlight { margin: 0; padding: var(--fluid-space-xs); }
.code-shell pre.highlight { padding-top: 3.4rem; }

.reading-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5rem); padding-top: var(--fluid-space-xl); padding-bottom: var(--fluid-space-2xl); align-items: start; }
.reading-sidebar { position: sticky; top: calc(var(--header-height) + var(--fluid-space-md)); max-height: calc(100svh - var(--header-height) - 4rem); overflow: auto; padding-right: 0.5rem; }
.page-nav { font-size: 0.9rem; line-height: 1.45; }
.page-nav .nav-heading { font-size: 1rem; font-weight: 700; color: var(--lighter); margin: 0 0 1rem; }
.page-nav ul { list-style: none; padding: 0; margin: 0; }
.page-nav li { padding: 0; margin: 0 0 0.7rem; }
.page-nav li.subsection { padding-left: 0.8rem; font-size: 0.85rem; }
.page-nav a { color: var(--light); text-decoration: none; display: block; }
.page-nav a:hover, .page-nav a[aria-current] { color: var(--brand-1); }
.page-nav a[aria-current] { text-decoration: underline; }
.reading-content { min-width: 0; max-width: 50rem; font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.2rem); line-height: 1.75; }
.reading-content > h1:first-child { margin-top: 0; margin-bottom: var(--fluid-space-md); font-size: clamp(2.75rem, 3.8vw, 4.5rem); font-weight: 800; }
.reading-content h2 { margin-top: var(--fluid-space-xl); font-size: clamp(1.8rem, 2.1vw, 2.5rem); }
.reading-content h3 { font-size: clamp(1.4rem, 1.7vw, 1.85rem); }
.reading-content h4 { font-size: 1.2rem; }
.reading-content .highlight { font-size: clamp(0.8rem, 0.73rem + 0.23vw, 0.95rem); }
.reading-content pre code { white-space: pre; overflow-wrap: normal; }
.reading-content a { overflow-wrap: anywhere; }
.mobile-index { display: none; }
.content-page { padding-top: var(--fluid-space-xl); padding-bottom: var(--fluid-space-2xl); }
.content-page h1 { margin-bottom: var(--fluid-space-md); }

@media (max-width: 67.5rem) {
  .release-layout { grid-template-columns: 1fr; grid-template-areas: 'intro' 'video' 'attributes' 'install'; }
  .release-intro { display: flex; align-items: center; gap: var(--fluid-space-md); }
  .hero-summary { flex: 1; margin: 0; }
  .release-intro .button-primary { width: auto; flex-shrink: 0; }
  .release-attributes { display: grid; grid-template-columns: auto 1fr; column-gap: var(--fluid-space-md); row-gap: 0.5rem; }
  .release-attributes dd { margin: 0; }
  .release-install { max-width: 40rem; }
  .reading-layout { grid-template-columns: 11.5rem minmax(0, 1fr); gap: var(--fluid-space-lg); }
}
@media (max-width: 48rem) {
  :root { --header-height: 72px; }
  .site-nav { gap: 1.1rem; }
  .site-nav > a { font-size: 0.875rem; }
  .site-logo { width: 4.1rem; }
  .release { padding-top: var(--fluid-space-md); }
  .release-title { font-size: clamp(2.6rem, 0.7rem + 8.5vw, 4.2rem); line-height: 0.98; letter-spacing: -0.035em; }
  .release-title { text-wrap: balance; }
  .release-title br { display: none; }
  .release-intro { display: block; }
  .hero-summary { font-size: 1.15rem; line-height: 1.5; margin-bottom: 1rem; }
  .release-intro .button-primary { width: 100%; }
  .release-layout { gap: var(--fluid-space-sm); }
  .release-attributes { grid-template-columns: 1fr; gap: 0; }
  .release-attributes dt { margin-bottom: 0.2rem; }
  .release-attributes dd { margin-bottom: 1rem; }
  .release-attributes dd:last-child { margin-bottom: 0; }
  .reading-layout { display: block; padding-top: var(--fluid-space-md); }
  .reading-sidebar { display: none; }
  .mobile-index { display: block; border-bottom: 1px solid var(--rule); margin-bottom: var(--fluid-space-md); padding-bottom: var(--fluid-space-xs); }
  .mobile-index > summary { color: var(--lighter); font-size: 1rem; font-weight: 600; cursor: pointer; min-height: 32px; }
  .mobile-index .page-nav { margin-top: 1rem; }
  .mobile-index .nav-heading { display: none; }
  .reading-content h2 { overflow-wrap: anywhere; }
  .reading-content > h1:first-child { font-size: clamp(2rem, 8.8vw, 2.75rem); }
  .site-footer .container { display: block; }
  .footer-links { margin-top: 1rem; }
  .nowrap { white-space: normal; }
  .copy-button { min-height: 44px; }
  .code-shell pre.highlight { padding-top: 4rem; }
}
