/* ════════════════════════════════════════════════════════════════════════
   VE design system
   Black, white and ivory. Strong type. Generous space. Geometry, not decoration.
   Tokens → base → layout → components → diagrams → pages.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink: #111110;
  --paper: #f4f2ec; /* ivory */
  --white: #ffffff;
  --mute: #66645f;
  --line: rgba(17, 17, 16, 0.16);
  --line-strong: #111110;

  --sans: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --serif: "Iowan Old Style", Charter, "Source Serif 4", Georgia, "Hiragino Mincho ProN",
    "Noto Serif JP", "Yu Mincho", YuMincho, serif;

  --fs-hero: clamp(3rem, 7.8vw, 8rem);
  --fs-display: clamp(2.6rem, 6.8vw, 6.25rem);
  --fs-h2: clamp(1.6rem, 3.1vw, 2.5rem);
  --fs-h3: 1.1875rem;
  --fs-lead: clamp(1.1875rem, 1.6vw, 1.4375rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.6875rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: clamp(4rem, 9vw, 8.5rem);

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --max: 82rem;
  --measure: 40rem;
  --rule: 1px solid var(--line-strong);
  --rule-soft: 1px solid var(--line);
}

/* ── Base ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Anchored sections land below the sticky header (4.25rem). */
[id] { scroll-margin-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.lang-ja { line-height: 1.85; line-break: strict; }
.lang-ja :is(h1, h2, h3, .statement, .closing, .lead) { word-break: auto-phrase; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
strong { font-weight: 700; }
::selection { background: var(--ink); color: var(--paper); }
.section--ink ::selection { background: var(--paper); color: var(--ink); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--space-2) var(--space-3); z-index: 10; }
.skip:focus { left: var(--space-3); top: var(--space-3); }

/* ── Layout ─────────────────────────────────────────────────────────── */
.container { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space-7); }
.section + .section--paper:not(.section--flush), .section--paper + .section--paper { border-top: var(--rule-soft); }
.section--ink { background: var(--ink); color: var(--paper); --line: rgba(244, 242, 236, 0.22); --line-strong: var(--paper); --mute: #a9a69e; }
.section--white { background: var(--white); }
.section--tight { padding-block: var(--space-6); }

.split { display: grid; gap: var(--space-5); }
@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .sticky { position: sticky; top: 6rem; align-self: start; }
}
.stack > * + * { margin-top: var(--space-5); }
.stack-sm > * + * { margin-top: var(--space-3); }
.measure { max-width: var(--measure); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ── Typography ─────────────────────────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 1.5;
}
.display, .hero__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.display .line, .hero__title .line { display: block; }
.heading__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.lang-ja .heading__title { letter-spacing: 0; line-height: 1.4; }
.heading .eyebrow { margin-bottom: var(--space-3); }
.statement { font-size: var(--fs-lead); font-weight: 700; line-height: 1.55; max-width: 48rem; }
.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 46rem; }
.closing {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 54rem;
  padding-top: var(--space-5);
  margin-top: var(--space-6);
  border-top: var(--rule);
}
.lang-ja .closing { letter-spacing: 0; line-height: 1.5; }

