:root {
  color-scheme: light dark;
  --brand: #4338ca;
  --brand-soft: #eef2ff;
  --ink: #172033;
  --muted: #5c6475;
  --surface: #ffffff;
  --background: #f5f6fa;
  --border: #dfe3ed;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: white;
}

article {
  margin-top: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgb(24 30 54 / 8%);
}

h1 { margin: 0 0 8px; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; }
h2 { margin: 32px 0 8px; font-size: 1.2rem; }
p, li { color: var(--muted); }
a { color: var(--brand); font-weight: 600; }
.summary { margin: 0; font-size: 1.08rem; }
.updated { margin-top: 32px; font-size: 0.88rem; }

@media (max-width: 520px) {
  main { padding-top: 24px; }
  article { padding: 24px 20px; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a5b4fc;
    --brand-soft: #25244a;
    --ink: #f3f4f8;
    --muted: #c4c8d4;
    --surface: #191b25;
    --background: #101119;
    --border: #303443;
  }
}

