/* ── Variables ── */
:root {
  --bg: #091825;
  --bg-footer: #060f17;
  --red: #cc0000;
  --red-hover: #aa0000;
  --teal: #0a91ab;
  --text: rgba(255, 255, 255, 0.85);
  --text-muted: rgba(255, 255, 255, 0.4);
  --header-height: 80px;
  --header-height-scrolled: 56px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: white;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, box-shadow 0.3s;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: var(--header-height);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  transition: height 0.3s;
}

#header-logo {
  height: 150px;
  width: auto;
  transition: height 0.3s;
}

/* Scrolled state — toggled by main.js */
#site-header.scrolled {
  background: rgba(9, 24, 37, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

#site-header.scrolled .header-inner {
  height: var(--header-height-scrolled);
}

#site-header.scrolled #header-logo {
  height: 50px;
}

/* ── Article container ── */
main {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}

.article-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ── Eyebrow ── */
.eyebrow {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.eyebrow[data-category="red"]  { color: var(--red); }
.eyebrow[data-category="teal"] { color: var(--teal); }

/* ── Title ── */
.article-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: white;
  margin-bottom: 1.5rem;
}

/* ── Author card ── */
.author-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a3a55;
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.author-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}

.author-details {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Article body ── */
article {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
}

article p { margin-bottom: 1.25rem; }
article strong { color: white; }

article h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: white;
  margin: 2rem 0 0.75rem;
}

article a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

article a:hover { color: white; }

article ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

article ul li {
  margin-bottom: 0.6rem;
}

article img {
  border-radius: 8px;
  margin: 1.75rem 0;
}

article figure {
  margin: 1.75rem 0;
}

article figure img {
  margin: 0;
  border-radius: 8px 8px 0 0;
}

article figcaption {
  background: #4b5563;
  color: #f5f5f5;
  font-size: 0.85rem;
  font-style: italic;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
}

/* ── Blockquote ── */
article blockquote {
  background: #0d2035;
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}

article blockquote p {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

article blockquote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ── Footer ── */
#site-footer {
  background: var(--bg-footer);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}
