/* Amish Patel — brand tokens (from the Amish Patel Design System) */
:root {
  --navy: #131e2e;
  --navy-raised: #1b2940;
  --ink: #faf7f5;
  --ink-muted: rgba(250, 247, 245, 0.75);
  --ink-subtle: rgba(250, 247, 245, 0.5);
  --coral: #d45649; /* large type only (4.2:1 on navy) */
  --gold: #a68544;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(24px, 7.2vw, 104px);
  --max: 1232px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 6px; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
p, h1, h2, h3 { margin: 0; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--navy); padding: 12px 20px; z-index: 10; }
.skip-link:focus { left: 16px; top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8vw, 128px); }
.section--roomy { padding-block: clamp(96px, 12vw, 200px); }

/* Type */
.eyebrow { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-subtle); font-weight: 400; margin-bottom: 24px; }
.eyebrow--lg { margin-bottom: 40px; }
.coral { color: var(--coral); }
.display { font-size: clamp(48px, 7.4vw, 108px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; max-width: 1040px; }
.display span, .headline-xl span, .statement span { display: block; }
.headline-xl { font-size: clamp(44px, 6.4vw, 96px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; max-width: 1040px; }
.headline { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; max-width: 860px; }
.statement { font-size: clamp(40px, 6vw, 88px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; max-width: 1040px; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.55; color: var(--ink-muted); max-width: 680px; margin-top: 40px; }
.body { font-size: 18px; line-height: 1.6; color: var(--ink-muted); }
.small-caps { font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-subtle); }

/* Buttons and links */
.actions { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; margin-top: 48px; }
.btn { display: inline-block; background: var(--ink); color: var(--navy); text-decoration: none; font-weight: 700; font-size: 18px; padding: 18px 32px; }
.btn:hover { background: #fff; color: var(--navy); }
.btn--sm { font-size: 17px; padding: 13px 24px; }
.text-link { font-size: 18px; padding-block: 12px; display: inline-block; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 32px; }
.wordmark { color: var(--ink); text-decoration: none; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 17px; }
.nav a:not(.btn) { color: var(--ink-muted); text-decoration: none; padding-block: 12px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Grids */
.grid { display: grid; gap: 56px 64px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 56px 48px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 72px 96px; }

.label-gold { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 12px; white-space: pre; }
.quote { font-size: 24px; line-height: 1.4; font-weight: 700; }
.num { font-size: 56px; line-height: 1; font-weight: 700; color: var(--ink-subtle); margin-bottom: 20px; }
.card-title { font-size: 26px; line-height: 1.25; font-weight: 700; margin-bottom: 16px; }
.meta-gold { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.human-ai { margin-top: 20px; font-size: 16px; line-height: 1.55; color: var(--ink-subtle); }
.human-ai strong { display: block; font-weight: 400; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }

/* Post cards */
.post-card { display: block; text-decoration: none; color: var(--ink); }
.post-card .meta { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 16px; }
.post-card .title { font-size: 28px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; }
.post-card .read { font-size: 17px; color: var(--ink-muted); }
.post-card:hover .title { text-decoration: underline; text-underline-offset: 6px; }

.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 64px; }
.split > div { flex: 1 1 520px; min-width: 0; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 64px 96px; }
.about-main { flex: 999 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start; }
.about-main img { width: 280px; height: 280px; object-fit: cover; flex: none; }
.about-main > div { flex: 1 1 320px; min-width: 0; }
.about-main p.body { font-size: 20px; max-width: 640px; margin-bottom: 24px; }
.about-side { flex: 1 1 320px; min-width: 0; }

/* Footer */
.site-footer { padding-block: 64px 56px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px 64px; }
.footer-brand { display: flex; align-items: center; gap: 24px; flex: 1 1 420px; min-width: 0; }
.footer-brand img { width: 72px; height: 72px; flex: none; }
.footer-name { font-size: 18px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.footer-legal { font-size: 15px; line-height: 1.5; color: var(--ink-subtle); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.footer-nav a { color: var(--ink-muted); padding-block: 8px; }
.footer-copy { margin-top: 40px; font-size: 14px; color: var(--ink-subtle); }

/* Insights list */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 72px; }
.filters button { font: inherit; font-size: 16px; min-height: 44px; padding: 10px 20px; cursor: pointer; border: 1px solid rgba(250, 247, 245, 0.4); background: transparent; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--navy); font-weight: 700; }
.post-list { display: flex; flex-direction: column; gap: 72px; }
.post-row { display: flex; flex-wrap: wrap; gap: 16px 64px; text-decoration: none; color: var(--ink); }
.post-row .meta { flex: 0 0 220px; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); padding-top: 10px; }
.post-row > div { flex: 1 1 520px; min-width: 0; }
.post-row h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 16px; }
.post-row .body { max-width: 720px; margin-bottom: 16px; }
.post-row .read { font-size: 17px; text-decoration: underline; text-underline-offset: 6px; }
.post-row:hover h2 { text-decoration: underline; text-underline-offset: 6px; }
.empty { font-size: 20px; color: var(--ink-muted); }

/* Article */
.back { display: inline-block; margin-bottom: 48px; font-size: 16px; color: var(--ink-muted); padding-block: 12px; }
.standfirst { margin-top: 48px; max-width: 760px; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.5; color: var(--ink-muted); }
.prose { max-width: 760px; font-size: 19px; line-height: 1.7; color: var(--ink-muted); }
.article-body > * + * { margin-top: 24px; }
.article-body h2 { margin-top: clamp(64px, 8vw, 112px); margin-bottom: -4px; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--ink-subtle); }
.article-body p { max-width: 760px; font-size: 19px; line-height: 1.7; color: var(--ink-muted); }
.article-body .pull { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; font-weight: 700; color: var(--ink); }
.article-body .stat { margin-block: clamp(64px, 8vw, 112px); }
.article-body .stat-figure { font-size: clamp(120px, 18vw, 240px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: var(--coral); }
.article-body .stat-caption { margin-top: 16px; max-width: 720px; font-size: clamp(26px, 3vw, 40px); line-height: 1.2; font-weight: 700; color: var(--ink); }
.article-body .stat-source { margin-top: 20px; font-size: 15px; color: var(--ink-subtle); }
.article-body .big { margin-top: 0; font-size: clamp(40px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); max-width: 1040px; }
.article-body .statement { margin-top: 0; font-size: clamp(40px, 5.6vw, 80px); max-width: 1040px; color: var(--ink); }
.article-body .moves { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 64px; max-width: none; }
.moves h3 { font-size: 26px; line-height: 1.25; font-weight: 700; margin-bottom: 12px; color: var(--ink); }
.moves .n { font-size: 16px; font-weight: 700; color: var(--ink-subtle); margin-bottom: 12px; }
.article-body .moves p { font-size: 18px; line-height: 1.6; }
.closing { margin-top: clamp(80px, 10vw, 144px); max-width: 1040px; font-size: clamp(32px, 4vw, 56px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }

/* Carousel thumbnails */
.carousel { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px; }
.slide { flex: none; width: 216px; height: 270px; padding: 22px 21px; background: var(--navy-raised); display: flex; flex-direction: column; }
.slide .s-eyebrow { font-size: 7px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-subtle); }
.slide .s-text { margin-top: 30px; font-size: 19px; line-height: 1.1; font-weight: 700; }
.slide .s-text span { display: block; }
.slide .s-text span + span { margin-top: 8px; }
.slide .s-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: 7px; color: var(--gold); }

.notes { margin-top: clamp(64px, 8vw, 112px); max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.notes .eyebrow { margin-bottom: 12px; }
.notes p { font-size: 17px; line-height: 1.6; color: var(--ink-muted); }
.notes p + p { margin-top: 12px; }

/* Legal pages */
.legal { max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--ink-muted); }
.legal h1 { color: var(--ink); }
.legal h2 { margin: 48px 0 16px; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; color: var(--ink-subtle); }
.legal h3 { margin: 32px 0 12px; font-size: 19px; color: var(--ink); }
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal li { margin-bottom: 8px; }
