/* The Future of Generated Strategy — site styles.
   Modern editorial design: warm cream backgrounds, copper accents,
   serif display + mono eyebrows. */

:root {
  --bg: #faf6f0;
  --bg-alt: #f3ece1;
  --surface: #ffffff;
  --ink: #1a1613;
  --ink-soft: #4a423b;
  --muted: #8a7f73;
  --accent: #ca5c1d;
  --accent-light: #ee8244;
  --accent-dark: #8f3602;
  --line: #e4dccc;
  --dark: #1f1a16;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

/* --- Header --- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1;
}
.brand-mark .gen { font-style: italic; color: var(--accent); }
.brand-abbr {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--accent); }
.nav-divider { width: 1px; height: 20px; background: var(--line); }
.btn-donate {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.btn-donate:hover { background: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* --- Hero --- */
.hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--line);
}
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
}
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  font-weight: 300;
  max-width: 38ch;
}
.hero-rule { width: 64px; height: 4px; background: var(--accent); margin: 34px 0 0; }

/* --- Intro band --- */
.intro {
  padding: 64px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.intro p {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.intro p:last-child { margin-bottom: 0; }

/* --- Section scaffolding --- */
.section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.015em;
  margin: 12px 0 0;
}
.essays-banner h2 { font-size: clamp(34px, 5vw, 56px); }

/* --- Essay cards --- */
.essay-group { margin-bottom: 56px; }
.essay-group:last-child { margin-bottom: 0; }
.group-label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 32px;
}
.essay-card { display: flex; flex-direction: column; cursor: pointer; }
.essay-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
  margin-bottom: 16px;
}
.essay-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.essay-card:hover .thumb img { transform: scale(1.04); }
.essay-card .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 9px;
}
.essay-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.essay-card:hover h3 { color: var(--accent-dark); }
.essay-card .dek {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.essay-card .by {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}
.essay-card .by span { color: var(--ink); }

/* lead card spans two columns */
.essay-card.lead { grid-column: span 2; flex-direction: row; gap: 28px; }
.essay-card.lead .thumb { flex: 0 0 54%; aspect-ratio: 4 / 3; margin: 0; }
.essay-card.lead .lead-body { display: flex; flex-direction: column; padding: 4px 0; }
.essay-card.lead h3 { font-size: 32px; }
.essay-card.lead .dek { font-size: 16px; }

.placeholder-card {
  border: 1px dashed var(--line);
  padding: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  align-items: center;
  min-height: 160px;
}

/* --- Experts --- */
.experts { background: var(--bg-alt); }

/* Headshot sits above the initials fallback; onerror hides it to reveal initials. */
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px 24px;
}
.expert {
  text-align: left;
}
.expert .avatar {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 2px;
  overflow: hidden;
  background: var(--accent);
  margin-bottom: 14px;
  position: relative;
}
.expert .avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert .avatar .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 30px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent-light), var(--accent-dark));
}
.expert .name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}
.expert .role {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* --- Footer --- */
.site-footer {
  background: #14110e;
  color: #b3a895;
  padding: 60px 0 30px;
}
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand .brand-mark { color: #fff; font-size: 22px; }
.footer-brand p { max-width: 32ch; font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6f655a;
  margin: 0 0 14px;
}
.footer-cols li { margin-bottom: 9px; }
.footer-cols a { font-size: 14px; color: #cbbfae; }
.footer-cols a:hover { color: var(--accent-light); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid #2c2620;
  font-family: var(--mono);
  font-size: 11px;
  color: #6f655a;
  line-height: 1.7;
}

/* --- Loading / status --- */
.status {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--muted);
  padding: 40px 0;
}

/* --- Article page --- */
.article-wrap { background: var(--surface); }
.article-head { padding: 60px 0 0; }
.article-head .kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.article-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.article-dek {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0 0 30px;
}
.byline-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.byline-row .avatar {
  width: 54px; height: 72px;
  border-radius: 2px;
  overflow: hidden;
  flex: 0 0 54px;
  position: relative;
}
.byline-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.byline-row .avatar .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 19px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent-light), var(--accent-dark));
}
.byline-row .who .nm { font-weight: 700; font-size: 15px; }
.byline-row .who .meta { font-size: 13px; color: var(--muted); }
.article-banner { margin: 36px 0 8px; }
.article-banner img { width: 100%; }
.article-banner .cap {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.article-body {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.66;
  color: var(--ink);
  padding-top: 14px;
}
.article-body p { margin: 0 0 24px; }
.article-body p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 86px;
  line-height: 0.74;
  padding: 8px 12px 0 0;
  color: var(--accent-dark);
}
.pull-quote {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: 28px;
  line-height: 1.34;
  color: var(--accent-dark);
  margin: 38px 0;
  padding-left: 26px;
  border-left: 4px solid var(--accent);
}
.scholar-bio {
  margin: 44px 0;
  padding: 28px 0 0;
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 20px;
}
.scholar-bio .avatar {
  width: 84px; height: 112px;
  border-radius: 2px;
  overflow: hidden;
  flex: 0 0 84px;
  position: relative;
}
.scholar-bio .avatar img { width: 100%; height: 100%; object-fit: cover; }
.scholar-bio .avatar .initials {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 26px;
  color: #fff;
  background: linear-gradient(150deg, var(--accent-light), var(--accent-dark));
}
.scholar-bio .nm {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.scholar-bio .desc { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.article-foot { padding: 30px 0 70px; }
.back-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-dark);
}
.back-link:hover { color: var(--accent); }
.more-cta {
  margin-top: 30px;
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  font-family: var(--sans);
}
.more-cta:hover { background: var(--accent-dark); }

/* --- Responsive --- */
@media (max-width: 1000px) {
  .expert-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .essay-card.lead { grid-column: span 2; flex-direction: column; }
  .essay-card.lead .thumb { flex: none; aspect-ratio: 16/10; margin-bottom: 16px; }
}
@media (max-width: 720px) {
  .wrap, .narrow { padding: 0 20px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 24px;
  }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .essay-card.lead { grid-column: span 1; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 56px 0 44px; }
  .section { padding: 48px 0; }
  .footer-top { flex-direction: column; }
}
