/* Wizbits From Dad — Main Stylesheet */
/* Warm, nostalgic, personal feel */

:root {
  --cream:        #F5F0E8;
  --parchment:    #EDE8DC;
  --brown-dark:   #3A2A1A;
  --brown-mid:    #6B4C2A;
  --brown-light:  #9E7B55;
  --warm-accent:  #C4622D;
  --gold:         #B8860B;
  --text-main:    #2C1F0F;
  --text-muted:   #7A6855;
  --border-color: #D4C9B5;
  --nav-bg:       #2C1F0F;
  --nav-link:     #EDE8DC;
  --section-childhood: #2E5A1B;
  --section-teenage:   #1B3A5A;
  --section-adult:     #5A2E1B;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text-main);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.75;
}

/* ===================== NAV ===================== */
.site-nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
}
.nav-logo {
  color: #F5C842;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav ul a {
  color: var(--nav-link);
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.site-nav ul a:hover,
.site-nav ul a.active {
  background: var(--warm-accent);
  color: #fff;
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(160deg, #2C1F0F 0%, #4A3020 45%, #6B4C2A 100%);
  color: var(--cream);
  text-align: center;
  padding: 72px 24px 56px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #F5C842;
  letter-spacing: 0.03em;
  border-bottom: none;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-style: italic;
  font-size: 1.2rem;
  color: #D4C9B5;
  margin-bottom: 36px;
}
.hero-photo-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-dad-photo {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  border: 3px solid var(--gold);
}
.hero-cover {
  width: 160px;
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
}
.hero-intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.85;
  color: #EDE8DC;
}
.hero-intro p { margin-bottom: 14px; }

/* ===================== PAGE WRAPPER ===================== */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 820px) {
  .content-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}

/* ===================== MAIN CONTENT ===================== */
.main-content {}
.page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--brown-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}
.content-body p {
  margin-bottom: 18px;
  font-size: 1.05rem;
}
.content-body h2 {
  font-size: 1.4rem;
  color: var(--brown-mid);
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-color);
}
.content-body a {
  color: var(--warm-accent);
  text-decoration: underline;
}
.content-body a:hover { color: var(--brown-dark); }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  margin: 28px 0;
  background: var(--parchment);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--brown-mid);
  border-radius: 0 6px 6px 0;
}

/* About photo */
.about-photo {
  float: right;
  width: 220px;
  margin: 0 0 24px 28px;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  border: 3px solid var(--gold);
}
@media (max-width: 540px) {
  .about-photo { float: none; width: 100%; margin: 0 0 20px; }
}

/* ===================== WIZBITS LISTING ===================== */
.wizbits-section-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 36px 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border-color);
}
.wizbit-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 8px;
}
.wizbit-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.wizbit-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.wizbit-card .card-badge { margin-bottom: 8px; }
.wizbit-card h3 {
  font-size: 1rem;
  color: var(--brown-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  border: none;
}
.card-teaser {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}
.card-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  color: var(--warm-accent);
  text-decoration: none;
  font-weight: bold;
}
.card-link:hover { text-decoration: underline; }

/* Section badges */
.section-badge {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 3px;
  color: #fff;
}
.badge-childhood { background: var(--section-childhood); }
.badge-teenage   { background: var(--section-teenage); }
.badge-adult     { background: var(--section-adult); }

/* ===================== WIZBIT NAV ===================== */
.wizbit-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}
.wizbit-nav a { color: var(--warm-accent); text-decoration: none; }
.wizbit-nav a:hover { text-decoration: underline; }
.wizbit-nav > a:first-child { text-align: left; }
.wizbit-nav > a:last-child  { text-align: right; }
.wizbit-nav .nav-center     { text-align: center; }

/* ===================== SIDEBAR ===================== */
.sidebar {
  position: sticky;
  top: 76px;
}
.sidebar-book-promo {
  background: var(--brown-dark);
  color: var(--cream);
  border-radius: 8px;
  padding: 22px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.sidebar-book-promo img {
  width: 120px;
  margin-bottom: 14px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.sidebar-book-promo p {
  font-size: 0.88rem;
  color: #D4C9B5;
  margin-bottom: 14px;
  line-height: 1.5;
}
.sidebar-nav-list {
  background: var(--parchment);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px 18px;
}
.sidebar-nav-list h4 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
}
.sidebar-nav-list ul { list-style: none; }
.sidebar-nav-list ul li { padding: 2px 0; }
.sidebar-nav-list ul a {
  font-size: 0.83rem;
  color: var(--brown-mid);
  text-decoration: none;
  line-height: 1.4;
}
.sidebar-nav-list ul a:hover { color: var(--warm-accent); text-decoration: underline; }

/* ===================== BUTTONS ===================== */
.buy-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.btn-amazon, .btn-paperback {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 5px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-amazon {
  background: #FF9900;
  color: #111;
}
.btn-amazon:hover { background: #e68a00; transform: translateY(-1px); }
.btn-paperback {
  background: var(--warm-accent);
  color: #fff;
}
.btn-paperback:hover { background: #a84e24; transform: translateY(-1px); }

/* ===================== CTA BOX ===================== */
.cta-box {
  background: var(--parchment);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 40px 0;
  text-align: center;
}
.cta-box p {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}
.cta-box .buy-buttons { justify-content: center; }

/* ===================== BUY HERO ===================== */
.buy-hero {
  text-align: center;
  padding: 40px 0 20px;
}
.buy-hero img {
  width: 180px;
  margin-bottom: 20px;
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.buy-hero .buy-buttons { justify-content: center; margin-top: 18px; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  text-align: center;
  padding: 48px 24px 32px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.footer-cover {
  width: 90px;
  border-radius: 3px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.site-footer p { font-size: 0.95rem; color: #D4C9B5; margin-bottom: 6px; }
.site-footer strong { color: #F5C842; }
.footer-nav {
  display: flex;
  gap: 8px 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.footer-nav a {
  color: #D4C9B5;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.85rem;
}
.footer-nav a:hover { color: #F5C842; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
  .hero { padding: 48px 18px 40px; }
  .hero-dad-photo { width: 140px; height: 170px; }
  .hero-cover { width: 120px; }
  .page-wrapper { padding: 28px 16px 48px; }
  .wizbit-cards { grid-template-columns: 1fr; }
  .cta-box { padding: 20px 18px; }
  .wizbit-nav { grid-template-columns: 1fr; gap: 8px; text-align: center !important; }
  .wizbit-nav > * { text-align: center !important; }
}
