/* ═══════════════════════════════════════════════════════════
   THE RAF CHRONICLE — HOMEPAGE
   All rules scoped to #raf-homepage or #homepage-newsletter.
   Requires raf-chronicle-global.css to load first.
═══════════════════════════════════════════════════════════ */

/* ── Boxed layout ── */
/* Kadence boxed mode generates no meaningful CSS for this theme version.
   We create the boxed effect manually.
   body background #e8e5e0 (warm grey outer frame) is set in Kadence customiser.
   #wrapper is the actual site container div. */
#wrapper {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  background: #faf9f6;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 24px rgba(0,0,0,0.08);
}

/* ── KADENCE OVERRIDES ─────────────────────────────────── */
/* Boxed mode OFF — we handle all width constraints ourselves */
#inner-wrap,
#inner-wrap.wrap {
  padding: 0 !important;
  max-width: none !important;
}

#raf-homepage {
  padding: 0;
}

#raf-homepage .page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Reset Kadence's link and heading defaults inside our scope */
#raf-homepage a {
  color: inherit;
  text-decoration: none;
}

#raf-homepage h1,
#raf-homepage h2,
#raf-homepage h3,
#raf-homepage p {
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════════════════════════════
   1. TODAY STRIP
   Full-width ink bar. RAF Blue date pill. Era gradient bottom.
════════════════════════════════════════════════════════ */
#raf-homepage .today-strip {
  background: var(--ink);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 40px;
  position: relative;
  margin-left: -40px;
  margin-right: -40px;
}

#raf-homepage .today-label {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: var(--raf);
  padding: 4px 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

#raf-homepage .today-text {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 300;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#raf-homepage .today-text strong {
  color: rgba(255,255,255,0.82);
  font-weight: 500;
}

#raf-homepage .today-link {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  margin-left: auto;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
#raf-homepage .today-link:hover { opacity: 0.75; }

/* ════════════════════════════════════════════════════════
   2. HERO
   Dark atmospheric section — matches YouTube banner energy.
   Full width (no .page-wrap) so the dark bg bleeds edge to edge.
   Inner content respects the 1100px max-width via padding.
════════════════════════════════════════════════════════ */
#raf-homepage .hero {
  background: #0a0c12;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 300px;
  padding: 0;
  margin-left: -40px;
  margin-right: -40px;
}

/* RAF blue radial glow — left */
#raf-homepage .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(0,48,135,0.28) 0%, transparent 52%),
    radial-gradient(ellipse at 85% 30%, rgba(26,26,46,0.55) 0%, transparent 52%);
  pointer-events: none;
}

/* Dot grid texture */
#raf-homepage .hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Extend dark bg to full browser width */
#raf-homepage .hero-outer {
  background: #0a0c12;
  position: relative;
}

#raf-homepage .hero-main {
  padding: 44px 48px 44px 40px;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#raf-homepage .hero-type-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

#raf-homepage .hero-type-pill {
  font-family: 'Jost', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--ink);
  padding: 4px 11px;
}

#raf-homepage .hero-era-tag {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

#raf-homepage .hero-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(155deg, #1a2030 0%, #0d1520 100%);
  margin-bottom: 26px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

#raf-homepage .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}
/* White overlay on hover — no zoom */
#raf-homepage .hero-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
#raf-homepage .hero-main:hover .hero-img-wrap::after {
  background: rgba(255,255,255,0.08);
}

#raf-homepage .hero-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 280px;
  background: linear-gradient(155deg, #1a2030 0%, #0d1520 100%);
}

#raf-homepage .hero-date-line {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#raf-homepage .hero-date-line::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

#raf-homepage .hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 14px;
}

#raf-homepage .hero-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
  margin-bottom: 22px;
}

#raf-homepage .hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

#raf-homepage .hero-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

#raf-homepage .read-link {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s;
}
#raf-homepage .read-link:hover { gap: 12px; }

/* Hero sidebar */
#raf-homepage .hero-sidebar {
  padding: 44px 40px 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

#raf-homepage .sidebar-section-label {
  font-family: 'Jost', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: block;
  margin-bottom: 0;
}

#raf-homepage .otd-item {
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 11px;
  align-items: start;
  color: inherit;
  transition: opacity 0.15s;
}
#raf-homepage .otd-item:hover { opacity: 0.7; }
#raf-homepage .otd-item:last-of-type { border-bottom: none; }

/* Year numbers — intentionally RAF Blue (OTD date context) */
#raf-homepage .otd-year {
  font-family: 'Cormorant', serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--raf);
  line-height: 1.1;
  padding-top: 1px;
}

