/*
 * ============================================================
 *  Aero Connections Magazine — Shared Stylesheet
 *  AeroSports Connection | https://www.aerosports.org
 *
 *  Used by:
 *    aero_connections_magazine_may2026.html
 *    aero_connections_magazine_march2026.html
 *    aero_connections_magazine_january2026.html
 *    aero_connections_magazine_november2025.html
 *    aero_connections_magazine_september2025.html
 *
 *  To link in each HTML file, replace the <style>...</style>
 *  block with:
 *    <link rel="stylesheet" href="styles.css">
 *
 *  Fonts (keep these <link> tags in each HTML <head>):
 *    <link rel="preconnect" href="https://fonts.googleapis.com">
 *    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 *    <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Source+Sans+3:wght@300;400;600;700&family=Bebas+Neue&display=swap" rel="stylesheet">
 * ============================================================
 */

/* ───── CSS CUSTOM PROPERTIES ───── */
:root {
  --sky: #0b6ea6;
  --sky-dark: #084f78;
  --sky-light: #e8f4fc;
  --sky-mid: #5aacde;
  --cloud: #f7fbfd;
  --ink: #0f1724;
  --ink-muted: #4a5568;
  --ink-faint: #8fa3b0;
  --paper: #fffef9;
  --paper-warm: #f5f0e8;
  --accent: #e85d2f;
  --accent-light: #fdf0eb;
  --gold: #c49a2a;
  --rule: rgba(11,110,166,0.12);
  --max: 1200px;
}

/* ───── RESET ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--paper-warm);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ───── MASTHEAD ───── */
.masthead {
  background: var(--sky-dark);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  padding: 0;
  position: relative;
  overflow: hidden;
}

.masthead::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,79,120,0.9) 0%, rgba(11,110,166,0.6) 100%);
  pointer-events: none;
}

.masthead-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.masthead-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

.masthead-top a {
  color: rgba(255,255,255,0.7);
  margin-left: 18px;
  transition: color .15s;
}
.masthead-top a:hover { color: white; }

.masthead-main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 0 16px;
}

.masthead-logo {
  height: 60px;
  width: auto;
  flex-shrink: 0;
}

.masthead-wordmark { flex: 1; }

.wordmark-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  color: white;
  letter-spacing: 2px;
  line-height: 1;
}

.wordmark-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 3px;
}

.masthead-issue {
  text-align: right;
  color: rgba(255,255,255,0.6);
}

.masthead-issue .issue-month {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: white;
  letter-spacing: 1px;
  display: block;
  line-height: 1;
}

.masthead-issue .issue-num {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: 4px;
}

/* ───── NAV ───── */
.site-nav {
  background: var(--sky);
  border-top: 3px solid var(--accent);
}

.site-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 12px 16px;
  display: inline-block;
  transition: background .15s, color .15s;
}

.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,0.12);
  color: white;
}

.site-nav a.active {
  border-bottom: 3px solid white;
}

/* ───── HERO BANNER ───── */
.hero-banner {
  background: var(--sky-dark);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.hero-banner::after {
  content: '✈';
  position: absolute;
  right: 60px;
  bottom: -10px;
  font-size: 200px;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  max-width: 640px;
}

.hero-title em {
  color: var(--sky-mid);
  font-style: normal;
}

.hero-subtitle {
  margin-top: 12px;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 480px;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--sky-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: transform .15s, box-shadow .15s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.cover-thumb { flex-shrink: 0; }

.cover-thumb img {
  height: 300px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.45);
  border: 3px solid rgba(255,255,255,0.2);
  display: block;
}

/* ───── ISSUE THEME BANNER (September special issue) ───── */
.theme-banner {
  background: linear-gradient(90deg, var(--sky-light), white);
  border-bottom: 1px solid var(--rule);
  padding: 10px 32px;
}

.theme-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--sky-dark);
  font-weight: 600;
}

.theme-pill {
  background: var(--sky);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ───── MAIN LAYOUT ───── */
.page-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: start;
}

/* ───── SECTION HEADERS ───── */
.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--sky-dark);
}

.section-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--sky), transparent);
}

/* ───── FEATURED CARD ───── */
.featured-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: transform .15s, box-shadow .15s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(11,110,166,0.12);
}

.featured-thumb {
  background: linear-gradient(135deg, var(--sky-dark) 0%, var(--sky-mid) 100%);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 90px;
  position: relative;
  overflow: hidden;
}

.featured-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, rgba(255,255,255,0.08) 0%, transparent 60%);
}

.featured-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.featured-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
}

.featured-body p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}

