:root {
  --ink: #171714;
  --muted: #6f6c63;
  --paper: #f7f5ef;
  --surface: #fffefa;
  --line: #dcd8ce;
  --purple: #7158d9;
  --purple-soft: #e4ddff;
  --green: #1f7a5c;
  --green-soft: #cdebdc;
  --yellow: #f0c945;
  --coral: #d96d51;
  --max: 1180px;
  --reading: 700px;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.reading-progress { position: fixed; z-index: 20; top: 0; left: 0; width: 100%; height: 3px; background: var(--purple); transform-origin: left; transform: scaleX(0); }
@keyframes reading { to { transform: scaleX(1); } }
@supports (animation-timeline: scroll()) {
  .reading-progress { animation-name: reading; animation-duration: auto; animation-timing-function: linear; animation-timeline: scroll(root); }
}

.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 84%, transparent); background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(16px); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 21px; font-weight: 780; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 29px; height: 29px; fill: var(--ink); }
.brand-mark .brand-cut { fill: var(--paper); }
.primary-nav { display: flex; align-items: center; gap: 30px; margin-left: 30px; }
.primary-nav a, .site-footer nav a { color: #4f4d47; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .site-footer nav a:hover { color: var(--purple); }
.header-cta { margin-left: auto; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 750; text-decoration: none; transition: .2s ease; }
.header-cta:hover { color: white; background: var(--ink); }

.breadcrumbs { display: flex; gap: 10px; align-items: center; padding-top: 30px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.article-hero { max-width: 960px; padding-top: 68px; padding-bottom: 50px; text-align: center; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 5px var(--purple-soft); }
h1 { max-width: 900px; margin: 18px auto 22px; font-family: var(--display); font-size: clamp(44px, 6.5vw, 78px); font-weight: 500; letter-spacing: -.045em; line-height: .99; }
.dek { max-width: 750px; margin: 0 auto; color: #58564f; font-family: var(--display); font-size: clamp(19px, 2.5vw, 24px); line-height: 1.45; }
.article-meta { max-width: 650px; margin: 32px auto 0; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; text-align: left; }
.author-avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--ink); font-family: var(--display); font-size: 19px; font-style: italic; }
.article-meta > div:nth-child(2) { display: grid; margin-left: 12px; }
.article-meta strong { font-size: 13px; }
.article-meta span { color: var(--muted); font-size: 12px; }
.meta-actions { margin-left: auto; display: flex; gap: 8px; }
.meta-actions a { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none; }
.meta-actions a:hover { border-color: var(--ink); }

.hero-visual { position: relative; min-height: 390px; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; padding: 55px clamp(34px, 7vw, 90px); border-radius: 8px; background: #19191a; color: white; }
.visual-copy { position: relative; z-index: 2; align-self: end; padding-bottom: 15px; }
.visual-copy span { display: block; margin-bottom: 10px; color: #b9b5ac; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.visual-copy strong { font-family: var(--display); font-size: clamp(30px, 4.2vw, 52px); font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
.model-stack { position: relative; z-index: 2; height: 260px; }
.model-chip { position: absolute; width: 220px; height: 82px; display: flex; justify-content: space-between; align-items: flex-end; padding: 17px 19px; border-radius: 5px; color: #111; font-size: 24px; font-weight: 820; letter-spacing: -.04em; box-shadow: 0 18px 44px rgba(0,0,0,.26); transform: rotate(-4deg); }
.model-chip small { font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.chip-gpt { top: 4px; left: 6%; background: var(--purple-soft); }
.chip-claude { top: 65px; left: 32%; background: #f1aa8f; transform: rotate(4deg); }
.chip-gemini { top: 134px; left: 2%; background: var(--green-soft); transform: rotate(2deg); }
.chip-grok { top: 180px; left: 39%; background: #f4d76d; transform: rotate(-3deg); }
.hero-orbit { position: absolute; inset: auto -30px -20px auto; width: 66%; fill: var(--yellow); stroke: #4e4c4e; stroke-width: 1.2; }

.article-layout { display: grid; grid-template-columns: 190px minmax(0, var(--reading)) 1fr; column-gap: 62px; padding-top: 82px; padding-bottom: 110px; }
.toc { position: sticky; top: 105px; align-self: start; padding-top: 8px; color: var(--muted); font-size: 12px; }
.toc > p { margin: 0 0 14px; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 16px; text-decoration: none; }
.toc a:hover { color: var(--purple); border-left: 2px solid var(--purple); margin-left: -1px; }
.toc-note { display: grid; gap: 3px; margin-top: 24px; padding: 14px; border-radius: 4px; background: #eeece5; }
.toc-note span { color: var(--ink); font-weight: 750; }
.toc-note a { padding: 0; color: var(--purple); font-weight: 700; }
.toc-note a:hover { margin-left: 0; border: 0; }

.article-body { grid-column: 2; min-width: 0; }
.article-body > p, .article-body section > p { margin: 0 0 24px; color: #3f3e39; font-family: var(--display); font-size: 19px; line-height: 1.74; }
.article-body .lead { margin-bottom: 27px; color: var(--ink); font-size: 23px; line-height: 1.63; }
.article-body .lead::first-letter { float: left; margin: 10px 9px 0 0; color: var(--purple); font-size: 78px; font-weight: 600; line-height: .65; }
.article-body section { margin-top: 76px; }
.article-body h2 { margin: 7px 0 22px; font-family: var(--display); font-size: clamp(31px, 4vw, 43px); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.section-number { display: inline-block; min-width: 32px; padding-bottom: 4px; border-bottom: 2px solid var(--purple); color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.text-link { color: var(--purple); text-decoration-color: #b5a8ec; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.text-link:hover { color: #4e35b5; }
.quick-take { display: grid; grid-template-columns: 1fr 1.1fr; gap: 35px; align-items: start; margin-top: 60px !important; padding: 30px; border: 1px solid #c8bee9; border-radius: 6px; background: #f0ecff; }
.quick-take h2 { margin-bottom: 0; font-size: 30px; }
.quick-take p { margin: 0 !important; padding-left: 26px; border-left: 1px solid #c8bee9; font-size: 16px !important; line-height: 1.65 !important; }
.table-wrap { overflow-x: auto; margin: 44px 0 10px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; color: #3f3e39; font-size: 13px; line-height: 1.45; }
caption { padding: 13px 0 10px; text-align: left; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
th, td { padding: 14px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
tbody th { min-width: 104px; color: var(--ink); }
.table-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; }
.dot-claude { background: var(--coral); }.dot-gpt { background: var(--purple); }.dot-gemini { background: var(--green); }.dot-grok { background: #c39500; }
blockquote { position: relative; margin: 42px 0; padding: 3px 0 3px 29px; border-left: 3px solid var(--purple); }
blockquote p { margin: 0; font-family: var(--display); font-size: 27px; font-style: italic; line-height: 1.42; }
.continue-card { margin: 68px 0 4px; padding: 27px 30px; border-radius: 6px; display: flex; align-items: center; gap: 32px; color: #f9f7ef; background: var(--ink); }
.continue-card span { color: #b9b5ac; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.continue-card h3 { margin: 5px 0 3px; font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.15; }
.continue-card p { margin: 0; color: #b9b5ac; font-size: 12px; }
.continue-card > a { flex: 0 0 auto; padding: 9px 13px; border: 1px solid #5b5954; border-radius: 999px; color: white; font-size: 11px; font-weight: 750; text-decoration: none; }
.continue-card > a:hover { color: var(--ink); background: white; }
.continue-card > a span { color: inherit; font-size: inherit; }
.verdict { padding: 36px; border-radius: 7px; background: #ebe7db; }
.choice-list { display: grid; gap: 0; margin: 28px 0 30px; padding: 0; list-style: none; }
.choice-list li { display: flex; gap: 15px; padding: 17px 0; border-top: 1px solid #d1ccbd; }
.choice-list li:last-child { border-bottom: 1px solid #d1ccbd; }
.choice-icon { width: 37px; height: 37px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 850; }
.claude-icon { background: #efad94; }.gpt-icon { background: #d7ccff; }.gemini-icon { background: #b8dfcb; }.grok-icon { background: #efd15f; }
.choice-list strong { display: block; font-size: 14px; }
.choice-list p { margin: 2px 0 0; color: #555249; font-size: 13px; }
.verdict > p { font-size: 17px !important; }
.article-end { display: flex; gap: 15px; align-items: center; margin-top: 80px; padding-top: 28px; border-top: 1px solid var(--line); }
.author-avatar.large { width: 56px; height: 56px; }
.article-end div:last-child { display: grid; }
.article-end span { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.article-end strong { font-family: var(--display); font-size: 18px; }
.article-end p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }

.related-section { padding: 90px 0 105px; background: #e9e5dc; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }
.section-heading h2 { margin: 4px 0 0; font-family: var(--display); font-size: clamp(34px, 5vw, 50px); font-weight: 500; letter-spacing: -.04em; }
.section-heading > a { margin-bottom: 9px; color: var(--purple); font-size: 13px; font-weight: 750; text-decoration: none; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-card { overflow: hidden; border-radius: 6px; background: var(--surface); }
.card-visual { position: relative; min-height: 220px; display: flex; align-items: flex-end; padding: 25px; color: var(--ink); text-decoration: none; }
.card-lilac .card-visual { background: #d9ceff; }.card-mint .card-visual { background: #bfe0cf; }.card-yellow .card-visual { background: #f0d363; }
.card-visual::after { content: ""; position: absolute; width: 130px; height: 130px; top: 20px; right: -35px; border: 1px solid currentColor; border-radius: 50%; opacity: .35; }
.card-visual span { position: absolute; top: 20px; left: 22px; font-size: 11px; font-weight: 800; }
.card-visual b { position: relative; z-index: 1; font-size: 36px; letter-spacing: -.065em; line-height: .78; }
.card-content { padding: 23px 24px 27px; }
.card-content > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-content h3 { margin: 8px 0 9px; font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.18; }
.card-content h3 a { text-decoration: none; }
.card-content h3 a:hover { color: var(--purple); }
.card-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.site-footer { padding: 38px 0; color: #d7d3c8; background: var(--ink); }
.footer-inner { display: flex; align-items: center; gap: 32px; }
.brand-footer { color: white; }
.footer-inner p { margin: 0; color: #87847b; font-family: var(--display); font-size: 14px; font-style: italic; }
.site-footer nav { display: flex; gap: 25px; margin-left: auto; }
.site-footer nav a { color: #bcb8ae; }

/* Companion articles */
.compact-hero { max-width: 820px; padding-top: 75px; padding-bottom: 50px; text-align: center; }
.compact-hero h1 { font-size: clamp(42px, 6vw, 68px); }
.guide-layout { max-width: 760px; padding-top: 55px; padding-bottom: 100px; }
.guide-body { font-family: var(--display); }
.guide-body > p { color: #3f3e39; font-size: 20px; line-height: 1.72; }
.guide-body > p:first-child { color: var(--ink); font-size: 24px; }
.guide-body h2 { margin: 58px 0 16px; font-size: 35px; font-weight: 500; letter-spacing: -.03em; line-height: 1.12; }
.guide-checklist { margin: 32px 0; padding: 6px 30px 26px; border-radius: 6px; background: #ebe7db; }
.guide-checklist li { padding: 18px 0; border-bottom: 1px solid #d0cabb; font-family: var(--sans); font-size: 14px; }
.guide-checklist li::marker { color: var(--purple); font-weight: 800; }
.back-link { display: inline-flex; margin-top: 45px; color: var(--purple); font-family: var(--sans); font-size: 13px; font-weight: 750; text-decoration: none; }
.mini-related { margin-top: 70px; padding-top: 30px; border-top: 1px solid var(--line); font-family: var(--sans); }
.mini-related span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.mini-related a { display: block; margin-top: 7px; font-family: var(--display); font-size: 23px; text-decoration: none; }
.mini-related a:hover { color: var(--purple); }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 150px minmax(0, 1fr); column-gap: 38px; }
  .article-body { grid-column: 2; }
  .model-chip { width: 190px; }
  .related-grid { gap: 14px; }
}

@media (max-width: 740px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 62px; }
  .primary-nav { display: none; }
  .header-cta { padding: 7px 11px; font-size: 11px; }
  .breadcrumbs { padding-top: 20px; white-space: nowrap; overflow: hidden; }
  .article-hero { padding-top: 48px; padding-bottom: 34px; }
  h1 { font-size: clamp(41px, 12vw, 62px); }
  .dek { font-size: 19px; }
  .article-meta { align-items: flex-start; }
  .meta-actions { display: none; }
  .hero-visual { min-height: 460px; grid-template-columns: 1fr; align-items: start; padding: 35px 27px; }
  .visual-copy { align-self: auto; }
  .model-stack { margin-top: 20px; }
  .model-chip { width: 185px; height: 68px; font-size: 20px; }
  .chip-gpt { left: 0; }.chip-claude { left: 30%; }.chip-gemini { left: 2%; }.chip-grok { left: 34%; }
  .hero-orbit { width: 120%; }
  .article-layout { display: block; padding-top: 50px; padding-bottom: 75px; }
  .toc { position: static; margin-bottom: 48px; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; }
  .toc-note { display: none; }
  .article-body > p, .article-body section > p { font-size: 18px; }
  .article-body .lead { font-size: 21px; }
  .quick-take { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .quick-take p { padding: 18px 0 0; border-top: 1px solid #c8bee9; border-left: 0; }
  .continue-card { align-items: flex-start; flex-direction: column; }
  .verdict { padding: 26px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .related-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-visual { min-height: 190px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .site-footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reading-progress { display: none; }
}
