*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F7F7F5;
  --surface: #ECECE7;
  --surface-2: #E2E2DC;
  --ink: #111110;
  --ink-2: #4F4F4A;
  --ink-3: #85857E;
  --line: rgba(17,17,16,0.12);
  --line-2: rgba(17,17,16,0.24);
  --accent: #D9E85C;
  --on-accent: #111110;
  --block: #111110;
  --on-block: #F7F7F5;
  --on-block-2: #A9A9A2;
  --radius: 22px;
  --radius-sm: 12px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0D;
    --surface: #1A1A18;
    --surface-2: #242421;
    --ink: #F2F2EE;
    --ink-2: #B3B3AC;
    --ink-3: #7A7A73;
    --line: rgba(242,242,238,0.12);
    --line-2: rgba(242,242,238,0.24);
    --block: #2A2A26;
    --on-block: #F2F2EE;
    --on-block-2: #A9A9A2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0D;
  --surface: #1A1A18;
  --surface-2: #242421;
  --ink: #F2F2EE;
  --ink-2: #B3B3AC;
  --ink-3: #7A7A73;
  --line: rgba(242,242,238,0.12);
  --line-2: rgba(242,242,238,0.24);
  --block: #2A2A26;
  --on-block: #F2F2EE;
  --on-block-2: #A9A9A2;
  color-scheme: dark;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter Tight', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* nav */
.site-nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 4px; list-style: none; align-items: center; }
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--surface); color: var(--ink); }
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav-toggle {
  display: none; background: var(--surface); border: none; color: var(--ink);
  font: inherit; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}

