/* ===== SUBPAGE CSS (Research, About, etc.) ===== */
:root {
  --text: #161616;
  --text-light: #2a2a2a;
  --muted: #4b4b4b;
  --line: #e9e9e9;
  --brand: #0e8f88;
  --brand-ink: #0a6c66;
  --white: #fff;
  --black: #000;
  
  /* Consistent navigation spacing (matches home.css) */
  --nav-padding-y: 20px;
  --nav-padding-x: clamp(16px, 4vw, 40px);
  --content-padding: clamp(16px, 5vw, 40px);
  
  /* Typography scale */
  --font-brand: clamp(18px, 2.4vw, 24px);
  --font-hero: clamp(28px, 4.5vw, 56px);
  --font-body: 18px;
  --font-h2: 28px;
  --font-h3: 22px;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Libre Baskerville', serif;
  color: var(--text);
  background: var(--white);
}

/* ===== NAVIGATION ===== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.brand {
  letter-spacing: .06em;
  font-weight: 700;
  font-size: var(--font-brand);
}
.brand a {
  color: var(--white);
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.menu {
  display: flex;
  gap: clamp(16px, 2.5vw, 24px);
  flex-wrap: wrap;
}
.menu a {
  color: var(--white);
  text-decoration: none;
  opacity: .9;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: opacity .2s ease;
}
.menu a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu a[aria-current="page"] {
  font-weight: 700;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 50vh;
  color: var(--white);
  display: flex;
  flex-direction: column;
}
/* Hero background - this will be overridden in individual pages */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #2a2a2a center/cover no-repeat;
  filter: saturate(105%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6));
}

.hero-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: var(--nav-padding-y) var(--content-padding);
  margin-top: calc(var(--nav-padding-y) * 2 + var(--font-brand) * 1.2);
}
.hero h1 {
  margin: 0;
  font-weight: 700;
  font-size: var(--font-hero);
  color: var(--white);
  line-height: 1.1;
}
.hero p {
  margin: 1rem 0 0;
  max-width: 820px;
  opacity: .95;
  color: var(--white);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

/* ===== MAIN CONTENT ===== */
.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(18px, 6vw, 48px);
}
.prose {
  font-size: var(--font-body);
  line-height: 1.75;
}
.prose h2 {
  margin: 0 0 .8rem;
  font-size: var(--font-h2);
  color: var(--text);
}
.prose h3 {
  margin: 1.2rem 0 .4rem;
  font-size: var(--font-h3);
  color: var(--text);
}
.prose p {
  margin: .4rem 0;
  color: var(--text-light);
}
.prose ul {
  color: var(--text-light);
}
.prose ul li {
  margin: .2rem 0;
}
.prose a {
  color: var(--brand-ink);
  text-decoration: underline;
}
.prose a:hover {
  color: var(--brand);
}

/* ===== SECTIONS ===== */
.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.section:first-child {
  border-top: none;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 12px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  transition: box-shadow .2s ease;
}
.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.card .kicker {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.card h4 {
  margin: .35rem 0 .25rem;
  font-size: 18px;
  color: var(--text);
}
.card p {
  margin: 0;
  color: #444;
  font-size: 16px;
  line-height: 1.5;
}

/* ===== BUTTONS ===== */
a.btn {
  display: inline-block;
  margin-top: 10px;
  border: 1px solid var(--brand);
  color: var(--brand-ink);
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s ease;
}
a.btn:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .menu {
    gap: 12px;
  }
  .hero {
    min-height: 35vh;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .prose {
    font-size: 16px;
  }
}