:root {
  color-scheme: light dark;
  --background: #f8f7ff;
  --surface: #ffffff;
  --text: #202038;
  --muted: #62627a;
  --accent: #5147e5;
  --border: #e3e0f2;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #171725;
    --surface: #222235;
    --text: #f5f3ff;
    --muted: #c4c0d5;
    --accent: #aaa4ff;
    --border: #37364b;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

header { margin-bottom: 40px; }

.mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, #6d62ff, #4339d4);
  color: white;
  font-size: 30px;
  box-shadow: 0 12px 28px rgb(67 57 212 / 25%);
}

h1, h2 { line-height: 1.2; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 6vw, 3rem); }
h2 { margin-top: 36px; font-size: 1.35rem; }
p, li { color: var(--muted); }
a { color: var(--accent); }

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.links a {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
}

nav { margin-bottom: 32px; }
nav a { margin-right: 18px; }
.updated { font-size: 0.9rem; }
