
:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #63706d;
  --line: #d8ded8;
  --paper: #f7f6f0;
  --panel: #ffffff;
  --accent: #1f7a72;
  --accent-2: #9b4d35;
  --accent-3: #355f9b;
  --soft: #e8f0ec;
  --shadow: 0 18px 55px rgba(32, 44, 41, 0.10);
}

* { box-sizing: border-box; }
html {
  overflow-x: hidden;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img, svg {
  max-width: 100%;
}
h1, h2, h3, p, li, a, span {
  overflow-wrap: anywhere;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(24, 32, 31, 0.10);
  background: rgba(247, 246, 240, 0.92);
  backdrop-filter: blur(16px);
}
.brand {
  font-weight: 800;
  text-decoration: none;
}
nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a, .filters button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
nav a.active, nav a:hover, .filters button.active, .filters button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: var(--panel);
}
main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: end;
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}
.blog-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 10vw, 7.8rem);
  max-width: 9ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-actions a, .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
}
.blog-brief {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 8px 24px rgba(32, 44, 41, 0.05);
  min-width: 0;
  overflow: hidden;
}
.blog-brief h2 {
  margin: 0 0 10px;
}
.blog-brief p {
  margin: 0;
  color: var(--muted);
}
.blog-brief dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 22px 0 0;
}
.blog-brief dl div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.blog-brief dt {
  font-size: 1.8rem;
  font-weight: 800;
}
.blog-brief dd {
  margin: 0;
  color: var(--muted);
}
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  align-items: start;
  margin: 56px 0 90px;
}
.post-stream {
  display: grid;
  gap: 14px;
}
.blog-post {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  box-shadow: 0 8px 24px rgba(32, 44, 41, 0.05);
  min-width: 0;
  overflow: hidden;
}
.blog-post.featured {
  padding: 30px;
  border-color: rgba(31, 122, 114, 0.45);
}
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--accent-2);
  font-size: 0.88rem;
  font-weight: 800;
}
.blog-post h2 {
  margin: 10px 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
.post-title-link {
  color: inherit;
  text-decoration: none;
}
.post-title-link:hover {
  color: var(--accent);
}
.blog-post p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.02rem;
}
.post-tags, .branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.branch-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  align-content: start;
}
.post-tags a, .branch-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.post-tags a {
  min-width: 88px;
}
.branch-links a {
  width: 100%;
  min-width: 112px;
}
.branch-links span {
  color: var(--accent-2);
  font-weight: 800;
}
.sidebar {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}
.side-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}
.side-box h2 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.side-box p {
  color: var(--muted);
  margin: 0 0 14px;
}
.mini-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #edf2ee);
  padding: 10px;
  margin-bottom: 12px;
}
.section-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.section-link span {
  color: var(--accent-2);
  font-weight: 800;
  flex: 0 0 auto;
}
.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 48px 0;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.08; letter-spacing: 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  max-width: 9ch;
}
.lede {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
}
.hero-visual {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 34% 30%, rgba(31, 122, 114, 0.18), transparent 34%), linear-gradient(135deg, #ffffff 0%, #edf2ee 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.hero-visual svg, .graph-panel svg {
  width: min(100%, 640px);
  height: auto;
}
.graph-lines line {
  stroke: rgba(31, 122, 114, 0.34);
  stroke-width: 0.8;
}
.graph-nodes circle {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 1.2;
}
.graph-labels text {
  fill: var(--muted);
  font-size: 4px;
  text-anchor: middle;
}
.graph-labels {
  display: none;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: -28px 0 64px;
}
.stats-strip div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.stats-strip strong {
  display: block;
  font-size: 2rem;
}
.stats-strip span { color: var(--muted); }
.section, .page-hero, .graph-panel, .concept-list, .timeline, .note-grid, .world-stack, .related {
  margin: 72px 0;
}
.page-hero {
  max-width: 780px;
  padding-top: 56px;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
}
.page-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.25rem;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 0;
  font-size: 2rem;
}
.section-heading p {
  margin: 0;
  color: var(--muted);
}
.land-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.land-card, .note-card a, .concept-row, .world-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(32, 44, 41, 0.05);
}
.land-card {
  min-height: 190px;
  padding: 18px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.land-card span { color: var(--accent); font-weight: 800; }
.land-card strong {
  margin: 14px 0;
  font-size: 2.4rem;
}
.land-card p {
  margin: auto 0 0;
  color: var(--muted);
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 36px;
}
.pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.concept-pill, .concept-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.concept-pill {
  min-width: 112px;
}
.side-box .pill-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.side-box .concept-pill {
  width: 100%;
  min-width: 0;
}
.concept-pill span {
  color: var(--accent-2);
  font-weight: 800;
}
.note-list, .note-grid {
  display: grid;
  gap: 12px;
}
.note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.note-card a {
  min-height: 230px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
}
.note-card time, .timeline-month time {
  color: var(--accent-2);
  font-weight: 800;
}
.note-card h3 {
  margin: 10px 0;
  font-size: 1.1rem;
}
.note-card p {
  color: var(--muted);
  margin: 0 0 16px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  min-width: 0;
}
.tag-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  max-width: 100%;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-size: 0.78rem;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 74px;
}
.concept-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 24px;
  padding: 20px;
  margin-bottom: 12px;
}
.concept-row h3 {
  margin: 0 0 8px;
  font-size: 1.6rem;
}
.concept-row p, .concept-row li { color: var(--muted); }
.concept-row ul { margin: 0; padding-left: 20px; }
.graph-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  place-items: center;
  padding: 28px;
}
.map-overview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  display: grid;
  place-items: center;
  padding: 28px;
  margin: 42px 0;
}
.map-overview svg {
  width: min(100%, 680px);
}
.map-tree {
  display: grid;
  gap: 14px;
  margin: 42px 0 86px;
}
.map-branch {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(220px, 0.75fr) minmax(320px, 1fr);
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 0;
  overflow: hidden;
}
.map-branch > * {
  min-width: 0;
}
.branch-head h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}
.branch-head p, .branch-posts li {
  color: var(--muted);
}
.branch-posts h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.branch-posts ul {
  margin: 0;
  padding-left: 18px;
}
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 28px;
}
.timeline-month {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}
.timeline-month::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-month h2 { margin: 0 0 8px; }
.timeline-month p { color: var(--muted); }
.filters {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.world-stack {
  display: grid;
  gap: 18px;
}
.world-card {
  padding: 26px;
}
.world-card h1 { display: none; }
.world-card h2 {
  margin-top: 0;
}
.note-page {
  max-width: 820px;
  margin: 64px auto 40px;
}
.note-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}
.summary {
  color: var(--muted);
  font-size: 1.2rem;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.concept-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 40px;
}
.prose {
  font-size: 1.06rem;
}
.prose h1 { font-size: 2.2rem; }
.prose h2 { margin-top: 2.2em; }
.prose p, .prose li, .world-card p, .world-card li {
  color: #2f3a38;
}
.prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  background: var(--soft);
}
.wikilink {
  color: var(--accent-3);
  font-weight: 700;
}
.feedback-panel {
  max-width: 820px;
  margin: 0 auto 36px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.feedback-panel h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.feedback-form {
  display: grid;
  gap: 14px;
}
.feedback-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fbfbf7;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  resize: vertical;
}
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid rgba(31, 122, 114, 0.24);
  border-color: var(--accent);
}
.feedback-form input[name="website"] {
  position: absolute;
  left: -9999px;
}
.feedback-form button {
  justify-self: start;
  border: 0;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.feedback-form button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.feedback-status {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-weight: 800;
}
.feedback-status[data-tone="success"] {
  color: var(--accent);
}
.feedback-status[data-tone="error"] {
  color: var(--accent-2);
}
.related {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.prev-next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
.prev-next a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  text-decoration: none;
}
@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }
  .hero, .two-col, .blog-hero, .blog-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .hero {
    min-height: auto;
  }
  .hero-visual {
    min-height: 300px;
  }
  .land-grid, .note-grid, .stats-strip {
    grid-template-columns: 1fr;
  }
  .concept-row, .timeline-month, .map-branch {
    grid-template-columns: 1fr;
  }
  .timeline-month::before {
    left: -36px;
  }
}
