:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #202124;
  --muted: #5d646b;
  --border: #d9ddd8;
  --accent: #255f85;
  --accent-strong: #16455f;
  --focus: #c2512f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151716;
    --surface: #202321;
    --text: #f2f2ee;
    --muted: #c4c9c5;
    --border: #3d443f;
    --accent: #8fc3e4;
    --accent-strong: #b7dcf1;
    --focus: #f19a72;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

body {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-strong);
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header,
.site-footer {
  background: var(--surface);
  border-color: var(--border);
}

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

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.wrap {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
}

.site-header .wrap,
.site-footer .wrap {
  padding: 20px 0;
}

.brand {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
}

main {
  padding: 40px 0 56px;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
  line-height: 1.2;
}

h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}

p,
li {
  font-size: 1rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.panel {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.list {
  padding-left: 1.2rem;
}

.meta {
  color: var(--muted);
}

.app-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.app-entry {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.app-entry h2 {
  margin-top: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, 880px);
  }

  main {
    padding: 28px 0 44px;
  }

  .panel,
  .app-entry {
    padding: 16px;
  }
}
