:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1c1c23;
  --muted: #6c6d80;
  --accent: #f71f3d;
  --border: rgba(28, 28, 35, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 5vw, 4rem);
  background: linear-gradient(120deg, #151330 0%, #166389 60%, #1e6035 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(15, 16, 30, 0.25);
}

.menu-toggle,
.drawer-close,
.about-trigger,
.about-close {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.menu-toggle { font-size: 1.4rem; }

.title-block { flex: 1; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 0.2rem;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
}

.hero-image {
  width: clamp(60px, 9vw, 95px);
  border-radius: 1rem;
  object-fit: cover;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.25));
  margin-left: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100vh;
  background: rgba(12, 11, 20, 0.96);
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: left 0.3s ease;
  backdrop-filter: blur(6px);
}

.drawer.open { left: 0; }

.drawer ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.drawer a { color: #fff; text-decoration: none; }

.hero-copy {
  padding: 1.75rem clamp(1rem, 5vw, 4rem) 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.digest-stream {
  padding: 1rem clamp(1rem, 5vw, 4rem) 3rem;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 1350px;
  margin: auto;
}

.digest-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1.6rem;
  box-shadow: 0 30px 50px rgba(15, 16, 30, 0.08);
  scroll-margin-top: 120px;
}


.share-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  display: inline-block;
  margin-left: 0.35rem;
  color: #1e6035;
  text-decoration: none;
  font-size: 0.5em;
  line-height: 1;
}


.share-link.copied::after {
  content: attr(data-share-status);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--accent);
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(15, 16, 30, 0.15);
}

.video-embed {
  width: 320px;
  max-width: 100%;
  margin: 1.5rem auto 0;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(15, 16, 30, 0.1);
  overflow: hidden;
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.digest-body {
  line-height: 1.6;
}

.digest-body h1,
.digest-body h2,
.digest-body h3 {
  margin-top: 0;
}

.digest-body h1 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.digest-body a {
  color: var(--accent);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.pager a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.75rem;
}

.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 28, 35, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.about-modal.open { opacity: 1; pointer-events: all; }

.about-content {
  background: var(--card);
  padding: 2rem;
  border-radius: 1.5rem;
  max-width: 520px;
  box-shadow: 0 30px 60px rgba(15, 16, 30, 0.12);
}

@media (max-width: 768px) {
  .site-header { flex-wrap: wrap; }
  .hero-image { order: 3; }
  .drawer { width: 220px; }
}
