/* ============================================================
   The News From Arkansas — main.css
   Replaces: foundation.min.css, wireframe-theme.min.css, main.css
   ============================================================ */

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

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

:root {
  --burgundy:    #701f2e;
  --burgundy-dk: #4e1520;
  --burgundy-lt: #9b3446;
  --cream:       #faf6f0;
  --cream-dk:    #f0e9df;
  --tan:         #d9c9b4;
  --brown:       #7a5c44;
  --text:        #2c1f17;
  --text-lt:     #6b5244;
  --gold:        #c8973a;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Lora', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dk); }
ul { padding-left: 1.5em; }
li { margin-bottom: 8px; }

/* ── TOP RIBBON ── */
.top-ribbon {
  background: var(--burgundy-dk);
  color: var(--tan);
  text-align: center;
  padding: 6px 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* ── HEADER ── */
.site-header {
  background: var(--burgundy);
  padding: 36px 20px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.02) 40px,
    rgba(255,255,255,0.02) 80px
  );
}
.site-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.02em;
  line-height: 1.15;
  position: relative;
  text-decoration: none;
  display: block;
}
.site-title em {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--tan);
  letter-spacing: 0.12em;
  margin-top: 4px;
  text-transform: uppercase;
}
.header-rule {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 16px auto 0;
  position: relative;
}

/* ── NAV ── */
.site-nav {
  background: var(--cream-dk);
  border-bottom: 2px solid var(--tan);
  border-top: 2px solid var(--tan);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}
.site-nav ul li { margin-bottom: 0; }
.site-nav ul li a {
  display: block;
  padding: 13px 16px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--burgundy-dk);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}
.site-nav ul li a:hover,
.site-nav ul li a.active {
  color: var(--burgundy);
  background: rgba(112,31,46,0.07);
}

/* ── PAGE WRAPPER (two-column) ── */
.page-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
  animation: fadeUp 0.6s ease both;
}

/* ── SINGLE COLUMN (no sidebar) ── */
.page-wrapper-single {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  animation: fadeUp 0.6s ease both;
}

/* ── BOOK SIDEBAR ── */
.book-sidebar {
  position: sticky;
  top: 80px;
  text-align: center;
}
.book-cover-wrap {
  display: inline-block;
}
.book-cover-wrap img {
  width: 100%;
  max-width: 220px;
  border-radius: 3px;
  box-shadow:
    4px 4px 0 var(--tan),
    8px 8px 0 rgba(112,31,46,0.15),
    12px 12px 24px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.book-cover-wrap:hover img {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow:
    4px 4px 0 var(--tan),
    10px 10px 0 rgba(112,31,46,0.15),
    16px 16px 32px rgba(0,0,0,0.3);
}
.buy-btn {
  display: inline-block;
  margin-top: 22px;
  padding: 11px 28px;
  background: var(--burgundy);
  color: var(--cream) !important;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.buy-btn:hover { background: var(--burgundy-dk); }
.sidebar-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-lt);
  font-style: italic;
  line-height: 1.5;
}

/* ── CONTENT AREA ── */
.section-label {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.content-main h1,
.page-wrapper-single h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--burgundy-dk);
  line-height: 1.25;
  margin-bottom: 20px;
}
.content-main h2,
.page-wrapper-single h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--burgundy-dk);
  margin: 28px 0 14px;
}
.content-main h3,
.page-wrapper-single h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--burgundy);
  margin: 22px 0 10px;
}
.content-main p,
.page-wrapper-single p {
  margin-bottom: 18px;
}
.page-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--burgundy-dk);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--tan);
}

/* ── DROP CAP ── */
.drop-cap::first-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4em;
  font-weight: 700;
  color: var(--burgundy);
  float: left;
  line-height: 0.75;
  margin: 6px 8px 0 0;
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 4px solid var(--burgundy);
  margin: 28px 0;
  padding: 16px 24px;
  background: var(--cream-dk);
  border-radius: 0 4px 4px 0;
}
.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.15em;
  color: var(--burgundy-dk);
  margin: 0;
}
.pull-quote cite {
  display: block;
  margin-top: 8px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13px;
  font-style: normal;
  color: var(--text-lt);
  letter-spacing: 0.05em;
}

/* ── DIVIDER ── */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
  color: var(--tan);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tan);
}
.divider span { font-size: 18px; color: var(--gold); }

/* ── CTA LINK ── */
.cta-link {
  display: inline-block;
  color: var(--burgundy);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--tan);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.cta-link:hover {
  color: var(--burgundy-dk);
  border-color: var(--burgundy);
}
.cta-link::after { content: ' →'; }

/* ── READER LINK ── */
.reader-link {
  color: var(--burgundy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  transition: border-color 0.2s;
}
.reader-link:hover {
  color: var(--burgundy-dk);
  border-color: var(--burgundy);
}

/* ── BOOK META (press page) ── */
.book-meta {
  background: var(--cream-dk);
  border: 1px solid var(--tan);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 24px 0;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 2;
}
.book-meta strong { color: var(--burgundy-dk); }

/* ── FOOTER ── */
.site-footer {
  background: var(--burgundy-dk);
  color: var(--tan);
  text-align: center;
  padding: 36px 24px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 13.5px;
  line-height: 2.2;
}
.site-footer a {
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s, color 0.2s;
}
.site-footer a:hover { border-color: var(--gold); color: var(--gold); }
.footer-rule {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto;
}

/* ── SLIDESHOW (pictures.php) ── */
.slideshow-container {
  max-width: 800px;
  position: relative;
  margin: 0 auto;
}
.mySlides { display: none; }
.mySlides img { width: 100%; border-radius: 4px; }
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.3s ease;
  border-radius: 3px;
  user-select: none;
  background: rgba(0,0,0,0.35);
  text-decoration: none;
}
.next { right: 0; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.8); }
.slide-caption {
  background: rgba(78,21,32,0.88);
  color: var(--cream);
  font-size: 16px;
  padding: 10px 16px;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  border-radius: 0 0 4px 4px;
  font-family: 'Source Sans 3', sans-serif;
}
.fade { animation: fadein 1.2s ease; }
@keyframes fadein {
  from { opacity: 0.4; }
  to   { opacity: 1; }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .page-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 18px 48px;
  }
  .book-sidebar {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .book-cover-wrap img { max-width: 180px; }
  .site-nav ul li a { padding: 10px 12px; font-size: 12px; }
}