/* The app's tokens (src/ui/tokens.css), scaled up: this is a page read at
   arm's length, not a dense desktop UI, so the base size and spacing grow.
   Light is the base; dark redefines the same names. */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --border: #d9dde2;
  --border-strong: #b8bec6;
  --text: #1c2128;
  --text-muted: #59636e;
  --accent: #0969da;
  --accent-strong: #0757ba;
  --accent-text: #ffffff;
  --warn: #9a6700;
  --warn-bg: #fff8c5;
  --shadow: 0 1px 2px rgba(27, 31, 36, 0.08);
  --radius: 6px;
  --radius-lg: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --border: #2b323b;
    --border-strong: #3d4651;
    --text: #e6e9ee;
    --text-muted: #9aa4b1;
    --accent: #4c9dff;
    --accent-strong: #6eb0ff;
    --accent-text: #0b1420;
    --warn: #e3b341;
    --warn-bg: #2d2205;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 20px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main { max-width: 760px; margin: 0 auto; padding-block: 56px 72px; }

section { margin-top: 48px; }

h1 { font-size: 34px; line-height: 1.2; margin: 16px 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 0 0 16px; letter-spacing: -0.01em; }
h3 { font-size: 15px; margin: 0 0 8px; color: var(--text-muted); font-weight: 600; }
p { margin: 0 0 12px; }

a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); }
a:hover { color: var(--accent-strong); }

code { font: 0.875em var(--mono); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }
pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
pre code { border: 0; background: none; padding: 0; font-size: 12.5px; }

.muted { color: var(--text-muted); font-size: 14px; }

/* --- hero ---------------------------------------------------------------- */
.hero { text-align: center; }
.hero-icon { border-radius: 16px; box-shadow: var(--shadow); }
.tagline { color: var(--text-muted); font-size: 17px; margin: 0; }

/* --- the one big button -------------------------------------------------- */
.card {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 16px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  text-decoration: none;
}
.button:hover { background: var(--accent-strong); color: var(--accent-text); }
.button:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.meta { margin: 12px 0 0; font-size: 13.5px; color: var(--text-muted); }
.meta code { font-size: 12px; }

.caveat {
  margin: 16px auto 0;
  max-width: 46ch;
  background: var(--warn-bg);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text);
  text-align: left;
}

/* --- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.file { font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
td.actions { text-align: right; white-space: nowrap; }
td.actions a + a { margin-left: 12px; }
tbody tr:last-child td { border-bottom: 0; }

details { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 16px; }
summary { cursor: pointer; font-size: 14px; color: var(--text-muted); }
summary:hover { color: var(--text); }
details h3 { margin-top: 20px; }

/* --- install notes ------------------------------------------------------- */
.notes { margin: 0; }
.notes dt { font-weight: 600; margin-top: 18px; }
.notes dt:first-child { margin-top: 0; }
.notes dd { margin: 4px 0 0; color: var(--text-muted); }
.notes + p { margin-top: 24px; }

footer { margin-top: 56px; border-top: 1px solid var(--border); padding-top: 20px; }

@media (max-width: 520px) {
  main { padding-block: 36px 48px; }
  h1 { font-size: 28px; }
  .card { padding: 22px 18px; }
  th, td { padding: 8px 8px; }
  .file { display: none; }
}
