/* Lyceum Mundi — editorial styles
   Cream paper, oxblood accent, EB Garamond serif, Inter utility.
   Scoped to .lm so it can't bleed into the design-canvas chrome. */

.lm {
  --paper: #FAF7F0;
  --paper-deep: #F4EFE3;
  --ink: #1C1814;
  --ink-soft: #3A332B;
  --ink-mute: #6B6358;
  --ink-quiet: #9A9387;
  --rule: #D8D0BE;
  --rule-soft: #E6DFCF;
  --accent: #6B1F1F;
  --serif: "EB Garamond", "Source Serif Pro", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "onum";
  font-variant-numeric: oldstyle-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.lm * { box-sizing: border-box; }
.lm a { color: inherit; text-decoration: none; }

/* ——— Utilities ——— */
.lm .smallcaps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lm .smallcaps-ink { color: var(--ink); }
.lm .smallcaps-accent { color: var(--accent); }
.lm .meta {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}
.lm .rule {
  height: 1px; background: var(--rule); width: 100%; border: 0; margin: 0;
}
.lm .rule-accent { background: var(--accent); height: 1px; }
.lm .rule-thin { background: var(--rule-soft); }

/* ——— Persistent nav ——— */
.lm-nav {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 28px 72px 22px;
}
.lm-nav-mark {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}
.lm-nav-mark-rule {
  display: inline-block; width: 18px; height: 1px;
  background: var(--accent); vertical-align: middle;
  margin: 0 10px 3px;
}
.lm-nav-links {
  display: flex; gap: 36px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.lm-nav-links a:hover { color: var(--accent); }
.lm-nav-links a.is-active { color: var(--accent); }
.lm-nav-links .lm-nav-sep {
  display: inline-block; width: 1px; height: 10px;
  background: var(--ink-quiet); align-self: center;
}
.lm-nav-rule {
  margin: 0 72px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

/* ——— Frontispiece masthead ——— */
.lm-frontispiece {
  text-align: center;
  padding: 92px 72px 80px;
  position: relative;
}
.lm-volume {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 38px;
}
.lm-volume span { color: var(--accent); }
.lm-wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0 0.14em; /* optical correction for letter-spacing */
}
.lm-masthead-flourish {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 34px 0 28px;
}
.lm-masthead-flourish .bar {
  height: 1px; background: var(--accent); width: 64px;
}
.lm-masthead-flourish .dot {
  width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg);
}
.lm-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.lm-est {
  margin-top: 56px;
  display: flex; justify-content: center; gap: 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lm-est .sep { color: var(--accent); }

/* ——— Inner-page masthead band ——— */
.lm-mast-inner {
  text-align: center;
  padding: 44px 72px 36px;
}
.lm-mast-inner .name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 0 0 0 0.32em;
}
.lm-mast-inner .sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 10px;
}

/* ——— Section bands on homepage ——— */
.lm-section-band {
  padding: 64px 72px 24px;
}
.lm-section-band .header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px;
}
.lm-section-band .header h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.02em;
  margin: 0;
}
.lm-section-band .header .see-all {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.lm-section-band .header .see-all:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ——— Post list (used on home + section pages) ——— */
.lm-list { list-style: none; padding: 0; margin: 0; }
.lm-list li {
  padding: 26px 0 28px;
  border-top: 1px solid var(--rule);
}
.lm-list li:last-child { border-bottom: 1px solid var(--rule); }
.lm-list .item-meta {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.lm-list .item-meta .section { color: var(--accent); }
.lm-list .item-meta .sep {
  width: 10px; height: 1px; background: var(--ink-quiet); display: inline-block;
}
.lm-list .item-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
  color: var(--ink);
  text-wrap: balance;
}
.lm-list .item-title:hover { color: var(--accent); }
.lm-list .item-excerpt {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}
.lm-list .item-byline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  margin-top: 12px;
}

/* ——— Stacked section bands on homepage ——— */
.lm-band {
  padding: 80px 96px 72px;
  border-top: 1px solid var(--rule);
}
.lm-band:first-of-type { border-top: 1px solid var(--accent); }
.lm-band .band-head {
  display: grid; grid-template-columns: 320px 1fr; gap: 56px;
  margin-bottom: 40px;
  align-items: baseline;
}
.lm-band .band-kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lm-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 42px;
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0;
}
.lm-band .band-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
.lm-band .band-desc + .band-meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 18px;
}

/* Two-column post grid for Foundations + Analyses bands */
.lm-grid2 {
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.lm-grid2 .lm-list li:nth-child(2) { border-top: 1px solid var(--rule); }
.lm-grid2 .lm-list .item-title { font-size: 24px; }
.lm-grid2 .lm-list .item-excerpt { font-size: 16px; }

/* Long-Form: stacked, larger typographic blocks numbered */
.lm-longform { list-style: none; padding: 0; margin: 0; }
.lm-longform li {
  display: grid; grid-template-columns: 88px 1fr 200px;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.lm-longform li:last-child { border-bottom: 1px solid var(--rule); }
.lm-longform .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.lm-longform .body .meta {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.lm-longform .body .meta .section { color: var(--accent); }
.lm-longform .body .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  text-wrap: balance;
}
.lm-longform .body .title a:hover { color: var(--accent); }
.lm-longform .body .deck {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}
.lm-longform .specs {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: right;
}
.lm-longform .specs .v { color: var(--ink-soft); }

/* ——— The Atlas (knowledge graph page) ——— */
.lm-atlas-head {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 56px;
  padding: 36px 72px 28px;
  border-top: 1px solid var(--accent);
  margin: 0 0;
  align-items: end;
}
.lm-atlas-head .kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lm-atlas-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 80px;
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.lm-atlas-head .description {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 54ch;
  margin: 0;
}
.lm-atlas-head .description em { font-style: italic; }
.lm-atlas-head .stats {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: grid; gap: 10px;
  padding-bottom: 6px;
}
.lm-atlas-head .stats .row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--rule-soft);
}
.lm-atlas-head .stats .row .v {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0;
  color: var(--ink);
  font-feature-settings: "onum";
}
.lm-atlas-head .stats .row.a .v { color: var(--accent); }

