/* =========================================================
   RESET & BASE
   ========================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b0f14;
  background: #ffffff;
  line-height: 1.65;
}

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 1000;
  border-bottom: 1px solid #e6e6e6;
  padding: 1rem 1.5rem;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  max-height: 72px;
}

.tagline {
  font-size: 0.85rem;
  color: #555;
  margin-left: 1rem;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.75rem;
}

.nav a {
  text-decoration: none;
  color: #0b0f14;
  font-weight: 500;
}

.nav a:hover {
  text-decoration: underline;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    margin-top: 1rem;
  }
  .nav.open {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  .tagline {
    display: none;
  }
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1 {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.6rem;
    line-height: 1.25;
  }
}

/* =========================================================
   ARTICLE BODY
   ========================================================= */
.byline {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.2rem;
}

.article .story-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.article .story-body p {
  margin-bottom: 1.2rem;
}

@media (max-width: 600px) {
  .article .story-body {
    font-size: 1.1rem;
    line-height: 1.8;
  }
}

/* Drop cap */
.article .story-body p:first-of-type::first-letter {
  float: left;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 3.2rem;
  line-height: 1;
  padding-right: 0.3rem;
  padding-top: 0.2rem;
  font-weight: 700;
}

/* =========================================================
   AUTHOR BLOCK (SITE-WIDE)
   ========================================================= */
.author-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 1.2rem;
}

.author-photo {
  width: 56px;
  flex-shrink: 0;
  text-align: center;
}

.author-photo img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.author-name {
  font-size: 0.72rem;
  margin-top: 0.25rem;
  color: #444;
}

.byline-text {
  font-size: 0.95rem;
}

/* =========================================================
   LISTS
   ========================================================= */
.story-list {
  list-style: none;
  margin-top: 1rem;
}

.story-list li {
  margin-bottom: 0.8rem;
}

.story-list a {
  text-decoration: none;
  color: #0b0f14;
}

.story-list a:hover {
  text-decoration: underline;
}

.meta {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

/* =========================================================
   UI BLOCKS
   ========================================================= */
.section-divider {
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

.editors-note,
.timeline-box,
.related-box,
.explainer-box {
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
  background: #f9fafb;
}

.timeline-box ul,
.related-box ul {
  margin-left: 1.2rem;
}

/* =========================================================
   TAGS
   ========================================================= */
.topic-tags {
  margin: 0.5rem 0 1rem;
}

.topic-tags a {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #374151;
  margin-right: 0.6rem;
  text-decoration: none;
}

/* =========================================================
   SHARE BAR
   ========================================================= */
.share-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.share-btn {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: #111;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid #e6e6e6;
  padding: 1.2rem;
  margin-top: 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: #555;
}

/* =========================================================
   DARK MODE
   ========================================================= */
@media (prefers-color-scheme: dark) {
  body {
    background: #0b0f14;
    color: #f3f4f6;
  }

  .site-header,
  .site-footer {
    background: #0b0f14;
    border-color: #1f2933;
  }

  .nav a,
  .story-list a {
    color: #e5e7eb;
  }

  .meta,
  .tagline,
  .author-name {
    color: #9ca3af;
  }

  h1, h2 {
    color: #ffffff;
  }
}

/* =========================================================
   PRINT
   ========================================================= */
@media print {
  .site-header,
  .site-footer,
  .nav,
  .hamburger,
  .share-bar,
  .related-box {
    display: none !important;
  }
}

.weekly-feature {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.weekly-feature h2 {
  margin-bottom: 0.6rem;
}

.weekly-feature p {
  margin-bottom: 0.5rem;
}

.weekly-feature a {
  font-weight: 500;
  text-decoration: none;
}

.weekly-feature a:hover {
  text-decoration: underline;
}
/* =========================
   AUTHOR PROFILE (LOCKED)
   ========================= */

.author-profile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 2rem 0;
  max-width: 760px;
}

/* Photo wrapper */
.author-profile .author-photo {
  width: 96px;               /* FIXED SIZE */
  flex-shrink: 0;
  text-align: center;
}

/* Image itself */
.author-profile .author-photo img {
  width: 96px !important;
  height: 96px !important;
  max-width: 96px !important;
  max-height: 96px !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

/* Name under photo */
.author-profile .author-name {
  font-size: 0.75rem;
  margin-top: 0.4rem;
  line-height: 1.2;
  color: #374151;
}

/* Bio text */
.author-profile .author-bio {
  flex: 1;
}

.author-profile .author-role {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .author-profile .author-name {
    color: #d1d5db;
  }
  .author-profile .author-role {
    color: #9ca3af;
  }
}

/* Mobile refinement */
@media (max-width: 600px) {
  .author-profile {
    gap: 0.75rem;
  }

  .author-profile .author-photo {
    width: 72px;
  }

  .author-profile .author-photo img {
    width: 72px !important;
    height: 72px !important;
  }
}

.investigations-feature {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.investigations-feature p {
  max-width: 760px;
}

.investigations-feature a {
  font-weight: 500;
  text-decoration: none;
}

.investigations-feature a:hover {
  text-decoration: underline;
}

.tip-form textarea,
.tip-form input {
  width: 100%;
  max-width: 640px;
  padding: 0.6rem;
  margin-top: 0.4rem;
}

.tip-form textarea {
  resize: vertical;
}

.tip-form button {
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
}

.briefing-feature {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.briefing-feature h3 {
  margin-top: 0.5rem;
}

.briefing-feature a {
  text-decoration: none;
  font-weight: 500;
}

.briefing-feature a:hover {
  text-decoration: underline;
}

.future-feature {
  border-top: 1px solid #e5e7eb;
  margin-top: 3rem;
  padding-top: 1.5rem;
}

.future-feature ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.future-feature li {
  margin-bottom: 0.4rem;
}

.future-feature a {
  text-decoration: none;
  font-weight: 500;
}

.future-feature a:hover {
  text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
  .future-feature {
    border-color: #374151;
  }
}

/* Tracker / briefing readability */
.timeline-box ul li {
  margin-bottom: 0.6rem;
}
/* Article media (photo/video) */
.media-block {
  margin: 1rem 0 1.5rem;
}

.media-block img,
.media-block video {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #e5e7eb;
}

.media-block figcaption {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.5rem;
}
@media (prefers-color-scheme: dark) {
  .media-block img,
  .media-block video {
    border-color: #374151;
  }
  .media-block figcaption {
    color: #9ca3af;
  }
}
/* Logo switching for dark mode */
.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo {
  transition: opacity 0.3s ease;
}

.logo-dark {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    opacity: 0;
  }

  .logo-dark {
    opacity: 1;
  }
}