#raf-homepage .otd-item-title {
  font-family: 'Cormorant', serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
}

#raf-homepage .otd-item-desc {
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  color: rgba(255,255,255,0.32);
  line-height: 1.5;
  font-weight: 300;
}

#raf-homepage .sidebar-view-all {
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
#raf-homepage .sidebar-view-all:hover { opacity: 1; }

/* ════════════════════════════════════════════════════════
   3. SECTION HEAD — homepage variant
════════════════════════════════════════════════════════ */
#raf-homepage .section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 44px 0 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0;
}

#raf-homepage .section-head h2 {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}

#raf-homepage .section-head-link {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s;
}
#raf-homepage .section-head-link:hover { gap: 9px; }

/* ════════════════════════════════════════════════════════
   4. LATEST ARTICLES
════════════════════════════════════════════════════════ */
#raf-homepage .articles-wrap {
  border-bottom: 1px solid var(--faint);
}

#raf-homepage .articles-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

/* Lead article — left column */
#raf-homepage .article-lead {
  padding: 28px 44px 28px 0;
  border-right: 1px solid var(--faint);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

#raf-homepage .article-lead-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: linear-gradient(155deg, #1a2030 0%, #0d1520 100%);
  margin-bottom: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
/* White overlay — appears on hover */
#raf-homepage .article-lead-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.25s ease;
  pointer-events: none;
}
#raf-homepage .article-lead:hover .article-lead-img::after {
  background: rgba(255,255,255,0.1);
}

/* Era tag — gold, all-caps. border:none kills Kadence content.min.css loop-entry div borders */
#raf-homepage .article-tag {
  font-family: 'Jost', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  display: block;
  border: none !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
}


/* ── Era-specific tag colours ────────────────────────────
   Classes match actual WordPress taxonomy slugs:
   first-world-war, formation-interwar, second-world-war,
   cold-war, modern-raf, falklands-gulf
──────────────────────────────────────────────────────── */
#raf-homepage .article-tag.era-first-world-war   { color: #a0522d; }
#raf-homepage .article-tag.era-formation-interwar { color: #b8956a; }
#raf-homepage .article-tag.era-second-world-war  { color: #5a8a7a; }
#raf-homepage .article-tag.era-cold-war          { color: #4a90c4; }
#raf-homepage .article-tag.era-modern-raf        { color: #4a4a6e; }
#raf-homepage .article-tag.era-falklands-gulf    { color: #6a9a6a; }

#raf-homepage .article-lead h3 {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  transition: color 0.2s;
}
#raf-homepage .article-lead:hover h3 { color: #a8a6a0; }

#raf-homepage .article-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  color: var(--mid);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
  margin-bottom: 14px;
}

#raf-homepage .article-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  color: var(--light);
  padding-top: 12px;
  border-top: 1px solid var(--faint);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
}

#raf-homepage .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex-shrink: 0;
  display: inline-block;
}

/* Right column — secondary articles */
#raf-homepage .articles-right {
  padding-left: 44px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
}

#raf-homepage .article-list-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--faint);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
#raf-homepage .article-list-item:last-child { border-bottom: none; padding-bottom: 0; }
#raf-homepage .article-list-item:first-child { padding-top: 0; }

#raf-homepage .article-list-item h3 {
  font-family: 'Cormorant', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
#raf-homepage .article-list-item:hover h3 { color: #a8a6a0; }

#raf-homepage .article-list-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
  font-weight: 300;
}

#raf-homepage .article-list-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════════
   5. FEATURED LONG READ — Dark atmospheric panel
   Matches the hero's dark energy. Full-width dark bg,
   image left, content right, era strip bottom.
════════════════════════════════════════════════════════ */

/* Outer wrapper — constrained to match page content width */
#raf-homepage .longread-section {
  background: #0a0c12;
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
}

/* RAF blue atmospheric glow */
#raf-homepage .longread-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 40%, rgba(0,48,135,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 70%, rgba(26,26,46,0.5) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid texture */
#raf-homepage .longread-section::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* Era strip along the bottom */
#raf-homepage .longread-era-strip {
  height: 3px;
  background: linear-gradient(to right,
    #7a3b1e 0%  20%,
    #4a3728 20% 40%,
    #2F4F4F 40% 60%,
    #1a3a5c 60% 80%,
    #1a1a2e 80% 100%
  );
  opacity: 0.7;
  position: relative;
  z-index: 2;
}

/* Hide any section-head inside longread-section */
#raf-homepage .longread-section > .section-head {
  display: none;
}

