/* ============================================================
   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: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-nav.scrolled {
  background: rgba(246, 241, 227, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(31, 27, 107, 0.06);
}
.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); }

/* Contact button (CTA) in the nav */
.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.nav-links a.nav-cta:hover {
  background: var(--navy-dark);
  color: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-links a.nav-cta::after { content: none; }

.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-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) {
  .brand img { height: 56px; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 16px 24px 20px;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    /* Hidden state — visibility+opacity hides fully regardless of menu height */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a.nav-cta { text-align: center; }
  .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; }
}

/* ---------- Share bar ---------- */
.share-bar {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.share-bar__label {
  font-family: var(--sans);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--navy-soft);
  margin-right: 4px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .1s ease, box-shadow .2s ease;
}
.share-btn svg { display: block; }
.share-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.share-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.share-btn--facebook:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.share-btn--linkedin:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn--copy:hover { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.share-btn--copy.is-copied { background: var(--navy); color: var(--cream); border-color: var(--navy); }

@media (max-width: 640px) {
  .share-bar { gap: 10px; }
  .share-btn { padding: 8px 13px; font-size: .88rem; }
}

/* ---------- Follow / social invitation band ---------- */
.follow {
  background: var(--navy);
  color: var(--cream);
  padding: 72px 0;
  text-align: center;
}
.follow-eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.follow h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--cream);
  margin: 0 0 14px;
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.follow p {
  color: rgba(246, 241, 227, 0.82);
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 auto 30px;
  line-height: 1.6;
}
.social-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 11px 20px;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease, box-shadow .25s ease;
}
.social-pill svg { display: block; width: 20px; height: 20px; }
.social-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.social-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.social-pill--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent; color: #fff;
}
.social-pill--facebook:hover { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-pill--linkedin:hover { background: #0a66c2; border-color: #0a66c2; color: #fff; }

/* ---------- Footer social icons ---------- */
.footer-socials {
  display: flex;
  gap: 12px;
  align-items: center;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(246, 241, 227, 0.85);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .15s ease;
}
.footer-social svg { display: block; width: 18px; height: 18px; }
.footer-social:hover { transform: translateY(-2px); color: #fff; }
.footer-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.footer-social--instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  border-color: transparent;
}
.footer-social--facebook:hover { background: #1877f2; border-color: #1877f2; }
.footer-social--linkedin:hover { background: #0a66c2; border-color: #0a66c2; }

@media (max-width: 640px) {
  .follow { padding: 56px 0; }
}
