/* =====================================================================
   The Phoenix News — public stylesheet
   Layout inspired by the Yale Daily News: dense editorial grid,
   serif headlines, section "eyebrow" labels, thin rules between stories.
   Colours: the Phoenix orange / red / charcoal.
   ===================================================================== */

/* ---------- Brand palette ---------- */
:root {
  --phoenix-red:    #C8102E;
  --phoenix-orange: #F26522;
  --phoenix-ember:  #9E1B32;
  --ink:            #1A1A1A;
  --ink-soft:       #4a4a4a;
  --rule:           #d9d4cc;
  --rule-strong:    #1A1A1A;
  --paper:          #fbf9f4;
  --paper-2:        #ffffff;
  --eyebrow:        #C8102E;
  --max:            1440px;
  --caption-color:  #6b6b6b;
  --serif: Georgia, 'Times New Roman', 'Noto Serif', serif;
  --sans:  'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* ---------- Dark mode ---------- */
body.dark {
  --ink:         #e8e4dc;
  --ink-soft:    #a0998e;
  --rule:        #3a3530;
  --rule-strong: #c0bab0;
  --paper:       #1a1714;
  --paper-2:     #211e1a;
  --caption-color: #8a8078;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--phoenix-red); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ============== TOP BAR ============== */
.topbar {
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 34px;
}
.topbar a { color: #fff; opacity: .85; }
.topbar a:hover { opacity: 1; color: var(--phoenix-orange); }
.topbar .date { text-transform: uppercase; opacity: .7; }
.topbar .top-links a { margin-left: 16px; }

/* ============== MASTHEAD ============== */
/*
  Light mode: warm parchment — complements the phoenix red/orange
  without overpowering it. PNG blend-mode: multiply dissolves the
  white backgrounds of the logo/wordmark images naturally.
  Dark mode: rich warm brown that keeps the same warmth.
*/
.masthead {
  background: var(--paper);
  padding: 18px 0 16px;
  transition: background .3s;
}
.masthead-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.masthead-wordmark-img {
  display: block;
  height: 90px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;  /* white dissolves into page background */
}
.masthead .tagline {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .30em;
  text-transform: uppercase;
  color: #a07860;
  margin-top: 7px;
}

/* dark mode masthead — same gold in both modes */
body.dark .masthead { background: #d6b24a; }
body.dark .masthead-wordmark-img { mix-blend-mode: multiply; filter: none; }

/* ============== UTILITY STRIP (weather · socials · toggle) ============== */
.util-strip {
  background: #9B212B;
  border-bottom: none;
  transition: background .3s;
}
.util-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  height: 34px;
  font-family: var(--sans);
  font-size: 11.5px;
  color: #fff;
  letter-spacing: .04em;
}
.util-weather { display: flex; align-items: center; gap: 6px; }
.util-weather .weather-icon { font-size: 14px; }
.util-socials { display: flex; align-items: center; gap: 14px; }
.util-socials a {
  color: #fff;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; text-decoration: none;
}
.util-socials a:hover { color: var(--phoenix-orange); }
.util-actions { display: flex; align-items: center; }
.theme-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0;
  opacity: .75; transition: opacity .2s;
}
.theme-toggle:hover { opacity: 1; }
body.dark .theme-toggle .icon-light { display: inline; }
body.dark .theme-toggle .icon-dark  { display: none; }
body:not(.dark) .theme-toggle .icon-light { display: none; }
body:not(.dark) .theme-toggle .icon-dark  { display: inline; }

/* dark mode util strip — slightly deeper orange */
body.dark .util-strip { background: #7a1820; }
body.dark .util-strip-inner { color: #fff; }
body.dark .util-socials a { color: #fff; }
body.dark .util-socials a:hover { color: var(--phoenix-orange); }

@media (max-width: 700px) {
  .util-socials { display: none; }
  .masthead-inner { gap: 16px; }
  .masthead-wordmark-img { height: 48px; }
  .masthead-wordmark-img { height: 50px; }
}

/* ============== NAV ============== */
.mainnav {
  border-bottom: 1px solid var(--rule-strong);
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.mainnav .container {
  display: flex; align-items: center; gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  font-family: var(--sans);
}
.mainnav a {
  text-transform: uppercase;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 12px 11px;
  color: var(--ink);
  white-space: nowrap;
}
.mainnav a:hover, .mainnav a.active {
  color: var(--phoenix-red);
  box-shadow: inset 0 -3px 0 var(--phoenix-red);
}
.mainnav .spacer { flex: 1; }

/* Search toggle */
.search-toggle {
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--phoenix-red); padding: 12px 11px;
}
.search-toggle:hover { color: var(--phoenix-ember); }
.search-flyout {
  display: none;
  position: absolute; top: 100%; right: 0;
  background: var(--paper-2);
  border: 1px solid var(--rule-strong);
  border-top: 3px solid var(--phoenix-red);
  padding: 14px 16px; z-index: 100; min-width: 320px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.search-flyout.open { display: block; }
.search-flyout-form { display: flex; gap: 0; }
.search-flyout-form input {
  flex: 1; font-family: var(--serif); font-size: 16px;
  padding: 10px 12px; border: 1px solid var(--rule-strong);
  border-right: 0; background: var(--paper);
}
.search-flyout-form button {
  font-family: var(--sans); font-weight: 700; text-transform: uppercase;
  font-size: 12px; padding: 0 18px; letter-spacing: .05em;
  background: var(--phoenix-red); color: #fff; border: 0; cursor: pointer;
}
.mainnav { position: relative; }
.nav-home-logo {
  display: flex; align-items: center;
  padding: 4px 8px 4px 0;
  box-shadow: none !important;  /* no underline active indicator for logo */
}
.nav-logo-bird {
  height: 34px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: transform .2s ease;
}
body.dark .nav-logo-bird { mix-blend-mode: screen; filter: brightness(1.1); }
.nav-home-logo:hover .nav-logo-bird { transform: scale(1.08); }
.mainnav .search-link { color: var(--phoenix-red); }

/* ============== HOME GRID ============== */
/* ===== HOME PAGE 2-COLUMN LAYOUT ===== */
/* The sidebar spans the full page height — content fills left, sidebar right */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  margin-top: 24px;
  align-items: start;
}
.home-content {
  padding-right: 32px;
  border-right: 1px solid var(--rule);
  min-width: 0; /* prevent grid blowout */
}
.home-sidebar {
  padding-left: 28px;
  min-width: 0;
}

/* Lead story inside home-content */
.lead-main {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}

/* Keep legacy .lead-grid for any other pages that might use it */
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 28px;
  margin-top: 24px;
}
.lead-side { padding-left: 28px; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 6px;
  display: inline-block;
}

.lead-main h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  margin: 4px 0 12px;
  font-weight: 700;
}
.lead-main h1 a:hover { color: var(--phoenix-ember); }
.lead-main .lead-img { margin-bottom: 14px; aspect-ratio: 16/9; overflow: hidden; }
.lead-main .lead-img img { width: 100%; height: 100%; object-fit: cover; }
.lead-main .dek { font-size: 18px; color: var(--ink-soft); margin: 0 0 10px; }

.byline {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.byline a { color: var(--phoenix-red); font-weight: 600; }

/* side stacked stories */
.side-story { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.side-story:first-child { padding-top: 0; }
.side-story:last-child { border-bottom: 0; }
.side-story h3 { font-size: 19px; line-height: 1.2; margin: 4px 0 6px; font-weight: 700; }
.side-story .dek { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }
.side-story.with-img { display: grid; grid-template-columns: 1fr 96px; gap: 12px; }
.side-story.with-img .thumb { aspect-ratio: 1/1; overflow: hidden; }
.side-story.with-img .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ============== SECTION BLOCKS ============== */
.section-block { margin: 34px 0; }
.section-head {
  display: flex; align-items: center; gap: 14px;
  border-bottom: 2px solid var(--rule-strong);
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 -2px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--phoenix-red);
  color: var(--ink);
}
.section-head a.more {
  margin-left: auto;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--phoenix-red);
  font-weight: 700;
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card .card-img { aspect-ratio: 3/2; overflow: hidden; margin-bottom: 10px; background: #eee url('/phoenix-logo.png') center/40% no-repeat; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 { font-size: 18px; line-height: 1.22; margin: 6px 0 8px; font-weight: 700; }
.card .dek { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ============== CATEGORY / LIST PAGE ============== */
.page-head {
  border-bottom: 2px solid var(--rule-strong);
  margin: 26px 0 24px;
}
.page-head h1 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 28px;
  margin: 0 0 -2px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--phoenix-red);
  display: inline-block;
}
.list-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 28px; }
.list-grid .card h3 { font-size: 19px; }

.pagination { margin: 36px 0; font-family: var(--sans); display: flex; gap: 14px; }
.pagination a {
  border: 1px solid var(--rule-strong); padding: 8px 16px;
  text-transform: uppercase; font-size: 12px; letter-spacing: .05em; font-weight: 600;
}
.pagination a:hover { background: var(--phoenix-red); color: #fff; border-color: var(--phoenix-red); }

/* ============== ARTICLE PAGE ============== */
.article-wrap { max-width: 740px; margin: 30px auto; }
.article-wrap .eyebrow { font-size: 12px; }
.article-wrap h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.1; margin: 6px 0 14px; font-weight: 700;
}
.article-wrap .dek { font-size: 20px; color: var(--ink-soft); margin: 0 0 18px; font-style: italic; }
.article-meta {
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 12px 0; margin-bottom: 22px;
}
.article-meta a { color: var(--phoenix-red); font-weight: 700; }
.article-cover { margin: 0 0 8px; background: #eee url('/phoenix-logo.png') center/20% no-repeat; min-height: 200px; }
.article-cover img { width: 100%; display: block; }
.article-cover figcaption { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); padding: 6px 0; }
.article-body { font-size: 19px; line-height: 1.7; }
.article-body p { margin: 0 0 1.2em; }
.article-body h2, .article-body h3 { font-weight: 700; margin: 1.4em 0 .5em; }
.article-body a { color: var(--phoenix-red); text-decoration: underline; }
.article-body img { margin: 1.4em 0; }
.article-body blockquote {
  border-left: 4px solid var(--phoenix-orange);
  margin: 1.4em 0; padding: .2em 0 .2em 20px; font-style: italic; color: var(--ink-soft);
}

.article-footnotes {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 24px;
}
.footnotes-heading {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.footnotes-list {
  margin: 0;
  padding-left: 20px;
}
.footnotes-list li {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 6px;
}

.related { border-top: 2px solid var(--rule-strong); margin-top: 40px; padding-top: 22px; }
.related .section-head h2 { border-bottom-color: var(--phoenix-orange); }

/* ============== SEARCH ============== */
.search-box { margin: 26px 0; display: flex; gap: 0; max-width: 560px; }
.search-box input {
  flex: 1; font-family: var(--serif); font-size: 18px; padding: 12px 14px;
  border: 1px solid var(--rule-strong); border-right: 0; background: #fff;
}
.search-box button {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .06em;
  font-weight: 700; font-size: 13px; padding: 0 22px;
  background: var(--phoenix-red); color: #fff; border: 0; cursor: pointer;
}

/* ============== PROSE PAGES (about) ============== */
.prose { max-width: 820px; margin: 30px auto; font-size: 18px; line-height: 1.7; }
.prose h1 { font-size: 38px; margin-bottom: 12px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; border-bottom: 2px solid var(--phoenix-red); padding-bottom: 6px; }
.prose a { color: var(--phoenix-red); text-decoration: underline; }
.prose .bylaws-links { margin: 12px 0 0; }
.prose .bylaws-links a { display: inline-block; margin-right: 20px; margin-bottom: 8px; }

/* Meet the team */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; margin-top: 20px; }
.team-card { text-align: center; }
.team-card .team-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; background: var(--rule); display: block; }
.team-card .team-photo-placeholder { width: 160px; height: 160px; border-radius: 50%; background: var(--rule); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--ink-soft); }
.team-card .team-name { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.team-card .team-bio { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }

/* ============== AUTHOR LINK (red everywhere) ============== */
.author-link { color: var(--phoenix-red) !important; font-weight: 600; }
.author-link:hover { text-decoration: underline; }
.team-name a { color: inherit; }
.team-name a:hover { color: var(--phoenix-red); }

/* ============== PROFILE PAGE (author / team member) ============== */
.profile-page { max-width: 860px; margin: 32px auto 0; }
.profile-header {
  display: flex; gap: 32px; align-items: flex-start;
  padding-bottom: 28px;
}
.profile-avatar {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 3px solid var(--rule);
}
.profile-avatar-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--rule); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--ink-soft);
}
.profile-name { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 6px; font-weight: 700; }
.profile-position {
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--phoenix-red); margin: 0 0 8px;
}
.profile-bio { font-size: 15px; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.5; }
.profile-count { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); margin: 0; }
.profile-rule { border: 0; border-top: 2px solid var(--rule-strong); margin: 0 0 28px; }
.profile-articles { display: flex; flex-direction: column; gap: 0; }
.profile-article-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.profile-article-row:last-child { border-bottom: 0; }
.profile-article-thumb { display: block; aspect-ratio: 4/3; overflow: hidden; }
.profile-article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.profile-article-text h3 { font-size: 19px; line-height: 1.2; margin: 4px 0 6px; font-weight: 700; }
.profile-article-text h3 a:hover { color: var(--phoenix-ember); }
.profile-article-text .dek { font-size: 14px; color: var(--ink-soft); margin: 0 0 6px; }

