/* ============================================================
   The Heretic Hawk — main.css
   Single source of truth for site styling.
   To change the site font, edit ONE line: --font-main below.
   ============================================================ */

/* ---- Google Fonts (for quick font testing) ---- */
@import url('https://fonts.googleapis.com/css2?family=Armata:wght@400;500;600;700&display=swap');

/* ---- Self-hosted font (Montserrat Alternates, WOFF2) ---- */
@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/MontserratAlternates-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/MontserratAlternates-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/MontserratAlternates-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Montserrat Alternates';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/MontserratAlternates-Bold.woff2') format('woff2');
}

/* ---- Design tokens (change the whole site's look here) ---- */
:root {
  --font-main: 'Armata', sans-serif; /* <-- change site font here */
  --navy: #1E293B;
  --cream: #f2efe9;
  --cream-light: #FCFBFA;  /* 75% white + 25% cream — used on research index + article pages */
  --red: #a52734;
  --ink: #33353a;      /* body text on cream */
  --muted: #7a7c80;    /* muted text */
  --hairline: #dcd8cf; /* light dividers on cream */
  --content-max: 760px;
}

/* ---- Base ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-main);
  color: var(--ink);
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--red); }
code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #e7e3db;
  padding: 1px 5px;
  border-radius: 4px;
}
img { max-width: 100%; height: auto; }

/* ============================================================
   HEADER (shared: blog index + article)
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 7vw;
  background: var(--navy);
  flex-wrap: wrap;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-avatar {
  width: 50px; height: 50px;
  background-image: url('../images/avatar_main_cream_final.png');
  background-size: contain; background-repeat: no-repeat; background-position: center;
  flex-shrink: 0;
}
.brand-name {
  font-weight: 600; font-size: 22px; color: var(--cream);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.site-nav { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.nav-link { font-size: 14px; color: var(--cream); opacity: 0.7; font-weight: 500; }
.nav-link:hover { color: var(--cream); opacity: 1; }
.nav-link.active { opacity: 1; font-weight: 600; }
.social-row { display: flex; gap: 12px; margin-left: 8px; }
.social-btn {
  display: flex; width: 32px; height: 32px; border-radius: 50%;
  background: var(--cream); align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.social-btn:hover { background: var(--red); }
.social-btn:hover svg path,
.social-btn:hover svg rect { fill: var(--cream); stroke: var(--cream); }
.social-btn svg path[stroke] { transition: stroke 0.15s ease; }

/* ============================================================
   FOOTER (shared: blog index + article)
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding: 32px 7vw;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--cream); opacity: 0.75; }
.footer-links a:hover { color: var(--cream); opacity: 1; }
.footer-copy { font-size: 12px; color: var(--cream); opacity: 0.5; }

/* ============================================================
   BLOG INDEX (research/)
   ============================================================ */
.page-wrap { display: flex; flex-direction: column; min-height: 100vh; width: 100%; background: var(--cream-light); }
.index-main {
  flex: 1; padding: 58px 7vw 40px;
  display: flex; flex-direction: column; align-items: center;
}
.index-head {
  width: 100%; max-width: var(--content-max);
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 44px;
}
.eyebrow {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #5a5c60; font-weight: 500;
}
.index-title {
  margin: 0; font-weight: 600;
  font-size: clamp(24px, 4vw, 36px); color: var(--navy);
}
.article-list {
  width: 100%; max-width: var(--content-max);
  display: flex; flex-direction: column; gap: 44px;
}
.summary-card {
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 36px; border-bottom: 1px solid var(--hairline);
}
.card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #8a8c8f;
}
.card-dot { width: 3px; height: 3px; border-radius: 50%; background: #8a8c8f; }
.card-tag {
  color: var(--red); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px;
}
.card-title-link { text-decoration: none; }
.card-title {
  margin: 0; font-weight: 600; font-size: 24px; line-height: 1.25; color: var(--navy);
}
.card-title-link:hover .card-title { color: var(--red); }
.card-excerpt {
  margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink); text-align: justify;
}
.read-more {
  font-size: 14px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
}
.read-more:hover { color: var(--red); }

/* ============================================================
   ARTICLE PAGE (research/<slug>/)
   ============================================================ */
.article-hero {
  width: 100%; background: var(--navy);
  padding: 64px 7vw 56px;
  display: flex; flex-direction: column; align-items: center;
}
.article-hero-inner {
  width: 100%; max-width: var(--content-max);
  display: flex; flex-direction: column; gap: 16px;
}
.hero-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--cream); opacity: 0.65;
}
.hero-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--cream); opacity: 0.5; }
.hero-tag {
  color: #e0b0b5; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: 12px;
}
.article-title {
  margin: 0; font-weight: 600;
  font-size: clamp(32px, 4.5vw, 48px); line-height: 1.12; color: var(--cream);
}
.article-subtitle {
  margin: 0; font-size: 18px; line-height: 1.5;
  color: var(--cream); opacity: 0.75; text-align: justify;
}
.article-body-wrap {
  width: 100%; padding: 48px 7vw 64px;
  display: flex; flex-direction: column; align-items: center;
}
.article-body {
  width: 100%; max-width: var(--content-max);
  display: flex; flex-direction: column; gap: 22px;
}
.article-body p {
  margin: 0; font-size: 16px; line-height: 1.75; color: var(--ink); text-align: justify;
}
.article-body h2 {
  margin: 36px 0 4px; font-weight: 600;
  font-size: 28px; line-height: 1.2; color: var(--navy);
}
.article-body h3 {
  margin: 26px 0 2px; font-weight: 600;
  font-size: 21px; line-height: 1.25; color: var(--navy);
}
.article-body ul,
.article-body ol {
  margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px;
}
.article-body li {
  font-size: 16px; line-height: 1.75; color: var(--ink); text-align: justify;
}
.article-figure { margin: 14px 0; text-align: center; }
.article-figure img { display: inline-block; }
.article-hr {
  border: none; border-top: 1px solid var(--hairline); margin: 20px 0 4px; width: 100%;
}
.disclaimer-h {
  margin: 8px 0 2px; font-weight: 600; font-size: 15px; color: var(--navy); opacity: 0.8;
}
.disclaimer-p {
  margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink);
  opacity: 0.72; font-style: italic; text-align: justify;
}
.back-link {
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--navy);
  display: inline-flex; align-items: center; gap: 6px;
}
.back-link:hover { color: var(--red); }
