@charset "UTF-8";
/* ==========================================================================
   東京ソロ充男子 — style.css
   Layout: 夜のホテルバーの品書き。インクの地に真鍮の罫、縦組みの明朝で主張を刻む。
   ========================================================================== */

:root {
  /* color — dark-first (ink & brass) */
  --ink: #14161b;
  --ink-2: #1b1e25;
  --ink-3: #242832;
  --line: #2f3440;
  --line-soft: #252932;
  --ivory: #ece6da;
  --ivory-2: #bdb7ab;
  --ivory-3: #8b877e;
  --brass: #c9a66b;
  --brass-deep: #a7843f;
  --brass-tint: rgba(201, 166, 107, .12);
  --oxblood: #c75a45;
  --oxblood-tint: rgba(199, 90, 69, .12);
  --teal-tint: rgba(31, 165, 135, .10);
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  /* chart (validated) */
  --c1: #bf8628; --c2: #4c8de0; --c3: #df5f49; --c4: #1fa587; --c5: #9a7ce8;
  --grid: rgba(236, 230, 218, .08);
  /* type */
  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --f-latin: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  /* scale */
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.1875rem;
  --t-xl: 1.5rem; --t-2xl: 2rem; --t-3xl: 2.75rem; --t-4xl: 3.75rem;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1160px;
  --measure: 40rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ink: #f3f2ee; --ink-2: #ffffff; --ink-3: #e9e7e1; --line: #d5d1c7; --line-soft: #e4e1d9;
    --ivory: #17191e; --ivory-2: #474a52; --ivory-3: #73757b;
    --brass: #8a6a2f; --brass-deep: #6f5424; --brass-tint: rgba(138, 106, 47, .10);
    --oxblood: #a5382a; --oxblood-tint: rgba(165, 56, 42, .08); --teal-tint: rgba(17, 135, 109, .08);
    --shadow: 0 30px 60px -36px rgba(30, 25, 15, .35);
    --c1: #a8741c; --c2: #2f6fc4; --c3: #c2412c; --c4: #11876d; --c5: #7656d0;
    --grid: rgba(23, 25, 30, .08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ink: #f3f2ee; --ink-2: #ffffff; --ink-3: #e9e7e1; --line: #d5d1c7; --line-soft: #e4e1d9;
  --ivory: #17191e; --ivory-2: #474a52; --ivory-3: #73757b;
  --brass: #8a6a2f; --brass-deep: #6f5424; --brass-tint: rgba(138, 106, 47, .10);
  --oxblood: #a5382a; --oxblood-tint: rgba(165, 56, 42, .08); --teal-tint: rgba(17, 135, 109, .08);
  --shadow: 0 30px 60px -36px rgba(30, 25, 15, .35);
  --c1: #a8741c; --c2: #2f6fc4; --c3: #c2412c; --c4: #11876d; --c5: #7656d0;
  --grid: rgba(23, 25, 30, .08);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--ink);
}
img { max-width: 100%; height: auto; }
a { color: var(--brass); text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ivory); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--ink); }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: var(--gutter); padding-right: var(--gutter-r);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--f-latin); font-variant-numeric: lining-nums tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 12px;
}
.logo {
  display: inline-flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ivory);
}
.logo-ja { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: .12em; }
.logo-en {
  font-family: var(--f-latin); font-style: italic; font-size: .8rem; color: var(--brass);
  letter-spacing: .08em;
}
.logo:hover { color: var(--ivory); }
.theme-toggle {
  appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ivory-2);
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: var(--t-xs); letter-spacing: .14em;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.theme-toggle:hover { border-color: var(--brass); color: var(--brass); }
.theme-toggle .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brass); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--brass);
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .08em; padding-block: 18px 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "／"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ivory-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

