@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Gowun+Dodum&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --ink: #14213d;
  --paper: #f6f0df;
  --white: #fffaf0;
  --coral: #ff6b57;
  --lime: #c8f05a;
  --blue: #3c6ff0;
  --yellow: #ffd85b;
  --quiet: #675f52;
  --line: rgba(20, 33, 61, .2);
  --accent: var(--coral);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 24rem),
    linear-gradient(rgba(20, 33, 61, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 100% 28px, auto;
  font-family: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.68;
  word-break: keep-all;
}
body.bird { --accent: var(--blue); }
body.finance { --accent: #f0a82f; }
a, p, li, td, th, summary { overflow-wrap: anywhere; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
  font-size: .9rem;
}
.topbar nav { display: flex; gap: 18px; flex-wrap: wrap; }
.hero { padding: 76px 0 84px; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
h1, h2, h3 { margin: 0; line-height: 1.14; }
h1, h2 { font-family: "Black Han Sans", sans-serif; font-weight: 400; }
h1 { max-width: 900px; margin-top: 15px; font-size: clamp(3.2rem, 8vw, 7rem); letter-spacing: -.035em; }
h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 760px; margin: 28px 0 0; font-size: clamp(1.1rem, 2vw, 1.45rem); }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge { padding: 7px 12px; border: 2px solid var(--ink); background: var(--white); font-weight: 700; box-shadow: 4px 4px 0 var(--ink); }
section.block { padding: 78px 0; border-top: 3px solid var(--ink); }
section.dark { background: var(--ink); color: var(--paper); }
h2 { font-size: clamp(2.25rem, 5vw, 4.6rem); }
.section-lead { max-width: 760px; margin: 20px 0 0; font-size: 1.08rem; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; border: 3px solid var(--ink); background: var(--white); }
.stage { padding: 24px 20px; min-height: 170px; border-right: 2px solid var(--ink); }
.stage:last-child { border-right: 0; }
.stage b { display: block; margin-bottom: 9px; font-size: 1.15rem; }
.stage span { color: var(--quiet); }
.stage i { display: block; margin-bottom: 18px; font: 2.4rem/1 "Black Han Sans"; color: var(--accent); font-style: normal; }
.sample-shell { margin-top: 42px; border: 3px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--ink); }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 2px solid var(--ink); background: var(--accent); }
.sample-head b { font-size: 1.12rem; }
.sample-head span { font-family: "IBM Plex Mono", monospace; font-size: .82rem; }
.sample-body { padding: clamp(22px, 4vw, 42px); }
.label { display: block; margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--quiet); }
.question { margin: 0; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.context { margin-top: 24px; padding: 18px 20px; border-left: 6px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, white); }
.condition-stack { display: grid; gap: 12px; margin-top: 34px; }
.condition { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 15px 18px; border: 1px solid var(--line); background: #fffdf6; }
.condition b { font-family: "IBM Plex Mono", monospace; }
.condition p { margin: 0; }
.condition.mix1 { border-left: 7px solid var(--lime); }
.condition.mix2 { border-left: 7px solid #84b7ff; }
.condition.mix3 { border-left: 7px solid var(--coral); }
details { margin-top: 18px; border: 2px solid var(--ink); background: var(--white); }
summary { cursor: pointer; padding: 15px 18px; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, white); }
details[open] summary { border-bottom: 2px solid var(--ink); }
pre, code { font-family: "IBM Plex Mono", ui-monospace, monospace; }
pre {
  margin: 0;
  padding: 20px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: .83rem;
  line-height: 1.52;
  background: #0d1730;
  color: #f8f4e7;
}
.verdict { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; margin-top: 42px; }
.verdict-card { padding: 28px; border: 3px solid currentColor; }
.verdict-card.good { background: var(--lime); color: var(--ink); }
.verdict-card.bad { background: var(--coral); color: var(--ink); }
.verdict-card .big { display: block; font: 3rem/1 "Black Han Sans"; }
.verdict-card p { margin-bottom: 0; }
.score-matrix { display: grid; grid-template-columns: 88px repeat(3, 1fr); margin-top: 28px; border: 2px solid currentColor; }
.score-matrix > div { padding: 11px 8px; text-align: center; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.score-matrix > div:nth-child(4n) { border-right: 0; }
.score-matrix > div:nth-last-child(-n+4) { border-bottom: 0; }
.score-matrix .head { font-weight: 700; background: rgba(255,255,255,.1); }
.pass { color: #1f5f22; font-weight: 700; }
.fail { color: #a32a20; font-weight: 700; }
.dark .pass { color: var(--lime); }
.dark .fail { color: #ff998b; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 38px; }
.plain-card { padding: 28px; border: 3px solid var(--ink); background: var(--white); }
.plain-card h3 { font-size: 1.35rem; }
.plain-card ul { margin: 16px 0 0; padding-left: 1.25rem; }
.plain-card li + li { margin-top: 8px; }
.other-samples { margin-top: 34px; display: grid; gap: 1px; background: var(--ink); border: 3px solid var(--ink); }
.other-sample { display: grid; grid-template-columns: 175px 1fr; gap: 24px; padding: 18px 22px; background: var(--paper); }
.other-sample b { font-family: "IBM Plex Mono", monospace; }
.callout { margin-top: 38px; padding: 28px; border: 3px solid var(--ink); background: var(--yellow); font-size: 1.08rem; }
footer { padding: 50px 0 70px; color: var(--quiet); font-size: .9rem; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 26px, 1080px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  .hero { padding: 48px 0 58px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  section.block { padding: 58px 0; }
  .pipeline { grid-template-columns: 1fr; }
  .stage { min-height: auto; border-right: 0; border-bottom: 2px solid var(--ink); }
  .stage:last-child { border-bottom: 0; }
  .sample-head { align-items: flex-start; flex-direction: column; }
  .condition { grid-template-columns: 58px 1fr; gap: 10px; padding: 14px; }
  .verdict, .two-col { grid-template-columns: 1fr; }
  .score-matrix { grid-template-columns: 70px repeat(3, 1fr); font-size: .84rem; }
  .other-sample { grid-template-columns: 1fr; gap: 4px; }
  pre { font-size: .76rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero > .wrap > *, .pipeline, .sample-shell { animation: rise .55s both; }
  .pipeline { animation-delay: .08s; }
  .sample-shell { animation-delay: .14s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
