/* ================================================================
   The People Journal — "The Broadsheet" Design System
   ================================================================
   Concept: A digital broadsheet — bold editorial newspaper aesthetic
            meets modern web UX. Sharp geometry, strong typography,
            print-inspired structure with interactive digital touches.
   Fonts:   Syne (geometric display) + Lora (readable serif body)
            — completely unique pairing across this project.
   Palette:
     --primary:   #1A1A1D (Charcoal Black)
     --secondary: #E63946 (Signal Red)
     --accent:    #457B9D (Slate Blue)
     --bg:        #F1FAEE (Mint Off-White)
     --text:      #1D3557 (Deep Navy)

   Unique features vs all other sites in this project:
   1. Animated headline ticker strip (CSS marquee with article titles)
   2. Drop caps (::first-letter) on article first paragraph
   3. Hard offset box-shadows (solid color, zero blur) on cards
   4. Newspaper two-column article index with ruled line system
   5. Black full-width hero strip for homepage and about page
   6. "Editorial tag" label system (uppercase sans-serif stamps)
   7. FAQ accordion with + / × toggle indicator
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --primary:      #1A1A1D;
  --primary-dk:   #0d0d0f;
  --primary-lt:   rgba(26, 26, 29, 0.06);
  --secondary:    #E63946;
  --secondary-dk: #c4232f;
  --secondary-lt: rgba(230, 57, 70, 0.09);
  --accent:       #457B9D;
  --accent-dk:    #345f7a;
  --accent-lt:    rgba(69, 123, 157, 0.1);
  --bg:           #F1FAEE;
  --bg-alt:       #e6f5db;
  --bg-dark:      #0d0d0f;
  --white:        #ffffff;
  --text:         #1D3557;
  --text-muted:   rgba(29, 53, 87, 0.52);
  --border:       rgba(26, 26, 29, 0.14);
  --max-w:        1200px;
  --text-w:       780px;
  --header-h:     66px;
  --ff-head:      'Syne', system-ui, sans-serif;
  --ff-body:      'Lora', Georgia, serif;
  --tr:           0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  line-height: 1.72;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img  { display: block; max-width: 100%; height: auto; }
a    { color: var(--accent); text-decoration: none; }
main { flex: 1; }

/* ── Wrapper ─────────────────────────────────────────────────── */
.wrapper { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ── Headline Ticker ─────────────────────────────────────────── */
.ticker-wrap {
  background: var(--secondary);
  overflow: hidden;
  padding: 8px 0;
  width: 100%;
  flex-shrink: 0;
}
.ticker-track {
  display: inline-flex; /* shrinks to content width → translateX(-50%) = one segment = constant px/s */
  white-space: nowrap;
  will-change: transform;
  animation: ticker-move 72s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-segment {
  display: inline-flex;
  align-items: center;
}
.ticker-segment span {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  padding: 0 32px;
}
.ticker-dot {
  color: rgba(255,255,255,0.4);
  font-size: 0.45rem;
  flex-shrink: 0;
  padding: 0 2px;
}

@keyframes ticker-move {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--primary);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-link { display: flex; align-items: center; }
.logo-link img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  padding: 8px 16px;
  position: relative;
  transition: color var(--tr);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 16px; right: 16px;
  height: 2px;
  background: var(--secondary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
}
.nav-link:hover,
.nav-link.active { color: var(--secondary); }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 10;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--tr);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Reading Progress Bar ────────────────────────────────────── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--secondary);
  z-index: 200;
  transition: width 0.08s linear;
}

/* ── Page Hero (Homepage + About) ───────────────────────────── */
.page-hero {
  background: var(--primary);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-text-col { color: var(--white); }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}

.page-hero p {
  font-family: var(--ff-body);
  font-size: 1.05rem;
  line-height: 1.68;
  color: rgba(255,255,255,0.72);
}

.hero-image-col {}
.hero-image-col img {
  width: 100%;
  border: 3px solid rgba(230,57,70,0.7);
  box-shadow: 9px 9px 0 rgba(230,57,70,0.22);
}

/* Single-col hero (about page) */
.hero-single h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.0;
}
.hero-single h1 em {
  color: var(--secondary);
  font-style: normal;
}
.hero-single .hero-sub {
  font-family: var(--ff-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-top: 20px;
}

/* ── Section Header ──────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 36px;
  padding-top: 56px;
}

.section-label {
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.08;
}

/* ── Content Typography ──────────────────────────────────────── */
.content-block p {
  margin-bottom: 1.25em;
  font-size: 1.04rem;
}
.content-block h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--primary);
  margin: 2.2rem 0 1rem;
  padding-left: 14px;
  border-left: 4px solid var(--secondary);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.content-block img {
  margin: 36px auto;
  border: 2px solid var(--border);
  box-shadow: 7px 7px 0 var(--primary-lt);
  max-width: 100%;
}

/* Drop cap for article first paragraph */
.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--ff-head);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 0.82;
  color: var(--white);
  background: var(--secondary);
  margin: 3px 12px 0 0;
  padding: 8px 12px;
}

/* ── Homepage intro text section ─────────────────────────────── */
.intro-section { padding-bottom: 0; }
.intro-text { padding: 52px 0 48px; }
.intro-text p {
  font-size: 1.07rem;
  line-height: 1.74;
  margin-bottom: 1.2em;
  color: rgba(255,255,255,0.85);
}
.intro-text img {
  margin: 32px auto;
  border: 2px solid var(--border);
  box-shadow: 7px 7px 0 var(--primary-lt);
}