.lm-atlas-stage {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 0;
  margin: 0 72px;
  border-top: 1px solid var(--rule);
}
.lm-atlas-graph {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(107,31,31,0.025), transparent 60%),
    var(--paper);
  border-right: 1px solid var(--rule);
  min-height: 720px;
  overflow: hidden;
}
.lm-atlas-graph svg { display: block; width: 100%; height: 100%; }
.lm-atlas-graph .corner {
  position: absolute;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.lm-atlas-graph .corner.tl { top: 18px; left: 20px; }
.lm-atlas-graph .corner.tr { top: 18px; right: 20px; }
.lm-atlas-graph .corner.bl { bottom: 18px; left: 20px; }
.lm-atlas-graph .corner.br { bottom: 18px; right: 20px; }

.lm-atlas-graph .node-label {
  font-family: var(--serif);
  font-size: 12px;
  fill: var(--ink-soft);
  text-anchor: middle;
  pointer-events: none;
  transition: fill .2s, font-size .2s;
}
.lm-atlas-graph .node-label.foundation { fill: var(--accent); font-weight: 500; }
.lm-atlas-graph .node-label.longform { font-style: italic; fill: var(--ink); font-size: 13px; }
.lm-atlas-graph .node-label.dim { fill: var(--ink-quiet); }
.lm-atlas-graph .node-label.active { fill: var(--accent); font-weight: 500; font-size: 13px; }

.lm-atlas-graph .edge {
  stroke: rgba(28,24,20,0.18); stroke-width: 0.7; fill: none;
  transition: stroke .2s, stroke-width .2s, opacity .2s;
}
.lm-atlas-graph .edge.dim { stroke: rgba(28,24,20,0.06); }
.lm-atlas-graph .edge.active { stroke: var(--accent); stroke-width: 1.1; opacity: 0.8; }

.lm-atlas-graph .node {
  cursor: pointer; transition: transform .15s;
}
.lm-atlas-graph .node circle { transition: r .15s, fill .15s, stroke .15s, stroke-width .15s; }
.lm-atlas-graph .node.dim circle { opacity: 0.35; }
.lm-atlas-graph .node.dim .node-label { opacity: 0.4; }

/* Sidebar */
.lm-atlas-side {
  padding: 36px 32px 60px;
  background: var(--paper);
}
.lm-atlas-side .helper {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 0 0 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule-soft);
}
.lm-atlas-side .legend {
  display: grid; gap: 14px; margin-bottom: 32px;
}
.lm-atlas-side .legend .item {
  display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: center;
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-soft);
}
.lm-atlas-side .legend .swatch { display: flex; justify-content: center; }
.lm-atlas-side .selected-kicker {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.lm-atlas-side .selected-title {
  font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.18;
  letter-spacing: -0.005em; margin: 0 0 14px; text-wrap: balance;
}
.lm-atlas-side .selected-deck {
  font-family: var(--serif); font-style: italic; font-size: 15.5px;
  line-height: 1.5; color: var(--ink-soft); margin: 0 0 22px;
}
.lm-atlas-side .selected-meta {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 22px; display: flex; gap: 12px; align-items: baseline;
}
.lm-atlas-side .selected-meta .section { color: var(--accent); }
.lm-atlas-side .selected-meta .sep {
  width: 10px; height: 1px; background: var(--ink-quiet); display: inline-block;
}
.lm-atlas-side .connections-head {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-mute);
  padding-top: 18px; border-top: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}
.lm-atlas-side .connections {
  list-style: none; padding: 0; margin: 0;
}
.lm-atlas-side .connections li {
  padding: 9px 0;
  font-family: var(--serif); font-size: 15px; line-height: 1.3;
  border-bottom: 1px dotted var(--rule);
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
}
.lm-atlas-side .connections li:hover .ct { color: var(--accent); }
.lm-atlas-side .connections .ct { color: var(--ink); }
.lm-atlas-side .connections .cs {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-quiet);
  white-space: nowrap;
}
/* ——— Tags ——— */
.lm-tags {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 12px;
}
.lm-tags a {
  color: var(--ink-mute);
  padding: 2px 10px;
  border-right: 1px solid var(--rule);
}
.lm-tags a:first-child { padding-left: 0; }
.lm-tags a:last-child { border-right: 0; padding-right: 0; }
.lm-tags a:hover { color: var(--accent); }

.lm-article-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 560px;
}
.lm-article-tags .label {
  color: var(--accent); margin-right: 14px;
}
.lm-article-tags a {
  color: var(--ink-soft);
  padding: 0 12px;
  border-right: 1px solid var(--rule);
}
.lm-article-tags a:last-child { border-right: 0; }
.lm-article-tags a:hover { color: var(--accent); }

/* ——— Search trigger in nav ——— */
.lm-nav-search {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  background: none; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: baseline; gap: 10px;
}
.lm-nav-search:hover { color: var(--accent); }
.lm-nav-search .kbd {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-quiet);
  border: 1px solid var(--rule);
  padding: 1px 6px;
}

