:root {
  --bg: #fbfaf7;
  --fg: #1d1f24;
  --muted: #5b6070;
  --line: #e3e0d8;
  --card: #ffffff;
  --accent: #2456c9;
  --accent-soft: #e8eefb;
  --max: 960px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171b;
    --fg: #e9e9ec;
    --muted: #a0a4b0;
    --line: #2c2f36;
    --card: #1c1f25;
    --accent: #7aa2ff;
    --accent-soft: #22293a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

header.site {
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }

main { padding: 48px 0 64px; }
h1 { font-size: 2.2rem; line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 1.4rem; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 0 32px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
}
.card h2 { margin: 0; font-size: 1.3rem; }
.card p { margin: 0; color: var(--muted); }
.card .links { margin-top: auto; padding-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-icon {
  width: 56px; height: 56px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: 1.1rem;
}
img.app-icon { object-fit: cover; background: none; }
.tag { font-size: 0.85rem; color: var(--muted); }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .btn { color: #0d1220; } }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 32px; }

ul.features { padding-left: 1.2em; }
ul.features li { margin: 6px 0; }
figure { margin: 24px 0; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

table.facts { border-collapse: collapse; width: 100%; max-width: 620px; }
table.facts th, table.facts td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.facts th { color: var(--muted); font-weight: 500; width: 40%; }

.doc { max-width: 720px; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }

footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
footer.site .wrap { padding-top: 20px; padding-bottom: 32px; display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
