:root {
  color-scheme: dark;
  --page: #111412;
  --panel: #202622;
  --text: #e1dacd;
  --paper: #eee7d9;
  --muted: #b7b0a2;
  --orange: #ffad4a;
  --line: #686a5e;
  font-family: "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--page); scroll-padding-top: 24px; }
body { margin: 0; color: var(--text); line-height: 1.7; font-size: 17px; background: radial-gradient(ellipse at top, #2a302b, transparent 600px); }
a { color: var(--orange); text-underline-offset: 4px; }
a:hover { color: var(--paper); }
:where(a, [tabindex]):focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 5; padding: 12px; background: var(--page); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.project-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding: 20px max(24px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--line); background: #171a18; }
.project-identity { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; font-weight: 700; letter-spacing: .05em; }
.project-identity small { display: block; font-size: 11px; color: var(--muted); }
.project-header nav, .project-footer { display: flex; gap: 24px; flex-wrap: wrap; }
.project-header nav a { padding: 8px 0; }
main { max-width: 1120px; margin: auto; padding: 28px 24px 64px; }
.breadcrumbs { margin-bottom: 32px; color: var(--muted); font-size: 14px; }
.guide-intro { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: center; }
h1, h2, h3 { line-height: 1.2; color: var(--paper); }
h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 24px; letter-spacing: -.025em; }
h2 { font-size: 28px; margin: 0 0 20px; }
.eyebrow, .topics { font-family: Menlo, Consolas, monospace; color: var(--orange); font-size: 12px; letter-spacing: .06em; }
.guide-lede { font-size: 19px; }
.guide-meta, .demo-note { color: var(--muted); font-size: 14px; }
.guide-art { width: 100%; height: auto; }
.topics { margin: 24px 0; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: var(--panel); }
.button-primary { color: #171a18; background: var(--orange); border-color: var(--orange); }
.button-primary:hover { color: #171a18; background: var(--paper); }
.contents { max-width: 760px; margin: 32px 0 40px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.contents ul { margin-bottom: 0; padding-left: 24px; }
.contents li { padding: 4px 0; }
.guide-content, .related { max-width: 760px; }
.guide-content section { margin-bottom: 44px; scroll-margin-top: 24px; }
p, li { overflow-wrap: anywhere; }
li { margin-bottom: 8px; }
code { font-family: Menlo, Consolas, monospace; font-size: .9em; color: var(--paper); }
pre { padding: 24px; overflow-x: auto; border-left: 3px solid var(--orange); background: #090b0a; line-height: 1.8; }
pre code { font-size: 15px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { text-align: left; color: var(--muted); padding-bottom: 12px; }
th, td { padding: 12px; border: 1px solid var(--line); vertical-align: top; }
thead { background: var(--panel); }
.related { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.related h2 { font-size: 24px; }
.project-footer { max-width: 1120px; margin: auto; padding: 24px; border-top: 1px solid var(--line); font-size: 14px; }
@media (max-width: 720px) {
  .guide-intro { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-art { display: none; }
  .project-header { padding: 16px 20px; }
  main { padding: 24px 20px 40px; }
  .guide-actions { flex-direction: column; }
  h2 { font-size: 25px; }
  .contents, .related { padding: 20px; }
  pre { padding: 16px; }
}
@media print {
  html, body { background: white; color: #111; }
  * { color: #111 !important; }
  .project-header, .project-footer, .skip-link, .guide-actions, .demo-note, .contents, .guide-art { display: none; }
  main { max-width: none; padding: 0; }
  .guide-intro { display: block; }
  .guide-content, .related { max-width: none; }
  pre, table, .related { break-inside: avoid; background: white; }
}