/* ——— Search overlay ——— */
.lm-search-scrim {
  position: absolute; inset: 0;
  background: rgba(28,24,20,0.32);
  z-index: 20;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  backdrop-filter: blur(2px);
}
.lm-search-panel {
  width: min(820px, 92%);
  background: var(--paper);
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  max-height: 76vh;
  display: flex; flex-direction: column;
}
.lm-search-bar {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 28px 36px 22px;
  border-bottom: 1px solid var(--rule);
}
.lm-search-bar input {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  background: transparent;
  border: 0; outline: 0;
  color: var(--ink);
  letter-spacing: -0.005em;
  width: 100%;
}
.lm-search-bar input::placeholder {
  color: var(--ink-quiet);
  font-style: italic;
}
.lm-search-bar .close {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: none; border: 0; cursor: pointer; padding: 8px 0 8px 16px;
}
.lm-search-bar .close:hover { color: var(--accent); }
.lm-search-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule-soft);
}
.lm-search-meta .count { color: var(--accent); }
.lm-search-results {
  overflow-y: auto;
  list-style: none; padding: 0; margin: 0;
}
.lm-search-results::-webkit-scrollbar { width: 6px; }
.lm-search-results::-webkit-scrollbar-thumb { background: var(--rule); }
.lm-search-results li {
  padding: 22px 36px;
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
}
.lm-search-results li:hover { background: var(--paper-deep); }
.lm-search-results li.active { background: var(--paper-deep); }
.lm-search-results li.active .r-title { color: var(--accent); }
.lm-search-results .r-meta {
  display: flex; gap: 14px; align-items: baseline;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.lm-search-results .r-meta .section { color: var(--accent); }
.lm-search-results .r-meta .sep {
  width: 10px; height: 1px; background: var(--ink-quiet); display: inline-block;
}
.lm-search-results .r-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
  color: var(--ink);
  text-wrap: balance;
}
.lm-search-results .r-snippet {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  max-width: 68ch;
}
.lm-search-results .r-snippet mark {
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
}
.lm-search-empty {
  padding: 56px 36px 64px; text-align: center;
}
.lm-search-empty .e-title {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ink-soft); margin-bottom: 14px;
}
.lm-search-empty .e-sub {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute);
}
.lm-search-foot {
  border-top: 1px solid var(--rule);
  padding: 14px 36px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-mute);
}
.lm-search-foot .keys { display: flex; gap: 24px; }
.lm-search-foot .keys span em {
  font-style: normal; color: var(--ink-soft);
  border: 1px solid var(--rule); padding: 1px 6px; margin-right: 6px;
  font-family: var(--serif);
  font-size: 11px; letter-spacing: 0;
}

/* ——— Foundations page ——— */
.lm-foundations-head {
  padding: 40px 96px 32px;
  display: grid; grid-template-columns: 1fr 320px;
  gap: 56px; align-items: end;
  border-top: 1px solid var(--accent);
}
.lm-foundations-head .kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lm-foundations-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 96px;
  line-height: 0.92;
  letter-spacing: -0.018em;
  margin: 0 0 22px;
}
.lm-foundations-head .description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}
.lm-foundations-head .description em { font-style: italic; }
.lm-foundations-head .index-list {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 8px;
}
.lm-foundations-head .index-list .ihead {
  color: var(--accent); margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--accent);
}
.lm-foundations-head .index-list a {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule-soft);
  color: var(--ink-soft);
}
.lm-foundations-head .index-list a:hover { color: var(--accent); }
.lm-foundations-head .index-list a .n {
  font-family: var(--serif); font-size: 14px;
  font-feature-settings: "onum"; color: var(--ink-quiet);
  letter-spacing: 0;
}

.lm-cluster {
  padding: 64px 96px 24px;
  border-top: 1px solid var(--rule);
}
.lm-cluster:first-of-type { border-top: 1px solid var(--rule); }
.lm-cluster .cluster-head {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 56px; margin-bottom: 32px;
  align-items: baseline;
}
.lm-cluster .roman {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.32em;
  color: var(--accent);
  text-transform: uppercase;
}
.lm-cluster .roman .num {
  display: block;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin-top: 8px;
  color: var(--ink);
}
.lm-cluster .cluster-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.005em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lm-cluster .cluster-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
  max-width: 58ch;
}
.lm-cluster .lm-list { padding-left: 0; }

/* ——— Tag page ——— */
.lm-tag-head {
  padding: 48px 96px 36px;
  border-top: 1px solid var(--accent);
}
.lm-tag-head .crumb {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.lm-tag-head .crumb a { color: var(--accent); }
.lm-tag-head .kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lm-tag-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  font-style: italic;
}
.lm-tag-head .description {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}

.lm-tag-cloud {
  padding: 28px 96px 40px;
  border-top: 1px solid var(--rule);
}
.lm-tag-cloud .ch {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.lm-tag-cloud .cloud {
  display: flex; flex-wrap: wrap;
  column-gap: 4px; row-gap: 14px;
  align-items: baseline;
}
.lm-tag-cloud .cloud a {
  font-family: var(--serif);
  color: var(--ink-soft);
  padding: 0 14px;
  border-right: 1px solid var(--rule);
  line-height: 1;
}
.lm-tag-cloud .cloud a:last-child { border-right: 0; }
.lm-tag-cloud .cloud a:hover { color: var(--accent); }
.lm-tag-cloud .cloud a .count {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-quiet);
  margin-left: 6px;
  vertical-align: super;
}
.lm-tag-cloud .cloud a.s-1 { font-size: 16px; }
.lm-tag-cloud .cloud a.s-2 { font-size: 19px; }
.lm-tag-cloud .cloud a.s-3 { font-size: 24px; }
.lm-tag-cloud .cloud a.s-4 { font-size: 30px; font-style: italic; }
.lm-tag-cloud .cloud a.s-5 { font-size: 38px; color: var(--accent); font-style: italic; }

.lm-tag-list {
  padding: 24px 96px 60px;
}

.lm-atlas-side .read {
  margin-top: 26px;
  display: inline-block;
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* ——— Reading column (single post + about) ——— */
.lm-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.lm-article-meta {
  display: flex; justify-content: center; gap: 14px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.lm-article-meta .section { color: var(--accent); }
.lm-article-meta .sep {
  display: inline-block; width: 12px; height: 1px; background: var(--ink-quiet);
}
.lm-article h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 24px;
  text-wrap: balance;
}
.lm-article .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 42px;
  max-width: 36ch;
  text-wrap: balance;
}
.lm-article .byline {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 40px;
}
.lm-article .byline em { font-style: normal; color: var(--ink-soft); }
.lm-article .dropcap-rule {
  width: 64px; height: 1px; background: var(--accent);
  margin: 0 auto 42px;
}

