:root {
  --background: #f7f5f0;
  --surface: #ffffff;
  --text: #1f242b;
  --muted: #66707c;
  --line: #dcd8cf;
  --accent: #172b4d;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { font-size: 17px; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}
body.no-scroll { overflow: hidden; }

a { color: var(--accent); }

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.92);
  box-shadow: 0 4px 16px rgba(31, 36, 43, 0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-title {
  flex: 0 0 auto;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-navigation,
.primary-menu,
.language-menu {
  display: flex;
  align-items: center;
}

.site-navigation {
  justify-content: flex-end;
  gap: 1.25rem;
}

.primary-menu { gap: 1.1rem; }

.language-menu {
  gap: 0.45rem;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line);
}

.site-navigation a,
.menu-link,
.language-link {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation a:hover { text-decoration: underline; }
.language-link.is-active {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28rem;
}

.menu-link.is-disabled,
.language-link.is-disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}

.navigation-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.navigation-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 180ms ease, opacity 180ms ease;
}
.navigation-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navigation-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navigation-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-status-banner {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid #bdd8c4;
  border-radius: 8px;
  background: #f1f8f3;
  color: #24472f;
  font-weight: 650;
}

.hero { padding: 5rem 0 4rem; }
.page-header { padding: 4.5rem 0 2.5rem; }
.section { padding: 1rem 0 5rem; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.035em;
}

h1 { margin: 0 0 1.25rem; font-size: clamp(2.4rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); }
h3 { font-size: 1.35rem; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 4rem;
}

.hero-title {
  max-width: 760px;
  margin: 0;
  text-align: center;
  font-size: clamp(2.7rem, 4.6vw, 4rem);
  line-height: 1.03;
}

.hero-title-line,
.hero-connector,
.hero-emphasis {
  display: block;
}

.hero-title-line,
.hero-emphasis {
  font-weight: 780;
}

.hero-connector {
  margin: 0.8rem 0 0.18rem;
  color: var(--muted);
  font-size: 0.42em;
  font-weight: 560;
  letter-spacing: 0;
}

.hero-emphasis { color: var(--accent); }

.hero-copy {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding-left: 3.5rem;
  border-left: 1px solid var(--line);
}

.hero-topics { margin: 0; }

.hero-topic,
.hero-system-line {
  margin: 0;
}

.hero-topic {
  font-size: 1.1rem;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.hero-topic + .hero-topic { margin-top: 1.8rem; }

.hero-system-line {
  margin-top: 2.2rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.4;
}

.lead {
  max-width: 820px;
  margin: 4.25rem auto 0;
  color: #3f4852;
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: center;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.05rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.article-list { display: grid; gap: 1rem; padding: 1.5rem 0 4rem; }

.article-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.article-card h2, .article-card h3 { margin: 0.25rem 0 0.6rem; }
.article-card a { color: var(--text); text-decoration: none; }
.article-card a:hover { text-decoration: underline; }

.publication-save-button {
  margin-top: 1rem;
  padding: .62rem .85rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .88rem;
  font-weight: 720;
  cursor: pointer;
}

.publication-save-button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}

.publication-save-button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 64px;
    gap: 0.75rem;
  }

  .navigation-toggle {
    display: block;
    flex: 0 0 auto;
  }

  .site-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 1.1rem 1rem 1.35rem;
    border-bottom: 1px solid var(--line);
    background: var(--background);
    box-shadow: 0 14px 28px rgba(31, 36, 43, 0.08);
  }

  .site-navigation.is-open {
    display: flex;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .primary-menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-menu a {
    display: block;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    line-height: 1.25;
  }

  .language-menu {
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.35rem 0 0;
    border-left: 0;
  }

  .language-link {
    padding: 0.45rem 0;
    font-size: 0.95rem;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-copy {
    padding: 2rem 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  html { font-size: 16px; }
  .container { width: min(calc(100% - 1.5rem), var(--max-width)); }
  .site-title { font-size: 1.05rem; }
  .page-header { padding: 3rem 0 1.75rem; }
  .hero-title { font-size: clamp(1.95rem, 9vw, 2.55rem); }
  .lead { margin-top: 3rem; }
}