/* =========================================================
   CAIO Design System — Q2 2026 refresh
   Shared tokens + chrome + components across all pages.
   Edit tokens in :root; pages share typography + components.
   ========================================================= */

:root {
  --ink: #0B0F14;
  --ink-2: #2A2F38;
  --ink-3: #6A6E76;
  --mute: #6A6E76;
  --rule: #1a1f27;
  --rule-soft: #D9D2C2;
  --paper: #F4EFE4;
  --paper-2: #ECE5D3;
  --white: #FDFCF8;
  --accent: #A83A2B;
  --accent-soft: #A83A2B22;
  --danger: #B03A3A;
  --success: #2F6F4E;

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "游ゴシック", sans-serif;
  --mono: "Inter", ui-sans-serif, system-ui, sans-serif;

  --container: 1200px;
  --gutter: 48px;

  --bp-sm: 640px;
  --bp-md: 960px;
  --bp-lg: 1100px;

  --shadow-soft: 0 1px 2px rgba(11,15,20,0.04), 0 8px 24px rgba(11,15,20,0.04);

  --focus-ring: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent);
}

/* ---- RESET ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  line-height: 1.75;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-wrap: pretty;
}
.num { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---- FOCUS (WCAG AA) ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.cta-btn:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- SKIP LINK ---- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  z-index: 100;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---- TOPBAR ---- */
.topbar {
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
  letter-spacing: 0.04em;
}
.topbar-left { display: flex; gap: 24px; opacity: 0.85; }
.topbar-left span::before { content: "・"; margin-right: 6px; opacity: 0.5; }
.topbar-left span:first-child::before { content: ""; margin: 0; }
.topbar-right { display: flex; gap: 18px; opacity: 0.75; }
.topbar-right a:hover,
.topbar-right a:focus-visible { opacity: 1; color: var(--white); }

/* ---- HEADER ---- */
header.site {
  background: var(--white);
  border-bottom: 1px solid var(--rule-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 18px 0;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.logo b { font-weight: 800; }
.logo .tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--mute);
  padding-left: 10px;
  border-left: 1px solid var(--rule-soft);
}

nav.primary ul {
  display: flex;
  gap: 28px;
  list-style: none;
}
nav.primary a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 6px 0;
  position: relative;
}
nav.primary a:hover,
nav.primary a.current { color: var(--accent); }
nav.primary a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .25s;
}
nav.primary a:hover::after,
nav.primary a.current::after { width: 100%; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border: 1px solid var(--rule-soft);
  background: var(--white);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .2s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: translate(-50%, -50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: translate(-50%, -50%) rotate(-45deg); }

/* ---- CTA BUTTON ---- */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--ink);
  transition: background .2s, border-color .2s, color .2s;
  cursor: pointer;
}
.cta-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cta-btn .arrow { font-family: var(--mono); font-weight: 300; }
.cta-btn.primary {
  padding: 16px 28px;
  font-size: 14px;
  background: var(--accent);
  border-color: var(--accent);
}
.cta-btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.cta-btn.ghost {
  background: transparent;
  color: var(--ink);
}
.cta-btn.ghost:hover { background: var(--ink); color: var(--white); }
.cta-btn[disabled],
.cta-btn.is-loading {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* ---- SECTION SHELL ---- */
section.block { padding: 96px 0; border-bottom: 1px solid var(--rule-soft); }
section.block.alt { background: var(--white); }
section.block.dark {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255,255,255,0.08);
}
section.block.dark .section-label { color: rgba(255,255,255,0.5); }
section.block.dark .section-label::before { background: rgba(255,255,255,0.3); }

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--mute);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--mute);
}
.section-label .jp {
  font-family: var(--mono);
  letter-spacing: 0.18em;
  text-transform: none;
}
.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
  max-width: 22em;
}
.section-title em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.section-lead {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  max-width: 40em;
  margin-bottom: 64px;
}
section.block.dark .section-lead { color: rgba(255,255,255,0.75); }

/* ---- PAGE HERO ---- */
.page-hero {
  background: var(--white);
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero .breadcrumb,
.founder-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--mute);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a,
.founder-hero .breadcrumb a { color: var(--mute); }
.page-hero .breadcrumb a:hover,
.founder-hero .breadcrumb a:hover { color: var(--accent); }
.page-hero .breadcrumb span.sep,
.founder-hero .breadcrumb span.sep { margin: 0 10px; opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  max-width: 18em;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.page-hero .lead {
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 40em;
}

/* ---- CARD + GRID ---- */
.card {
  background: var(--white);
  border: 1px solid var(--rule-soft);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card h3 { font-size: 20px; line-height: 1.5; }
.card p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.card .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--accent);
  font-weight: 600;
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- FORMS ---- */
.form-field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.form-field label .required { color: var(--accent); margin-left: 4px; }
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--rule-soft);
  background: var(--white);
  color: var(--ink);
  border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field.is-error input,