.lm-article p {
  font-size: 18.5px;
  line-height: 1.72;
  margin: 0 0 1.35em;
  color: var(--ink);
  hyphens: auto;
  text-align: justify;
  text-justify: inter-word;
}
.lm-article p.lede { font-size: 20px; line-height: 1.6; }
.lm-article p.lede::first-letter {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 4.2em;
  line-height: 0.86;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent);
}
.lm-article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.01em;
  margin: 56px 0 18px;
  text-align: left;
}
.lm-article h2 .num {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.lm-article blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  border-left: 1px solid var(--accent);
  margin: 36px 0;
  padding: 6px 0 6px 28px;
  text-align: left;
}
.lm-article blockquote cite {
  display: block; margin-top: 14px;
  font-family: var(--sans); font-style: normal;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-mute);
}
.lm-article a.inline {
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.lm-article .ornament-wrap { display: flex; justify-content: center; align-items: center; margin: 48px 0; }
.lm-article hr.ornament {
  border: 0; margin: 0;
  position: relative; height: 12px; width: 140px;
  background:
    linear-gradient(to right, transparent 0, var(--rule) 0, var(--rule) 60px, transparent 60px, transparent 80px, var(--rule) 80px, var(--rule) 140px);
  background-size: 100% 1px; background-position: 0 50%; background-repeat: no-repeat;
}
.lm-article hr.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; background: var(--accent);
  transform: translate(-50%,-50%) rotate(45deg);
}

/* ——— "Read more in section" footer ——— */
.lm-readmore {
  max-width: 680px; margin: 0 auto;
  padding: 36px 24px 0;
  border-top: 1px solid var(--rule);
}
.lm-readmore .lead {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.lm-readmore .lead .section { color: var(--accent); }
.lm-readmore ul { list-style: none; padding: 0; margin: 0; }
.lm-readmore li {
  padding: 20px 0; border-top: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: baseline;
}
.lm-readmore li:first-child { border-top: 0; }
.lm-readmore .t {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.003em;
}
.lm-readmore .t:hover { color: var(--accent); }
.lm-readmore .d {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
}

/* ——— Subscribe block ——— */
.lm-subscribe {
  max-width: 680px; margin: 64px auto 0;
  padding: 48px 24px 80px;
  border-top: 1px solid var(--accent);
  text-align: center;
}
.lm-subscribe .label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lm-subscribe .pitch {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 auto 28px;
  max-width: 46ch;
}
.lm-subscribe form {
  display: grid; grid-template-columns: 1fr auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  max-width: 460px; margin: 0 auto;
}
.lm-subscribe input {
  font-family: var(--serif);
  font-size: 17px;
  background: transparent;
  border: 0; outline: 0;
  padding: 14px 0;
  color: var(--ink);
}
.lm-subscribe input::placeholder { color: var(--ink-quiet); font-style: italic; }
.lm-subscribe button {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: transparent; border: 0;
  border-left: 1px solid var(--ink);
  padding: 0 22px;
  color: var(--ink);
  cursor: pointer;
}
.lm-subscribe button:hover { color: var(--accent); }
.lm-subscribe .fine {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 18px;
}

/* ——— Tag chips ——— */
/* The tag system is family-coded:
   - subjects → oxblood (the primary themes)
   - regions  → ink (charcoal, neutral)
   - modes    → italic (set apart by typographic register)
   A small leading "#" sits in front of every tag, slightly muted, to read
   as a hashtag without becoming visually loud. */
.lm-tags {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  margin-top: 12px;
}
.lm-tag {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex; align-items: baseline; gap: 3px;
  transition: color .12s;
}
.lm-tag .hash { color: var(--ink-quiet); font-weight: 400; }
.lm-tag:hover { color: var(--accent); }
.lm-tag:hover .hash { color: var(--accent); }
.lm-tag.is-active { color: var(--accent); }
.lm-tag.is-active .hash { color: var(--accent); }

/* Family treatments */
.lm-tag.fam-subjects { color: var(--accent); }
.lm-tag.fam-subjects .hash { color: rgba(107,31,31,0.55); }
.lm-tag.fam-regions { color: var(--ink-soft); }
.lm-tag.fam-regions .hash { color: var(--ink-quiet); }
.lm-tag.fam-modes {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink-soft);
}
.lm-tag.fam-modes .hash {
  font-family: var(--sans); font-style: normal; font-size: 10px;
  letter-spacing: 0.18em; color: var(--ink-quiet); margin-right: 1px;
}
.lm-tag.fam-modes:hover { color: var(--accent); }

/* Outline variant — used inside articles and search */
.lm-tags-article {
  display: flex; flex-wrap: wrap; gap: 8px 10px; row-gap: 10px;
  justify-content: center;
  margin: 0 auto 16px;
  max-width: 640px;
}
.lm-tags-article .lm-tag {
  border: 1px solid var(--rule);
  padding: 5px 12px;
  background: transparent;
}
.lm-tags-article .lm-tag:hover { border-color: var(--accent); }

/* "Mini-tag" — used in Atlas sidebar and tag-related contexts.
   Same family code but rendered as small inline pills. */
