:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #eef3f8;
  --text: #1f2937;
  --muted: #607086;
  --line: #d9e2ec;
  --accent: #2766a6;
  --accent-dark: #174a7e;
  --soft: #e8f1fa;
  --shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
}

.hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #f7f9fc 0%, #e8f1fa 55%, #f2f6fb 100%);
  border-bottom: 1px solid var(--line);
}

.hero-layout,
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: start;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0;
}

h1 {
  max-width: 860px;
  font-size: clamp(2rem, 4vw, 4.25rem);
}

h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

h3 {
  font-size: 1.18rem;
}

.lead {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.notice,
.text-panel,
.disclaimer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.notice {
  padding: 24px;
}

.notice p,
.text-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.section,
.page {
  padding: 56px 0;
}

.section-muted {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section h2 + .card-grid,
.article .card-grid,
.article-list {
  margin-top: 24px;
}

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

.card-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  display: block;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.card:hover {
  color: var(--text);
  border-color: #b9c9da;
  text-decoration: none;
  transform: translateY(-1px);
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.card-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-panel {
  padding: 24px;
}

.article {
  max-width: 880px;
}

.article h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.article h2 {
  margin-top: 34px;
}

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

.article ol,
.article ul {
  padding-left: 1.4rem;
}

.disclaimer {
  margin-top: 32px;
  padding: 18px 20px;
  color: var(--muted);
  background: #fbfcfe;
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-list article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.article-list p {
  margin-bottom: 0;
}

.site-footer {
  padding: 26px 0;
  color: var(--muted);
  background: #182432;
}

.site-footer a {
  color: #d8e7f6;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .two-col,
  .card-grid,
  .card-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 40px;
  }
}
