/* ============================================================
   DISTILLED AI DIGEST — Brand Stylesheet
   Colors: Navy #1A2A4A | Gold #C9A84C | Cream #F5F0E8
   Fonts: Lora (headings) | Inter (body)
   ============================================================ */

:root {
  --navy:   #1A2A4A;
  --gold:   #C9A84C;
  --cream:  #F5F0E8;
  --white:  #FFFFFF;
  --text:   #1a1a2e;
  --muted:  #6b7280;
  --border: #e5e0d8;
  --card-bg:#FFFFFF;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(26,42,74,0.08);
  --shadow-hover: 0 8px 28px rgba(26,42,74,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.logo-badge {
  background: var(--gold);
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.btn-nav {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  transition: opacity 0.2s !important;
}
.btn-nav:hover { opacity: 0.88; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  padding: 96px 0 88px;
  color: var(--white);
}

.hero-inner { max-width: 720px; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero-title {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-large { padding: 16px 34px; font-size: 1rem; }

.btn-ghost {
  display: inline-block;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 0.95rem;
  border: 1.5px solid rgba(255,255,255,0.3);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

.hero-social-proof {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ---- SECTION LABELS ---- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.view-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.6;
  transition: opacity 0.2s;
}
.view-all:hover { opacity: 1; }

/* ---- FEATURED CARD ---- */
.featured { background: var(--white); }

.featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}

.featured-img img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 100%;
}

.featured-content .issue-meta { margin-bottom: 16px; }

.featured-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}

.featured-excerpt {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---- ISSUE META ---- */
.issue-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.issue-badge {
  background: var(--navy);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
}

.issue-date {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---- ISSUES GRID ---- */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}

.issue-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.2s;
  border: 1px solid var(--border);
}
.issue-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.issue-card-thumb img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.issue-card-body {
  padding: 20px 22px 24px;
}

.issue-card-body .issue-meta { margin-bottom: 12px; }

.issue-card-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin-bottom: 10px;
}

.issue-card-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.read-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.65;
  transition: opacity 0.2s;
}
.read-link:hover { opacity: 1; color: var(--gold); }

/* ---- ARCHIVE GRID ---- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.archive-grid .archive-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 14px);
  margin: 0 auto;
}

.archive-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.25s, transform 0.2s;
}
.archive-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

.archive-thumb img {
  width: 100%;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
}

.archive-thumb--placeholder {
  aspect-ratio: 1.9 / 1;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-placeholder {
  text-align: center;
}

.thumb-issue-num {
  display: block;
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

.thumb-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
}

.archive-body {
  padding: 22px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.archive-body .issue-meta { margin-bottom: 14px; }

.archive-title {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 10px;
}

.archive-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

/* ---- PAGE HEADER ---- */
.page-header {
  background: var(--navy);
  padding: 60px 0 56px;
  color: var(--white);
}

.page-title {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.page-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
}

/* ---- ABOUT ---- */
.about-inner { max-width: 700px; }

.about-block { margin-bottom: 0; }
.about-block p { color: #3a3a4a; line-height: 1.8; margin-bottom: 16px; font-size: 1.02rem; }
.about-block p:last-child { margin-bottom: 0; }

.about-heading {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.about-divider {
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

.about-cta-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.about-cta .btn-ghost {
  color: var(--navy);
  border-color: rgba(26,42,74,0.3);
}
.about-cta .btn-ghost:hover {
  border-color: var(--navy);
}

/* ---- SUBSCRIBE SECTION ---- */
.subscribe-section {
  background: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.subscribe-inner { max-width: 560px; margin: 0 auto; }

.subscribe-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.subscribe-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.subscribe-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* ---- FOOTER ---- */
.footer {
  background: #0f1b30;
  padding: 40px 0;
  border-top: 2px solid var(--gold);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .featured-card { grid-template-columns: 1fr; gap: 32px; }
  .issues-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 20px 24px; gap: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }
  .issues-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 48px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}