.mini-tag {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: baseline; gap: 3px;
  transition: color .12s, border-color .12s, background .12s;
}
.mini-tag .hash { color: var(--ink-quiet); }
.mini-tag:hover { color: var(--accent); border-color: var(--accent); }
.mini-tag:hover .hash { color: var(--accent); }
.mini-tag.is-active { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.mini-tag.is-active .hash { color: rgba(250,247,240,0.7); }
.mini-tag.fam-subjects { color: var(--accent); }
.mini-tag.fam-subjects .hash { color: rgba(107,31,31,0.55); }
.mini-tag.fam-modes {
  font-family: var(--serif); font-style: italic;
  font-size: 12px; letter-spacing: 0.01em; text-transform: none;
}
.mini-tag.fam-modes .hash {
  font-family: var(--sans); font-style: normal;
  font-size: 9px; letter-spacing: 0.18em; margin-right: 1px;
}

/* ——— Search overlay ——— */
.lm-search-trigger {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent; border: 0; padding: 0;
  display: inline-flex; align-items: baseline; gap: 10px;
}
.lm-search-trigger:hover { color: var(--accent); }
.lm-search-trigger .kbd {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--ink-quiet);
  border: 1px solid var(--rule);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: none;
}
.lm-search-overlay {
  position: absolute; inset: 0;
  background: rgba(28, 24, 20, 0.42);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
  animation: lm-fade .15s ease;
}
@keyframes lm-fade { from { opacity: 0; } to { opacity: 1; } }
.lm-search-panel {
  width: min(720px, 92%);
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  max-height: 78vh;
  display: flex; flex-direction: column;
}
.lm-search-input-row {
  display: flex; align-items: baseline;
  border-bottom: 1px solid var(--accent);
  padding: 22px 28px;
  gap: 16px;
}
.lm-search-input-row .label {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent); flex-shrink: 0;
}
.lm-search-input-row input {
  flex: 1; background: transparent; border: 0; outline: 0;
  font-family: var(--serif); font-size: 26px;
  color: var(--ink);
  font-style: italic;
}
.lm-search-input-row input::placeholder { color: var(--ink-quiet); }
.lm-search-input-row .esc {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-quiet);
  border: 1px solid var(--rule); padding: 2px 6px;
  cursor: pointer; background: transparent;
}
.lm-search-input-row .esc:hover { color: var(--accent); border-color: var(--accent); }
.lm-search-tagrow {
  padding: 14px 28px 14px;
  border-bottom: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px;
}
.lm-search-tagrow .lead {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-mute);
}
.lm-search-results {
  overflow-y: auto; padding: 8px 0;
}
.lm-search-empty {
  padding: 60px 28px; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--ink-mute);
  font-size: 17px;
}
.lm-search-result {
  padding: 18px 28px; border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline;
}
.lm-search-result:last-child { border-bottom: 0; }
.lm-search-result:hover { background: var(--paper-deep); }
.lm-search-result .t {
  font-family: var(--serif); font-weight: 500; font-size: 19px;
  color: var(--ink); margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.lm-search-result .e {
  font-family: var(--serif); font-size: 14.5px; line-height: 1.45;
  color: var(--ink-mute); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.lm-search-result .m {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute);
  text-align: right; white-space: nowrap;
}
.lm-search-result .m .section { color: var(--accent); display: block; margin-bottom: 4px; }
.lm-search-result mark {
  background: rgba(107,31,31,0.14); color: var(--ink); padding: 0 2px;
}
.lm-search-foot {
  padding: 14px 28px; border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; justify-content: space-between;
}
.lm-search-foot .acc { color: var(--accent); }

/* ——— Page foot (colophon) ——— */
.lm-colophon {
  border-top: 1px solid var(--rule);
  margin: 0 72px;
  padding: 36px 0 44px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lm-colophon .acc { color: var(--accent); }
.lm-colophon .links { display: flex; gap: 28px; }

/* ——— Section page header ——— */
.lm-section-head {
  padding: 40px 72px 28px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
.lm-section-head .kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lm-section-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 28px;
}
.lm-section-head .description {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0;
}
.lm-section-head .description em { font-style: italic; }
.lm-section-list {
  max-width: 880px; margin: 0 auto; padding: 12px 72px 60px;
}
.lm-section-list .yearhead {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 40px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--accent);
}
.lm-section-list .yearhead:first-child { margin-top: 0; }
.lm-section-tagbar {
  max-width: 880px; margin: 0 auto; padding: 0 72px;
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}
.lm-section-tagbar .lead {
  font-family: var(--sans); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-mute);
  flex-shrink: 0;
}

/* ——— Section pagination ——— */
.lm-pagination {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 56px; padding: 24px 0 8px;
  border-top: 1px solid var(--accent);
}
.lm-pagination .pag-btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  background: transparent; border: 0;
  padding: 8px 0; cursor: pointer;
  transition: color .12s;
}
.lm-pagination .pag-btn:hover:not(:disabled) { color: var(--accent); }
.lm-pagination .pag-btn:disabled {
  color: var(--ink-quiet);
  cursor: default;
}
.lm-pagination .pag-indicator {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lm-pagination .pag-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: none;
}
.lm-pagination .pag-of {
  color: var(--ink-quiet);
}
.lm-pagination .pag-dots {
  display: inline-flex; gap: 8px; margin-left: 14px;
  align-items: center;
}
.lm-pagination .pag-dot {
  width: 6px; height: 6px;
  border: 1px solid var(--ink-quiet);
  background: transparent;
  cursor: pointer; transform: rotate(45deg);
  transition: background .12s, border-color .12s;
}
.lm-pagination .pag-dot:hover { border-color: var(--accent); }
.lm-pagination .pag-dot.is-active {
  background: var(--accent); border-color: var(--accent);
}

/* About */
.lm-article.about h1 {
  font-size: 64px;
  margin-bottom: 16px;
}
.lm-article.about .subtitle {
  margin-bottom: 64px;
}

/* Selection */
.lm ::selection { background: var(--accent); color: var(--paper); }

/* ============================================================
   ATLAS — additions: in-graph legend strip, sidebar filter/toggle,
   tag chips inside selected-block, weighted connection pip
   ============================================================ */
.lm-atlas-graph .legend-strip {
  position: absolute; top: 16px; left: 16px; right: 16px;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  z-index: 2;
  pointer-events: none;
}
.lm-atlas-graph .legend-strip .lg-item {
  display: inline-flex; align-items: center; gap: 7px;
}
.lm-atlas-graph .legend-strip .lg-dot {
  width: 9px; height: 9px; border-radius: 50%;
}
.lm-atlas-graph .legend-strip .lg-dot.fnd { background: var(--accent); }
.lm-atlas-graph .legend-strip .lg-dot.ana { background: var(--ink); }
.lm-atlas-graph .legend-strip .lg-ring {
  width: 10px; height: 10px; border: 1.5px solid var(--ink); border-radius: 50%;
}
.lm-atlas-graph .legend-strip .lg-line {
  display: inline-block; width: 18px;
  background: rgba(28,24,20,0.55);
}
.lm-atlas-graph .legend-strip .lg-line.w1 { height: 1px; background: rgba(28,24,20,0.3); }
.lm-atlas-graph .legend-strip .lg-line.w2 { height: 1.5px; background: rgba(28,24,20,0.55); }
.lm-atlas-graph .legend-strip .lg-line.w3 { height: 2.5px; background: rgba(28,24,20,0.75); }
.lm-atlas-graph .legend-strip .lg-sep {
  width: 1px; height: 12px; background: var(--rule); display: inline-block;
  align-self: center;
}