.form-field.is-error select,
.form-field.is-error textarea { border-color: var(--danger); }
.form-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
}
.form-status {
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.7;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-info { background: var(--paper-2); color: var(--ink-2); border-left: 3px solid var(--mute); }
.form-status.is-success { background: #EDF4EF; color: var(--success); border-left: 3px solid var(--success); }
.form-status.is-error { background: #F7E8E8; color: var(--danger); border-left: 3px solid var(--danger); }

/* ---- FOOTER ---- */
footer.site {
  background: #050709;
  color: rgba(255,255,255,0.7);
  padding: 72px 0 32px;
  font-size: 12px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer .logo { color: var(--white); margin-bottom: 20px; }
footer .logo .tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }
footer h4 {
  font-family: var(--sans);
  font-size: 11px;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer li { padding: 6px 0; }
footer a:hover,
footer a:focus-visible { color: var(--white); }
.company-info {
  font-size: 11px;
  line-height: 2;
  color: rgba(255,255,255,0.5);
}
.company-info dt {
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-top: 6px;
  letter-spacing: 0.08em;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ---- NEWSLETTER (footer band + article sidebar) ---- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.footer-newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}
.footer-newsletter-intro .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.footer-newsletter-intro h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.footer-newsletter-intro h3 em {
  font-style: normal;
  color: var(--accent);
}
.footer-newsletter-intro p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 32em;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
  position: relative;
}
.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  border-radius: 2px;
}
.newsletter-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.4);
}
.newsletter-form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
  background: rgba(255,255,255,0.08);
}
.newsletter-form .cta-btn {
  flex: 0 0 auto;
}
.newsletter-form .form-error {
  flex: 1 0 100%;
  font-size: 12px;
  color: #ff8a7a;
  margin: 4px 0 0;
  min-height: 1em;
}

/* Article sidebar variant — paper/ink inverted */
.newsletter-box {
  background: var(--paper-2);
  padding: 24px 22px;
  border-left: 2px solid var(--accent);
  margin-top: 24px;
  border-radius: 2px;
}
.newsletter-box .kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.newsletter-box h4 {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 8px;
}
.newsletter-box p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.newsletter-box .newsletter-form {
  flex-direction: column;
  gap: 8px;
}
.newsletter-box .newsletter-form input[type="email"] {
  flex: 1 0 100%;
  background: var(--white);
  color: var(--ink);
  border-color: rgba(11,15,20,0.16);
}
.newsletter-box .newsletter-form input[type="email"]::placeholder {
  color: var(--ink-3);
}
.newsletter-box .newsletter-form .cta-btn {
  width: 100%;
  justify-content: center;
}
.newsletter-box .newsletter-form .form-error {
  color: var(--accent);
}

@media (max-width: 960px) {
  .footer-newsletter {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0 40px;
    margin-bottom: 40px;
  }
}

/* ---- INTRO SPLASH ---- */
#caio-splash {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: auto;
  transition: opacity .3s ease;
}
#caio-splash.in { opacity: 1; }
#caio-splash.out { opacity: 0; pointer-events: none; }
#caio-splash .splash-mark {
  font-family: var(--serif);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: center;
}
#caio-splash .splash-big {
  display: block;
  font-size: clamp(96px, 14vw, 200px);
  font-weight: 700;
  background: linear-gradient(180deg, var(--ink) 0, var(--ink) 60%, var(--accent) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
#caio-splash .splash-expand {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--mute);
}
#caio-splash .splash-expand b { color: var(--ink); font-weight: 600; }

