:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --text: #182033;
  --muted: #667085;
  --line: #e3e7ef;
  --accent: #3157d5;
  --accent-soft: #e9eeff;
  --success: #18864b;
  --shadow: 0 22px 70px rgba(19, 32, 65, 0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119;
    --surface: rgba(21, 27, 38, 0.9);
    --surface-strong: #151b26;
    --text: #eef2ff;
    --muted: #a9b3c4;
    --line: #2a3343;
    --accent: #8ca6ff;
    --accent-soft: #1d294e;
    --success: #64d394;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 112, 229, 0.12), transparent 32rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.shell {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(49, 87, 213, 0.25);
}

.nav { display: flex; gap: 6px; }

.nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

main { padding: 72px 0 92px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  gap: 48px;
  align-items: end;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.035em; }

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 8vw, 5.9rem);
}

.lede {
  margin: 24px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-strong);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 16%, transparent);
}

.status-card p { margin: 12px 0 0; color: var(--muted); font-size: 0.94rem; }

.section { margin-top: 72px; }

.section-heading { margin: 0 0 24px; font-size: clamp(1.7rem, 4vw, 2.5rem); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.card h3 { margin: 0 0 10px; font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); }

.note-link {
  display: block;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.note-link:last-child { border-bottom: 1px solid var(--line); }
.note-link:hover h3 { color: var(--accent); }
.note-link h3 { margin: 0 0 6px; font-size: 1.18rem; }
.note-link p { margin: 0; color: var(--muted); }

.page { max-width: 760px; }
.page h1 { max-width: none; font-size: clamp(2.6rem, 7vw, 4.7rem); }
.page h2 { margin: 48px 0 14px; font-size: 1.55rem; }
.page p, .page li { color: var(--muted); }
.page a { color: var(--accent); text-underline-offset: 3px; }
.page time { display: block; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--accent); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 9px 12px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
}
.skip-link:focus { transform: translateY(0); }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .nav { flex-wrap: wrap; justify-content: flex-end; }
  main { padding-top: 42px; }
  .hero { grid-template-columns: 1fr; padding: 34px; }
  .grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 24px, 1060px); }
  .brand span:last-child { display: none; }
  .nav a { padding-inline: 8px; }
  .hero { padding: 27px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