/* ——— Atlas sidebar — filter block ——— */
.lm-atlas-side .filter-block {
  padding-bottom: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--rule-soft);
}
.lm-atlas-side .filter-head {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.lm-atlas-side .filter-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.lm-atlas-side .filter-tags .mini-tag {
  padding: 2px 7px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
}
.lm-atlas-side .filter-tags .mini-tag.fam-modes { font-size: 11px; }
.lm-atlas-side .toggle {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
}
.lm-atlas-side .toggle input {
  accent-color: var(--accent);
  margin: 0;
}
.lm-atlas-side .toggle em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-mute);
}

.lm-atlas-side .selected-tags {
  display: flex; flex-wrap: wrap; gap: 5px;
  margin: -6px 0 26px;
}
.lm-atlas-side .selected-tags .mini-tag {
  padding: 2px 7px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
}
.lm-atlas-side .selected-tags .mini-tag.fam-modes { font-size: 11px; }

.lm-atlas-side .connections li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
}
.lm-atlas-side .connections .cl {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.lm-atlas-side .connections .cw {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  white-space: nowrap;
}
.lm-atlas-side .connections .cw .pip {
  display: inline-block;
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%;
}
.lm-atlas-side .connections .cw .pip.w1 { opacity: 0.35; }
.lm-atlas-side .connections .cw .pip.w2 { opacity: 0.6; }
.lm-atlas-side .connections .cw .pip.w3 { opacity: 0.85; }
.lm-atlas-side .connections .cw .pip.w4 { opacity: 1; }

/* ============================================================
   TAG INDEX
   ============================================================ */
.lm-tagindex-head {
  padding: 40px 96px 36px;
  border-top: 1px solid var(--accent);
  max-width: 1000px; margin: 0 auto;
}
.lm-tagindex-head .kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.lm-tagindex-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 96px;
  line-height: 0.92;
  letter-spacing: -0.018em;
  margin: 0 0 28px;
}
.lm-tagindex-head .description {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}
.lm-tagindex-head .description em { font-style: italic; color: var(--ink); }

.lm-tag-cloud {
  max-width: 1000px; margin: 0 auto;
  padding: 28px 96px 56px;
}
.lm-tag-cloud .cloud {
  display: flex; flex-wrap: wrap; align-items: baseline;
  row-gap: 18px;
}
.lm-tag-cloud .cloud a {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  padding: 0 18px;
  border-right: 1px solid var(--rule);
  line-height: 1;
  letter-spacing: -0.005em;
  display: inline-flex; align-items: baseline; gap: 6px;
}
.lm-tag-cloud .cloud a:last-child { border-right: 0; }
.lm-tag-cloud .cloud a:hover { color: var(--accent); }
.lm-tag-cloud .cloud a .count {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--ink-quiet);
  vertical-align: super;
}
.lm-tag-cloud .cloud a.s-1 { font-size: 14px; color: var(--ink-mute); }
.lm-tag-cloud .cloud a.s-2 { font-size: 18px; color: var(--ink-soft); }
.lm-tag-cloud .cloud a.s-3 { font-size: 24px; }
.lm-tag-cloud .cloud a.s-4 { font-size: 32px; font-style: italic; }
.lm-tag-cloud .cloud a.s-5 { font-size: 44px; color: var(--accent); font-style: italic; }
.lm-tag-cloud .cloud a.fam-modes { font-style: italic; }

/* Family sections */
.lm-tagfamily {
  max-width: 1000px; margin: 0 auto;
  padding: 56px 96px 24px;
  border-top: 1px solid var(--rule);
}
.lm-tagfamily .fam-head {
  display: grid; grid-template-columns: 320px 1fr;
  gap: 56px; margin-bottom: 36px;
  align-items: baseline;
}
.lm-tagfamily .fam-kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
}
.lm-tagfamily .fam-kicker.fam-regions { color: var(--ink); }
.lm-tagfamily .fam-kicker.fam-modes {
  font-family: var(--serif); font-style: italic;
  letter-spacing: 0.04em; font-size: 18px;
  text-transform: none; color: var(--ink);
}
.lm-tagfamily .fam-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch; margin: 0;
}
.lm-tagfamily-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  column-gap: 64px;
}
.lm-tagfamily-list li {
  padding: 24px 0 26px;
  border-top: 1px solid var(--rule);
  cursor: pointer;
}
.lm-tagfamily-list li:hover .name { color: var(--accent); }
.lm-tagfamily-list .head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
  gap: 18px;
}
.lm-tagfamily-list .name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: baseline; gap: 4px;
  transition: color .12s;
}
.lm-tagfamily-list .name .hash { color: var(--ink-quiet); font-weight: 400; }
.lm-tagfamily-list .name.fam-subjects { color: var(--accent); }
.lm-tagfamily-list .name.fam-subjects .hash { color: rgba(107,31,31,0.55); }
.lm-tagfamily-list .name.fam-modes {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; letter-spacing: 0.01em; text-transform: none;
}
.lm-tagfamily-list .name.fam-modes .hash {
  font-family: var(--sans); font-style: normal; font-size: 10px;
}
.lm-tagfamily-list .count {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.lm-tagfamily-list .desc {
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 10px;
  max-width: 52ch;
}
.lm-tagfamily-list .recent {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.lm-tagfamily-list .recent em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ============================================================
   TAG PAGE (single tag detail)
   ============================================================ */
.lm-tag-head {
  padding: 40px 96px 32px;
  border-top: 1px solid var(--accent);
  max-width: 1100px; margin: 0 auto;
}
.lm-tag-head .crumb {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 22px;
}
.lm-tag-head .crumb a { color: var(--accent); }
.lm-tag-head .crumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lm-tag-head .crumb .dot { color: var(--ink-quiet); }
.lm-tag-head .kicker {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.lm-tag-head .kicker.fam-regions { color: var(--ink); }
.lm-tag-head .kicker.fam-modes {
  font-family: var(--serif); font-style: italic;
  letter-spacing: 0.04em; font-size: 16px;
  text-transform: none; color: var(--ink);
}
.lm-tag-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
}
.lm-tag-head h1 .hash {
  color: var(--ink-quiet);
  font-weight: 400;
  margin-right: 0.05em;
}
.lm-tag-head .description {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 28px;
  font-style: italic;
}
.lm-tag-head .meta-row {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-top: 18px;
  border-top: 1px solid var(--rule-soft);
}
.lm-tag-head .meta-row strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
  font-feature-settings: "onum";
  margin-right: 6px;
}
.lm-tag-head .meta-row .sep { color: var(--ink-quiet); }
.lm-tag-head .meta-row em {
  font-style: italic; color: var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.lm-tag-body {
  max-width: 1100px; margin: 0 auto;
  padding: 0 96px 60px;
  display: grid; grid-template-columns: 1fr 280px;
  gap: 64px;
}

.lm-tag-list {
  padding-top: 32px;
}
.lm-tag-list .tagsec { margin-bottom: 36px; }
.lm-tag-list .tagsec-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--accent);
  margin-bottom: 4px;
}
.lm-tag-list .tagsec-head .sec {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}
.lm-tag-list .tagsec-head .sec:hover { text-decoration: underline; text-underline-offset: 3px; }
.lm-tag-list .tagsec-head .ct {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-quiet);
  font-feature-settings: "onum";
}