.prose { font-family: var(--serif); font-size: 1.125rem; line-height: 1.8; max-width: var(--measure); }
.lang-ja .prose { font-size: 1.0625rem; line-height: 2; text-align: justify; }
.prose > * + * { margin-top: 1.15em; }
.prose strong { font-family: var(--sans); font-weight: 700; }
.lang-ja .prose strong { font-family: var(--sans); }
.prose h2 { font-family: var(--sans); font-size: var(--fs-h3); margin-top: 2.2em; }
.prose h3 { font-family: var(--sans); font-size: 1rem; margin-top: 1.8em; }
.prose ul, .prose ol:not(.notes) { padding-left: 1.2em; }
.prose ul { list-style: square; }
.prose ol:not(.notes) { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { border-left: 2px solid currentColor; padding-left: var(--space-4); }
.prose .table { overflow-x: auto; font-family: var(--sans); font-size: var(--fs-small); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.6em 0.8em 0.6em 0; border-bottom: var(--rule-soft); }
.prose th { border-bottom: var(--rule); font-weight: 700; }
sup.fn { font-family: var(--sans); font-size: 0.65em; color: var(--mute); }
.notes { font-family: var(--sans); font-size: 0.8125rem; line-height: 1.6; color: var(--mute); max-width: var(--measure); list-style: none; counter-reset: none; }
.notes li { padding-left: 2.2em; text-indent: -2.2em; }
.notes li::before { content: "[" attr(value) "]"; display: inline-block; width: 2.2em; text-indent: 0; }
.notes li + li { margin-top: 0.4em; }
.small { font-size: var(--fs-small); color: var(--mute); line-height: 1.6; }

/* ── Header ─────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: var(--rule-soft); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 4.25rem; }
.site-header__home { text-decoration: none; flex: none; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; }
.wordmark__symbol { width: 1.5rem; height: 1.5rem; }
.wordmark__text { font-weight: 700; font-size: 1.375rem; letter-spacing: 0.02em; line-height: 1; }
.nav { display: none; }
.nav ul { display: flex; gap: clamp(0.9rem, 1.6vw, 1.6rem); }
.nav a, .menu a { text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.02em; display: inline-flex; gap: 0.45em; align-items: baseline; }
.nav a:hover span, .nav a[aria-current] span { text-decoration: underline; text-underline-offset: 0.35em; }
.nav { align-items: center; gap: clamp(1.5rem, 3vw, 3rem); }
.nav__secondary { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: var(--rule-soft); }
.lang { font-size: 0.8125rem; }
@media (min-width: 68rem) { .nav { display: flex; } .menu { display: none; } }

.menu summary { list-style: none; cursor: pointer; font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0; }
.menu summary::-webkit-details-marker { display: none; }
.menu__close, .menu[open] .menu__open { display: none; }
.menu[open] .menu__close { display: inline; }
.menu__panel { position: absolute; left: 0; right: 0; top: 4.25rem; background: var(--paper); border-bottom: var(--rule); padding: var(--space-4) var(--gutter) var(--space-5); max-height: calc(100vh - 4.25rem); overflow: auto; }
.menu__panel ul { display: grid; }
.menu__panel li { border-top: var(--rule-soft); }
.menu__panel a { display: flex; padding: 0.9rem 0; font-size: 1.125rem; }
.menu__secondary { margin-top: var(--space-4); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--space-6) var(--space-5); --mute: #a9a69e; --line: rgba(244, 242, 236, 0.22); }
.site-footer__lines { display: grid; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
@media (min-width: 52rem) { .site-footer__lines { grid-template-columns: repeat(3, 1fr); } }
.site-footer__lines .eyebrow { margin-bottom: 0.4rem; }
.site-footer__line { font-weight: 700; font-size: 1.125rem; }
.site-footer__grid { display: grid; gap: var(--space-5); padding-block: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (min-width: 52rem) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer__brand { grid-column: 1 / -1; display: flex; gap: var(--space-3); align-items: center; }
@media (min-width: 52rem) { .site-footer__brand { grid-column: auto; align-items: flex-start; flex-direction: column; } }
.site-footer__symbol { width: 2.75rem; height: 2.75rem; }
.site-footer ul { display: grid; gap: 0.5rem; font-size: var(--fs-small); }
.site-footer ul a { text-decoration: none; display: inline-flex; gap: 0.5em; align-items: baseline; }
.site-footer ul a:hover { text-decoration: underline; }
.site-footer__legal { font-size: 0.75rem; color: var(--mute); max-width: 52rem; line-height: 1.7; border-top: 1px solid var(--line); padding-top: var(--space-4); }

/* ── Hero (home) ────────────────────────────────────────────────────── */
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; --mute: #a9a69e; }
.hero .container { position: relative; min-height: min(88vh, 54rem); display: flex; flex-direction: column; justify-content: flex-end; padding-block: var(--space-6) var(--space-6); }
.hero__symbol { position: absolute; right: -8vw; top: 50%; transform: translateY(-56%); width: clamp(18rem, 38vw, 40rem); height: auto; color: var(--paper); }
.hero__title { font-size: var(--fs-hero); position: relative; }
.hero__sub { font-size: var(--fs-lead); font-weight: 700; margin-top: var(--space-4); position: relative; }
.hero__lead { font-size: var(--fs-lead); max-width: 40rem; margin-top: var(--space-5); color: #d9d6ce; position: relative; line-height: 1.6; }
.hero .eyebrow { margin-bottom: var(--space-4); position: relative; }
@media (max-width: 64rem) { .hero .eyebrow { max-width: 22rem; line-height: 1.9; } }
.nowrap { white-space: nowrap; }
@media (max-width: 40rem) { .hero__symbol { right: -4.5rem; top: 2rem; transform: none; width: 13rem; } }
/* Small screens: the hero should not fill the whole first screen. */
@media (max-width: 40rem) {
  .hero .container { min-height: 0; padding-block: var(--space-6) var(--space-5); }
  .hero .eyebrow { max-width: 13rem; }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.25rem); }
  .hero__sub { margin-top: var(--space-3); font-size: 1.0625rem; }
  .hero__lead { margin-top: var(--space-4); font-size: 1rem; line-height: 1.7; }
}
/* Home: VE today */
/* In-page contents (Founding) */
.toc { margin-block: var(--space-5); border-top: var(--rule); padding-top: var(--space-3); }
.toc ol { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.toc a { font-weight: 500; }
.today dd { display: grid; gap: var(--space-2); justify-items: start; }
.today dd p { margin: 0; }

/* ── Page head ──────────────────────────────────────────────────────── */
.pagehead { padding-bottom: var(--space-5); }
.pagehead .eyebrow { margin-bottom: var(--space-4); }
.pagehead__sub { font-size: var(--fs-lead); font-weight: 700; margin-top: var(--space-4); max-width: 46rem; line-height: 1.5; }

/* ── Status marks ───────────────────────────────────────────────────── */
.mark { display: inline-flex; align-items: center; gap: 0.45em; font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; line-height: 1; white-space: nowrap; }
.lang-ja .mark { letter-spacing: 0.06em; }
.glyph { width: 0.95rem; height: 0.95rem; flex: none; }
dd > .mark, .cols__item > .mark { margin-bottom: 0.6rem; display: flex; }
.legend { display: grid; gap: var(--space-3); }
.legend li { display: grid; align-items: start; grid-template-columns: 13rem 1fr; gap: var(--space-3); padding-top: var(--space-3); border-top: var(--rule-soft); font-size: var(--fs-small); }
@media (max-width: 40rem) { .legend li { grid-template-columns: 1fr; gap: var(--space-2); } }

/* ── Ledger ─────────────────────────────────────────────────────────── */
.ledger { border-top: var(--rule); border-bottom: var(--rule); container-type: inline-size; }
.ledger__row { display: grid; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); }
.ledger__row + .ledger__row { border-top: var(--rule-soft); }
@container (min-width: 38rem) { .ledger__row { grid-template-columns: minmax(11rem, 4fr) 8fr; } }
.ledger dt .eyebrow { margin-bottom: 0.2rem; }
.ledger__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.45; display: block; }
.ledger dd { font-size: 0.9375rem; line-height: 1.75; }
.ledger--compact .ledger__row { padding-block: var(--space-3); }

