:root {
  --bg-color: #fafbfc;
  --text-color: #334155;
  --heading-color: #0f172a;
  --accent-color: #1e3a8a;
  --accent-secondary: #0d9488;
  --link-color: #1d4ed8;
  --link-hover: #0f172a;
  --border-color: #e2e8f0;
  --muted-color: #64748b;
  --pill-bg: #f1f5f9;
  --pill-hover: #e2e8f0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0b1120;
    --text-color: #cbd5e1;
    --heading-color: #f8fafc;
    --accent-color: #60a5fa;
    --accent-secondary: #2dd4bf;
    --link-color: #38bdf8;
    --link-hover: #ffffff;
    --border-color: #1e293b;
    --muted-color: #94a3b8;
    --pill-bg: #1e293b;
    --pill-hover: #334155;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-color);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #1e3a8a 0%, #0284c7 60%, #0d9488 100%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background: linear-gradient(90deg, #2563eb 0%, #38bdf8 60%, #2dd4bf 100%);
  }
}

.site-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

h1, h2, h3 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.page-content h1 {
  font-size: 2.25rem;
  margin-top: 0;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.45rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.content-body > p:first-of-type strong {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.lang-nav {
  float: right;
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.lang-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading-color);
  background-color: var(--pill-bg);
  text-decoration: none;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.lang-link:hover {
  background-color: var(--pill-hover);
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-1px);
}

.content-body p,
.content-body li {
  text-wrap: pretty;
}

.content-body p {
  margin-bottom: 1.35rem;
}

.content-body ul {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.content-body li {
  margin-bottom: 0.75rem;
}

.content-body li strong {
  color: var(--heading-color);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 2.25rem 0;
  clear: both;
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.site-footer {
  margin-top: 3.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-color);
  color: var(--muted-color);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0 0;
}