/* Inner link — grid layout inside page-wrap constraints */
#raf-homepage .longread-inner {
  display: grid;
  grid-template-columns: 52% 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

#raf-homepage .longread-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(155deg, #1a2030 0%, #0d1520 100%);
  margin: 44px 0;
}

#raf-homepage .longread-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

/* White overlay on hover */
#raf-homepage .longread-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
#raf-homepage .longread-inner:hover .longread-img-wrap::after {
  background: rgba(255,255,255,0.07);
}

#raf-homepage .longread-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: linear-gradient(155deg, #1a2030 0%, #0d1520 100%);
}

/* Content — right column, dark text-on-dark */
#raf-homepage .longread-content {
  padding: 0 0 0 52px;
  display: flex;
  flex-direction: column;
}

/* "Long Read" pill — crimson filled, like hero type pill */
#raf-homepage .longread-pill {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--crimson);
  color: #fff;
  padding: 4px 11px;
  margin-bottom: 20px;
  align-self: flex-start;
}

#raf-homepage .longread-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(22px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
  flex: 1;
  transition: color 0.2s;
}
#raf-homepage .longread-inner:hover .longread-title {
  color: rgba(255,255,255,0.65);
}

#raf-homepage .longread-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 26px;
}

#raf-homepage .longread-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
}

#raf-homepage .longread-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10.5px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.04em;
}

#raf-homepage .longread-link {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.2s;
}
#raf-homepage .longread-inner:hover .longread-link { gap: 12px; }

/* ════════════════════════════════════════════════════════
   6. BROWSE THE ARCHIVE
════════════════════════════════════════════════════════ */
#raf-homepage .browse-section {
  padding-bottom: 56px;
}

#raf-homepage .browse-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-right: none;
}

#raf-homepage .browse-cell {
  padding: 24px 20px 22px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--paper2);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}
#raf-homepage .browse-cell:hover { background: var(--paper); }

/* Gold reveal bar on top edge */
#raf-homepage .browse-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
#raf-homepage .browse-cell:hover::before { transform: scaleX(1); }

#raf-homepage .browse-label {
  font-family: 'Jost', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

#raf-homepage .browse-title {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 4px;
}

#raf-homepage .browse-desc {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--mid);
  line-height: 1.55;
  font-weight: 300;
}

#raf-homepage .browse-count {
  font-family: 'Cormorant', serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--line);
  line-height: 1;
  margin-top: auto;
  padding-top: 14px;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
#raf-homepage .browse-cell:hover .browse-count { color: var(--light); }

#raf-homepage .browse-arrow {
  font-size: 13px;
  color: var(--light);
  display: block;
  transition: transform 0.2s, color 0.2s;
}
#raf-homepage .browse-cell:hover .browse-arrow {
  transform: translateX(4px);
  color: var(--gold);
}

/* ════════════════════════════════════════════════════════
   7. NEWSLETTER
   Dark ink section — sits outside .page-wrap so bg bleeds.
════════════════════════════════════════════════════════ */
#homepage-newsletter {
  background: var(--ink);
  padding: 56px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Decorative concentric circle watermarks */
#homepage-newsletter::before {
  content: '';
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  width: 380px; height: 380px;
  border-radius: 50%;
  border: 1px solid rgba(201,150,42,0.08);
  pointer-events: none;
}
#homepage-newsletter::after {
  content: '';
  position: absolute;
  right: 11%; top: 50%;
  transform: translateY(-50%);
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(201,150,42,0.05);
  pointer-events: none;
}

#homepage-newsletter .newsletter-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

#homepage-newsletter .newsletter-copy {
  text-align: left;
}

#homepage-newsletter .newsletter-copy h2 {
  font-family: 'Cormorant', serif;
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

/* Gold eyebrow above heading */
#homepage-newsletter .newsletter-copy h2::before {
  content: 'The RAF Chronicle Newsletter';
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.85;
}

#homepage-newsletter .newsletter-copy p {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  font-weight: 300;
}

/* Form */
#homepage-newsletter .newsletter-form-wrap {
  width: 100%;
}

#homepage-newsletter .mailpoet_form,
#homepage-newsletter .mailpoet_form form {
  display: flex;
  flex-direction: column;
  width: 100%;
  float: none;
}

#homepage-newsletter .mailpoet_form .mailpoet_form_field,
#homepage-newsletter .mailpoet_form .mailpoet_paragraph,
#homepage-newsletter .mailpoet_form div.mailpoet_paragraph,
#homepage-newsletter .mailpoet_form p {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  clear: both;
}

