:root {
  color-scheme: light dark;
  --bg: #061016;
  --surface: #0d1b24;
  --text: #eef7fb;
  --muted: #aec0ca;
  --accent: #31d6d6;
  --line: #254355;
  --max: 880px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, rgba(49, 214, 214, 0.14), transparent 34%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  line-height: 1.65;
}

header,
main,
footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  padding: 44px 0 24px;
}

main {
  padding: 10px 0 56px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 22px 0 40px;
  font-size: 0.95rem;
}

.brand {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 12px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
}

h2 {
  margin-top: 34px;
  line-height: 1.2;
}

p,
li {
  color: var(--muted);
}

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

.panel {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

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

.links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  padding: 14px 16px;
  text-decoration: none;
}

.links a:hover {
  border-color: var(--accent);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7fbfc;
    --surface: #ffffff;
    --text: #10202b;
    --muted: #405766;
    --line: #c9d7df;
  }
}
