* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--space-8); }
body { margin: 0; color: var(--color-text); background: var(--color-canvas); font-family: var(--font-sans); font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 4px; }
button, select { font: inherit; }
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--text-display); letter-spacing: -.055em; }
h2 { font-size: var(--text-3xl); letter-spacing: -.035em; }
h3 { font-size: var(--text-lg); letter-spacing: -.02em; }
em { font-style: normal; }
p { text-wrap: pretty; }
a, button, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
.icon { flex: 0 0 auto; width: 20px; height: 20px; }
.section-shell, .site-header, footer { max-width: var(--site-width); margin-inline: auto; padding-inline: var(--space-12); }
.eyebrow { color: var(--color-brand-hover); font-size: var(--text-xs); font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: var(--space-4); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: var(--space-3) var(--space-6); border: 1px solid transparent; border-radius: var(--radius-pill); background: var(--color-brand); color: #fff; font-size: var(--text-sm); font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease; }
.button:hover { background: var(--color-brand-hover); }
.button-secondary { color: var(--color-text); border-color: #c7d3e0; background: transparent; }
.button-secondary:hover { background: var(--color-surface-muted); border-color: #9baec4; }
.button[aria-disabled="true"] { background: var(--color-disabled); cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--control-height); color: var(--color-brand-hover); text-decoration: none; font-size: var(--text-sm); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.skip { position: absolute; top: -100px; left: var(--space-4); z-index: 10; background: var(--color-text); color: white; padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); }
.skip:focus { top: var(--space-3); }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header { display: flex; align-items: center; gap: 64px; min-height: 96px; }
.brand { font-size: 36px; font-weight: 750; line-height: 1; letter-spacing: -.06em; text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--color-text-secondary); }
.site-header nav a:hover { color: var(--color-brand); }
.site-header > .button { margin-left: auto; min-height: 40px; padding: 10px 20px; font-size: 12px; }
.site-header > .button .icon { width: 16px; height: 16px; }
footer { display: flex; align-items: center; flex-wrap: wrap; gap: 40px; padding-block: 28px 40px; }
footer .brand { font-size: 26px; }
footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer nav a { font-size: 12px; color: var(--color-text-secondary); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
footer p { margin-left: auto; font-size: 12px; color: var(--color-text-muted); }
/* Shared documentation components use the same foundation as the landing page. */
.article-layout { display: grid; grid-template-columns: 13rem minmax(0, var(--reading-width)); gap: var(--space-16); max-width: var(--site-width); padding: var(--space-16) var(--space-8); margin-inline: auto; }
.article-layout aside { position: sticky; top: var(--space-8); align-self: start; }
.article-layout aside a { display: block; padding-block: var(--space-2); margin-bottom: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); text-decoration: none; }
.article-layout aside a[aria-current], .article-layout aside a:hover { color: var(--color-brand); }
.article-layout aside a[aria-current] { font-weight: 600; }
.prose { min-width: 0; }
.prose h1 { font-size: clamp(2.5rem, 4vw, 3.5rem); margin-bottom: var(--space-6); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-12); margin-bottom: var(--space-4); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p, .prose li { color: var(--color-text-secondary); line-height: 1.8; }
.prose p { margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-3); }
.prose a { color: var(--color-brand-hover); }
.prose blockquote { margin: var(--space-6) 0; padding: var(--space-6); background: var(--color-brand-tint); border-left: 2px solid var(--color-brand); border-radius: 0 var(--radius-md) var(--radius-md) 0; line-height: 1.7; }
.prose figure { margin-block: var(--space-8); }
.prose figure img { border-radius: var(--radius-md); }
.prose figcaption { color: var(--color-text-muted); font-size: var(--text-xs); padding-top: var(--space-3); }
.prose code { font: .85em var(--font-mono); background: var(--color-surface-muted); padding: var(--space-1); border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.prose ol { padding-left: var(--space-6); }
.prose details { padding-block: var(--space-4); border-bottom: 1px solid var(--color-border); }
.prose summary { cursor: pointer; font-weight: 600; }
.prose details p { margin-top: var(--space-4); margin-bottom: 0; }
.prose .verified, .verified { color: var(--color-text-muted); font-size: var(--text-xs); padding-block: var(--space-3); border-block: 1px solid var(--color-border); margin-bottom: var(--space-8); }
.article-next { margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.article-next a { display: block; margin-top: var(--space-3); font-size: var(--text-sm); }
.tutorial-index { max-width: var(--site-width); padding: var(--space-16) var(--space-8); margin-inline: auto; }
.tutorial-index > p:not(.eyebrow) { max-width: 34rem; color: var(--color-text-secondary); margin-top: var(--space-6); }
.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-block: var(--space-12); }
.tutorial-card { display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); text-decoration: none; }
.tutorial-card:hover { border-color: var(--color-brand); }
.card-kicker { font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-6); }
.tutorial-card h3 { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.tutorial-card p { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-6); }
.card-action { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-brand-hover); margin-top: auto; }

@media (max-width: 1000px) {
  .section-shell, .site-header, footer { padding-inline: 32px; }
  .site-header { gap: 40px; }
  .article-layout { grid-template-columns: 11rem minmax(0, 1fr); gap: 32px; }
  .tutorial-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section-shell, .site-header, footer { padding-inline: 24px; }
  .site-header { gap: 24px; min-height: 80px; }
  .site-header .brand { font-size: 30px; }
  .site-header nav { display: none; }
  .site-header > .button { min-height: 38px; padding: 9px 16px; }
  h2 { font-size: 30px; }
  footer { gap: 24px; padding-block: 20px 32px; }
  footer nav { flex: 1; gap: 8px 20px; }
  footer p { margin-left: 0; flex-basis: 100%; }
  .article-layout { display: block; padding: 32px 24px 48px; }
  .article-layout aside { position: static; display: none; }
  .tutorial-index { padding: 32px 24px 48px; }
  .tutorial-index h1 { font-size: 44px; }
  .tutorial-grid { grid-template-columns: 1fr; margin-block: 32px; }
}
@media (max-width: 360px) {
  .section-shell, .site-header, footer { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
