/* laptrace project site. Colours are web/src/theme.css's tokens, copied here
   because the site is deployed on its own. System fonts only. */

:root {
  color-scheme: dark;
  --bg: #0d1015;
  --sunken: #0a0d11;
  --panel: #141920;
  --surface: #1a2029;
  --surface-2: #212833;
  --line: #232a35;
  --line-2: #2d3542;
  --text: #e8ebf1;
  --text-2: #c4cad5;
  --muted: #8b93a3;
  --link: #9ecbff;
  --a: #4c9aff;
  --gain: #3ecf7a;
  --pb: #f5c542;
  --accent: #2f6fe0;
  --accent-hover: #4280ee;
  --focus-ring: #7ab4ff;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --r-md: 6px;
  --r-lg: 10px;
  --r-pill: 999px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 16px/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 3px; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--surface); padding: 1px 5px; border-radius: 4px; color: var(--text); }
h1, h2, h3 { color: var(--text); line-height: 1.2; margin: 0 0 0.6em; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 6px 12px; border-radius: var(--r-md); z-index: 10; }
.skip:focus { left: 8px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 5;
  background: rgba(13, 16, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { border-radius: 6px; }
.bar nav { display: flex; gap: 20px; overflow-x: auto; }
.bar nav a { color: var(--text-2); font-size: 15px; white-space: nowrap; }
.bar nav a:hover { color: var(--text); }

section { padding: 64px 0; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { padding-top: 56px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.02em; }
.pitch { max-width: 760px; margin: 0 auto 24px; font-size: 18px; color: var(--text-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 20px; }
#download .cta { justify-content: flex-start; }
.btn {
  display: inline-block; padding: 10px 20px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  font-weight: 600;
}
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 32px; }
.chips span {
  font-size: 13px; padding: 3px 12px; border-radius: var(--r-pill);
  background: rgba(62, 207, 122, 0.12); color: var(--gain); border: 1px solid rgba(62, 207, 122, 0.3);
}

.shot { margin: 0; }
.shot img { border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); }
.shot.arch img { width: min(100%, 640px); margin: 16px auto 0; }
.shot.arch figcaption { text-align: center; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; margin: 0 0 64px; }
.feature:nth-of-type(even) .text { order: 2; }
.feature ul { padding-left: 18px; margin: 0 0 12px; }
.feature li { margin-bottom: 6px; }
.feature b, .card b { color: var(--text); }
.more { font-size: 15px; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.card img { border-radius: var(--r-md); margin-bottom: 14px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.card h3 { font-size: 18px; }
.card p { margin: 0 0 8px; }

/* Games */
.table-wrap { overflow-x: auto; margin-bottom: 32px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface); }
td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.plat p { margin: 0 0 8px; }

/* Download */
pre { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; overflow-x: auto; color: var(--text); }
pre code { background: none; padding: 0; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; color: var(--text); font-weight: 600; }
details p { margin: 0; padding: 0 16px 16px; }

footer { padding: 32px 0 48px; font-size: 14px; color: var(--muted); }

@media (max-width: 820px) {
  section { padding: 44px 0; }
  .feature { grid-template-columns: 1fr; gap: 20px; margin-bottom: 48px; }
  .feature:nth-of-type(even) .text { order: 0; }
  .feature .shot { order: -1; }
  .grid, .two { grid-template-columns: 1fr; }
  .bar nav { gap: 14px; }
  .bar nav a:last-child { display: none; }
  .pitch { font-size: 16px; }
  td:first-child { white-space: normal; }
}
@media (max-width: 480px) {
  .bar nav a[href="#games"] { display: none; }
}

/* Support (Ko-fi) */
#support { text-align: center; }
#support .muted { color: var(--muted, #9aa3ad); font-size: 0.95em; }