/* ============== SECTIONS BELOW HOME LAYOUT ============== */
.sections-full {
  padding-top: 0;
  margin-top: 0;
}
/* 2-col sections grid: mirrors home-layout proportions */
.sections-2col {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  align-items: start;
}
.sections-main-col {
  padding-right: 32px;
  border-right: 1px solid var(--rule);
  min-width: 0;
}
.sections-side-col {
  padding-left: 28px;
  min-width: 0;
}
/* Compact article list for narrower right column */
.section-list { display: flex; flex-direction: column; gap: 0; }
.section-list-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 14px;
  align-items: start;
}
.section-list-item:last-child { border-bottom: 0; }
.section-list-item h4 { font-size: 16px; line-height: 1.25; margin: 4px 0 5px; font-weight: 700; }
.section-list-item h4 a:hover { color: var(--phoenix-ember); }
.section-list-item .byline { font-size: 11px; }
.section-list-thumb { aspect-ratio: 4/3; overflow: hidden; }
.section-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .sections-2col { grid-template-columns: 1fr; }
  .sections-main-col { padding-right: 0; border-right: 0; }
  .sections-side-col { padding-left: 0; border-top: 2px solid var(--rule-strong); padding-top: 8px; }
}

/* ============== ARCHIVE PAGE ============== */
/* Featured / most-recent issue at the top */
.archive-featured {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--rule-strong);
}
.archive-featured-preview {
  background: #e8e3dc;
  position: relative;
  overflow: hidden;
  aspect-ratio: 17/22;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border-radius: 2px;
}
.archive-featured-preview canvas {
  width: 100% !important; height: 100% !important;
  object-fit: contain; display: block;
}
.archive-featured-preview .pdf-loading {
  position: absolute; font-family: var(--sans); font-size: 13px;
  color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase;
}
.archive-tag {
  font-family: var(--sans); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--phoenix-red); display: inline-block; margin-bottom: 12px;
}
.archive-featured-title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1; margin: 0 0 12px; font-weight: 700;
}
.archive-featured-meta {
  font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
  margin-bottom: 24px;
}
.archive-featured-btn {
  display: inline-block;
}
.archive-back-head {
  font-family: var(--sans); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  border-bottom: 3px solid var(--phoenix-red);
  padding-bottom: 8px; margin-bottom: 20px;
  display: inline-block;
}
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px; margin-top: 0; }
.issue-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.issue-card .issue-title { font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.25; }
.issue-card .issue-meta { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.issue-card .issue-link { margin-top: auto; display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--phoenix-red); text-decoration: none; }
.issue-card .issue-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .archive-featured { grid-template-columns: 1fr; }
  .archive-featured-preview { max-width: 280px; }
}

