:root {
  --bg: #f6f1ee;
  --surface: rgba(255, 250, 247, 0.9);
  --surface-solid: #fffaf7;
  --text: #2f2123;
  --muted: #6d5a5e;
  --maroon: #6d1f32;
  --maroon-dark: #48131f;
  --gold: #b8924f;
  --border: rgba(109, 31, 50, 0.16);
  --shadow: 0 18px 40px rgba(72, 19, 31, 0.12);
  --max-width: 1100px;
  --narrow-width: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(184, 146, 79, 0.08), transparent 35%),
    linear-gradient(180deg, #f8f4f1 0%, #f3ece8 100%);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
}

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

h1,
h2,
h3,
.eyebrow,
.panel-label {
  font-family: "Playfair Display", Georgia, serif;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), var(--narrow-width));
  margin: 0 auto;
}

.section {
  padding: 2.5rem 0;
}

.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(135deg, rgba(72, 19, 31, 0.82), rgba(109, 31, 50, 0.58)),
    url("../images/moroni-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at top right, rgba(184, 146, 79, 0.24), transparent 30%);
  pointer-events: none;
}

.hero-overlay {
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: #fff;
  text-align: left;
  padding: 2rem 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0d7a7;
}

.hero h1 {
  margin: 0 0 0.8rem;
  font-size: 2.4rem;
  line-height: 1.05;
}

.hero-text {
  max-width: 38rem;
  margin: 0 0 1rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.92);
}

.hero-reference {
  margin: 0;
  color: #f0d7a7;
  font-weight: 600;
}

.intro h2,
.reflection h2,
.section-heading h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--maroon-dark);
  font-size: 1.8rem;
}

.intro p,
.reflection p,
.section-heading p,
.liberty-panel p,
.lesson-card p {
  color: var(--muted);
}

.banner {
  padding-top: 0.5rem;
}

.liberty-panel {
  position: relative;
  background:
    linear-gradient(135deg, rgba(109, 31, 50, 0.95), rgba(72, 19, 31, 0.92));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.liberty-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(184, 146, 79, 0.14), transparent 45%);
  mix-blend-mode: screen;
  pointer-events: none;
}

.panel-label {
  position: relative;
  margin: 0 0 0.75rem;
  color: #f0d7a7;
  font-size: 1rem;
  z-index: 1;
}

.liberty-panel blockquote {
  position: relative;
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: #fff;
  z-index: 1;
}

.panel-reference {
  position: relative;
  margin-bottom: 1rem;
  color: #f0d7a7 !important;
  font-style: italic;
  z-index: 1;
}

.liberty-panel p {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.88);
}

.section-heading {
  text-align: center;
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.lesson-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lesson-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--maroon);
  font-size: 1.25rem;
}

.lesson-card:active,
.lesson-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(72, 19, 31, 0.16);
  border-color: rgba(109, 31, 50, 0.28);
}

.glass-panel {
  background: rgba(255, 250, 247, 0.62);
  border: 1px solid rgba(109, 31, 50, 0.12);
  border-radius: 1.25rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 78vh;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-text {
    font-size: 1.1rem;
  }

  .liberty-panel {
    padding: 2rem;
  }

  .liberty-panel blockquote {
    font-size: 1.8rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lesson-card {
    padding: 1.5rem;
  }
}

@media (min-width: 1000px) {
  .hero h1 {
    font-size: 4.8rem;
  }

  .hero-content {
    padding: 3rem 0;
  }

  .liberty-panel blockquote {
    max-width: 52rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .lesson-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(72, 19, 31, 0.18);
  }
}