/* ── Columns ────────────────────────────────────────────────────────── */
.cols { display: grid; gap: 0; }
@media (min-width: 40rem) { .cols--2, .cols--4 { grid-template-columns: repeat(2, 1fr); } .cols--3, .cols--5, .cols--6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cols--3 { grid-template-columns: repeat(3, 1fr); } .cols--4 { grid-template-columns: repeat(4, 1fr); } .cols--5 { grid-template-columns: repeat(5, 1fr); } .cols--6 { grid-template-columns: repeat(3, 1fr); } }
.cols__item { border-top: var(--rule); padding: var(--space-4) var(--space-4) var(--space-5) 0; display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
@media (min-width: 40rem) { .cols__item + .cols__item { padding-left: var(--space-4); border-left: var(--rule-soft); } }
.cols__item--ink { background: var(--ink); color: var(--paper); padding-left: var(--space-4); --mute: #a9a69e; border-top-color: var(--ink); }
.section--ink .cols__item--ink { background: var(--paper); color: var(--ink); --mute: #66645f; }
.cols__num { font-weight: 700; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; margin-bottom: 0.5rem; font-variant-numeric: tabular-nums; }
.cols__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.4; }
.cols__text { font-size: 0.9375rem; line-height: 1.7; }
.cols__item--link { text-decoration: none; transition: background-color 0.15s ease; }
.cols__item--link:hover { background: var(--white); }
.section--ink .cols__item--link:hover { background: #1d1d1b; }
.cols__item--link .arrow { margin-top: auto; padding-top: var(--space-3); font-size: 1.25rem; }

/* ── Steps ──────────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--space-3); counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2rem; } }
.steps__item { border: var(--rule); padding: var(--space-3) var(--space-3); text-align: center; position: relative; display: flex; flex-direction: column; gap: 0.25rem; justify-content: center; min-height: 4.5rem; }
.steps__item--ink { background: var(--ink); color: var(--paper); --mute: #a9a69e; }
.section--ink .steps__item--ink { background: var(--paper); color: var(--ink); --mute: #66645f; }
.steps__title { font-weight: 700; }
.steps__sub { font-size: 0.75rem; color: var(--mute); }
@media (min-width: 48rem) { .steps__item + .steps__item::before { content: "→"; position: absolute; left: -1.55rem; top: 50%; transform: translateY(-50%); color: var(--ink); } .section--ink .steps__item + .steps__item::before { color: var(--paper); } }

/* ── Misc components ────────────────────────────────────────────────── */
.callout { border-left: 3px solid currentColor; padding: var(--space-2) 0 var(--space-2) var(--space-4); font-size: 0.9375rem; line-height: 1.75; max-width: 52rem; }
.link-arrow { display: inline-flex; gap: 0.6em; align-items: baseline; font-weight: 700; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15em; }
.link-arrow:hover { border-bottom-width: 2px; }
.link-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.figure { margin-block: var(--space-5); }
.figure figcaption { font-size: 0.8125rem; margin-top: var(--space-3); color: var(--mute); }
.figure figcaption strong { color: var(--ink); }
.section--ink .figure figcaption strong { color: var(--paper); }
.asof { display: inline-flex; gap: 0.6em; align-items: center; font-size: var(--fs-label); letter-spacing: 0.14em; text-transform: uppercase; border: var(--rule); padding: 0.4em 0.75em; }
.social { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.social li { display: flex; gap: var(--space-3); align-items: baseline; }
.social__who { min-width: 4.5rem; font-size: var(--fs-small); color: var(--mute); }
.signature__social { margin-top: var(--space-2); justify-self: start; }
.site-footer__social { font-size: var(--fs-small); }
.found__contact { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); color: #c9c6be; }
.email { font-size: clamp(1rem, 2.6vw, 1.75rem); font-weight: 700; word-break: break-all; text-decoration: none; border-bottom: 2px solid currentColor; }

/* ── Diagrams ───────────────────────────────────────────────────────── */
.diagram { width: 100%; height: auto; color: var(--ink); font-family: var(--sans); }
.section--ink .diagram { color: var(--paper); }
.diagram text { fill: currentColor; }
.chain { width: 100%; height: auto; }
.chain-list { display: none; }
@media (max-width: 40rem) {
  .chain { display: none; }
  .chain-list { display: grid; position: relative; padding-left: 1.75rem; gap: 0.85rem; font-size: 0.9375rem; }
  .chain-list::before { content: ""; position: absolute; left: 0.39rem; top: 0.5rem; bottom: 1.4rem; border-left: 1.5px solid currentColor; }
  .chain-list li { position: relative; }
  .chain-list li::before { content: ""; position: absolute; left: -1.62rem; top: 0.42em; width: 0.56rem; height: 0.56rem; border-radius: 50%; background: currentColor; }
  .chain-list__next { font-weight: 700; padding-top: 0.6rem; }
  .chain-list__next::before { left: -1.82rem !important; top: 0.72em !important; width: 0.95rem !important; height: 0.95rem !important; background: transparent !important; border: 2px solid currentColor; }
}
.chain__line { stroke: currentColor; stroke-width: 1.5; }
.chain__line--next { stroke-dasharray: 5 5; }
.chain__arc { fill: none; stroke: currentColor; stroke-opacity: 0.4; stroke-width: 1; }
.chain__arc--next { stroke-opacity: 1; stroke-width: 1.5; stroke-dasharray: 5 5; }
.chain__node { fill: currentColor; }
.chain__next { fill: none; stroke: currentColor; stroke-width: 2; }
.chain__label { font-size: 13px; }
.chain__label--next { font-weight: 700; }
@media (max-width: 64rem) { .chain__label { font-size: 17px; } }

.axes { max-width: 34rem; }
.axes__frame { fill: none; stroke: currentColor; stroke-opacity: 0.5; }
.axes__mid { stroke: currentColor; stroke-opacity: 0.25; stroke-dasharray: 3 4; }
.axes__q { font-size: 11px; fill-opacity: 0.7; }
.axes__q--strong { font-weight: 700; fill-opacity: 1; }
.axes__tech { stroke: currentColor; stroke-opacity: 0.5; stroke-dasharray: 4 4; }
.axes__note { font-size: 10px; fill-opacity: 0.7; }
.axes__dir { stroke: currentColor; stroke-width: 3; }
.axes__dirlabel { font-size: 12px; font-weight: 700; }
.axes__label { font-size: 11px; }

.triad { max-width: 38rem; margin-inline: auto; }
.triad__box { fill: none; stroke: currentColor; stroke-width: 1.25; }
.triad__edge { stroke: currentColor; stroke-opacity: 0.25; fill: none; }
.triad__spoke { stroke: currentColor; stroke-width: 1.5; fill: none; }
.triad__core { fill: currentColor; }
.triad__coretext { font-size: 13px; font-weight: 700; fill: var(--paper) !important; }
.triad__coresub { font-size: 9px; fill: var(--paper) !important; fill-opacity: 0.8; }
.triad__label { font-size: 9.5px; letter-spacing: 0.12em; fill-opacity: 0.6; }
.triad__title { font-size: 12.5px; font-weight: 700; }
.triad-list { display: none; }
@media (max-width: 40rem) {
  .axes__q { font-size: 15px; }
  .axes__note { font-size: 13px; }
  .axes__dirlabel { font-size: 16px; }
  .axes__label { font-size: 14px; }
  .triad { display: none; }
  .triad-list { display: grid; gap: 0.5rem; }
  .triad-list__item { border: var(--rule); padding: 0.75rem 1rem; display: grid; gap: 0.2rem; font-weight: 700; font-size: 0.9375rem; }
  .triad-list__core { background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; text-align: center; font-size: 0.9375rem; }
  .triad-list__core span { opacity: 0.75; font-size: var(--fs-small); }
}

.venn { max-width: 24rem; margin-inline: auto; }
.venn__ring { fill: none; stroke: currentColor; stroke-width: 1.5; }
.venn__fill { fill: currentColor; }
.venn__label { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }
.venn__center { font-size: 12px; font-weight: 700; fill: var(--paper) !important; }
.venn__sub { font-size: 10.5px; fill-opacity: 0.65; }

.paths { display: grid; gap: var(--space-3); }
.paths__row { display: grid; gap: var(--space-2); }
@media (min-width: 52rem) { .paths__row { grid-template-columns: 11rem 1fr; align-items: center; gap: var(--space-4); } }
.paths__title { display: block; font-weight: 700; }
.paths__steps { display: grid; gap: 0.75rem; }
@media (min-width: 52rem) { .paths__steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.paths__steps li { border: var(--rule-soft); border-color: var(--mute); color: var(--mute); padding: 0.9rem 1rem; font-size: 0.875rem; position: relative; display: flex; align-items: center; min-height: 3.5rem; }
.paths__row--ink .paths__steps li { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
@media (min-width: 52rem) { .paths__steps li + li::before { content: "→"; position: absolute; left: -1.45rem; color: var(--ink); font-weight: 400; } }

.circuit { display: grid; gap: var(--space-4); font-size: 0.875rem; }
@media (min-width: 60rem) { .circuit { grid-template-columns: 2.6fr 1fr; align-items: stretch; } }
.circuit__main { display: grid; gap: var(--space-3); }
.circuit__inputs { display: grid; gap: var(--space-3); }
@media (min-width: 40rem) { .circuit__inputs { grid-template-columns: repeat(3, 1fr); } }
.circuit__box { border: var(--rule); padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.2rem; background: var(--paper); }
.circuit__title { font-weight: 700; font-size: 1rem; }
.circuit__sub { font-size: 0.75rem; color: var(--mute); }
.circuit__core { background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; font-weight: 700; display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.circuit__comp { font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; color: #a9a69e; }
.circuit__base { display: grid; gap: var(--space-3); align-items: center; }
@media (min-width: 40rem) { .circuit__base { grid-template-columns: 1fr auto 1fr; } }
.circuit__to { text-align: center; }
.circuit__loop { font-size: 0.8125rem; color: var(--mute); border-top: var(--rule-soft); padding-top: 0.6rem; }
.circuit__outcome { border: 2px solid var(--ink); padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; }
.circuit__outcome ul { display: grid; margin-top: 0.4rem; }
.circuit__outcome li { border-top: var(--rule-soft); padding-block: 0.7rem; display: grid; gap: 0.15rem; }
.circuit__outcome li span { font-size: 0.75rem; color: var(--mute); }

.plan { display: grid; gap: var(--space-3); font-size: 0.875rem; }
.plan__row { display: grid; gap: var(--space-2); }
@media (min-width: 52rem) { .plan__row { grid-template-columns: 11rem 1fr; gap: var(--space-4); align-items: center; } }
.plan__head { font-weight: 700; }
.plan__row--verify .plan__head { font-weight: 400; color: var(--mute); }
.plan__existing { border-bottom: 1.5px solid var(--ink); padding-bottom: 0.4rem; text-align: center; color: var(--mute); font-size: 0.8125rem; position: relative; }
.plan__existing::after { content: "→"; position: absolute; right: -0.2rem; bottom: -0.78rem; color: var(--ink); }
.plan__stages, .plan__verify { display: grid; gap: 0.75rem; }
@media (min-width: 52rem) { .plan__stages, .plan__verify { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.plan__stages li { border: var(--rule); padding: 0.9rem 1rem; display: grid; gap: 0.2rem; text-align: center; position: relative; }
.plan__stages li span { font-size: 0.75rem; color: var(--mute); }
.plan__stages li.is-ink { background: var(--ink); color: var(--paper); }
.plan__stages li.is-ink span { color: #a9a69e; }
.plan__verify li { text-align: center; font-size: 0.8125rem; border-top: var(--rule-soft); padding-top: 0.6rem; position: relative; }
@media (min-width: 52rem) { .plan__stages li + li::before, .plan__verify li + li::before { content: "→"; position: absolute; left: -1.45rem; top: 50%; transform: translateY(-50%); color: var(--ink); } .plan__verify li + li::before { top: 0.6rem; transform: none; } }

/* ── Questions (research) ───────────────────────────────────────────── */
.questions { border-top: var(--rule); }
.question { display: grid; gap: var(--space-4); padding-block: var(--space-5); border-bottom: var(--rule-soft); }
.question:last-child { border-bottom: var(--rule); }
@media (min-width: 60rem) { .question { grid-template-columns: 5rem minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-5); } }
.question__num { font-weight: 700; font-size: 3rem; line-height: 0.9; font-family: var(--serif); }
.question__title { font-size: 1.5rem; font-weight: 700; line-height: 1.35; margin-bottom: var(--space-3); }
.question__text { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.8; color: var(--mute); }
.question__reach { border-left: 2px solid var(--ink); padding-left: var(--space-4); font-size: 0.875rem; line-height: 1.75; }
.question__reach .eyebrow { margin-bottom: 0.5rem; }
.question__reach .mark { margin-bottom: 0.75rem; display: flex; }

/* ── Publications ───────────────────────────────────────────────────── */
.pubs { border-top: var(--rule); }
.pub { display: grid; gap: var(--space-2) var(--space-5); padding-block: var(--space-5); border-bottom: var(--rule-soft); text-decoration: none; }
@media (min-width: 52rem) { .pub { grid-template-columns: 10rem 1fr 14rem; } }
.pub:hover .pub__title { text-decoration: underline; text-underline-offset: 0.2em; }
.pub__date { font-size: var(--fs-small); color: var(--mute); font-variant-numeric: tabular-nums; }
.pub__title { font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.pub__sub { font-weight: 700; margin-top: 0.2rem; }
.pub__summary { font-family: var(--serif); margin-top: var(--space-3); max-width: 40rem; line-height: 1.75; }
.pub__meta { display: grid; gap: 0.6rem; align-content: start; font-size: var(--fs-small); }
.meta-list { display: grid; gap: 0; border-top: var(--rule); font-size: var(--fs-small); }
.meta-list div { display: grid; grid-template-columns: 7rem 1fr; gap: var(--space-3); padding-block: 0.6rem; border-bottom: var(--rule-soft); }
.meta-list dt { color: var(--mute); }
.empty { border: 1px dashed var(--mute); padding: var(--space-4); color: var(--mute); font-size: 0.9375rem; }

/* ── Record (now) ───────────────────────────────────────────────────── */
.record { border-top: var(--rule); }
.record li { display: grid; gap: var(--space-2) var(--space-5); padding-block: var(--space-3); border-bottom: var(--rule-soft); font-size: 0.9375rem; }
@media (min-width: 48rem) { .record li { grid-template-columns: 10rem 1fr; } }
.record time { color: var(--mute); font-variant-numeric: tabular-nums; font-size: var(--fs-small); }

/* ── Founder note ───────────────────────────────────────────────────── */
.signature { border-top: var(--rule); padding-top: var(--space-4); margin-top: var(--space-5); display: grid; gap: 0.2rem; }
.signature__name { font-size: 1.5rem; font-weight: 700; }

/* ── Design-system page ─────────────────────────────────────────────── */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--space-3); }
.swatch { border: var(--rule); }
.swatch__chip { height: 6rem; }
.swatch p { padding: 0.6rem 0.75rem; font-size: var(--fs-small); }
.specimen > * + * { margin-top: var(--space-4); padding-top: var(--space-4); border-top: var(--rule-soft); }
.symbols { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.symbols .on-ink { background: var(--ink); color: var(--paper); padding: var(--space-4); }

/* ── 404 ────────────────────────────────────────────────────────────── */
.notfound .symbol { width: 6rem; height: 6rem; margin-bottom: var(--space-5); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .site-header, .site-footer, .skip { display: none; }
  .section--ink { background: none; color: var(--ink); }
}

/* ── Next chapter band ──────────────────────────────────────────────── */
.next { border-top: var(--rule); background: var(--paper); }
.next__link { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 0.25rem var(--space-4); padding-block: var(--space-6); text-decoration: none; }
.next__link .eyebrow { grid-column: 1; }
.next__title { grid-column: 1; font-size: var(--fs-h2); font-weight: 700; line-height: 1.2; }
.next__arrow { grid-column: 2; grid-row: 1 / span 2; font-size: var(--fs-h2); transition: transform 0.15s ease; }
.next__link:hover .next__arrow { transform: translateX(0.35rem); }
.next__link:hover .next__title { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 2px; }

/* ── Refinements ────────────────────────────────────────────────────── */
.pub__title, .pub__sub, .pub__summary { display: block; }
@media (min-width: 52rem) { .pub--compact { grid-template-columns: 8rem 1fr auto; } }
.pub--compact { padding-block: var(--space-4); }
.pub--compact .pub__title { font-size: 1.25rem; }
.mini { display: grid; gap: 0.35rem; font-size: 0.875rem; line-height: 1.45; margin-top: 0.5rem; }
.items { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.items dt { font-weight: 700; font-size: 0.9375rem; }
.items dd { font-size: 0.875rem; line-height: 1.65; }
.cols__title--lg { font-size: 1.375rem; }
.cols--record .cols__item { padding-bottom: var(--space-5); }
.notyet { border: 1px dashed var(--ink); padding: var(--space-4); }
.notyet ul { display: grid; gap: 0.5rem; margin-top: var(--space-3); font-size: 0.9375rem; }
.notyet li { display: flex; gap: 0.6rem; align-items: baseline; }
.notyet li .glyph { transform: translateY(0.15rem); }
.lead-serif { font-size: 1.25rem; line-height: 1.7; }
.display--letter { font-size: clamp(2rem, 4.4vw, 3.75rem); text-transform: none; line-height: 1.15; letter-spacing: -0.015em; }
.lang-ja .display--letter { letter-spacing: 0; line-height: 1.35; }
.figure--flush { margin-block: 0; }
/* Rules must re-resolve wherever the line colours are re-themed. */
.section--ink, .site-footer, .hero, .cols__item--ink, .steps__item--ink { --rule: 1px solid var(--line-strong); --rule-soft: 1px solid var(--line); }
.cols__item--ink { --line-strong: var(--paper); --line: rgba(244, 242, 236, 0.22); }
.section--ink .cols__item--ink { --line-strong: var(--ink); --line: var(--line); }
.section--ink + .site-footer { border-top: 1px solid rgba(244, 242, 236, 0.22); }
@media (max-width: 39.99rem) { .circuit__to { transform: rotate(90deg); } }

/* ── Activity streams (src/lib/areas.ts) ─────────────────────────────
   Dated publications and record entries for one area, or across areas. */
.activity { border-top: var(--rule); }
.activity__item { display: grid; gap: 0.35rem var(--space-4); padding-block: var(--space-3) var(--space-4); border-bottom: var(--rule-soft); }
@media (min-width: 40rem) { .activity__item { grid-template-columns: 8.5rem minmax(0, 1fr) auto; align-items: baseline; } }
.activity__date { color: var(--mute); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.activity__body { display: grid; gap: 0.3rem; }
.activity__kind { font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.activity__title { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; text-decoration: none; }
.activity__title:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.activity__sub { display: block; font-weight: 400; color: var(--mute); font-size: 0.9375rem; }
.activity__text { font-size: 0.9375rem; line-height: 1.65; }
.activity__mark:empty { display: none; }
.section--stream .heading__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.pubs-group + .pubs-group { margin-top: var(--space-6); }