/* ---- READING PROGRESS ---- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 60;
  transition: width .1s linear;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, background .2s;
  z-index: 40;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--accent); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .footer-grid { gap: 32px; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .header-inner { grid-template-columns: auto auto; gap: 16px; }
  .header-inner .cta-btn { display: none; }
  nav.primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--rule-soft);
    padding: 16px var(--gutter) 24px;
  }
  nav.primary.is-open { display: block; }
  nav.primary ul { flex-direction: column; gap: 0; }
  nav.primary li { border-bottom: 1px solid var(--rule-soft); }
  nav.primary li:last-child { border-bottom: 0; }
  nav.primary a { display: block; padding: 14px 0; font-size: 15px; }
  nav.primary a::after { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar-left span:nth-child(n+3) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  section.block { padding: 64px 0; }
  .page-hero { padding: 56px 0 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .topbar-inner { font-size: 11px; }
  .topbar-left { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .section-lead { margin-bottom: 40px; }
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  #caio-splash { display: none !important; }
  .reading-progress { transition: none; }
}

/* ---- PRINT ---- */
@media print {
  .topbar, header.site, footer.site, .back-to-top, .reading-progress, #caio-splash { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* =========================================================
   ARTICLE (insights/*) — shared across all long-form pages
   ========================================================= */
.article-head { background: var(--white); padding: 72px 0 56px; border-bottom: 1px solid var(--rule-soft); }
.article-head .breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--mute); margin-bottom: 28px; }
.article-head .breadcrumb a { color: var(--mute); }
.article-head .breadcrumb a:hover { color: var(--accent); }
.article-head .breadcrumb .sep { margin: 0 10px; opacity: 0.4; }
.article-head .cat { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; padding: 4px 10px; background: var(--accent); color: var(--white); font-weight: 600; margin-bottom: 20px; }
.article-head h1 { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; margin: 0 0 28px; max-width: 18em; }
.article-head h1 em { font-style: normal; color: var(--accent); font-weight: 700; }
.article-head .dek { font-family: var(--serif); font-size: 19px; line-height: 1.85; color: var(--ink-2); max-width: 36em; margin: 0 0 32px; font-weight: 400; }
.article-head .meta { display: flex; gap: 32px; padding-top: 24px; border-top: 1px solid var(--rule-soft); font-size: 12px; color: var(--mute); font-family: var(--mono); letter-spacing: 0.1em; align-items: center; flex-wrap: wrap; }
.article-head .meta .author { display: flex; align-items: center; gap: 12px; }
.article-head .meta .avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2) url('/assets/images/founder/frank-founder-portrait.webp') center 25%/cover; filter: grayscale(0.15); border: 1px solid var(--rule-soft); }
.article-head .meta .author b { font-family: var(--serif); font-size: 13px; color: var(--ink); letter-spacing: 0.03em; font-weight: 600; display: block; }
.article-head .meta .author small { display: block; color: var(--mute); font-size: 10px; font-weight: 400; letter-spacing: 0.12em; }

.article-body { display: grid; grid-template-columns: 220px 1fr 260px; gap: 64px; align-items: start; padding: 72px 0 96px; }

.toc-side { position: sticky; top: 100px; }
.toc-side h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--mute); margin: 0 0 14px; font-weight: 600; text-transform: uppercase; }
.toc-side ol { list-style: none; counter-reset: toc; border-left: 1px solid var(--rule-soft); padding: 0; margin: 0; }
.toc-side li { counter-increment: toc; }
.toc-side a { display: block; padding: 8px 14px; font-size: 12px; line-height: 1.6; color: var(--ink-2); border-left: 2px solid transparent; margin-left: -1px; transition: color .15s, border-color .15s; text-decoration: none; }
.toc-side a::before { content: counter(toc, decimal-leading-zero) "　"; font-family: var(--mono); color: var(--mute); font-size: 10px; }
.toc-side a:hover, .toc-side a.active { color: var(--accent); border-left-color: var(--accent); }
.toc-side a.active::before { color: var(--accent); }

.prose { font-family: var(--sans); font-size: 16px; line-height: 1.95; color: var(--ink); max-width: 42em; }
.prose > p { margin: 0 0 26px; }
.prose > p.lead { font-family: var(--serif); font-size: 19px; line-height: 1.85; color: var(--ink); padding: 20px 0 20px 24px; border-left: 3px solid var(--accent); margin: 0 0 40px; }
.prose h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; line-height: 1.45; margin: 56px 0 20px; letter-spacing: -0.005em; padding-top: 8px; scroll-margin-top: 100px; }
.prose h2 .hnum { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px; }
.prose h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 40px 0 14px; line-height: 1.55; scroll-margin-top: 100px; }
.prose strong { color: var(--ink); font-weight: 700; background: linear-gradient(to top, var(--accent-soft) 40%, transparent 40%); padding: 0 2px; }
.prose em { font-style: normal; color: var(--accent); font-weight: 600; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.prose ul, .prose ol { margin: 0 0 28px 4px; padding-left: 20px; }
.prose li { margin-bottom: 10px; line-height: 1.85; }
.prose ul li::marker { color: var(--accent); }
.prose .endnote { font-size: 13px; color: var(--mute); padding-top: 32px; border-top: 1px solid var(--rule-soft); margin-top: 48px; }

.pull { margin: 48px 0; padding: 40px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); text-align: center; }
.pull q { font-family: var(--serif); font-size: 26px; line-height: 1.55; font-weight: 500; quotes: "「" "」"; display: block; max-width: 24em; margin: 0 auto 16px; letter-spacing: -0.005em; }
.pull small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; color: var(--mute); }

