:root {
  --paper: #FFFEFC;
  --paper-2: #F2F1ED;
  --ink: #1D2429;
  --line: #6E7C84;
  --rule: #C9CFD2;
  --accent: #2448A8;
  --error: #B3261E;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12181C; --paper-2: #1A2227; --ink: #E3E8E9; --line: #8796A0; --rule: #34414A; --accent: #86A4FF; --error: #F2B8B5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12181C; --paper-2: #1A2227; --ink: #E3E8E9; --line: #8796A0; --rule: #34414A; --accent: #86A4FF; --error: #F2B8B5;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Archivo", "IBM Plex Sans KR", system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
html[lang="ko"] body { font-family: "IBM Plex Sans KR", "Archivo", system-ui, sans-serif; word-break: keep-all; }
html[lang="en"] .l-ko, html[lang="ko"] .l-en { display: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 68ch; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.mark { text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.mark b, .mark span { font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 750; font-size: 19px; letter-spacing: -0.01em; }
.mark span { color: var(--line); opacity: .7; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.lang { font: inherit; font-size: 14px; color: var(--ink); background: transparent; border: 1px solid var(--ink); border-radius: 2px; padding: 5px 10px; cursor: pointer; }

/* type */
h1, h2, h3 { margin: 0; }
.display {
  font-family: "Archivo", sans-serif; font-stretch: 66%; font-weight: 720;
  font-size: clamp(44px, 7.6vw, 104px); line-height: 0.95; letter-spacing: -0.012em;
}
html[lang="ko"] .display { font-family: "IBM Plex Sans KR", sans-serif; font-weight: 700; font-size: clamp(32px, 4.8vw, 64px); line-height: 1.18; letter-spacing: -0.03em; }
h2.section {
  font-family: "Archivo", sans-serif; font-stretch: 72%; font-weight: 700;
  font-size: clamp(32px, 4.2vw, 52px); line-height: 1; letter-spacing: -0.01em; margin-bottom: 12px;
}
html[lang="ko"] h2.section { font-family: "IBM Plex Sans KR", sans-serif; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.2; letter-spacing: -0.02em; }
.intro { margin: 0 0 32px; max-width: 56ch; color: var(--line); }
.meta { color: var(--line); font-size: 15px; }
.paper-title {
  font-family: "Archivo", sans-serif; font-stretch: 86%; font-weight: 680;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.01em;
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: inherit; font-size: 16px; font-weight: 600; padding: 12px 20px; border-radius: 2px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn:not(.btn-primary):hover { background: var(--paper-2); }
.btn small { font-weight: 400; font-size: 13.5px; opacity: .75; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* sheet frame (brand motif) */
.sheet { border: 1.5px solid var(--ink); padding: clamp(20px, 4vw, 48px); position: relative; }
.sheet::before { content: ""; position: absolute; inset: 6px; border: 0.75px solid var(--line); pointer-events: none; }
.sheet > * { position: relative; }

/* hypothesis ledger */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 48px 1fr minmax(150px, auto); gap: 6px 20px; align-items: baseline; padding: 14px 0 15px; border-bottom: 1px solid var(--rule); }
.ledger .h { font-family: "Archivo", sans-serif; font-stretch: 70%; font-weight: 700; font-size: 26px; line-height: 1; }
.ledger .q { margin: 0; }
.ledger .q small { display: block; color: var(--line); font-size: 14.5px; margin-top: 4px; }
.verdict { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.verdict::before { content: ""; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; flex: none; }
.verdict.yes::before { background: currentColor; }
.verdict.half::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.verdict.no::before { border-radius: 0; transform: rotate(45deg) scale(.85); }
.verdict.yes { color: var(--accent); }

/* sections */
.block { padding: clamp(64px, 9vw, 112px) 0 0; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cols-3 > div { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.cols-3 h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
.cols-3 p { margin: 0; }

/* footer */
footer.site { border-top: 1.5px solid var(--ink); margin-top: clamp(64px, 9vw, 112px); }
footer .biz { padding-top: 24px; padding-bottom: 32px; font-size: 13.5px; line-height: 1.7; color: var(--line); text-align: center; }
footer .biz p { margin: 0; }
footer .biz .note { margin-top: 10px; }

@media (max-width: 900px) {
  .cols-3 { grid-template-columns: 1fr; gap: 24px; }
  .nav-links a { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .ledger li { grid-template-columns: 40px 1fr; }
  .ledger .verdict { grid-column: 2; justify-self: start; }
}
