/* === Pamphlets_Web — Driftless Rivers Coalition === */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --navy: #1B3A5C;
  --navy-deep: #0F2640;
  --navy-light: #2A5580;
  --earth: #8B6914;
  --earth-light: #C4973B;
  --warm-white: #FAFAF7;
  --warm-gray: #F0EDE6;
  --cool-gray: #E4E1DA;
  --body-text: #2D2D2D;
  --body-light: #555555;
  --rule: #D0CCC4;
  --page-max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body-text);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* === NAV === */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 3px solid var(--earth);
  padding: 0 2rem;
}
.site-nav .nav-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.site-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-nav .nav-brand img {
  height: 36px;
  width: auto;
}
.site-nav .nav-brand span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.site-nav .nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}
.site-nav .nav-links a {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--earth-light);
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-bottom: 3px solid var(--earth);
  }
  .site-nav .nav-links.open { display: flex; }
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: #fff;
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139,105,20,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.hero-inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--earth-light);
}
.hero .subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  max-width: 750px;
  margin: 0 auto 2.5rem;
}
.hero .cta-row {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--earth);
  color: #fff;
}
.btn-primary:hover { background: var(--earth-light); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.5);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--earth-light);
  color: var(--earth-light);
}

/* === SECTIONS === */
.section {
  padding: 4rem 2rem;
  max-width: var(--page-max);
  margin: 0 auto;
}
.section-alt {
  background: var(--warm-gray);
}
.section-alt .section {
  /* already has max-width */
}

.section-heading {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--earth);
  margin-bottom: 0.6rem;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 1.5rem;
}
h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* === BOOK CARDS === */
.book-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}
.book-card:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.book-card .cover {
  flex-shrink: 0;
  width: 140px;
}
.book-card .cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.book-card .card-body { flex: 1; }
.book-card .card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}
.book-card .card-body .author {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  color: var(--body-light);
  margin-bottom: 0.8rem;
}

@media (max-width: 600px) {
  .book-card { flex-direction: column; gap: 1rem; }
  .book-card .cover { width: 120px; }
}

/* === DEPARTMENT GRID === */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.6rem;
  margin: 1.5rem 0;
}
.dept-pill {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 3px;
  text-align: center;
}

/* === BLOCKQUOTE === */
blockquote {
  border-left: 4px solid var(--earth);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(139,105,20,0.05);
  font-style: italic;
  color: var(--body-light);
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

/* === HORIZONTAL RULE === */
.divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2rem 0;
}

/* === FOOTER === */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 2rem;
  text-align: center;
}
.site-footer .footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.site-footer img {
  height: 48px;
  margin-bottom: 1rem;
  opacity: 0.7;
}
.site-footer p {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  line-height: 1.6;
}
.site-footer a {
  color: var(--earth-light);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }

/* === UTILITY === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.text-muted { color: var(--body-light); }
.text-small { font-size: 0.9rem; }
