:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5f6b67;
  --line: #dfe6e2;
  --paper: #fbfaf7;
  --soft: #eef5f1;
  --accent: #bf3f2f;
  --accent-dark: #8f2e23;
  --blue: #255b7f;
  --green: #3f6b52;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  position: sticky;
  top: 0;
  z-index: 3;
  backdrop-filter: blur(12px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
}
nav { display: flex; gap: 16px; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}
main { overflow: hidden; }
.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }
h1 {
  margin: 0 0 22px;
  font-size: clamp(2.65rem, 8vw, 6.8rem);
}
h2 { font-size: clamp(1.65rem, 3vw, 3rem); }
h3 { font-size: 1.2rem; }
.hero p, .page-hero p, .split-section p {
  max-width: 720px;
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: var(--muted);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  background: white;
}
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.language-board {
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.language-board span {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: clamp(1.6rem, 5vw, 4rem);
  font-weight: 900;
}
.language-board span:nth-child(3n) { color: var(--blue); background: #edf5f8; }
.language-board span:nth-child(4n) { color: var(--green); background: #eef6ec; }
.band, .split-section, .page-hero, .article-list {
  padding: clamp(44px, 7vw, 88px) clamp(18px, 5vw, 64px);
}
.section-heading { max-width: 720px; margin-bottom: 28px; }
.language-grid, .article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.language-card, .article-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  text-decoration: none;
}
.language-card span, .article-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-weight: 900;
  font-size: 0.82rem;
}
.language-card p, .article-card p { color: var(--muted); }
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: var(--soft);
}
.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.page-hero h1 { font-size: clamp(2.25rem, 6vw, 5.4rem); }
.article-list {
  padding-top: 32px;
}
.article-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(38px, 6vw, 84px) 18px;
}
.article-header {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.article-header h1 { font-size: clamp(2rem, 5vw, 4.6rem); }
.article-header p { color: var(--muted); font-size: 1.12rem; }
.article-body {
  max-width: 760px;
  margin: 38px auto;
  font-size: 1.05rem;
}
.article-body h1 { font-size: 2.4rem; }
.article-body h2 { margin-top: 2.2em; font-size: 1.8rem; }
.article-body h3 { margin-top: 1.8em; }
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 10px;
  vertical-align: top;
}
.article-body th { background: var(--soft); text-align: left; }
.article-body blockquote, .callout {
  margin: 22px 0;
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: white;
}
.cta-panel {
  margin: 48px auto 24px;
  padding: 24px;
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.related-languages {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer div { display: flex; gap: 16px; }
@media (max-width: 820px) {
  .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .language-grid, .article-list { grid-template-columns: 1fr; }
  .language-board { max-width: 520px; }
}