.lm-tag-aside {
  padding-top: 32px;
}
.lm-tag-aside .aside-block {
  padding: 0 0 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--rule-soft);
}
.lm-tag-aside .aside-block:last-child { border-bottom: 0; }
.lm-tag-aside .aside-head {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 16px;
}
.lm-tag-aside .aside-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-mute);
  margin: 0 0 18px;
}
.lm-tag-aside .aside-desc em { font-style: normal; color: var(--accent); }
.lm-tag-aside .related,
.lm-tag-aside .family-siblings {
  list-style: none; padding: 0; margin: 0;
}
.lm-tag-aside .related li,
.lm-tag-aside .family-siblings li {
  padding: 10px 0;
  border-bottom: 1px dotted var(--rule);
  display: flex; justify-content: space-between; align-items: baseline;
  cursor: pointer;
  gap: 12px;
}
.lm-tag-aside .related li:last-child,
.lm-tag-aside .family-siblings li:last-child { border-bottom: 0; }
.lm-tag-aside .related li:hover .name,
.lm-tag-aside .family-siblings li:hover { color: var(--accent); }
.lm-tag-aside .related .name {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: baseline; gap: 3px;
  transition: color .12s;
}
.lm-tag-aside .related .name .hash { color: var(--ink-quiet); font-weight: 400; }
.lm-tag-aside .related .name.fam-subjects { color: var(--accent); }
.lm-tag-aside .related .name.fam-subjects .hash { color: rgba(107,31,31,0.55); }
.lm-tag-aside .related .name.fam-modes {
  font-family: var(--serif); font-style: italic;
  font-size: 15px; letter-spacing: 0.01em; text-transform: none;
}
.lm-tag-aside .related .name.fam-modes .hash {
  font-family: var(--sans); font-style: normal; font-size: 10px;
}
.lm-tag-aside .related .count {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-quiet);
  font-feature-settings: "onum";
}
.lm-tag-aside .related .empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-quiet);
  border-bottom: 0;
  cursor: default;
  padding: 8px 0;
}
.lm-tag-aside .family-siblings li {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .12s;
}
.lm-tag-aside .family-siblings li .hash { color: var(--ink-quiet); font-weight: 400; }
.lm-tag-aside .family-siblings li .ct {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-quiet);
  font-feature-settings: "onum";
  text-transform: none;
  letter-spacing: 0;
}
.lm-tag-aside .family-siblings li.is-active {
  color: var(--accent);
}
.lm-tag-aside .family-siblings li.is-active .hash { color: rgba(107,31,31,0.55); }
.lm-tag-aside .family-siblings li.is-active .ct { color: var(--accent); }


/* ============================================================
   RESPONSIVE LAYER
   The base styles above are fixed-width (72–96px gutters, multi-
   column grids, display type up to 96px). These breakpoints reduce
   gutters, collapse every grid to a single column, and scale the
   display type so the site reads correctly on tablet and phone.
   ============================================================ */

/* ——— Tablet (≤ 1024px) ——— */
@media (max-width: 1024px) {
  .lm { font-size: 17px; }

  /* Gutters: pull the big 72/96px paddings in */
  .lm-nav { padding: 24px 40px 18px; }
  .lm-nav-rule,
  .lm-atlas-stage,
  .lm-colophon { margin: 0 40px; }
  .lm-frontispiece { padding: 72px 40px 64px; }
  .lm-mast-inner { padding: 40px 40px 32px; }
  .lm-section-band,
  .lm-band { padding-left: 40px; padding-right: 40px; }
  .lm-atlas-head { padding: 32px 40px 24px; }
  .lm-foundations-head,
  .lm-cluster,
  .lm-tag-cloud,
  .lm-tagindex-head,
  .lm-tagfamily,
  .lm-tag-head { padding-left: 40px; padding-right: 40px; }
  .lm-tag-body { padding-left: 40px; padding-right: 40px; }
  .lm-section-head,
  .lm-section-list,
  .lm-section-tagbar { padding-left: 40px; padding-right: 40px; }

  /* Collapse fixed sidebar / two-column grids */
  .lm-band .band-head { grid-template-columns: 1fr; gap: 18px; }
  .lm-atlas-head { grid-template-columns: 1fr; gap: 28px; }
  .lm-foundations-head,
  .lm-tagfamily .fam-head { grid-template-columns: 1fr; gap: 24px; }
  .lm-cluster .cluster-head { grid-template-columns: 1fr; gap: 16px; }
  .lm-tag-body { grid-template-columns: 1fr; gap: 40px; }

  /* Trim the largest display type a touch */
  .lm-wordmark { font-size: 72px; }
  .lm-section-head h1,
  .lm-foundations-head h1,
  .lm-tagindex-head h1 { font-size: 72px; }
  .lm-tag-head h1,
  .lm-atlas-head h1 { font-size: 64px; }
}