/* ---------- shared headings ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-latin); font-style: italic; font-size: .95rem; color: var(--brass); letter-spacing: .06em;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.sec-title {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, var(--t-3xl));
  line-height: 1.35; letter-spacing: .04em; margin: 10px 0 14px; text-wrap: balance;
}
.sec-lead { color: var(--ivory-2); max-width: var(--measure); margin: 0; }
.section { padding-block: clamp(56px, 9vw, 112px); border-top: 1px solid var(--line-soft); }
.section-head { display: grid; gap: 4px; margin-bottom: 40px; }

/* ==========================================================================
   TOP PAGE
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 6vw, 88px);
  align-items: end; padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 80px);
}
.hero-vertical {
  writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.6rem, 7.2vw, 5.6rem); line-height: 1.15; letter-spacing: .14em;
  margin: 0; color: var(--ivory); height: clamp(360px, 46vw, 560px);
  border-right: 1px solid var(--brass); padding-right: clamp(14px, 2vw, 26px);
}
.hero-vertical em { font-style: normal; color: var(--brass); }
.hero-body { display: grid; gap: 28px; min-width: 0; }
.hero-en {
  font-family: var(--f-latin); font-style: italic; font-weight: 400; color: var(--ivory-3);
  font-size: clamp(1rem, 2vw, 1.25rem); margin: 0; letter-spacing: .04em;
}
.hero-title {
  font-family: var(--f-display); font-weight: 800; margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); line-height: 1.5; letter-spacing: .04em; text-wrap: balance;
}
.hero-title .u { background: linear-gradient(transparent 62%, var(--oxblood-tint) 62%); }
.hero-copy { color: var(--ivory-2); max-width: 36rem; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font: inherit; font-size: var(--t-sm); letter-spacing: .12em; padding: 12px 22px;
  border: 1px solid var(--brass); color: var(--ink); background: var(--brass); border-radius: 2px;
}
.btn:hover { background: transparent; color: var(--brass); }
.btn.ghost { background: transparent; color: var(--ivory); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--brass); color: var(--brass); }
.btn .arrow { font-family: var(--f-latin); }

.ledger {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line); margin-top: 8px;
}
.ledger-item { padding: 22px 20px 20px; border-left: 1px solid var(--line-soft); display: grid; gap: 6px; }
.ledger-item:first-child { border-left: 0; padding-left: 0; }
.ledger-num { font-family: var(--f-latin); font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1; color: var(--ivory); }
.ledger-num small { font-size: .45em; margin-left: 2px; color: var(--brass); font-family: var(--f-body); }
.ledger-label { font-size: var(--t-sm); color: var(--ivory-2); line-height: 1.6; }
.ledger-src { font-size: .6875rem; color: var(--ivory-3); line-height: 1.5; }

/* manifesto */
.manifesto { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 80px); }
.manifesto-list { list-style: none; margin: 0; padding: 0; counter-reset: m; display: grid; gap: 0; }
.manifesto-list li {
  counter-increment: m; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px;
  padding: 22px 0; border-bottom: 1px solid var(--line-soft);
}
.manifesto-list li::before {
  content: "Art. " counter(m, upper-roman); font-family: var(--f-latin); font-style: italic;
  color: var(--brass); font-size: .85rem; padding-top: 4px;
}
.manifesto-list strong {
  display: block; font-family: var(--f-display); font-size: var(--t-lg); font-weight: 700; margin-bottom: 4px;
}
.manifesto-list p { margin: 0; color: var(--ivory-2); font-size: .95rem; }

/* tools (quiz / calc) */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.panel {
  background: var(--ink-2); border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 36px);
  display: grid; gap: 18px; align-content: start; min-width: 0;
}
.panel-title { font-family: var(--f-display); font-weight: 800; font-size: var(--t-xl); margin: 0; line-height: 1.4; }
.panel-sub { margin: 0; color: var(--ivory-2); font-size: var(--t-sm); }
.quiz-q { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.6; margin: 0; min-height: 3.2em; }
.quiz-meta { display: flex; justify-content: space-between; font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .1em; }
.quiz-bar { height: 2px; background: var(--line); position: relative; }
.quiz-bar span { position: absolute; inset: 0 auto 0 0; background: var(--brass); width: 0; transition: width .3s; }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  appearance: none; font: inherit; font-size: var(--t-sm); text-align: left; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); background: transparent; color: var(--ivory);
}
.opt:hover { border-color: var(--brass); color: var(--brass); }
.quiz-result { display: grid; gap: 10px; }
.quiz-rank { font-family: var(--f-latin); font-size: 4rem; line-height: 1; color: var(--brass); }
.quiz-rank-name { font-family: var(--f-display); font-size: var(--t-xl); font-weight: 800; }
.quiz-result p { margin: 0; color: var(--ivory-2); font-size: .95rem; }

