/* PSVR2-DriverKit website. No framework, no web fonts, no JavaScript. */
:root {
  --bg: #0b1020;
  --bg-2: #11183a;
  --card: #141c3d;
  --line: #26336a;
  --text: #e8ecfa;
  --muted: #a9b4d8;
  --accent: #5b86ff;
  --accent-2: #8fb0ff;
  --stable: #3ecf8e;
  --exp: #f5b942;
  --no: #f07178;
  --code: #0a0f22;
  --radius: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fd;
    --bg-2: #ffffff;
    --card: #ffffff;
    --line: #d5dcef;
    --text: #141a2e;
    --muted: #4c5677;
    --accent: #2f5bea;
    --accent-2: #2448c2;
    --stable: #178a57;
    --exp: #9a6400;
    --no: #b8323b;
    --code: #eef1fa;
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", "Noto Sans", Cantarell, Ubuntu, sans-serif;
}
a { color: var(--accent-2); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
code, pre { font-family: ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", monospace; font-size: 0.92em; }
code { background: var(--code); padding: 0.1em 0.35em; border-radius: 5px; }
pre { background: var(--code); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); overflow-x: auto; }
pre code { background: none; padding: 0; }
/* Long identifiers (XR_EXT_eye_gaze_interaction) may wrap inside cards and table cells. */
.card code, td code, li code { overflow-wrap: anywhere; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg-2); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; font-size: 1.08rem; }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 4px 2px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.nav-gh { color: var(--accent-2) !important; }

main { padding-top: 26px; padding-bottom: 48px; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin: 0.2em 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.15rem; margin: 1.4em 0 0.4em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; padding: 26px 0 10px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); margin-bottom: 0.1em; }
.hero .subtitle { font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: var(--accent-2); margin: 0 0 0.7em; font-weight: 600; }
.hero img { border-radius: var(--radius); border: 1px solid var(--line); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--accent); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { color: var(--text); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.badge-row li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 0.88rem; color: var(--muted); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; }
.card h3 { margin-top: 0; }
.card p { margin: 0.4em 0; color: var(--muted); }
.card a.more { font-weight: 600; font-size: 0.95rem; }

/* Status labels */
.status { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; padding: 1px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.status.stable { color: var(--stable); }
.status.exp { color: var(--exp); }
.status.no { color: var(--no); }
.status.part { color: var(--accent-2); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-2); font-size: 0.92rem; }
tr:last-child td { border-bottom: 0; }

.note { border-left: 4px solid var(--exp); background: var(--card); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; margin: 16px 0; }
.note.info { border-left-color: var(--accent); }
ol.steps > li { margin-bottom: 0.7em; }
figure { margin: 18px 0; }
figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.footer-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-links li { margin-bottom: 6px; }
.small { font-size: 0.85rem; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}