#homepage-newsletter .mailpoet_form input[type="text"],
#homepage-newsletter .mailpoet_form input[type="email"] {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-bottom: none;
  border-radius: 0;
  padding: 13px 16px;
  width: 100%;
  display: block;
  box-sizing: border-box;
  outline: none;
  -webkit-appearance: none;
  transition: background 0.15s, border-color 0.15s;
}

#homepage-newsletter .mailpoet_form input[type="email"] {
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

#homepage-newsletter .mailpoet_form input[type="text"]:focus,
#homepage-newsletter .mailpoet_form input[type="email"]:focus {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,150,42,0.45);
  outline: none;
}

#homepage-newsletter .mailpoet_form input::placeholder {
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* Gold submit button */
#homepage-newsletter .mailpoet_submit,
#homepage-newsletter .mailpoet_form input[type="submit"],
#homepage-newsletter .mailpoet_form button[type="submit"] {
  font-family: 'Jost', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  border: none;
  border-radius: 0;
  padding: 14px 22px;
  cursor: pointer;
  width: 100%;
  display: block;
  box-sizing: border-box;
  margin-top: 10px;
  -webkit-appearance: none;
  transition: opacity 0.15s;
}
#homepage-newsletter .mailpoet_submit:hover,
#homepage-newsletter .mailpoet_form input[type="submit"]:hover,
#homepage-newsletter .mailpoet_form button[type="submit"]:hover {
  opacity: 0.88;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max 768px)
════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Wrapper */
  #wrapper {
    box-shadow: none;
  }

  /* Today strip */
  #raf-homepage .today-strip {
    padding: 10px 24px;
  }
  #raf-homepage .today-text {
    display: none;
  }

  /* Hero — stack vertically */
  #raf-homepage .hero {
    grid-template-columns: 1fr;
    margin-left: -24px;
    margin-right: -24px;
  }
  #raf-homepage .hero-main {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #raf-homepage .hero-sidebar {
    padding: 24px 24px 32px;
  }
  #raf-homepage .hero-title {
    font-size: clamp(24px, 5vw, 38px);
  }

  /* Section head */
  #raf-homepage .section-head,
  #raf-homepage .page-wrap {
    padding-left: 24px;
    padding-right: 24px;
  }

  /* Latest articles — stack */
  #raf-homepage .articles-layout {
    grid-template-columns: 1fr;
  }
  #raf-homepage .article-lead {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--faint);
  }
  #raf-homepage .articles-right {
    padding-left: 0;
    padding-top: 0;
  }

  /* Long read — stack */
  #raf-homepage .longread-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }
  #raf-homepage .longread-img-wrap {
    margin: 32px 0 0;
    aspect-ratio: 16/9;
  }
  #raf-homepage .longread-content {
    padding: 28px 0 32px;
  }

  /* Browse grid — 2 columns on tablet */
  #raf-homepage .browse-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    border-right: 1px solid var(--line) !important;
  }
  #raf-homepage .browse-cell:nth-child(5) {
    grid-column: span 2;
    border-top: 1px solid var(--line);
  }

  /* Newsletter */
  #homepage-newsletter .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max 480px)
════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  #raf-homepage .page-wrap,
  #raf-homepage .today-strip,
  #homepage-newsletter .newsletter-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero */
  #raf-homepage .hero {
    margin-left: -20px;
    margin-right: -20px;
  }
  #raf-homepage .hero-main {
    padding: 24px 20px;
  }
  #raf-homepage .hero-sidebar {
    padding: 20px 20px 28px;
  }
  #raf-homepage .hero-title {
    font-size: clamp(22px, 6vw, 32px);
  }

  /* OTD sidebar items — show fewer */
  #raf-homepage .otd-item:nth-child(n+4) {
    display: none;
  }

  /* Articles */
  #raf-homepage .article-lead h3 {
    font-size: 22px;
  }
  #raf-homepage .article-list-item h3 {
    font-size: 18px;
  }

  /* Long read */
  #raf-homepage .longread-inner {
    padding: 0 20px;
  }
  #raf-homepage .longread-title {
    font-size: clamp(20px, 5.5vw, 30px) !important;
  }
  #raf-homepage .longread-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Browse — single column on mobile */
  #raf-homepage .browse-grid {
    grid-template-columns: 1fr !important;
    border-right: none !important;
  }
  #raf-homepage .browse-cell:nth-child(5) {
    grid-column: span 1;
    border-top: none;
  }
  #raf-homepage .browse-cell {
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 16px 20px !important;
    gap: 0 !important;
  }
  #raf-homepage .browse-count {
    display: none !important;
  }
  #raf-homepage .browse-desc {
    display: none !important;
  }
  #raf-homepage .browse-title {
    font-size: 18px !important;
    margin-bottom: 0 !important;
  }
  #raf-homepage .browse-label {
    display: none !important;
  }
  #raf-homepage .browse-arrow {
    margin-left: auto !important;
    margin-top: 0 !important;
  }

  /* Section heads */
  #raf-homepage .section-head {
    padding-top: 32px !important;
    padding-bottom: 14px !important;
  }
}

