:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1d1b20;
  --muted: #5f5b66;
  --border: #e6e3ea;
  --surface: #f7f6f9;
  --accent: #e0461f;
  --accent-text: #c23b18;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141217;
    --fg: #ece9f0;
    --muted: #a7a2ae;
    --border: #2c2931;
    --surface: #1d1b21;
    --accent-text: #ff7a55;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent);
}

nav.app a {
  margin-left: 16px;
  font-size: 15px;
}

main { padding: 32px 0 48px; }

h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 36px 0 8px;
}

h3 {
  font-size: 17px;
  margin: 24px 0 4px;
}

p, ul, ol { margin: 0 0 14px; }

li { margin-bottom: 6px; }

.lede { color: var(--muted); font-size: 18px; }

.meta { color: var(--muted); font-size: 15px; }

a { color: var(--accent-text); text-underline-offset: 2px; }

a:hover { text-decoration-thickness: 2px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 20px 0;
}

.card p:last-child { margin-bottom: 0; }

.apps {
  list-style: none;
  padding: 0;
}

.apps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.apps strong { display: block; }

.apps a { margin-right: 16px; }

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}