.article-author {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.article-page {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  background: var(--sky-light);
  padding: 4px 10px;
  border-radius: 20px;
}

.read-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--sky);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  transition: gap .15s;
}
.read-link:hover { gap: 9px; }

/* ───── ARTICLE GRID — 2 col ───── */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.article-card {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(11,110,166,0.1);
}

.article-thumb {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, var(--sky-light), white);
  border-bottom: 1px solid var(--rule);
  color: var(--sky-dark);
}

.article-body {
  padding: 14px 16px 16px;
}

.article-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 6px;
}

.article-body p {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* ───── WIDE CARDS ───── */
.article-wide {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--rule);
  overflow: hidden;
  margin-bottom: 18px;
  transition: transform .15s, box-shadow .15s;
}
.article-wide:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(11,110,166,0.08);
}

.article-wide .article-thumb {
  width: 110px;
  height: auto;
  flex-shrink: 0;
  border-bottom: none;
  border-right: 1px solid var(--rule);
  font-size: 36px;
}

.article-wide .article-body {
  flex: 1;
}

/* ───── SIDEBAR ───── */
.ac-sidebar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(13,30,40,0.07);
  border: 1px solid var(--rule);
  margin-bottom: 24px;
  position: sticky;
  top: 20px;
}

.ac-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.ac-badge {
  background: var(--sky);
  color: white;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ac-title {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.ac-sub {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 2px;
}

.ac-divider {
  height: 1px;
  background: linear-gradient(to right, var(--sky-light), transparent);
  margin: 2px 0 12px;
}

.ac-list { list-style: none; padding: 0; }

.ac-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 6px;
  border-radius: 8px;
  transition: background .12s;
  cursor: pointer;
}
.ac-item:hover { background: var(--sky-light); }

.ac-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: linear-gradient(180deg, var(--cloud), rgba(11,110,166,0.05));
  border: 1px solid var(--rule);
  color: var(--sky-dark);
}

.ac-meta { flex: 1; min-width: 0; }
.ac-meta h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}
.ac-meta p {
  font-size: 11px;
  color: var(--ink-faint);
  margin: 3px 0 0;
  line-height: 1.4;
}

.ac-page {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ───── PROMO CARD ───── */
.promo-card {
  background: linear-gradient(135deg, var(--sky-dark), var(--sky));
  border-radius: 12px;
  padding: 22px 20px;
  color: white;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '✈';
  position: absolute;
  right: 12px;
  bottom: -8px;
  font-size: 80px;
  opacity: 0.07;
  line-height: 1;
}

.promo-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-card p {
  font-size: 13px;
  opacity: 0.8;
  line-height: 1.5;
  margin-bottom: 16px;
}

.promo-btn {
  display: inline-block;
  background: white;
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 5px;
  letter-spacing: 0.3px;
  transition: opacity .15s;
}
.promo-btn:hover { opacity: 0.9; }

/* ───── ARCHIVE WIDGET ───── */
.archive-widget {
  background: white;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  margin-bottom: 24px;
}

.widget-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--sky-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sky-light);
}

.archive-list { list-style: none; }
.archive-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.archive-list li:last-child { border-bottom: none; }
.archive-list a {
  color: var(--ink-muted);
  font-weight: 600;
  transition: color .15s;
}
.archive-list a:hover { color: var(--sky); }
.archive-list .arch-year {
  font-size: 11px;
  color: var(--ink-faint);
}

/* ───── FOOTER ───── */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 36px 32px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: white;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color .15s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: var(--max);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}

/* ───── RESPONSIVE ───── */
@media (max-width: 900px) {
  .page-body {
    grid-template-columns: 1fr;
    padding: 24px 20px 48px;
  }
  .featured-card { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 160px; }
  .ac-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .wordmark-title { font-size: 36px; }
  .theme-banner { padding: 10px 20px; }
}

@media (max-width: 640px) {
  .article-grid { grid-template-columns: 1fr; }
  .site-nav-inner { flex-wrap: wrap; }
  .site-nav a { padding: 9px 12px; font-size: 12px; }
  .masthead-main { flex-wrap: wrap; gap: 12px; }
  .masthead-issue { flex: none; width: 100%; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-banner::after { display: none; }
  .footer-bottom { flex-direction: column; gap: 6px; }
  .cover-thumb { display: none; }
}

@media print {
  .site-nav, .hero-banner, .theme-banner, .promo-card, .site-footer { display: none; }
  .page-body { grid-template-columns: 1fr 280px; }
  .article-card, .featured-card { box-shadow: none; }
}