.callout { background: var(--paper-2); border-left: 4px solid var(--accent); padding: 28px 32px; margin: 36px 0; }
.callout .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.callout h4 { font-family: var(--serif); font-size: 17px; margin: 0 0 8px; font-weight: 600; }
.callout p { font-size: 14px; line-height: 1.85; color: var(--ink-2); margin: 0; }

.candidates { display: grid; gap: 0; margin: 32px 0 40px; border-top: 2px solid var(--ink); }
.cand { padding: 28px 0; border-bottom: 1px solid var(--rule-soft); display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: baseline; }
.cand .n { font-family: var(--serif); font-size: 48px; font-weight: 700; color: var(--accent); line-height: 0.9; letter-spacing: -0.03em; }
.cand .t { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.5; margin-bottom: 8px; }
.cand .d { font-size: 14px; color: var(--ink-2); line-height: 1.85; }
.cand .tag { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--mute); padding: 3px 8px; border: 1px solid var(--rule-soft); background: var(--paper); }

.cta-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
.cta-side .box { background: var(--ink); color: var(--white); padding: 28px; }
.cta-side .box .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: #EFD6D0; margin-bottom: 10px; }
.cta-side .box h4 { color: var(--white); font-family: var(--serif); font-size: 18px; line-height: 1.5; font-weight: 600; margin: 0 0 12px; }
.cta-side .box p { font-size: 12px; color: rgba(255,255,255,0.7); line-height: 1.8; margin: 0 0 20px; }
.cta-side .box .cta-btn { width: 100%; justify-content: center; background: var(--white); color: var(--ink); border-color: var(--white); padding: 14px; font-size: 12px; }
.cta-side .box .cta-btn:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.cta-side .share { padding: 20px; border: 1px solid var(--rule-soft); background: var(--white); }
.cta-side .share .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mute); margin-bottom: 12px; }
.cta-side .share-row { display: flex; gap: 8px; }
.cta-side .share-row a { flex: 1; padding: 10px; text-align: center; border: 1px solid var(--rule-soft); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-2); transition: all .15s; font-family: var(--mono); text-decoration: none; }
.cta-side .share-row a:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }

.author-bio { display: grid; grid-template-columns: 120px 1fr; gap: 28px; background: var(--white); border: 1px solid var(--rule-soft); padding: 32px; margin-top: 64px; align-items: start; }
.author-bio-img { aspect-ratio: 1; background: var(--paper-2) url('/assets/images/founder/frank-founder-portrait.webp') center 25%/cover; filter: grayscale(0.2); border: 1px solid var(--rule-soft); }
.author-bio .kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: var(--mute); margin-bottom: 6px; }
.author-bio h5 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 12px; }
.author-bio p { font-size: 13px; color: var(--ink-2); line-height: 1.85; margin: 0 0 16px; }
.author-bio a { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; text-decoration: none; }

.related { background: var(--paper-2); padding: 72px 0; border-top: 1px solid var(--rule-soft); }
.related h3 { font-family: var(--serif); font-size: 28px; margin: 0 0 32px; font-weight: 600; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card { background: var(--white); border: 1px solid var(--rule-soft); padding: 28px; transition: background .15s; display: block; color: inherit; text-decoration: none; }
.related-card:hover { background: var(--paper); }
.related-card .n { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mute); margin-bottom: 12px; }
.related-card h4 { font-family: var(--serif); font-size: 16px; font-weight: 600; line-height: 1.55; margin: 0 0 12px; }
.related-card p { font-size: 12px; color: var(--ink-2); line-height: 1.8; margin: 0 0 16px; }
.related-card .foot { display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; color: var(--mute); }
.related-card .foot .cat { color: var(--accent); font-weight: 600; }

@media (max-width: 1100px) {
  .article-body { grid-template-columns: 1fr; gap: 40px; }
  .toc-side, .cta-side { position: static; }
}
@media (max-width: 960px) {
  .related-grid { grid-template-columns: 1fr; }
  .author-bio { grid-template-columns: 1fr; }
  .article-head { padding: 48px 0 32px; }
  .prose h2 { font-size: 24px; margin: 40px 0 16px; }
}