/* ════════════════════════════════════════════════════════
   HERO ERA STRIP + DARK TAIL
   Matches the pattern used on all other dark hero pages.
════════════════════════════════════════════════════════ */
#raf-homepage .hp-hero-era-strip {
  height: 3px;
  background: linear-gradient(to right,
    #7a3b1e 0% 20%, #4a3728 20% 40%,
    #2F4F4F 40% 60%, #1a3a5c 60% 80%, #1a1a2e 80% 100%);
  margin-left: -40px;
  margin-right: -40px;
}

#raf-homepage .hp-hero-dark-tail {
  height: 32px;
  background: #0a0c12;
  margin-left: -40px;
  margin-right: -40px;
}

/* ════════════════════════════════════════════════════════
   ABOUT / INTRO PANEL
   Dark, atmospheric. Sits between hero tail and latest articles.
   No era strip at bottom — flows directly into paper section.
════════════════════════════════════════════════════════ */
#raf-homepage .hp-about-panel {
  background: #1e1e22 !important;
  position: relative;
  overflow: hidden;
}

/* Dot grid texture */
#raf-homepage .hp-about-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Atmospheric glow — warm neutral only, no blue tint */
#raf-homepage .hp-about-panel::after {
  content: '';
  position: absolute;
  left: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.015) 0%, transparent 70%);
  pointer-events: none;
}

#raf-homepage .hp-about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 40px 52px;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Copy column ── */
#raf-homepage .hp-about-eyebrow {
  font-family: 'Jost', sans-serif !important;
  font-size: 8.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.38em !important;
  text-transform: uppercase !important;
  color: var(--gold) !important;
  opacity: 0.8;
  margin-bottom: 20px !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  line-height: 1 !important;
}
#raf-homepage .hp-about-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

#raf-homepage .hp-about-statement {
  font-family: 'Cormorant', serif;
  font-size: 24px;
  font-weight: 300;
  color: rgba(255,255,255,0.82);
  line-height: 1.45;
  letter-spacing: 0.005em;
  margin-bottom: 18px !important;
  max-width: 620px;
}

#raf-homepage .hp-about-body {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.8;
  max-width: 600px;
  margin-bottom: 32px !important;
}

/* ── Era chips ── */
#raf-homepage .hp-era-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#raf-homepage .hp-era-chip {
  font-family: 'Jost', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid;
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
#raf-homepage .hp-era-chip:hover { opacity: 0.7; }

#raf-homepage .hp-era-chip.era-ww1    { color: #a0522d; border-color: rgba(160,82,45,0.4); }
#raf-homepage .hp-era-chip.era-inter  { color: #b8956a; border-color: rgba(184,149,106,0.4); }
#raf-homepage .hp-era-chip.era-ww2    { color: #5a8a7a; border-color: rgba(90,138,122,0.4); }
#raf-homepage .hp-era-chip.era-cold   { color: #4a90c4; border-color: rgba(74,144,196,0.4); }
#raf-homepage .hp-era-chip.era-modern { color: #8888b0; border-color: rgba(136,136,176,0.4); }

/* ── Stats column ── */
#raf-homepage .hp-about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-left: 1px solid rgba(255,255,255,0.07);
  padding-left: 48px;
  padding-top: 8px;
}

#raf-homepage .hp-about-stat {
  text-align: right;
}

#raf-homepage .hp-about-stat-num {
  font-family: 'Cormorant', serif;
  font-size: 44px;
  font-weight: 700;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
}

#raf-homepage .hp-about-stat-label {
  font-family: 'Jost', sans-serif;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  display: block;
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #raf-homepage .hp-about-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 36px;
  }
  #raf-homepage .hp-about-stats {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-left: 0;
    padding-top: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px 32px;
    justify-content: center;
  }
  #raf-homepage .hp-about-stat { text-align: center; }
  #raf-homepage .hp-about-statement { font-size: 20px; }
}

/* Bottom padding on last article before longread section */
#raf-homepage .articles-wrap {
  padding-bottom: 48px;
}