.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-sm); color: var(--ivory-2); display: flex; justify-content: space-between; gap: 8px; }
.field output { font-family: var(--f-latin); color: var(--brass); font-size: 1rem; }
input[type="range"] { width: 100%; accent-color: var(--brass); }
.field select, .field input[type="number"] {
  font: inherit; color: var(--ivory); background: var(--ink); border: 1px solid var(--line);
  padding: 8px 10px; border-radius: 0;
}
.calc-result { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 4px; }
.calc-big { font-family: var(--f-latin); font-size: clamp(2.4rem, 5vw, 3.4rem); line-height: 1.05; color: var(--oxblood); }
.calc-big small { font-family: var(--f-body); font-size: .4em; color: var(--ivory-2); margin-left: 4px; }
.calc-note { font-size: .75rem; color: var(--ivory-3); margin: 0; line-height: 1.7; }
.calc-break { display: grid; gap: 6px; margin-top: 8px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; font-size: var(--t-sm); color: var(--ivory-2); }
.calc-row .num { color: var(--ivory); }

/* chart panels */
.figure { margin: 0; display: grid; gap: 12px; min-width: 0; }
.figure-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.figure-title { font-family: var(--f-display); font-weight: 700; font-size: var(--t-lg); margin: 0; line-height: 1.5; }
.figure-no { font-family: var(--f-latin); font-style: italic; color: var(--brass); font-size: .9rem; white-space: nowrap; }
.chart-box { position: relative; height: 340px; width: 100%; }
.chart-box.tall { height: 420px; }
.chart-box.short { height: 260px; }
.figure figcaption, .figure .caption { font-size: .75rem; color: var(--ivory-3); line-height: 1.7; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: var(--t-xs); color: var(--ivory-2); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.data-table-toggle {
  appearance: none; background: none; border: 0; color: var(--brass); cursor: pointer; font: inherit;
  font-size: var(--t-xs); letter-spacing: .1em; padding: 0; justify-self: start;
}
.chart-split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.chart-split .note { color: var(--ivory-2); }
.chart-split .note p { margin: 0 0 1em; }

/* article index */
.filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 28px; }
.chip {
  appearance: none; font: inherit; font-size: var(--t-sm); cursor: pointer; letter-spacing: .06em;
  padding: 7px 14px; border: 1px solid var(--line); background: transparent; color: var(--ivory-2); border-radius: 999px;
}
.chip:hover { color: var(--brass); border-color: var(--brass); }
.chip[aria-pressed="true"] { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.search {
  flex: 1 1 220px; min-width: 0; display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line); padding: 6px 2px; margin-left: auto; max-width: 320px;
}
.search input { flex: 1; min-width: 0; font: inherit; color: var(--ivory); background: transparent; border: 0; outline: none; }
.search input::placeholder { color: var(--ivory-3); }
.search svg { flex: none; stroke: var(--ivory-3); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px; min-width: 0;
  background: var(--ink-2); border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 34px);
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--brass); transform: translateY(-2px); }
.card-cat { font-size: var(--t-xs); letter-spacing: .16em; color: var(--brass); display: flex; justify-content: space-between; gap: 12px; }
.card-cat .read { color: var(--ivory-3); letter-spacing: .06em; }
.card h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.6; margin: 0; text-wrap: balance; }
.card h3 a { color: var(--ivory); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ivory-2); font-size: var(--t-sm); line-height: 1.85; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: var(--t-xs); color: var(--ivory-3); }
.save-btn {
  position: relative; z-index: 2; appearance: none; font: inherit; font-size: var(--t-xs); cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ivory-2); padding: 4px 10px; letter-spacing: .08em;
}
.save-btn[aria-pressed="true"] { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.empty-note { color: var(--ivory-3); font-size: var(--t-sm); }

.upcoming { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.upcoming-col h3 { font-family: var(--f-display); font-size: var(--t-md); font-weight: 700; margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--brass); display: flex; justify-content: space-between; }
.upcoming-col h3 .num { color: var(--brass); font-size: .9rem; }
.upcoming-col ul { list-style: none; margin: 0 0 28px; padding: 0; }
.upcoming-col li { font-size: .8125rem; color: var(--ivory-3); line-height: 1.65; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); }

