:root {
  --ink: #151515;
  --paper: #f1efe8;
  --panel: #f8f7f2;
  --rule: #c8c4b8;
  --muted: #6f6c64;
  --acid: #c7f04a;
  --blue: #3559e8;
  --rust: #d4522a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--blue); }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.masthead {
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 70px 0 62px;
  color: #f5f2e8;
  background:
    radial-gradient(circle at 83% 18%, rgba(199,240,74,.9) 0 2px, transparent 3px),
    repeating-linear-gradient(90deg, transparent 0 calc(8.333% - 1px), rgba(255,255,255,.07) calc(8.333% - 1px) 8.333%),
    #151515;
}
.eyebrow, .section-no, .maker, .stamp, .updated {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .73rem;
  font-weight: 750;
}
.eyebrow { color: var(--acid); margin: 0 0 22px; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 8.8rem);
  font-weight: 400;
  line-height: .82;
  letter-spacing: -.07em;
}
.dek { max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.38rem); color: #c9c6bc; }
.stamp { display: flex; gap: 10px; align-items: center; margin-top: 38px; color: #a5a196; }
.stamp span { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 18px var(--acid); }

main > section { padding: 94px 0; border-bottom: 1px solid var(--rule); }
.section-no { color: var(--blue); margin-bottom: 20px; }
h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.5vw, 4rem); font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
.principle { display: grid; grid-template-columns: 1.2fr .8fr; gap: 9vw; align-items: end; }
.principle p:last-child { font-size: 1.12rem; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 42px; }
.card { min-height: 360px; padding: 28px; border: 1px solid var(--rule); background: var(--panel); display: flex; flex-direction: column; }
.card::before { content: ""; display: block; width: 42px; height: 5px; margin-bottom: 48px; background: var(--blue); }
.card.deepseek::before { background: var(--rust); }
.card.openai::before { background: var(--acid); }
.maker { color: var(--muted); }
.card h3 { margin: 4px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: 2.2rem; font-weight: 400; }
.role { color: var(--muted); }
dl { margin: auto 0 0; }
dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--rule); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }

.heading-row { display: flex; justify-content: space-between; gap: 20px; align-items: flex-end; }
.heading-row p { color: var(--muted); white-space: nowrap; }
.table-shell { margin-top: 34px; overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; min-width: 840px; border-collapse: collapse; }
th, td { padding: 18px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
thead th { padding-top: 14px; color: var(--muted); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
tbody th { width: 25%; font-weight: 650; }
td strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; line-height: 1; }
td small { display: block; margin-top: 7px; color: var(--muted); }
.na { color: #99958b; }
.caveat { max-width: 860px; margin: 24px 0 0; color: var(--muted); font-size: .9rem; }

.metrics { display: grid; grid-template-columns: 1.15fr .8fr 1fr; gap: 14px; margin-top: 40px; }
.metrics article { padding: 28px; background: var(--ink); color: #f4f1e7; min-height: 390px; }
.metrics article > p:first-child { color: var(--acid); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.metric-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 24px; }
.metric-row strong { font-family: Georgia, serif; font-size: 2.2rem; font-weight: 400; }
.bar { height: 5px; margin-top: 6px; background: #353535; }
.bar i { display: block; height: 100%; background: var(--acid); }
.big-number { margin-top: 28px; font-family: Georgia, serif; font-size: 4rem; line-height: .95; }
.big-number span { font: 400 1rem/1 sans-serif; color: #aaa69c; }
.big-number.compact { margin-top: 18px; font-size: 2.4rem; }
.quiet { color: #aaa69c; font-size: .82rem; }
.price-row { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #404040; }
.price-row strong { white-space: nowrap; }

.verdict { background: var(--acid); margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(20px, calc((100vw - 1180px)/2)); padding-right: max(20px, calc((100vw - 1180px)/2)); border-bottom: 0; }
.verdict .section-no { color: var(--ink); }
.verdict h2 { max-width: 900px; }
.takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.takeaways p { border-top: 1px solid rgba(0,0,0,.35); padding-top: 16px; }
.sources ol { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 40px; padding-left: 20px; }
.sources li { padding: 7px 0; }
.updated { color: var(--muted); margin-top: 42px; }

footer { padding: 28px 0; color: #aba79c; background: var(--ink); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }

@media (max-width: 820px) {
  .masthead { min-height: 70vh; }
  .principle, .cards, .metrics, .takeaways { grid-template-columns: 1fr; }
  .principle { gap: 20px; }
  .card { min-height: 310px; }
  .metrics article { min-height: auto; }
  .sources ol { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 24px, 1180px); }
  .masthead { padding-bottom: 42px; }
  main > section { padding: 64px 0; }
  h1 { font-size: 3.7rem; }
  .heading-row, footer .wrap { display: block; }
  footer span { display: block; margin: 6px 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
