/* ═══════════════════════════════════════════════════════
   Broke and Angry in America — Site Styles
   Fonts: Oswald (titles), EB Garamond (body)
   Colors: Navy #1B2A5A, Red #C0170F, Parchment #F2EBD9
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=EB+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Base ──────────────────────────────────────────── */
body {
  font-family: 'EB Garamond', Georgia, serif;
  color: #222;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
}

/* Hide title block on full-layout pages (landing page) */
.page-layout-full .quarto-title-block {
  display: none;
}

/* ── Navbar ────────────────────────────────────────── */
.navbar {
  padding: 0.6rem 1.5rem;
}

.navbar .navbar-container {
  display: flex;
  align-items: center;
}

.navbar .navbar-brand-container {
  margin-right: 1rem;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.navbar .navbar-logo {
  height: 28px !important;
  max-height: 28px !important;
}

.navbar .navbar-nav .nav-link {
  display: flex;
  align-items: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ── Page background ──────────────────────────────── */
#quarto-content {
  background: #F2EBD9;
}

/* ── Hero Section ─────────────────────────────────── */
.hero-section {
  background: #1B2A5A;
  color: #ffffff;
  padding: 4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem;
  border-radius: 16px;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  color: #ffffff;
  border-bottom: none;
  letter-spacing: -0.5px;
  line-height: 1;
}

.hero-subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
  margin-bottom: 1.2rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero-text p {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
}

/* Hook line */
.hook {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #C0170F;
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
}

.cover-img {
  max-width: 320px;
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary {
  background-color: #C0170F;
  border-color: #C0170F;
  color: #fff;
  padding: 0.7rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 24px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1.5rem;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: #e02a1f;
  border-color: #e02a1f;
  color: #fff;
}

.btn-outline-primary {
  border: 2px solid #1B2A5A;
  color: #1B2A5A;
  padding: 0.7rem 2rem;
  font-family: 'Oswald', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 24px;
  text-decoration: none;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.2s;
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: #1B2A5A;
  color: #F2EBD9;
}

/* ── Stats Section ────────────────────────────────── */
.stats-section {
  background-color: #ffffff;
  padding: 4rem 2rem;
  margin: 1rem;
  border-radius: 16px;
}

.stats-section .container {
  max-width: 960px;
  margin: 0 auto;
}

.section-heading {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: #1B2A5A;
  letter-spacing: 1px;
  border-bottom: none;
}

.stat-card {
  background: transparent;
  border-radius: 0;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: none;
  border-top: none;
  transition: none;
}

.stat-card:hover {
  transform: none;
}

.stat-number,
.stat-number p,
.stat-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 3.2rem !important;
  color: #C0170F !important;
  margin: 0 0 0.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.stat-card p {
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

/* ── Thesis Section ───────────────────────────────── */
.thesis-section {
  padding: 4rem 2rem;
  background: #F2EBD9;
  margin: 1rem;
  border-radius: 16px;
}

.thesis-section .container {
  max-width: 960px;
  margin: 0 auto;
}

.thesis-section > .container > p {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #444;
  line-height: 1.7;
}

.domain-card {
  background: rgba(255,255,255,0.6);
  border-left: 4px solid #C0170F;
  border-radius: 8px;
  padding: 1.5rem;
}

.domain-card h3 {
  font-family: 'Oswald', sans-serif;
  color: #1B2A5A;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.domain-card p {
  font-family: 'EB Garamond', serif;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}

/* ── Chapters Section ─────────────────────────────── */
.chapters-section {
  background-color: #ffffff;
  color: #333;
  padding: 4rem 2rem;
  text-align: left;
  margin: 1rem;
  border-radius: 16px;
}

.chapters-section .container {
  max-width: 700px;
  margin: 0 auto;
}

.chapters-section .section-heading {
  color: #1B2A5A;
  text-align: left;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #C0170F;
  padding-bottom: 0.5rem;
  display: inline-block;
}

.chapter-item {
  padding: 0.6rem 0;
}

.chapter-item p {
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.chapter-item strong {
  font-family: 'Oswald', sans-serif;
  color: #1B2A5A;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.chapters-section p {
  text-align: left;
}

/* ── Quote Section ────────────────────────────────── */
.quote-section {
  padding: 4rem 2rem;
  background: #1B2A5A;
  margin: 1rem;
  border-radius: 16px;
}

.quote-section .container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-section blockquote {
  border-left: none;
  font-family: 'EB Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(242,235,217,0.9);
  padding: 0;
}

.quote-section blockquote p:last-child {
  font-size: 1rem;
  font-style: normal;
  color: rgba(242,235,217,0.5);
  margin-top: 1rem;
}

/* ── Inner Pages (sample, about) ──────────────────── */
.inner-page #title-block-header {
  background: none;
  padding: 1.5rem 0 1rem;
  border-bottom: 2px solid #1B2A5A;
  margin-bottom: 1.5rem;
}

.inner-page #title-block-header h1.title {
  font-family: 'Oswald', sans-serif;
  color: #1B2A5A;
  font-size: 2rem;
  font-weight: 700;
  border-bottom: none;
  margin-bottom: 0.3rem;
}

.inner-page #title-block-header .subtitle {
  font-family: 'EB Garamond', serif;
  color: #666;
  font-size: 1.1rem;
}

.inner-page #title-block-header .description {
  display: none;
}