.prep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.prep-item { padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 8px; align-content: start; }
.prep-item:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.prep-item h3 { font-family: var(--f-display); font-size: var(--t-lg); margin: 0; font-weight: 800; }
.prep-item p { margin: 0; font-size: var(--t-sm); color: var(--ivory-2); }
.prep-item .tag { font-family: var(--f-latin); font-style: italic; color: var(--brass); font-size: .85rem; }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.article-head { padding-block: clamp(28px, 5vw, 56px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line-soft); }
.article-head .wrap { display: grid; gap: 20px; }
.article-cat { font-size: var(--t-xs); letter-spacing: .2em; color: var(--brass); }
.article-title {
  font-family: var(--f-display); font-weight: 800; margin: 0; max-width: 54rem;
  font-size: clamp(1.7rem, 4.2vw, 3rem); line-height: 1.45; letter-spacing: .03em; text-wrap: balance;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .08em; }
.article-meta span { display: inline-flex; gap: 6px; }
.article-summary {
  max-width: 54rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-block: 1px solid var(--line); margin-top: 8px;
}
.article-summary div { padding: 16px 18px 14px; border-left: 1px solid var(--line-soft); }
.article-summary div:first-child { border-left: 0; padding-left: 0; }
.article-summary b { display: block; font-family: var(--f-latin); font-size: 1.9rem; line-height: 1.1; color: var(--ivory); font-weight: 500; }
.article-summary span { font-size: .75rem; color: var(--ivory-2); line-height: 1.55; display: block; margin-top: 4px; }

.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(32px, 5vw, 72px);
  padding-block: clamp(36px, 5vw, 64px);
}
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); align-self: start; font-size: .8125rem; max-height: calc(100vh - 110px); overflow: auto; }
.toc-title { font-family: var(--f-latin); font-style: italic; color: var(--brass); font-size: .95rem; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; color: var(--ivory-3); text-decoration: none; line-height: 1.55; border-left: 1px solid transparent; }
.toc a:hover { color: var(--ivory); }
.toc a.active { color: var(--ivory); border-left-color: var(--brass); }
.toc-share { margin-top: 24px; display: grid; gap: 8px; }

.prose { min-width: 0; max-width: var(--measure); font-size: 1.0625rem; }
.prose > p { margin: 0 0 1.5em; }
.prose .lead-in {
  font-size: 1.125rem; line-height: 2.05; color: var(--ivory);
}
.prose .lead-in p { margin: 0 0 1.3em; }
.prose .lead-in > p:first-of-type::first-letter {
  font-family: var(--f-display); font-size: 3.1em; float: left; line-height: 1; margin: .08em .12em 0 0; color: var(--brass); font-weight: 800;
}
.prose h2 {
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  line-height: 1.55; letter-spacing: .03em; margin: 3.4em 0 1.1em; padding-top: 1.2em;
  border-top: 1px solid var(--line); text-wrap: balance; scroll-margin-top: 90px; counter-increment: ch;
}
.prose { counter-reset: ch; }
.prose h2::before {
  content: "Chapter " counter(ch, decimal-leading-zero); display: block; font-family: var(--f-latin);
  font-style: italic; font-weight: 400; font-size: .9rem; color: var(--brass); letter-spacing: .06em; margin-bottom: 8px;
}
.prose h2.no-count { counter-increment: none; }
.prose h2.no-count::before { content: "Summary"; }
.prose h2.faq-h::before { content: "Q & A"; }
.prose h2.src-h::before { content: "Sources"; }
.prose h3 {
  font-family: var(--f-display); font-weight: 700; font-size: 1.25rem; line-height: 1.6;
  margin: 2.4em 0 .9em; padding-left: 14px; border-left: 3px solid var(--brass); scroll-margin-top: 90px;
}
.prose h4 { font-size: 1.0625rem; margin: 1.8em 0 .6em; color: var(--brass); letter-spacing: .06em; }
.prose strong { color: var(--ivory); font-weight: 700; background: linear-gradient(transparent 64%, var(--brass-tint) 64%); }
.prose em.hot { font-style: normal; color: var(--oxblood); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.6em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--brass);
  font-family: var(--f-display); font-size: 1.15rem; line-height: 1.9; color: var(--ivory);
}
.prose blockquote.twitter-tweet {
  font-family: var(--f-body); font-size: .95rem; line-height: 1.75; font-weight: 400;
  padding: 18px 20px; border: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
  background: var(--ink-2); color: var(--ivory-2);
}
.prose blockquote cite { display: block; font-family: var(--f-body); font-style: normal; font-size: var(--t-xs); color: var(--ivory-3); margin-top: 8px; }
.prose .figure { margin: 2.6em 0; padding: 22px; background: var(--ink-2); border: 1px solid var(--line-soft); }
.prose .figure img { display: block; width: 100%; }
.prose .wide { margin-right: min(0px, calc(-1 * (100% - var(--measure)))); }

