:root {
  color-scheme: light dark;
  --background: #f7f8fc;
  --surface: rgba(255, 255, 255, 0.88);
  --text: #172033;
  --muted: #5d6678;
  --border: rgba(23, 32, 51, 0.1);
  --accent: #6d5dfc;
  --accent-secondary: #ff3b78;
  --shadow: 0 22px 60px rgba(41, 45, 74, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0d1020;
    --surface: rgba(25, 29, 49, 0.9);
    --text: #f4f5fb;
    --muted: #b1b7c7;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  }
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(109, 93, 252, 0.18), transparent 34rem),
    radial-gradient(circle at 92% 88%, rgba(255, 59, 120, 0.15), transparent 30rem),
    var(--background);
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

.page { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 750; text-decoration: none; }

.rings { position: relative; width: 38px; height: 38px; border: 5px solid var(--accent); border-right-color: transparent; border-radius: 50%; }
.rings::after { content: ""; position: absolute; inset: 6px; border: 4px solid var(--accent-secondary); border-top-color: transparent; border-radius: 50%; }

.card {
  margin-top: 34px;
  padding: clamp(24px, 6vw, 52px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

h1 { margin: 0 0 12px; font-size: clamp(2.25rem, 8vw, 4rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { margin: 2rem 0 0.5rem; font-size: 1.15rem; }
p { margin: 0.65rem 0; }
.lede { color: var(--muted); font-size: 1.1rem; }
.meta { color: var(--muted); font-size: 0.9rem; }
ul { padding-left: 1.2rem; }
li + li { margin-top: 0.45rem; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 28px; }
.link-card { display: block; padding: 18px; color: var(--text); background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--border); border-radius: 18px; text-decoration: none; }
.link-card strong { display: block; margin-bottom: 3px; }
.link-card span { color: var(--muted); font-size: 0.92rem; }
footer { padding: 26px 6px 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

@media (max-width: 520px) {
  .page { padding: 24px 0; }
  .card { border-radius: 22px; }
}