/* ============== CALLOUT (volunteer) ============== */
.callout {
  background: var(--ink); color: #fff; text-align: center;
  padding: 40px 20px; margin: 40px 0;
}
.callout h2 { font-size: 30px; margin: 0 0 8px; }
.callout p { font-family: var(--sans); margin: 0 0 18px; opacity: .85; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
  background: var(--phoenix-orange); color: #fff; padding: 13px 26px;
}
.btn:hover { background: var(--phoenix-red); color: #fff; }

/* ══════════════════════════════════════════════════════════
   THE FLAME — magazine page styles
═══════════════════════════════════════════════════════════ */
:root {
  --flame-black: #0e0c0a;
  --flame-gold:  #d4a535;
  --flame-cream: #f5f0e8;
}

/* Nav link styling for The Flame */
.nav-flame-link {
  font-style: italic;
  color: var(--phoenix-red) !important;
  font-weight: 600;
}


/* ── Hero: no background — text only, visible against page ── */
.flame-page { margin-top: 0; }
.flame-hero {
  position: relative;
  background: transparent;
  padding: 64px 0 48px;
  text-align: center;
}
.flame-hero-text {
  position: relative;
  text-align: center;
  padding: 0 24px;
}
.flame-title-cursive {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-size: clamp(64px, 11vw, 110px);
  font-weight: 700;
  color: var(--phoenix-red);
  text-shadow: none;
  margin: 0 0 10px;
  line-height: 1.05;
  letter-spacing: .01em;
}
.flame-presented {
  font-family: var(--sans);
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
/* Remove wave — no gradient to transition from */
.flame-wave { display: none; }

/* ── Magazine content ── */
.flame-content { padding-top: 48px; padding-bottom: 80px; }

.flame-empty-state {
  text-align: center;
  padding: 80px 0;
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-soft);
}

/* Each issue: alternating image-left / image-right spread */
.flame-issue {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.flame-issue.flame-issue-flip { direction: rtl; }
.flame-issue.flame-issue-flip > * { direction: ltr; }

/* Visual side */
.flame-issue-visual {
  position: relative;
  overflow: hidden;
}
.flame-issue-img-link {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  background: #1a1714;
  text-decoration: none;
}
.flame-issue-img-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease, filter .4s ease;
  filter: brightness(.92);
}
.flame-issue-img-link:hover img { transform: scale(1.04); filter: brightness(1); }
.flame-issue-pdfpreview { display: flex; align-items: center; justify-content: center; }
.flame-issue-pdfpreview canvas { width: 100% !important; height: 100% !important; }
.flame-issue-overlay {
  position: absolute; inset: 0;
  background: rgba(10,6,4,.45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.flame-issue-img-link:hover .flame-issue-overlay { opacity: 1; }

/* Text side */
.flame-issue-meta {
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--phoenix-red); margin-bottom: 14px;
}
.flame-issue-title {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-size: clamp(32px, 4.5vw, 54px);
  line-height: 1.1; margin: 0 0 18px;
  color: var(--ink);
}
.flame-issue-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 32px;
  max-width: 48ch;
}
.flame-issue-btn {
  display: inline-flex; align-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  padding: 13px 28px;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.flame-issue-btn:hover { background: var(--phoenix-red); color: #fff; }
body.dark .flame-issue-btn { background: var(--flame-gold); color: #0e0c0a; }
body.dark .flame-issue-btn:hover { background: #fff; color: #0e0c0a; }

/* Ornamental divider between issues */
.flame-issue-divider {
  text-align: center;
  font-size: 18px;
  color: var(--phoenix-red);
  opacity: .4;
  padding: 8px 0;
  letter-spacing: 24px;
}

/* PDF loading text (shared) */
.pdf-loading {
  font-family: var(--sans); font-size: 12px;
  color: rgba(255,255,255,.4); position: absolute;
  text-transform: uppercase; letter-spacing: .08em;
}

@media (max-width: 860px) {
  .flame-issue { grid-template-columns: 1fr; gap: 32px; }
  .flame-issue.flame-issue-flip { direction: ltr; }
  .flame-issue-img-link { max-width: 320px; margin: 0 auto; }
}

/* ============== FOOTER ============== */
.site-footer {
  border-top: 3px double var(--rule-strong);
  margin-top: 50px; padding: 36px 0 50px;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  background: var(--paper);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 {
  text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
  color: var(--ink); margin: 0 0 12px; border-bottom: 2px solid var(--phoenix-red);
  padding-bottom: 6px; display: inline-block;
}
.site-footer .foot-wordmark { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.site-footer .foot-wordmark .the { color: var(--phoenix-red); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--phoenix-red); }
.socials a { margin-right: 14px; font-weight: 700; }
.copyright {
  text-align: center; margin-top: 34px; padding-top: 18px;
  border-top: 1px solid var(--rule); font-size: 12px; letter-spacing: .04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 900px) {
  .home-layout { grid-template-columns: 1fr; }
  .home-content { padding-right: 0; border-right: 0; }
  .home-sidebar { padding-left: 0; margin-top: 24px; border-top: 2px solid var(--rule-strong); padding-top: 20px; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-main { padding-right: 0; border-right: 0; }
  .lead-side { padding-left: 0; margin-top: 24px; border-top: 2px solid var(--rule-strong); padding-top: 20px; }
  .card-row { grid-template-columns: repeat(2, 1fr); }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}
@media (max-width: 560px) {
  .card-row, .list-grid { grid-template-columns: 1fr; }
  .mainnav .container { overflow-x: auto; flex-wrap: nowrap; }
  .topbar .top-links { display: none; }
}

/* ============== IMAGE CAPTIONS ============== */
.img-caption, figcaption, .article-cover figcaption {
  font-family: var(--sans);
  font-size: 12.5px;
  font-style: italic;
  color: var(--caption-color);
  line-height: 1.4;
  margin-top: 5px;
  padding: 4px 0;
  border-bottom: 1px solid var(--rule);
}


/* ============== PRINT ARCHIVE WIDGET ============== */
.archive-widget { margin-top: 28px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
.archive-widget-head {
  font-family: var(--sans); font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 3px solid var(--phoenix-red);
  padding-bottom: 6px; margin-bottom: 16px; display: inline-block;
}
.print-cards { display: flex; flex-direction: column; gap: 16px; }
.print-card {
  display: block; text-decoration: none; color: inherit;
  transition: transform .22s ease, box-shadow .22s ease;
  border-radius: 3px; overflow: hidden;
}
.print-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
.print-card-preview {
  width: 100%; background: #e8e3dc;
  position: relative; overflow: hidden;
  aspect-ratio: 17/22;   /* portrait page ratio */
  display: flex; align-items: center; justify-content: center;
}
.print-card-preview canvas {
  width: 100% !important; height: 100% !important;
  object-fit: cover; display: block;
}
.print-card-preview .pdf-loading {
  position: absolute; font-family: var(--sans); font-size: 12px;
  color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase;
}
.print-card-info {
  padding: 10px 0 4px;
}
.print-card-title {
  font-family: var(--serif); font-size: 14px; font-weight: 700;
  line-height: 1.3; margin: 0 0 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.print-card-meta {
  font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft);
}
/* Solo (single) print card: wider layout, no need to share space */
.print-card-solo .print-card-preview { max-height: 360px; aspect-ratio: auto; }
.print-card-solo .print-card-preview canvas { height: 100% !important; width: auto !important; max-width: 100%; margin: 0 auto; }
.archive-more {
  display: block; margin-top: 14px; font-family: var(--sans); font-size: 11px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--phoenix-red);
}
.archive-more:hover { text-decoration: underline; }

/* ============== EVENTS WIDGET ============== */
.events-widget { margin-top: 28px; border-top: 2px solid var(--rule-strong); padding-top: 16px; }
.events-widget-head {
  font-family: var(--sans); font-size: 13px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 3px solid var(--phoenix-red);
  padding-bottom: 6px; margin-bottom: 14px; display: inline-block;
}
/* Mini calendar */
.mini-cal { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 12.5px; margin-bottom: 16px; }
.mini-cal thead th {
  text-align: center; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: 11px; padding: 4px 2px;
  color: var(--ink-soft);
}
.mini-cal .cal-month-header td {
  text-align: center; font-weight: 700; font-size: 13px;
  padding: 6px 0 8px; color: var(--ink); letter-spacing: .05em;
  text-transform: uppercase;
}
.mini-cal td { text-align: center; padding: 3px 1px; }
.mini-cal .cal-day {
  width: 28px; height: 28px; line-height: 28px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 50%;
  font-size: 12.5px; cursor: default;
}
.mini-cal .cal-day.today { background: var(--phoenix-red); color: #fff; font-weight: 700; }
.mini-cal .cal-day.has-event { background: var(--phoenix-orange); color: #fff; font-weight: 700; cursor: pointer; }
.mini-cal .cal-day.has-event.today { background: var(--phoenix-ember); }
.mini-cal .cal-day.other-month { color: var(--rule); }
.mini-cal .cal-nav { cursor: pointer; color: var(--phoenix-red); font-weight: 700; font-size: 14px; user-select: none; }

/* Events list */
.event-item { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.event-item:last-child { border-bottom: 0; }
.event-date-badge {
  display: inline-block; background: var(--phoenix-red); color: #fff;
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 2px; margin-bottom: 4px;
}
.event-title { font-family: var(--serif); font-size: 14px; font-weight: 700; line-height: 1.25; margin: 0 0 3px; }
.event-title a:hover { color: var(--phoenix-red); }
.event-meta { font-family: var(--sans); font-size: 11.5px; color: var(--ink-soft); }
.events-more { display: block; margin-top: 12px; font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--phoenix-red); }
.events-more:hover { text-decoration: underline; }

/* Dark mode backgrounds */
body.dark .topbar { background: #111; }
body.dark .mainnav { background: var(--paper); }
body.dark .site-footer { background: var(--paper); }
body.dark .callout { background: #2a2520; }
body.dark .card { background: transparent; }
body.dark .issue-card { background: var(--paper-2); border-color: var(--rule); }
body.dark .mini-cal .cal-day.other-month { color: var(--rule); }