.table-wrap { overflow-x: auto; margin: 2em 0; -webkit-overflow-scrolling: touch; }
.table-wrap table { margin: 0; }
table.data { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.7; min-width: 520px; }
table.data caption { text-align: left; font-family: var(--f-display); font-weight: 700; font-size: 1rem; padding-bottom: 10px; color: var(--ivory); }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
table.data thead th { font-weight: 700; color: var(--brass); border-bottom: 1px solid var(--brass); font-size: .8125rem; letter-spacing: .06em; white-space: nowrap; }
table.data td.r, table.data th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.hl td { background: var(--brass-tint); color: var(--ivory); }
table.data tfoot td { font-size: .75rem; color: var(--ivory-3); border-bottom: 0; }

.box { margin: 2.2em 0; padding: 22px 24px; border: 1px solid var(--line); background: var(--ink-2); }
.box > :last-child { margin-bottom: 0; }
.box-label { display: inline-block; font-size: var(--t-xs); letter-spacing: .2em; margin-bottom: 10px; color: var(--brass); }
.box.rant { border-color: var(--oxblood); background: var(--oxblood-tint); }
.box.rant .box-label { color: var(--oxblood); }
.box.rant p { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.95; }
.box.point { border-color: var(--brass); }
.box.data-note { border-style: dashed; }
.box.data-note p { font-size: .9rem; color: var(--ivory-2); }
.box p { margin: 0 0 .8em; }
.box ul { margin-bottom: 0; }

.takeaways { margin: 0 0 2.6em; padding: 22px 24px; border-top: 2px solid var(--brass); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.takeaways h2 { all: unset; display: block; font-family: var(--f-latin); font-style: italic; color: var(--brass); font-size: 1rem; margin-bottom: 10px; }
.takeaways ol { margin: 0; padding-left: 1.4em; }
.takeaways li { margin-bottom: .55em; font-size: .975rem; }

.versus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2.2em 0; border: 1px solid var(--line); }
.versus > div { padding: 20px 22px; min-width: 0; }
.versus > div + div { border-left: 1px solid var(--line); }
.versus h4 { margin: 0 0 10px; font-family: var(--f-display); font-size: 1.1rem; color: var(--ivory); letter-spacing: .04em; }
.versus .solo h4 { color: var(--brass); }
.versus .wed h4 { color: var(--ivory-3); }
.versus ul { margin: 0; padding-left: 1.1em; font-size: .925rem; }
.versus .wed li { color: var(--ivory-2); }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 2.2em 0; border-block: 1px solid var(--line); }
.stat-row > div { padding: 18px 16px; border-left: 1px solid var(--line-soft); }
.stat-row > div:first-child { border-left: 0; padding-left: 0; }
.stat-row b { display: block; font-family: var(--f-latin); font-weight: 500; font-size: 2.2rem; line-height: 1.1; color: var(--brass); }
.stat-row span { display: block; font-size: .8rem; color: var(--ivory-2); line-height: 1.6; margin-top: 6px; }

