:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #152033;
  --muted: #5b6577;
  --border: #d9dee8;
  --accent: #232854;
  --accent-soft: #e8eaf6;
  --max: 46rem;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 32, 51, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, #eef0ff 0%, transparent 40%),
    linear-gradient(180deg, #f8f9fd 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header,
.site-footer,
.page {
  width: min(100% - 2rem, calc(var(--max) + 8rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.75rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit;
  text-decoration: none;
}

.brand strong {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand span {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

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

.page {
  padding: 0.5rem 0 3rem;
}

.hero,
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 1.75rem 1.5rem;
  margin-bottom: 1rem;
}

.hero h1,
.content-card h1 {
  margin: 0 0 0.6rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead,
.meta {
  margin: 0;
  color: var(--muted);
}

.meta {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}

.content-card {
  padding: 1.5rem;
}

.content-card h2 {
  margin: 1.75rem 0 0.6rem;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.3;
}

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

.content-card p,
.content-card ul {
  margin: 0 0 0.9rem;
}

.content-card ul {
  padding-left: 1.2rem;
}

.content-card li + li {
  margin-top: 0.35rem;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.link-list a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fbfcff;
  text-decoration: none;
  color: inherit;
}

.link-list a strong {
  display: block;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.link-list a span {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0;
}

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

  .hero,
  .content-card {
    padding: 1.25rem 1rem;
  }
}
