:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1d222b;
  --muted: #5d6573;
  --line: #e4e1da;
  --accent: #2f5d8a;
  --mark-bg: #232a36;
  --mark-fg: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171c;
    --surface: #1b1f26;
    --text: #e8e6e1;
    --muted: #a0a6b0;
    --line: #2c313a;
    --accent: #8fb8e0;
    --mark-bg: #e8e6e1;
    --mark-fg: #14171c;
  }
}

*, *::before, *::after { 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", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4.5rem 1rem 3rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.masthead { margin-bottom: 3rem; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 0 1.25rem;
  border-radius: 0.6rem;
  background: var(--mark-bg);
  color: var(--mark-fg);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1;
}
.back { margin: 0 0 1rem; font-size: 0.95rem; }
h1 {
  margin: 0 0 0.75rem;
  font-size: 2.25rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
}
.lede { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

section { margin: 0 0 2.75rem; }
h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h3 { margin: 0 0 0.25rem; font-size: 1.15rem; font-weight: 600; }
h3 a { color: var(--text); text-decoration: none; }
h3 a:hover { text-decoration: underline; }
section > p { margin: 0 0 1rem; }

.apps { list-style: none; margin: 0; padding: 0; }
.app {
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.app p { margin: 0; }
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  margin-top: 0.75rem !important;
  font-size: 0.95rem;
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.55rem 1.5rem;
  margin: 0;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 0.75rem; }
}

.plain { margin: 0; padding-left: 1.2rem; }

.foot {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.foot p { margin: 0 0 0.35rem; }
