:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --panel: #ffffff;
  --ink: #182026;
  --muted: #68737c;
  --line: #d8ddd5;
  --accent: #1D2D44;
  --accent-strong: #1D2D44;
  --shadow: 0 18px 45px rgba(24, 32, 38, 0.08);
}

* {
  box-sizing: border-box;
}

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

body.is-blank {
  background: #ffffff;
}

body.is-loading .page-shell,
body.is-blank .site-header,
body.is-blank .page-shell,
body.is-blank .site-footer {
  display: none;
}

.site-header,
.page-shell,
.site-footer {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

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

.header-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.language-switcher button {
  min-height: 40px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  padding: 8px 14px;
}

.language-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.page-content {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
  padding: clamp(24px, 5vw, 56px);
}

.page-content h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.page-content h2 {
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  margin: 36px 0 12px;
  padding-top: 24px;
}

.page-content p,
.page-content ul {
  margin: 0 0 16px;
}

.page-content ul {
  padding-left: 24px;
}

.page-content a {
  color: var(--accent-strong);
  font-weight: 650;
}

.site-footer {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px 0 40px;
}

@media (max-width: 720px) {
  .site-header {
    align-items: stretch;
    flex-direction: column;
    padding-top: 28px;
  }

  .header-actions {
    justify-items: start;
  }

  .language-switcher {
    justify-content: flex-start;
  }
}
