:root {
  color-scheme: dark;
  --background: #111719;
  --border: #354146;
  --text: #f0f3ed;
  --muted: #a6b0b3;
  --accent: #d0f58a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--text); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2 { margin: 0; }
h1 { font-size: 30px; font-weight: 600; line-height: 1.3; }
h2 { margin-bottom: 18px; font-size: 20px; font-weight: 600; }
p { color: var(--muted); }
.page-shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 8px 16px; background: var(--background); }
.skip-link:focus { top: 8px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 0 28px; border-bottom: 1px solid var(--border); }
header p { margin-top: 6px; }
nav { display: flex; gap: 24px; }
main { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: start; gap: 40px; padding: 32px 0; }
section + section { margin-top: 32px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; list-style: none; padding: 0; margin: 0; }
.link-grid a { font-weight: 600; }
.link-grid p { margin-top: 4px; font-size: 14px; }
.preview-grid { gap: 28px 24px; }
.preview-grid a { display: block; }
.preview-grid img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--border); border-radius: 6px; margin-bottom: 10px; background: #080d10; }
.preview-grid a:hover img { border-color: var(--accent); }
.browser-note { margin-top: 28px; font-size: 14px; }
.code-note { min-width: 0; padding-left: 28px; border-left: 1px solid var(--border); }
.code-note h2 { font-size: 16px; }
.code-note pre { margin: 0 0 18px; overflow: auto; font-size: 12px; line-height: 1.8; tab-size: 4; }
.code-note code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.code-note > a { font-size: 14px; }
.syntax-accent { color: var(--accent); }
.syntax-dim { color: var(--muted); }
footer { display: flex; gap: 24px; border-top: 1px solid var(--border); padding: 20px 0 28px; font-size: 14px; }
footer a { color: var(--muted); }
@media (max-width: 900px) {
  main { gap: 32px; grid-template-columns: 1fr; }
  .code-note { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .page-shell { width: calc(100% - 32px); }
  header { align-items: start; flex-direction: column; gap: 16px; padding-top: 24px; }
  main { grid-template-columns: 1fr; gap: 32px; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .code-note { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 360px) {
  .link-grid { grid-template-columns: 1fr; }
}
