/* ============================================================
   jessemeria.com — Founder Stories
   Editorial magazine design system (shared by all founder articles)
   Display: Bebas Neue (masthead consistency with the hub)
   Body: Source Serif 4 — long-form reading
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink:        #17150f;   /* near-black, warm */
  --paper:      #fcfbf8;   /* warm off-white */
  --muted:      #6f6a60;   /* captions, meta */
  --faint:      #9a948a;
  --rule:       #e7e2d8;
  --accent:     #b45309;   /* deep sienna/amber */
  --accent-ink: #8a3f06;
  --accent-soft:#fbf3e7;
}

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

body {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-optical-sizing: auto;
}

a { color: inherit; }

/* ---- TOP NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(252,251,248,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav a.home {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav .kicker {
  font-size: 0.625rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--faint);
}

/* ---- HERO / COVER ---- */
.cover {
  position: relative;
  min-height: 72vh;
  display: flex; align-items: flex-end;
  background: #14120d;
  overflow: hidden;
}
.cover img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.82;
}
.cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,9,6,0.10) 0%, rgba(10,9,6,0.05) 38%, rgba(10,9,6,0.72) 100%);
}
.cover-inner {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; width: 100%;
  padding: 0 28px 56px;
}
.cover-eyebrow {
  font-size: 0.6875rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin-bottom: 18px;
}
.cover h1 {
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  font-size: clamp(2.9rem, 8vw, 6.5rem);
  line-height: 0.92; letter-spacing: -0.01em;
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.35);
}
.cover .dek {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  line-height: 1.5; font-weight: 400; font-style: italic;
  max-width: 46ch; margin-top: 22px;
  text-shadow: 0 1px 20px rgba(0,0,0,0.4);
}

/* ---- BYLINE BAR ---- */
.byline {
  max-width: 1080px; margin: 0 auto; width: 100%;
  padding: 22px 28px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
}
.byline .who { display: flex; align-items: center; gap: 12px; }
.byline .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; letter-spacing: 0.04em;
}
.byline .name { font-weight: 600; font-size: 0.95rem; }
.byline .meta { color: var(--muted); font-size: 0.85rem; }
.byline .meta::before { content: '·'; margin: 0 9px; color: var(--faint); }

/* ---- ARTICLE BODY ---- */
.article {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 40px;
}
.article > p {
  font-size: 1.1875rem;
  line-height: 1.78;
  margin-bottom: 26px;
  color: #221f17;
}
.article > p:first-of-type::first-letter {
  font-family: 'Bebas Neue', sans-serif;
  float: left;
  font-size: 4.6rem;
  line-height: 0.78;
  padding: 6px 14px 0 0;
  color: var(--accent);
}
.article p strong { font-weight: 600; }
.article p em { font-style: italic; }
.article a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.article a:hover { color: var(--ink); }

.article h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: 0.03em; line-height: 1;
  margin: 64px 0 24px;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.article h3 {
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.01em;
  margin: 36px 0 10px;
}
.article ul, .article ol { margin: 0 0 26px 1.1em; }
.article li { font-size: 1.1875rem; line-height: 1.7; margin-bottom: 10px; }

/* ---- PULL QUOTE ---- */
.pull {
  font-family: 'Source Serif 4', serif;
  font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.28; color: var(--ink);
  margin: 48px 0; padding: 6px 0 6px 26px;
  border-left: 3px solid var(--accent);
}

/* ---- FIGURES (breakout wider than text column) ---- */
.figure {
  margin: 48px calc(50% - 50vw);
  width: 100vw; max-width: 1080px;
  margin-left: auto; margin-right: auto;
  padding: 0 24px;
}
.figure img {
  width: 100%; height: auto; display: block;
  border-radius: 4px;
}
.figure figcaption {
  font-size: 0.8125rem; color: var(--muted);
  margin-top: 12px; font-style: italic;
  text-align: center;
}

/* ---- CTA CARD ---- */
.cta {
  background: var(--accent-soft);
  border: 1px solid #f0e2cc;
  border-left: 4px solid var(--accent);
  padding: 32px 30px;
  margin: 52px 0;
  border-radius: 0 10px 10px 0;
}
.cta h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem; letter-spacing: 0.03em; margin-bottom: 10px;
}
.cta p { font-size: 0.98rem; line-height: 1.6; margin-bottom: 18px; color: #3a342a; }
.cta .btn {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: 14px 30px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem; letter-spacing: 0.08em;
  text-decoration: none; border-radius: 5px;
  transition: background 0.2s, transform 0.1s;
}
.cta .btn:hover { background: var(--accent); transform: translateY(-1px); }
.cta .fine { font-size: 0.75rem; color: var(--muted); margin: 14px 0 0; }
.cta .fine a { color: var(--accent-ink); text-decoration: none; }

/* ---- RELATED ---- */
.related {
  max-width: 1080px; margin: 0 auto;
  padding: 56px 28px 24px;
  border-top: 1px solid var(--rule);
}
.related .label {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 26px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
}
.related-card {
  background: var(--paper);
  padding: 24px 22px;
  text-decoration: none; display: block;
  transition: background 0.18s;
}
.related-card:hover { background: #fff; }
.related-card .rc-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem; letter-spacing: 0.02em; margin-bottom: 6px;
}
.related-card .rc-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

/* ---- FOOTER ---- */
.footer {
  padding: 44px 28px; text-align: center;
  border-top: 1px solid var(--rule);
}
.footer .f-links { margin-bottom: 16px; }
.footer .f-links a {
  font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted);
  text-decoration: none; margin: 0 12px;
}
.footer .f-links a:hover { color: var(--ink); }
.footer .f-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem; letter-spacing: 0.2em; color: var(--faint);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 760px) {
  .cover { min-height: 64vh; }
  .related-grid { grid-template-columns: 1fr; }
  .article > p:first-of-type::first-letter { font-size: 3.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta .btn:hover { transform: none; }
}
