/* skillverdict.dev — phase 1 site. Editorial audit-report aesthetic: paper, ink, one verdict colour. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe7dd;
  --ink: #16171a;
  --ink-2: #4b4a46;
  --ink-3: #8a877f;
  --rule: #d6d1c4;
  --accent: #c2410c;      /* verdict orange: synthetic malicious, "not safe" */
  --legit: #2f5fa8;       /* legitimate skills */
  --safe: #2f7d4f;
  --grid: rgba(22, 23, 26, 0.06);
  --max: 1120px;
  --measure: 68ch;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --display: "Fraunces", "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #17181c; --paper-2: #1f2026; --ink: #e8e4da; --ink-2: #b7b2a6; --ink-3: #7d7970;
    --rule: #33353c; --accent: #e0632a; --legit: #6b93d6; --safe: #5fae7f; --grid: rgba(232, 228, 218, 0.06);
  }
}
:root[data-theme="dark"] {
  --paper: #17181c; --paper-2: #1f2026; --ink: #e8e4da; --ink-2: #b7b2a6; --ink-3: #7d7970;
  --rule: #33353c; --accent: #e0632a; --legit: #6b93d6; --safe: #5fae7f; --grid: rgba(232, 228, 218, 0.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.55;
  font-feature-settings: "onum" 0, "pnum" 1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}
a { color: inherit; text-decoration-color: var(--ink-3); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.site-head { border-bottom: 1px solid var(--rule); background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; height: 56px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 22px; height: 22px; display: inline-block; }
.brand .mark rect { fill: var(--ink); }
.brand .mark path { stroke: var(--paper); stroke-width: 2.6; fill: none; stroke-linecap: square; }
nav.main { display: flex; gap: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; }
nav.main a { text-decoration: none; color: var(--ink-2); }
nav.main a[aria-current] , nav.main a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
@media (min-width: 760px) { .hero { padding: 112px 0 72px; } }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 20px; }
.kicker b { color: var(--accent); font-weight: 500; }
h1.display {
  font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 1;
  font-size: clamp(40px, 7.2vw, 92px); line-height: 0.98; letter-spacing: -0.028em; margin: 0 0 28px; max-width: 16ch; text-wrap: balance;
}
h1.display em { font-style: italic; color: var(--accent); }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: var(--ink-2); max-width: 44ch; margin: 0 0 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { font-family: var(--mono); font-size: 14px; letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none; padding: 14px 20px; border: 1px solid var(--ink); color: var(--ink); background: transparent; transition: background .15s, color .15s; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary:hover { color: var(--paper); }

/* rubber stamp */
.stamp {
  position: absolute; right: 16px; top: 64px; transform: rotate(-9deg);
  border: 3px double var(--accent); color: var(--accent); padding: 10px 16px; font-family: var(--mono); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85;
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 -0.9'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 -0.9'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
  mask-size: 120px; -webkit-mask-size: 120px;
  animation: stamp-in .5s cubic-bezier(.2,.9,.2,1.2) .4s both;
}
.stamp small { display: block; font-weight: 400; letter-spacing: 0.06em; font-size: 11px; text-transform: none; margin-top: 4px; }
@media (max-width: 759px) { .stamp { position: static; display: inline-block; margin: 0 0 24px; transform: rotate(-4deg); } }
@keyframes stamp-in { from { opacity: 0; transform: rotate(-9deg) scale(1.4); } to { opacity: .85; transform: rotate(-9deg) scale(1); } }
@media (max-width: 759px) { @keyframes stamp-in { from { opacity: 0; transform: rotate(-4deg) scale(1.3); } to { opacity: .85; transform: rotate(-4deg) scale(1); } } }

/* ---------- numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--rule); }
@media (min-width: 760px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.num { padding: 28px 0 28px; border-right: 1px solid var(--rule); padding-right: 20px; }
.num:last-child { border-right: 0; }
@media (max-width: 759px) { .num:nth-child(2n) { border-right: 0; } .num { border-bottom: 1px solid var(--rule); } .num:nth-last-child(-n+2) { border-bottom: 0; } }
.num .v { font-family: var(--mono); font-size: clamp(34px, 4vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.num .v.acc { color: var(--accent); }
.num .l { font-size: 15px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; max-width: 24ch; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.block-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .block-grid { grid-template-columns: 220px 1fr; gap: 48px; } }
.label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); position: sticky; top: 76px; align-self: start; }
.label b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
h2 { font-family: var(--display); font-weight: 500; font-variation-settings: "opsz" 72, "SOFT" 20; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 20px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 12px; }
p { margin: 0 0 18px; max-width: var(--measure); }
.prose > ul, .prose > ol { max-width: var(--measure); padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose code, td code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.prose pre { font-family: var(--mono); font-size: 14px; background: var(--paper-2); padding: 16px 18px; overflow-x: auto; border-left: 3px solid var(--rule); max-width: var(--measure); }
.pull { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; font-weight: 400; font-style: italic; border-left: 3px solid var(--accent); padding-left: 20px; margin: 36px 0; max-width: 40ch; color: var(--ink); }
.note { font-size: 15px; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 12px; max-width: var(--measure); }

/* ---------- figures & tables ---------- */
figure { margin: 32px 0; }
figure.chart { background: var(--paper-2); border: 1px solid var(--rule); padding: 20px 20px 12px; }
figure svg { width: 100%; height: auto; display: block; font-family: var(--mono); }
figcaption { font-size: 14px; color: var(--ink-2); margin-top: 12px; line-height: 1.45; }
figcaption b { font-family: var(--mono); font-weight: 500; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; margin-right: 8px; }
.tablewrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
td.n, th.n { text-align: right; font-family: var(--mono); font-size: 14px; }
td.hi { color: var(--accent); font-weight: 600; }
tr.sum td { border-top: 2px solid var(--ink); font-weight: 600; }

/* chart internals */
.chart text { fill: var(--ink-2); font-size: 12px; }
.chart .axis line, .chart .axis path { stroke: var(--rule); }
.chart .grid line { stroke: var(--rule); stroke-dasharray: 2 4; }
.chart .legit { fill: var(--legit); }
.chart .mal { fill: var(--accent); }
.chart .ring { stroke: var(--paper-2); stroke-width: 2; }
.chart .bar { fill: var(--ink); }
.chart .bar.acc { fill: var(--accent); }
.chart .lbl { fill: var(--ink); font-weight: 500; }
.chart .muted { fill: var(--ink-3); }
.chart .cell.hit { fill: var(--ink); }
.chart .cell.miss { fill: none; stroke: var(--rule); }
.chart .cell.hit.hi { fill: var(--accent); }
.chart .legend text { fill: var(--ink-2); }
.chart .median { stroke: var(--ink); stroke-width: 2; }
.chart .pt:hover { filter: brightness(1.2); }
.chart .hover-hit { fill: transparent; }

/* ---------- cards (what's next) ---------- */
.cards { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--paper); padding: 28px 24px; min-width: 0; }
.card .step { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; }
.card h3 { margin: 10px 0 10px; font-size: 20px; }
.card p { font-size: 16px; color: var(--ink-2); margin: 0; }
.card .soon { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid var(--rule); padding: 3px 8px; color: var(--ink-2); }
.badge-demo { font-family: var(--mono); font-size: 13px; background: var(--paper-2); padding: 12px 14px; border: 1px dashed var(--rule); overflow-x: auto; white-space: nowrap; margin-top: 16px; }

