/* ============================================
   SARAH'S PERSPECTIVE NEWS — Homepage CSS
   Editorial Dark Newsroom Theme
   ============================================ */

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

:root {
  --ink:        #0f0f0f;
  --paper:      #faf9f7;
  --accent:     #c0392b;
  --accent-dk:  #922b21;
  --accent-lt:  #f5b7b1;
  --mid:        #4a4a4a;
  --light:      #8a8a8a;
  --rule:       #e0ddd8;
  --nav-bg:     #0d0d0d;
  --card-bg:    #ffffff;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; }
body { font-family: 'Source Serif 4', Georgia, serif; background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; width: 100%; }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  border-bottom: 2px solid var(--accent);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-logo span { color: var(--accent); }

.topbar-nav {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── HERO / SLIDER ─── */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Slides */
.slider {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active { opacity: 1; }

/* Overlay — dark gradient, heavier at bottom and left */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.15) 100%),
    linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
  z-index: 2;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  bottom: 100px;
  right: clamp(16px, 4vw, 48px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
}

.slider-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
}

.slider-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.slide-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 5;
  padding: 0 clamp(24px, 6vw, 100px);
  max-width: 760px;
  animation: heroIn 1s ease 0.2s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-kicker {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#perspective-text {
  color: var(--accent);
  transition: color 0.6s ease;
  font-style: italic;
}

.hero-deck {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  max-width: 580px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.hero-deck p {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  flex: 1;
}

.cursor {
  color: var(--accent);
  font-weight: 300;
  animation: blink 1s step-end infinite;
  margin-top: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.hero-cta {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 3px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
}

/* Dateline strip */
.hero-dateline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px clamp(24px, 6vw, 100px);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot-sep { color: var(--accent); }

/* ─── SECTION RULE ─── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(24px, 6vw, 80px);
  margin: 60px 0 0;
}

.section-rule span {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

/* ─── NEWS GRID ─── */
main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px clamp(16px, 5vw, 80px) 80px;
}

.news-header {
  margin-bottom: 48px;
}

.news-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.news-header p {
  font-family: 'Source Serif 4', serif;
  font-size: 1rem;
  font-style: italic;
  color: var(--mid);
  max-width: 680px;
  line-height: 1.7;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ─── NEWS CARD ─── */
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-top: 3px solid var(--card-accent, var(--accent));
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.16);
}

.card-image-wrap {
  position: relative;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.card-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-accent, var(--accent));
  padding: 5px 12px;
  border-radius: 2px;
}

.card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--light);
}

.card-section { font-weight: 600; color: var(--card-accent, var(--accent)); }
.card-dot { color: var(--rule); }

.card-read {
  margin-left: auto;
  font-weight: 500;
  color: var(--light);
  transition: color 0.2s;
}

.news-card:hover .card-read { color: var(--card-accent, var(--accent)); }

.card-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}

.card-excerpt {
  font-family: 'Source Serif 4', serif;
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
  margin-top: 4px;
}

/* ─── MISSION STRIP ─── */
.mission-strip {
  background: var(--ink);
  color: #fff;
  padding: 48px clamp(16px, 5vw, 80px);
  margin-top: 0;
}

.mission-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 24px;
  flex-wrap: wrap;
}

.mission-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #888;
  max-width: 140px;
}

.mission-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* ─── FOOTER ─── */
.footer {
  background: #0d0d0d;
  color: #fff;
  border-top: 2px solid var(--accent);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px clamp(16px, 5vw, 60px) 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-logo span { color: var(--accent); }

.footer-tagline {
  font-family: 'Source Serif 4', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #888;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 360px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: #aaa;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.social-links a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-links h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }

.footer-links ul li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links ul li a:hover { color: #fff; }

.footer-disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(16px, 5vw, 60px) 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-disclaimer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.7;
}

.footer-copy { color: #444; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mission-divider { display: none; }
  .mission-inner { gap: 32px; }
}

@media (max-width: 768px) {
  .topbar-nav { display: none; }
  .topbar-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    padding: 16px 24px 24px;
    border-bottom: 2px solid var(--accent);
    gap: 16px;
    z-index: 199;
  }
  .menu-toggle { display: flex; }

  .hero-section { max-height: 600px; }
  .hero-title { font-size: 2rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .slider-controls { bottom: 72px; }
}

@media (max-width: 520px) {
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-section { max-height: 500px; min-height: 460px; }
  .hero-deck { display: none; }
  .mission-inner { flex-direction: column; align-items: flex-start; padding: 0 clamp(16px, 4vw, 32px); }
  .mission-stat { align-items: flex-start; text-align: left; }
  .stat-num { font-size: 2rem; }
}
