/* ============================================================
   Stories Over 40 — global stylesheet
   Brand: deep navy + warm cream
   ============================================================ */

:root {
  --navy: #1f1b6b;
  --navy-dark: #15124a;
  --navy-soft: #3b3795;
  --cream: #f6f1e3;
  --cream-soft: #fbf7ea;
  --ink: #1a1a2e;
  --muted: #5a5a72;
  --accent: #ffd166;
  --line: rgba(31, 27, 107, 0.12);
  --shadow-sm: 0 4px 14px rgba(31, 27, 107, 0.08);
  --shadow-md: 0 14px 40px rgba(31, 27, 107, 0.14);
  --radius: 14px;
  --max: 1180px;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy-soft); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 227, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 90px; width: auto; }
.brand-text {
  font-family: var(--serif);
  font-weight: 800;
  color: var(--navy);
  font-size: 1.25rem;
  letter-spacing: .3px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-dark);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--navy);
}

/* ---------- Hero (home) ---------- */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  width: 700px; height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(31,27,107,0.08) 0%, rgba(31,27,107,0) 70%);
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  line-height: 1.08;
  font-weight: 600;
  color: var(--navy);
  margin: 0 auto 24px;
  max-width: 900px;
  letter-spacing: -0.5px;
}
.hero h1 em {
  font-style: italic;
  color: var(--navy-soft);
}
.hero p.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-cta:hover {
  background: var(--navy-dark);
  color: var(--cream);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---------- Section labels ---------- */
.section { padding: 70px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  letter-spacing: -0.3px;
}
.section-head p {
  color: var(--muted);
  margin: 0;
  max-width: 460px;
}

/* ---------- Story cards (homepage grid) ---------- */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
}
.story-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}
.story-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.story-card .cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ddd;
}
.story-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.story-card:hover .cover img { transform: scale(1.05); }
.story-card .body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.story-card .tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--navy-soft);
  margin-bottom: 10px;
}
.story-card h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.2;
}
.story-card .role {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 14px;
  font-style: italic;
}
.story-card .excerpt {
  color: #333;
  font-size: .98rem;
  margin: 0 0 22px;
  flex-grow: 1;
}
.story-card .read-more {
  align-self: flex-start;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.story-card .read-more::after {
  content: "→";
  transition: transform .2s ease;
}
.story-card:hover .read-more::after { transform: translateX(4px); }

/* ---------- Mission / About strip ---------- */
.mission {
  background: var(--navy);
  color: var(--cream);
  padding: 80px 0;
}
.mission .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.mission h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--cream);
  line-height: 1.15;
}
.mission p {
  color: rgba(246, 241, 227, 0.85);
  font-size: 1.05rem;
}
.mission .pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.pillar {
  background: rgba(255,255,255,0.06);
  padding: 22px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.pillar strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--accent);
}
.pillar span {
  font-size: .92rem;
  color: rgba(246, 241, 227, 0.78);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(246, 241, 227, 0.85);
  padding: 50px 0 30px;
  margin-top: 60px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img { height: 80px; filter: brightness(0) invert(1) opacity(.9); }
.footer-brand span {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--cream);
}
.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links a {
  color: rgba(246, 241, 227, 0.75);
  font-size: .95rem;
}
.footer-links a:hover { color: var(--cream); }
.copyright {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: .85rem;
  color: rgba(246, 241, 227, 0.55);
  text-align: center;
}

/* ============================================================
   Story page styles
   ============================================================ */
.story-hero {
  padding: 70px 0 30px;
  text-align: center;
}
.story-hero .eyebrow {
  color: var(--navy-soft);
}
.story-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0 auto 16px;
  max-width: 880px;
  line-height: 1.15;
  letter-spacing: -0.3px;
}
.story-hero .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
}

.hero-image {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.hero-image.portrait img {
  aspect-ratio: 4 / 5;
  max-height: 720px;
  width: auto;
  margin: 0 auto;
}

.article {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #2a2a3a;
}
.article p {
  margin: 0 0 1.5em;
  font-family: var(--serif);
}
.article h2 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.4em 0 0.6em;
  letter-spacing: -0.2px;
}
.article h3 {
  font-family: var(--sans);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy-soft);
  font-weight: 700;
  margin: 2.2em 0 .8em;
}
.article .question {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 2em 0 .6em;
  padding-left: 18px;
  border-left: 3px solid var(--navy);
}
.article blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--navy);
  border-left: 4px solid var(--accent);
  margin: 2.4em -20px;
  padding: 10px 30px;
  line-height: 1.45;
}

/* Inline figure inside article */
.article figure {
  margin: 2.4em 0;
}
.article figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.article figcaption {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

/* Breakout wider figures */
.article .breakout {
  margin-left: -80px;
  margin-right: -80px;
}

/* Side-by-side photos */
.photo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 2.4em -40px;
}
.photo-duo img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

/* Story footer / next story */
.story-end {
  background: var(--navy);
  color: var(--cream);
  padding: 60px 0;
  text-align: center;
  margin-top: 60px;
}
.story-end h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 22px;
  color: var(--cream);
}
.story-end .next-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.next-card {
  background: rgba(255,255,255,0.07);
  padding: 22px;
  border-radius: 12px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background .25s;
}
.next-card:hover { background: rgba(255,255,255,0.13); }
.next-card .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 6px;
}
.next-card .name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--cream);
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .mission .container { grid-template-columns: 1fr; gap: 40px; }
  .article { font-size: 1.05rem; }
  .article .breakout { margin-left: 0; margin-right: 0; }
  .photo-duo { margin: 2em 0; grid-template-columns: 1fr; }
  .article blockquote { font-size: 1.2rem; margin: 2em 0; padding: 8px 18px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 60px 0 50px; }
  .section { padding: 50px 0; }
  .mission { padding: 60px 0; }
  .mission .pillars { grid-template-columns: 1fr; }
  .story-hero { padding: 40px 0 20px; }
  .hero-image { margin-top: 24px; }
}