/* ---------- email / footer ---------- */
.signup { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.signup input { font-family: var(--mono); font-size: 15px; padding: 13px 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); min-width: 260px; flex: 1 1 260px; max-width: 380px; }
.signup input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
footer { padding: 40px 0 56px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
footer .cols { display: flex; flex-wrap: wrap; gap: 8px 28px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---------- article ---------- */
.article-head { padding: 64px 0 40px; border-bottom: 1px solid var(--rule); }
.article-head h1 { font-family: var(--display); font-weight: 400; font-variation-settings: "opsz" 120, "SOFT" 30; font-size: clamp(34px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 20px; max-width: 22ch; text-wrap: balance; }
.meta { font-family: var(--mono); font-size: 13px; color: var(--ink-2); letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.toc { font-family: var(--mono); font-size: 13px; line-height: 1.9; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--accent); }
.toc li { list-style: none; }
.toc ol { padding: 0; margin: 0; counter-reset: toc; }
.toc li::before { counter-increment: toc; content: "§" counter(toc) " "; color: var(--ink-3); }
.verdict-word { font-family: var(--mono); font-size: 0.85em; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid currentColor; padding: 0 5px; white-space: nowrap; }
.verdict-word.block { color: var(--accent); }
.verdict-word.safe { color: var(--safe); }
.responses { border: 1px solid var(--rule); padding: 20px 24px; background: var(--paper-2); max-width: var(--measure); }
.responses h3 { margin-top: 0; }

/* page-load reveal */
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .08s; } .reveal:nth-child(3) { animation-delay: .16s; } .reveal:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .stamp { animation: none; } html { scroll-behavior: auto; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
