:root {
  color-scheme: light dark;
  --background: #ffffff;
  --surface: #f3f4f3;
  --text: #111312;
  --muted: #626864;
  --border: #dde0de;
  --accent: #111312;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d0f0e;
    --surface: #181b19;
    --text: #f4f6f4;
    --muted: #a8aea9;
    --border: #2c302d;
    --accent: #ffffff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

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

.header-inner,
main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  font-size: 24px;
  font-weight: 800;
  text-decoration: none;
}

.header-link,
nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

main { padding: 64px 0 72px; }

.updated {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(36px, 8vw, 52px);
  line-height: 1.05;
}

.intro {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.links a {
  min-height: 76px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
}

section { margin-top: 48px; }

h2 {
  margin: 0;
  font-size: 24px;
}

p,
li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

ul { padding-left: 22px; }

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 560px) {
  .links { grid-template-columns: 1fr; }
  main { padding-top: 44px; }
}
