@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  --accent: #1f7a6c;
  --accent-tint: #e3f3ef;
  --callout-bg: #e7f4f0;
  --callout-text: #0f332d;
  --page-bg: #f7f7f6;
  --surface: #ffffff;
  --text: #292b2e;
  --heading: #202225;
  --muted: #686d72;
  --soft-muted: #686d72;
  --border: #d9ddde;
  --toc-bg: #eef0f0;
  --radius: 12px;
  --topbar-height: 65px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(31, 122, 108, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 8px;
  background: var(--heading);
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(247, 247, 246, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.brand-title,
.lang-link,
.toc-label,
.toc a,
.section-number,
.ask-title,
.meta-chip {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.site-brand {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: inherit;
  text-decoration: none;
}

.site-brand:hover {
  text-decoration: none;
}

.brand-title {
  color: var(--heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.brand-tagline {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.81rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-link:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
}

.toc {
  position: sticky;
  top: var(--topbar-height);
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 2.5rem 1rem;
}

.toc-label {
  margin: 0 0 0.65rem;
  color: var(--soft-muted);
  font-size: 0.69rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc a {
  display: block;
  padding: 0.46rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  background: var(--toc-bg);
  color: var(--accent);
  text-decoration: none;
}

.manifesto {
  min-width: 0;
  flex: 1 1 auto;
  padding: 3.5rem 3.5rem 6rem;
}

.project-line {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.project-line a {
  font-weight: 600;
}

.badge {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.34rem 0.75rem;
  border-radius: 5px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.045em;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-family: "Space Grotesk", "IBM Plex Sans", sans-serif;
}

h1 {
  max-width: 760px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 5vw, 3.38rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.subtitle {
  max-width: 650px;
  margin: 0 0 3.5rem;
  color: #5a5e62;
  font-size: 1.31rem;
  line-height: 1.55;
}

.stat-box {
  max-width: 820px;
  margin: 0 0 4rem;
  padding: 4rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}

.stat-value {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.3rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.stat-label {
  max-width: 440px;
  color: #555a5e;
  font-size: 1.12rem;
  line-height: 1.5;
}

.manifesto-section {
  max-width: 820px;
  margin: 0 0 3.5rem;
  scroll-margin-top: calc(var(--topbar-height) + 1rem);
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.15rem;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.section-number {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.72rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.manifesto-section > p,
.section-copy > p {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.75;
}

.callout {
  max-width: 760px;
  margin: 1.25rem 0 0;
  padding: 1.35rem 1.6rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--callout-bg);
}

.callout p {
  margin: 0;
  color: var(--callout-text);
  font-size: 1.11rem;
  font-weight: 500;
  line-height: 1.6;
}

.dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.dimension-card,
.ask-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dimension-card {
  padding: 1.4rem;
}

.dimension-letter {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 1.12rem;
  font-weight: 600;
}

.dimension-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.dimension-card p {
  margin: 0;
  color: #555a5e;
  font-size: 0.91rem;
  line-height: 1.6;
}

.ask-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ask-card {
  padding: 1.4rem;
}

.ask-title {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ask-card p {
  margin: 0;
  color: #44494d;
  font-size: 0.94rem;
  line-height: 1.66;
}

.manifesto-footer {
  max-width: 820px;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.manifesto-footer p {
  max-width: 620px;
}

.footer-line {
  margin: 0 0 0.65rem;
  color: #666b70;
  font-size: 0.89rem;
  line-height: 1.6;
}

.resource-list {
  max-width: 760px;
  margin: 1rem 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.resource-item {
  display: grid;
  grid-template-columns: minmax(13rem, auto) minmax(0, 1fr);
  gap: 0.7rem 1rem;
  margin: 0;
  color: #4f5458;
  font-size: 0.84rem;
  line-height: 1.55;
}

.resource-item + .resource-item {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.resource-label {
  color: var(--heading);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 600;
}

.resource-item a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.footer-note {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.81rem;
  font-style: italic;
  line-height: 1.55;
}

.footer-publication {
  margin: 0;
  color: var(--soft-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

@media (max-width: 1079px) {
  .toc {
    flex-basis: 170px;
    padding: 2rem 0.75rem;
  }

  .manifesto {
    padding: 2.5rem 2rem 6rem;
  }

  h1 {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.18rem;
  }

  .stat-box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 859px) {
  :root {
    --topbar-height: 60px;
  }

  .topbar {
    padding: 0.85rem 1.25rem;
  }

  .brand-title {
    font-size: 0.74rem;
  }

  .brand-tagline {
    max-width: 62vw;
    font-size: 0.66rem;
  }

  .page-shell {
    display: block;
  }

  .toc {
    position: static;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .toc-label {
    display: none;
  }

  .toc a {
    flex: 0 0 auto;
    padding: 0.45rem 0.65rem;
    background: var(--toc-bg);
    white-space: nowrap;
  }

  .manifesto {
    padding: 2rem 1.25rem 4rem;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.65rem);
  }

  .subtitle {
    margin-bottom: 2.5rem;
    font-size: 1.06rem;
  }

  .stat-box {
    margin-bottom: 3.25rem;
    padding: 2.25rem 1.25rem;
  }

  .stat-value {
    font-size: 3.45rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .section-heading h2 {
    font-size: 1.45rem;
  }

  .manifesto-section > p,
  .section-copy > p {
    font-size: 1rem;
    line-height: 1.72;
  }

  .dimension-grid,
  .ask-grid {
    grid-template-columns: 1fr;
  }

  .resource-item {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media print {
  :root {
    --page-bg: #ffffff;
  }

  .topbar,
  .toc,
  .skip-link {
    display: none !important;
  }

  .page-shell,
  .manifesto {
    display: block;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .manifesto-section,
  .stat-box,
  .dimension-card,
  .ask-card,
  .callout {
    break-inside: avoid;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .resource-item a::after {
    content: "";
  }
}