/* type */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin-bottom: 20px;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-2);
}
.display {
  font-weight: 500; letter-spacing: -0.04em; line-height: 0.95;
  font-size: clamp(44px, 8.2vw, 108px);
}
.h2 {
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(30px, 4.4vw, 52px);
}
.h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; font-size: 22px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.55; max-width: 560px; }
.prose p { font-size: 17px; color: var(--ink-2); line-height: 1.75; margin-bottom: 1.25rem; max-width: 640px; }
.prose p:last-child { margin-bottom: 0; }
.prose em, .lede em { font-style: italic; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.mark { background: var(--accent); color: var(--on-accent); padding: 0 0.12em; border-radius: 0.12em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  border: none; cursor: pointer; transition: transform 0.15s, opacity 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* layout pieces */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.label {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 18px; display: block;
}

.card {
  background: var(--surface); border-radius: var(--radius);
  padding: 32px;
}
.card-ink { background: var(--block); color: var(--on-block); }
.card-ink .label, .card-ink p { color: var(--on-block-2); }
.card-ink .title, .card-ink .belief-quote, .card-ink .h2 { color: var(--on-block); }
.card-accent { background: var(--accent); color: var(--on-accent); }
.card-accent .label { color: rgba(17,17,16,0.6); }
.card-line { background: transparent; border: 1px solid var(--line-2); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

/* link cards */
.link-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 240px; text-decoration: none;
  transition: transform 0.2s;
}
.link-card:hover { transform: translateY(-3px); }
.link-card .tag { font-size: 12px; font-weight: 500; opacity: 0.7; margin-bottom: 14px; display: block; }
.link-card .title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.link-card .excerpt { font-size: 14px; opacity: 0.75; margin-top: 12px; line-height: 1.5; max-width: 420px; }
.link-card .go {
  margin-top: 28px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  border: 1px solid currentColor; opacity: 0.8;
}

/* subscribe */
.subscribe { text-align: left; }
.subscribe .h2 { color: var(--on-block); }
.email-form { display: flex; gap: 8px; margin-top: 28px; max-width: 480px; }
.email-input {
  flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px;
  border: 1px solid rgba(242,242,238,0.2); background: rgba(242,242,238,0.06);
  color: var(--on-block); font: inherit; font-size: 15px; outline: none;
}
.email-input::placeholder { color: var(--on-block-2); }
.email-input:focus { border-color: var(--accent); }
.email-submit { white-space: nowrap; }
.subscribe-thanks { display: none; font-size: 20px; font-weight: 500; margin-top: 24px; color: var(--accent); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; list-style: none; flex-wrap: wrap; }
.footer-links a, .footer-copy { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* page header (inner pages) */
.page-head { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.back-link {
  display: flex; width: fit-content; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3); text-decoration: none; margin-bottom: 36px;
}
.back-link:hover { color: var(--ink); }

/* responsive */
@media (max-width: 860px) {
  .span-2, .span-3, .span-4 { grid-column: span 6; }
  .card { padding: 26px; }
  .section { padding: 56px 0; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .site-nav.open .nav-links { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .email-form { flex-direction: column; }
  .email-submit { justify-content: center; }
}

/* inner pages */
.page-head .display-2 {
  font-weight: 500; letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(40px, 6.4vw, 84px); max-width: 980px;
}
.page-head .lede { margin-top: 28px; }
.page-head .note { margin-top: 14px; font-size: 15px; color: var(--ink-3); font-style: italic; }
.meta-chip {
  display: inline-block; margin-top: 28px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); font-size: 13px; color: var(--ink-2);
}
.article { max-width: 720px; }
.article p { font-size: 18px; color: var(--ink-2); line-height: 1.8; margin-bottom: 1.4rem; }
.article em, .row-text em, .note-item em { font-style: italic; color: var(--ink); }
.article strong, .row-text strong { font-weight: 600; color: var(--ink); }
.article .statement { font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin: 2.5rem 0; }

.pullquote {
  margin: 2.75rem 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent);
  font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.35;
  color: var(--ink); max-width: 720px;
}

.block { padding: 72px 0; border-top: 1px solid var(--line); }
.block-head { margin-bottom: 32px; }
.num-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500; margin-bottom: 20px;
}
.block-head .h2 { max-width: 860px; }
.block-sub { margin-top: 12px; font-size: 15px; color: var(--ink-3); }

.note-card { background: var(--surface); border-radius: var(--radius); padding: 28px 32px; margin-top: 2.5rem; max-width: 860px; }
.note-card .label { margin-bottom: 8px; }
.note-item { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; line-height: 1.5; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.note-item:last-child { border-bottom: none; padding-bottom: 0; }
.note-item .why { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; line-height: 1.6; }
.note-card p.plain { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-top: 8px; }
.note-card p.plain em { font-style: italic; color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 2.5rem 0; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.stat:nth-child(2) { background: var(--block); color: var(--on-block); }
.stat:nth-child(2) .stat-label { color: var(--on-block-2); }
.stat-num { font-size: clamp(44px, 5vw, 64px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; margin-bottom: 16px; }
.stat-label { font-size: 15px; line-height: 1.5; color: var(--ink-2); flex: 1; }
.stat-src { margin-top: 20px; font-size: 12px; color: var(--ink-3); }

.toc { background: var(--surface); border-radius: var(--radius); padding: 12px 32px; }
.toc a { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.toc a:last-child { border-bottom: none; }
.toc a:hover .toc-title { text-decoration: underline; text-underline-offset: 4px; }
.toc-num { font-size: 13px; color: var(--ink-3); min-width: 22px; }
.toc-title { flex: 1; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.toc-sub { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

.overview .card { min-height: 220px; display: flex; flex-direction: column; }
.overview .num { font-size: 13px; opacity: 0.6; margin-bottom: auto; padding-bottom: 32px; }
.overview .h3 { margin-bottom: 10px; }
.overview p.sub { font-size: 15px; line-height: 1.55; opacity: 0.8; }
.card-ink .h3 { color: var(--on-block); }

.rows { border-top: 1px solid var(--line); margin: 3rem 0; }
.row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.row-num { font-size: 40px; font-weight: 500; letter-spacing: -0.04em; line-height: 1; color: var(--ink-3); }
.row:hover .row-num { color: var(--ink); }
.row-text { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 720px; }
.row-text strong { display: block; font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 8px; font-weight: 500; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 2.5rem 0; }
.split .card .h3 { margin-bottom: 8px; }
.split-item { padding: 16px 0; border-bottom: 1px solid currentColor; border-bottom-color: rgba(127,127,120,0.25); font-size: 15px; line-height: 1.6; }
.split-item:last-child { border-bottom: none; padding-bottom: 0; }
.split-item b { display: block; font-weight: 600; margin-bottom: 4px; }
.card-ink .split-item { color: var(--on-block-2); }
.card-ink .split-item b { color: var(--on-block); }

.closing-card .h2 { max-width: 820px; }
.closing-card p.body { font-size: 17px; line-height: 1.7; margin-top: 20px; max-width: 640px; }
.closing-card .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

.related-cards .link-card { min-height: 200px; }

@media (max-width: 860px) {
  .stat-grid, .split { grid-template-columns: 1fr; }
  .block { padding: 56px 0; }
}
@media (max-width: 720px) {
  .toc { padding: 4px 22px; }
  .toc-sub { display: none; }
  .note-card { padding: 24px; }
  .row { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .row-num { font-size: 28px; }
  .article p { font-size: 17px; }
}