.inner-page .quarto-title-meta {
  display: none;
}

.inner-page main {
  max-width: 750px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.inner-page main h2 {
  font-family: 'Oswald', sans-serif;
  color: #1B2A5A;
  font-size: 1.4rem;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.inner-page main h3 {
  font-family: 'Oswald', sans-serif;
  color: #C0170F;
  font-size: 1.1rem;
  margin-top: 1.5rem;
}

.inner-page main p {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #333;
}

.inner-page main blockquote {
  border-left: 3px solid #C0170F;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
}

.inner-page main .callout {
  border-left-color: #C0170F;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 768px) {
  /* Remove beige gutters on mobile */
  #quarto-content {
    background: #ffffff !important;
  }

  #quarto-content > *,
  #quarto-content .page-columns,
  #quarto-content .column-page,
  #quarto-content .column-body,
  #quarto-content .page-rows-contents,
  #quarto-content .page-full,
  .page-layout-full .content,
  .page-layout-full #quarto-content,
  .page-layout-full #quarto-content > * {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }

  .hero-section {
    padding: 2rem 1.2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .hero-image {
    order: -1;
  }

  .cover-img {
    max-width: 180px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hook {
    font-size: 1.2rem;
  }

  .stats-section,
  .thesis-section,
  .chapters-section,
  .quote-section {
    padding: 1.5rem 1rem;
    margin: 0;
    border-radius: 0;
  }

  .chapters-section .container,
  .thesis-section .container,
  .stats-section .container,
  .quote-section .container {
    padding: 0 1rem;
  }

  .section-heading {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
  }

  /* Stats on mobile: centered cards */
  .stats-section .grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1rem;
  }

  .stat-card {
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border: none !important;
    border-top: none !important;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    width: 85%;
    max-width: 320px;
  }

  .stat-number,
  .stat-number p,
  .stat-card h3 {
    font-size: 2.2rem !important;
  }

  .stat-card p {
    font-size: 0.9rem;
  }

  .domain-card {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    text-align: left;
  }

  .domain-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
  }

  .domain-card p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .thesis-section > .container > p {
    font-size: 1rem;
    text-align: left;
  }

  .chapters-section .section-heading {
    font-size: 1.3rem;
  }

  .chapter-item p {
    font-size: 0.9rem;
  }

  .quote-section blockquote {
    font-size: 1.15rem;
  }

  .btn-primary,
  .btn-outline-primary {
    font-size: 0.85rem;
    padding: 0.6rem 1.5rem;
  }
}