.steps { list-style: none; padding: 0; margin: 2em 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 0 0 22px 52px; margin: 0; border-left: 1px solid var(--line); margin-left: 16px; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(st); position: absolute; left: -17px; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); border: 1px solid var(--brass); color: var(--brass);
  font-family: var(--f-latin); font-size: .95rem;
}
.steps b { display: block; font-family: var(--f-display); font-size: 1.08rem; margin-bottom: 4px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--f-latin); font-size: 1.5rem; color: var(--brass); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ivory-2); font-size: .975rem; }

.sources { font-size: .8125rem; color: var(--ivory-3); line-height: 1.8; padding-left: 1.3em; }
.sources li { margin-bottom: .4em; }
.sources a { color: var(--ivory-2); word-break: break-all; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-label { font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .14em; margin-right: 4px; }
.share a, .share button {
  appearance: none; font: inherit; font-size: var(--t-xs); letter-spacing: .08em; cursor: pointer; text-decoration: none;
  border: 1px solid var(--line); color: var(--ivory-2); background: transparent; padding: 6px 12px;
}
.share a:hover, .share button:hover { border-color: var(--brass); color: var(--brass); }
.article-end { margin-top: 3.4em; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.back-top { justify-self: start; }

/* simulator */
.sim { margin: 2.6em 0; border: 1px solid var(--brass); background: var(--ink-2); }
.sim-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.sim-head b { font-family: var(--f-display); font-size: 1.2rem; }
.sim-head span { font-size: .8rem; color: var(--ivory-3); }
.sim-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; }
.sim-inputs { padding: 20px 22px; display: grid; gap: 14px; border-right: 1px solid var(--line); align-content: start; }
.sim-out { padding: 20px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.sim-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sim-kpi { display: grid; gap: 2px; }
.sim-kpi span { font-size: .75rem; color: var(--ivory-3); }
.sim-kpi b { font-family: var(--f-latin); font-size: 1.7rem; font-weight: 500; line-height: 1.15; }
.sim-kpi b.good { color: var(--c4); }
.sim-kpi b.bad { color: var(--oxblood); }
.sim-verdict { font-family: var(--f-display); font-size: 1.02rem; line-height: 1.8; padding: 12px 14px; border-left: 2px solid var(--brass); background: var(--brass-tint); margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.site-footer small { color: var(--ivory-3); letter-spacing: .12em; font-size: var(--t-xs); }
.site-footer .motto { font-family: var(--f-display); color: var(--ivory-2); letter-spacing: .3em; font-size: var(--t-sm); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
  background: var(--ivory); color: var(--ink); padding: 10px 18px; font-size: var(--t-sm); opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-vertical { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero-body > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-body > *:nth-child(2) { animation-delay: .08s; }
.hero-body > *:nth-child(3) { animation-delay: .16s; }
.hero-body > *:nth-child(4) { animation-delay: .24s; }
.hero-body > *:nth-child(5) { animation-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; order: -1; border: 1px solid var(--line-soft); padding: 18px; background: var(--ink-2); }
  .toc-share { display: none; }
  .prose { max-width: none; }
  .upcoming { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prep-item:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .prep-item:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line-soft); }
}
@media (max-width: 820px) {
  .tools, .cards, .manifesto, .chart-split { grid-template-columns: minmax(0, 1fr); }
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .ledger-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .sim-body { grid-template-columns: minmax(0, 1fr); }
  .sim-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
  .search { max-width: none; margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 600px) {
  body { font-size: .975rem; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-vertical {
    writing-mode: horizontal-tb; height: auto; border-right: 0; border-bottom: 1px solid var(--brass);
    padding: 0 0 18px; font-size: clamp(2.2rem, 11vw, 3rem); letter-spacing: .06em;
  }
  .logo-en { display: none; }
  .quiz-opts, .versus, .sim-kpis { grid-template-columns: minmax(0, 1fr); }
  .versus > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .stat-row, .article-summary { grid-template-columns: minmax(0, 1fr); }
  .stat-row > div, .article-summary div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); }
  .stat-row > div:first-child, .article-summary div:first-child { border-top: 0; }
  .upcoming, .prep { grid-template-columns: minmax(0, 1fr); }
  .prep-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .prose { font-size: 1rem; }
  .prose .figure { padding: 14px; }
  .chart-box { height: 300px; }
  .chart-box.tall { height: 360px; }
}

/* ---------- utilities added for top page ---------- */
.chart-split-next { margin-top: 64px; }
.quiz-stage { display: grid; gap: 16px; }
.field label.check { justify-content: flex-start; gap: 10px; align-items: center; }
.calc-row .num.accent { color: var(--brass); }

/* ---------- components placed inside .prose ---------- */
.takeaways h2::before { content: none; }
.prose .figure-title, .prose .panel-title { margin: 0; padding: 0; border: 0; font-size: 1.1rem; }
.prose .panel { margin: 2.6em 0; }
.prose .steps { padding-left: 0; }
.prose .steps li { margin-bottom: 0; }
.prose .table-wrap caption { font-size: 1rem; }

/* simulator inside the reading column: inputs on top, results below */
.sim-body { grid-template-columns: minmax(0, 1fr); }
.sim-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
.field output { white-space: nowrap; }
.manifesto { align-items: start; }
@media (max-width: 600px) { .sim-inputs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- checklist scorer ---------- */
.checker { margin: 2.6em 0; border: 1px solid var(--brass); background: var(--ink-2); }
.checker-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.checker-head b { font-family: var(--f-display); font-size: 1.2rem; }
.checker-head span { font-size: .8rem; color: var(--ivory-3); }
.checker-list { list-style: none; margin: 0; padding: 8px 22px; display: grid; }
.prose .checker-list { padding-left: 22px; margin: 0; }
.checker-list li { margin: 0; border-bottom: 1px solid var(--line-soft); }
.checker-list li:last-child { border-bottom: 0; }
.checker-list label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; cursor: pointer; font-size: .95rem; line-height: 1.7; }
.checker-list input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brass); }
.checker-list .cat-tag { font-size: .7rem; letter-spacing: .12em; color: var(--brass); margin-right: 8px; }
.checker-group { padding: 14px 22px 0; font-family: var(--f-display); font-weight: 700; color: var(--brass); font-size: 1rem; }
.checker-out { padding: 20px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--brass-tint); }
.checker-top { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.checker-rank { font-family: var(--f-latin); font-size: 3.2rem; line-height: 1; color: var(--brass); }
.checker-name { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; }
.checker-score { font-size: .85rem; color: var(--ivory-3); }
.checker-text { margin: 0; font-size: .95rem; color: var(--ivory-2); line-height: 1.85; }
.checker-bars { display: grid; gap: 8px; }
.checker-bar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: .8rem; color: var(--ivory-2); }
.checker-bar-track { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.checker-bar-fill { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 4px; transition: width .3s; }
.checker-bar-val { text-align: right; }
.checker-reset { justify-self: start; appearance: none; background: none; border: 1px solid var(--line); color: var(--ivory-2); font: inherit; font-size: .75rem; padding: 4px 12px; cursor: pointer; }
.checker-reset:hover { border-color: var(--brass); color: var(--brass); }

/* ---------- related articles ---------- */
.related { margin-top: 3em; display: grid; gap: 14px; }
.related-title { font-family: var(--f-latin); font-style: italic; color: var(--brass); font-size: 1rem; margin: 0; }
.related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.related-item { position: relative; display: grid; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); background: var(--ink-2); transition: border-color .25s; }
.related-item:hover { border-color: var(--brass); }
.related-item span { font-size: var(--t-xs); letter-spacing: .14em; color: var(--brass); }
.related-item a { font-family: var(--f-display); font-weight: 700; color: var(--ivory); text-decoration: none; line-height: 1.6; }
.related-item a::after { content: ""; position: absolute; inset: 0; }
.related-item.top { border-style: dashed; }
.inline-link { display: block; margin: 1.6em 0; padding: 14px 18px; border-left: 2px solid var(--brass); background: var(--brass-tint); font-size: .95rem; }
.inline-link b { display: block; font-size: var(--t-xs); letter-spacing: .16em; color: var(--brass); margin-bottom: 2px; font-weight: 500; }
.inline-link a { font-family: var(--f-display); font-weight: 700; color: var(--ivory); }
@media (max-width: 600px) { .related-list { grid-template-columns: minmax(0, 1fr); } }