/* ── Feature Blocks (adding-blocks) ─────────────────────────── */
.features-section { padding-bottom: 64px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border: 2px solid var(--primary);
  padding: 28px 22px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--primary);
  transition: transform var(--tr), box-shadow var(--tr);
}
.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--secondary);
  border-color: var(--secondary);
}

.feature-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 18px;
}

.feature-card-title {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card-text {
  font-size: 0.9rem;
  line-height: 1.56;
  color: var(--text-muted);
  font-family: var(--ff-body);
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section { padding-bottom: 72px; }

.faq-list { margin-top: 4px; }

.faq-item { border-top: 2px solid var(--border); }
.faq-item:last-child { border-bottom: 2px solid var(--border); }

.faq-question {
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--primary);
  padding: 20px 52px 20px 0;
  cursor: pointer;
  position: relative;
  user-select: none;
  letter-spacing: -0.01em;
  transition: color var(--tr);
}
.faq-question:hover { color: var(--secondary); }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--ff-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1;
  transition: transform var(--tr);
}
.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s ease;
}
.faq-answer-inner {
  margin: 4px 0 24px;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.68;
  font-family: var(--ff-body);
  border-left: 3px solid var(--secondary-lt);
  padding-left: 18px;
  margin-left: 2px;
}
.faq-item.open .faq-answer { max-height: 500px; }

/* ── Articles Index Page ─────────────────────────────────────── */
.articles-page { padding: 0 0 80px; }

.articles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.article-entry {
  padding: 28px 24px;
  border-bottom: 2px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: background var(--tr);
}
.articles-grid .article-entry:nth-child(odd) {
  border-right: 2px solid var(--border);
}
.article-entry:hover { background: var(--secondary-lt); }

.article-num {
  font-family: var(--ff-head);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 10px;
  display: block;
}

.article-entry-title {
  display: block;
  font-family: var(--ff-head);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  transition: color var(--tr);
}
/* Stretched link — makes the entire card clickable via the title anchor */
.article-entry-title::after {
  content: '';
  position: absolute;
  inset: 0;
}
.article-entry:hover .article-entry-title { color: var(--secondary); }

.article-entry-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--tr), gap var(--tr);
  pointer-events: none;
}
.article-entry:hover .article-entry-cta {
  color: var(--secondary);
  gap: 10px;
}
.article-entry-cta::after { content: '→'; }

/* ── Article Page ────────────────────────────────────────────── */
.article-page { padding: 56px 0 88px; }

.article-breadcrumb {
  font-family: var(--ff-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-breadcrumb a {
  color: var(--accent);
  transition: color var(--tr);
}
.article-breadcrumb a:hover { color: var(--secondary); }
.article-breadcrumb-sep { color: var(--secondary); font-size: 0.9em; }

.article-page h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.article-rule {
  height: 3px;
  background: var(--primary);
  border: none;
  margin-bottom: 40px;
}
.article-rule::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--border);
  margin-top: 5px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 11px 22px;
  margin-top: 52px;
  background: var(--white);
  transition: all var(--tr);
  box-shadow: 4px 4px 0 var(--primary);
}
.article-back:hover {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
  transform: translate(4px, 4px);
}
.article-back::before { content: '←'; }

/* ── About Page ──────────────────────────────────────────────── */
.about-page-body { padding-bottom: 88px; }

.about-content { padding: 60px 0 0; }
.about-content p {
  font-size: 1.06rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1.3em;
}
.about-content h2 {
  font-family: var(--ff-head);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  color: var(--primary);
  margin: 2.6rem 0 1rem;
  letter-spacing: -0.01em;
  border-left: 4px solid var(--secondary);
  padding-left: 16px;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.pillar {
  padding: 28px 20px;
  border: 2px solid var(--primary);
  background: var(--white);
  box-shadow: 4px 4px 0 var(--primary);
}
.pillar-num {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pillar p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}

.about-pullquote {
  border-left: 4px solid var(--secondary);
  padding: 20px 28px;
  margin: 40px 0;
  background: var(--secondary-lt);
  font-family: var(--ff-head);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--primary);
  border-top: 4px solid var(--secondary);
  padding: 44px 0 28px;
  color: rgba(255,255,255,0.65);
  flex-shrink: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}

.footer-logo a { display: inline-block; }
.footer-logo img {
  height: 34px;
  width: auto;
  filter: invert(1);
  opacity: 0.88;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  flex-direction: column;
}
.footer-nav a {
  font-family: var(--ff-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--tr);
}
.footer-nav a:hover { color: var(--secondary); }

.footer-meta {
  font-family: var(--ff-head);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
  text-align: right;
}

.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-family: var(--ff-head);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.05em;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-image-col { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-meta { text-align: left; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--primary);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .site-nav.open { display: flex; }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }
  .nav-link::after { display: none; }
  .nav-link.active { color: var(--secondary); }

  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid .article-entry:nth-child(odd) { border-right: none; }

  .feature-grid { grid-template-columns: 1fr; }
  .about-pillars { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta { text-align: left; }

  .page-hero { padding: 44px 0 36px; }
  .article-body > p:first-of-type::first-letter {
    font-size: 3.2rem;
    padding: 5px 8px;
  }

  .section-head { flex-direction: column; gap: 8px; padding-top: 44px; }
}
