:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --bg-tint: #e3ecfb;
  --text: #11151c;
  --text-secondary: #5b6472;
  --accent: #1f6fe5;
  --card: rgba(255, 255, 255, 0.72);
  --card-border: rgba(255, 255, 255, 0.9);
  --rule: rgba(17, 21, 28, 0.1);
  --shadow:
    0 1px 2px rgba(17, 21, 28, 0.04), 0 8px 32px rgba(31, 111, 229, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090d;
    --bg-tint: #0d1a33;
    --text: #eef1f6;
    --text-secondary: #97a0ae;
    --accent: #5aa0ff;
    --card: rgba(28, 32, 40, 0.66);
    --card-border: rgba(255, 255, 255, 0.08);
    --rule: rgba(255, 255, 255, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -200px, var(--bg-tint), transparent),
    var(--bg);
  color: var(--text);
  font:
    17px/1.55 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Text',
    system-ui,
    'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
}

header.site a.home {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
}

header.site a.home:hover {
  text-decoration: none;
}

header.site img {
  width: 28px;
  height: 28px;
}

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero img {
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 12px 28px rgba(31, 111, 229, 0.25));
}

.hero h1 {
  margin: 24px 0 8px;
  font:
    700 44px/1.1 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    system-ui,
    sans-serif;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 auto;
  max-width: 30em;
  color: var(--text-secondary);
  font-size: 20px;
}

.card {
  margin: 0 0 24px;
  padding: 28px 28px 20px;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

article h1 {
  margin: 32px 0 4px;
  font:
    700 34px/1.15 -apple-system,
    BlinkMacSystemFont,
    'SF Pro Display',
    system-ui,
    sans-serif;
  letter-spacing: -0.015em;
}

article .updated {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 15px;
}

article h2 {
  margin: 28px 0 6px;
  font-size: 19px;
  font-weight: 600;
}

article .card > h2:first-child {
  margin-top: 0;
}

article p,
article li {
  margin: 0 0 12px;
}

article ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

footer.site {
  margin-top: 48px;
  padding: 24px 0 40px;
  border-top: 1px solid var(--rule);
  color: var(--text-secondary);
  font-size: 14px;
}

footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

footer.site a {
  color: var(--text-secondary);
}

@media (max-width: 480px) {
  .hero {
    padding: 48px 0 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .card {
    padding: 22px 20px 14px;
    border-radius: 20px;
  }
}