/* ——— Phone (≤ 640px) ——— */
@media (max-width: 640px) {
  .lm { font-size: 16px; }

  /* Tighten every gutter to a phone-appropriate margin */
  .lm-nav-rule,
  .lm-atlas-stage,
  .lm-colophon { margin: 0 20px; }
  .lm-frontispiece { padding: 48px 20px 44px; }
  .lm-mast-inner { padding: 30px 20px 24px; }
  .lm-section-band,
  .lm-band { padding-left: 20px; padding-right: 20px; }
  .lm-band { padding-top: 48px; padding-bottom: 44px; }
  .lm-atlas-head,
  .lm-foundations-head,
  .lm-cluster,
  .lm-tag-cloud,
  .lm-tagindex-head,
  .lm-tagfamily,
  .lm-tag-head,
  .lm-tag-body,
  .lm-section-head,
  .lm-section-list,
  .lm-section-tagbar { padding-left: 20px; padding-right: 20px; }

  /* ——— Nav: wrap and shrink ——— */
  .lm-nav {
    flex-direction: column; align-items: center; gap: 14px;
    padding: 20px 20px 16px; text-align: center;
  }
  .lm-nav-links {
    flex-wrap: wrap; justify-content: center; gap: 14px 18px;
    font-size: 10px; letter-spacing: 0.16em;
  }
  .lm-nav-links .lm-nav-sep { display: none; }

  /* ——— Masthead ——— */
  .lm-wordmark { font-size: 44px; letter-spacing: 0.08em; margin-left: 0.08em; }
  .lm-tagline { font-size: 18px; }
  .lm-volume { margin-bottom: 26px; }
  .lm-est { margin-top: 36px; gap: 14px; flex-wrap: wrap; }
  .lm-mast-inner .name { font-size: 24px; letter-spacing: 0.22em; margin-left: 0.22em; }

  /* ——— Section bands / lists ——— */
  .lm-section-band .header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 24px; }
  .lm-band h2 { font-size: 32px; }
  .lm-grid2 { grid-template-columns: 1fr; column-gap: 0; }
  .lm-grid2 .lm-list li:nth-child(2) { border-top: 0; }
  .lm-list .item-title { font-size: 23px; }
  .lm-list .item-excerpt { font-size: 16px; }

  /* ——— Long-Form: drop the number + spec columns into one stack ——— */
  .lm-longform li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .lm-longform .num { font-size: 40px; }
  .lm-longform .body .title { font-size: 27px; }
  .lm-longform .body .deck { font-size: 16px; }
  .lm-longform .specs { text-align: left; }

  /* ——— Big page headers ——— */
  .lm-section-head h1,
  .lm-foundations-head h1,
  .lm-tagindex-head h1 { font-size: 46px; line-height: 0.98; }
  .lm-tag-head h1,
  .lm-atlas-head h1 { font-size: 44px; }
  .lm-section-head .description,
  .lm-foundations-head .description,
  .lm-tagindex-head .description,
  .lm-tag-head .description,
  .lm-atlas-head .description { font-size: 18px; }

  /* Clusters & families */
  .lm-cluster .roman .num { font-size: 46px; }
  .lm-cluster .cluster-title { font-size: 27px; }
  .lm-tagfamily-list { grid-template-columns: 1fr; column-gap: 0; }
  .lm-tagfamily-list li:nth-child(odd) ~ li { /* keep simple stacked borders */ }

  /* ——— Atlas: stack graph over sidebar ——— */
  .lm-atlas-stage { grid-template-columns: 1fr; }
  .lm-atlas-graph { border-right: 0; border-bottom: 1px solid var(--rule); min-height: 460px; }
  .lm-atlas-side { padding: 28px 20px 48px; }
  .lm-atlas-head .stats .row .v { font-size: 24px; }

  /* ——— Article reading column ——— */
  .lm-article { padding: 44px 20px 64px; }
  .lm-article h1 { font-size: 36px; }
  .lm-article .subtitle { font-size: 19px; }
  .lm-article p { font-size: 17.5px; text-align: left; hyphens: none; }
  .lm-article p.lede { font-size: 18.5px; }
  .lm-article blockquote { font-size: 19px; padding-left: 20px; }
  .lm-readmore,
  .lm-subscribe { padding-left: 20px; padding-right: 20px; }
  .lm-readmore li { grid-template-columns: 1fr; gap: 6px; }
  .lm-readmore .d { white-space: normal; }

  /* ——— Subscribe form: stack field + button ——— */
  .lm-subscribe form { grid-template-columns: 1fr; }
  .lm-subscribe button {
    border-left: 0; border-top: 1px solid var(--ink);
    padding: 14px 0; width: 100%;
  }

  /* ——— Search overlay ——— */
  .lm-search-panel { width: 94%; }
  .lm-search-input-row { padding: 18px 20px; }
  .lm-search-input-row input { font-size: 21px; }
  .lm-search-bar { padding: 22px 20px 18px; }
  .lm-search-bar input { font-size: 24px; }
  .lm-search-result { grid-template-columns: 1fr; gap: 6px; }
  .lm-search-result .m { text-align: left; }
  .lm-search-results li,
  .lm-search-meta,
  .lm-search-foot { padding-left: 20px; padding-right: 20px; }

  /* ——— Colophon ——— */
  .lm-colophon { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lm-colophon .links { flex-wrap: wrap; gap: 16px; }

  /* ——— Section filter bar: wrap the tag chips ——— */
  .lm-section-tagbar { flex-wrap: wrap; gap: 12px 14px; }

  /* ——— Tag detail meta / pagination ——— */
  .lm-tag-head h1 .hash { margin-right: 0.03em; }
  .lm-pagination { flex-wrap: wrap; gap: 16px; }

  /* ——— Tag page aside: let long uppercase tag names wrap instead of
     overflowing the collapsed grid track ——— */
  .lm-tag-body > * { min-width: 0; }
  .lm-tag-aside .related li,
  .lm-tag-aside .family-siblings li { flex-wrap: wrap; gap: 4px 12px; }
  .lm-tag-aside .related .name { letter-spacing: 0.14em; }
}
