/* Josh Popkin — Insights (light editorial: white paper, black ink) */
:root {
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --stone: #6f6f6f;
  --paper: #ffffff;
  --line: rgba(0, 0, 0, 0.12);
  --font-display: "Times New Roman", Times, serif;
  --font-body: "Times New Roman", Times, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --container: 1400px;
  --gutter: clamp(24px, 5vw, 72px);
  --section-pad: clamp(72px, 10vw, 160px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--paper); }

html, body { background: var(--paper); color: var(--ink); overflow-x: hidden; }
body { font-family: var(--font-body); font-weight: 400; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin-bottom: 18px;
  display: block;
}

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--container); margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.wordmark { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); letter-spacing: 0.02em; }
.site-nav { display: flex; align-items: center; gap: 40px; }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; color: var(--ink); position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.35s var(--ease-out);
}
.site-nav a:hover::after { width: 100%; }

/* Hero — small portrait above the title, on white */
.hero--compact {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 170px) var(--gutter) clamp(8px, 2vh, 20px);
  background: var(--paper);
}
.hero__media {
  position: static;
  width: clamp(88px, 11vw, 124px);
  height: clamp(88px, 11vw, 124px);
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid var(--line);
}
.hero__img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  transform: none;
  filter: none;
}
.hero__scrim { display: none; }
.hero__content { position: static; color: var(--ink); max-width: none; padding: 0; }
.hero__eyebrow { color: var(--stone); }
.hero__headline { font-size: clamp(1.7rem, 4.4vw, 3.4rem); color: var(--ink); max-width: 26ch; }
.hero__sub { margin-top: clamp(10px, 2vh, 20px); font-size: 1.12rem; max-width: 46ch; color: var(--ink-soft); }

/* Insights grid */
.insights { padding: clamp(48px, 7vw, 90px) var(--gutter) var(--section-pad); max-width: var(--container); margin: 0 auto; }
.insights__head { max-width: 62ch; margin-bottom: 56px; }
.insights__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.insight-card { display: flex; flex-direction: column; color: inherit; }
.insight-card__media { aspect-ratio: 4/3; overflow: hidden; border-radius: 2px; margin-bottom: 22px; background: #f4f4f2; border: 1px solid var(--line); }
.insight-card__media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: none;
  transition: transform 1.2s var(--ease-out);
}
.insight-card:hover .insight-card__media img { transform: scale(1.05); }
.insight-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); font-weight: 600; margin-bottom: 10px;
}
.insight-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.insight-card p { color: var(--ink-soft); font-size: 0.98rem; max-width: 42ch; }
.insight-card__link {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: border-color 0.35s var(--ease-out);
}
.insight-card:hover .insight-card__link { border-color: var(--ink); }

/* Article */
.article-meta {
  max-width: 900px; margin: 0 auto;
  padding: 18px var(--gutter) 0;
  color: var(--stone); font-size: 0.9rem;
}
.article-body { max-width: 820px; margin: 0 auto; padding: 24px var(--gutter) var(--section-pad); }
.article-body p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 24px; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 52px 0 20px; }
.article-body ul { margin: 0 0 24px 22px; }
.article-body li { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 8px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem; font-style: italic; line-height: 1.5;
  border-left: 2px solid var(--ink);
  padding-left: 24px; margin: 32px 0;
  color: var(--ink);
}
.article-body strong { color: var(--ink); }

/* Article lead image — keep it modest */
.article-body figure img, .article-body > img { max-width: 420px; }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink); padding: 56px var(--gutter); border-top: 1px solid var(--line); }
.site-footer__inner {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer .wordmark { font-size: 1.15rem; }
.site-footer p { font-size: 0.8rem; color: var(--stone); }

/* Mobile */
@media (max-width: 1024px) { .insights__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) {
  .insights__grid { grid-template-columns: 1fr; }
  .site-nav { gap: 24px; }
  .article-body figure img, .article-body > img { max-width: 100%; }
}
