/* ═══════════════════════════════════════════════
   KeggerBackpack.com  —  Shared Stylesheet
   Upload to: /public/css/kegger.css
   ═══════════════════════════════════════════════ */

/* ── Palette ─────────────────────────────────── */
:root {
  --tan-lightest: #FAF3E4;
  --tan-light:    #F2E6C8;
  --tan-mid:      #DFC99A;
  --tan-dark:     #C4A86A;
  --brown-deep:   #4A2C0F;
  --brown-mid:    #6B3F1A;
  --brown-light:  #9A6030;
  --orange-hot:   #C85A18;
  --orange-warm:  #D97830;
  --orange-glow:  #E89848;
  --cream:        #FDF8EE;
  --white-warm:   #FFFDF6;
  --text-dark:    #2A1608;
  --text-body:    #3C2210;
  --text-muted:   #7A5535;
  --rule:         rgba(196,168,106,0.35);
}

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

body {
  background: var(--tan-lightest);
  color: var(--text-body);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.85;
}

/* ── Banner ──────────────────────────────────── */
.site-banner {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--brown-deep);
  position: relative;
}
.site-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}
.site-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(42,22,8,.18) 0%, transparent 30%,
    transparent 70%, rgba(42,22,8,.32) 100%);
  pointer-events: none;
}

/* ── Nav ─────────────────────────────────────── */
nav {
  background: var(--brown-deep);
  border-bottom: 3px solid var(--orange-hot);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 32px;
  gap: 0;
}
.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--tan-mid);
  padding: 14px 24px 14px 0;
  margin-right: 16px;
  border-right: 1px solid rgba(196,168,106,0.3);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
nav a {
  color: var(--tan-light);
  text-decoration: none;
  padding: 14px 16px;
  font-family: Georgia, serif;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a.active {
  background: rgba(200,90,24,0.25);
  color: var(--orange-glow);
}

/* ── Search bar ──────────────────────────────── */
.search-bar {
  background: var(--tan-light);
  border-bottom: 1px solid var(--tan-mid);
  padding: 8px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: Georgia, serif;
}
.search-bar input {
  border: 1px solid var(--tan-dark);
  border-radius: 3px;
  padding: 5px 10px;
  font-size: 13px;
  background: var(--white-warm);
  color: var(--text-body);
  width: 240px;
}
.search-bar button {
  background: var(--brown-mid);
  color: var(--tan-light);
  border: none;
  border-radius: 3px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
}
.search-bar button:hover { background: var(--orange-hot); }

/* ── Under construction ──────────────────────── */
.under-construction {
  background: var(--orange-hot);
  color: var(--white-warm);
  text-align: center;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-family: Georgia, serif;
  letter-spacing: 0.04em;
}

/* ── Page header (brown hero band) ───────────── */
.page-header {
  background: var(--brown-deep);
  color: var(--tan-light);
  text-align: center;
  padding: 48px 32px 44px;
  position: relative;
}
.page-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--orange-hot);
  margin: 20px auto 0;
}
.page-header .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-glow);
  margin-bottom: 12px;
}
.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--tan-lightest);
  line-height: 1.15;
  margin-bottom: 14px;
}
.page-header .subtitle {
  font-style: italic;
  color: var(--tan-mid);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Breadcrumb ──────────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: Georgia, serif;
  margin-bottom: 28px;
}
.breadcrumb a { color: var(--orange-warm); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--tan-dark); }

/* ── Main content wrapper ────────────────────── */
.page-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 32px 60px;
}

/* ── Typography ──────────────────────────────── */
h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.55rem;
  color: var(--brown-deep);
  margin: 40px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}
h3 {
  font-size: 1.1rem;
  color: var(--brown-mid);
  margin: 28px 0 8px;
  font-style: italic;
}
p { margin-bottom: 18px; }
a { color: var(--orange-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text-dark); }
em { font-style: italic; }
ul, ol { margin: 8px 0 18px 24px; }
li { margin-bottom: 5px; }

/* ── Section divider ─────────────────────────── */
hr.section-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 44px 0;
}

/* ── Figures & captions ──────────────────────── */
figure { margin: 24px 0; }
figure img {
  max-width: 100%;
  display: block;
  border: 1px solid var(--tan-dark);
}
figcaption {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 7px;
  font-family: Georgia, serif;
  line-height: 1.5;
}
figure.float-right {
  float: right;
  max-width: 340px;
  margin: 0 0 20px 28px;
}
figure.float-left {
  float: left;
  max-width: 340px;
  margin: 0 28px 20px 0;
}
.clearfix::after { content: ''; display: block; clear: both; }

/* ── Photo rows ──────────────────────────────── */
.photo-row {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.photo-row.two { grid-template-columns: 1fr 1fr; }
.photo-row.three { grid-template-columns: 1fr 1fr 1fr; }
.photo-row figure { margin: 0; }

/* ── Chronicle card grid ─────────────────────── */
.chronicle-section { margin: 36px 0; }
.chronicle-section-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-hot);
  font-family: Georgia, serif;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chronicle-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  background: var(--white-warm);
  border: 1px solid var(--tan-mid);
  border-left: 3px solid var(--orange-hot);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  display: block;
}
.card:hover {
  box-shadow: 0 3px 12px rgba(74,44,15,0.12);
  border-color: var(--orange-warm);
}
.card .card-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-warm);
  margin-bottom: 6px;
}
.card h3 {
  font-size: 1rem;
  color: var(--brown-deep);
  font-style: normal;
  margin: 0 0 6px;
  font-family: 'Playfair Display', Georgia, serif;
}
.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── Index home hero ─────────────────────────── */
.home-hero {
  background: var(--brown-deep);
  color: var(--tan-light);
  text-align: center;
  padding: 52px 32px 48px;
}
.home-hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-glow);
  margin-bottom: 10px;
}
.home-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--tan-lightest);
  margin-bottom: 10px;
  line-height: 1.1;
}
.home-hero .tagline {
  font-style: italic;
  color: var(--tan-mid);
  font-size: 1.15rem;
  margin-bottom: 24px;
}
.event-pill {
  display: inline-block;
  background: rgba(200,90,24,0.25);
  border: 1px solid var(--orange-hot);
  color: var(--orange-glow);
  border-radius: 2px;
  padding: 7px 20px;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}
.home-intro {
  max-width: 580px;
  margin: 0 auto 28px;
  font-size: 1rem;
  color: var(--tan-light);
  line-height: 1.75;
}
.home-logo { margin: 0 auto; text-align: center; }
.home-logo img { max-width: 160px; opacity: 0.88; }
.home-logo .logo-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}

/* ── Q&A accordion (trivia) ──────────────────── */
.qa-item { border-bottom: 1px solid var(--rule); }
.qa-q {
  background: var(--white-warm);
  padding: 13px 16px;
  cursor: pointer;
  font-size: 0.93rem;
  color: var(--brown-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.qa-q:hover { background: var(--tan-lightest); }
.qa-arrow { font-size: 0.7rem; transition: transform 0.2s; color: var(--orange-hot); }
.qa-a {
  background: var(--cream);
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-body);
}
.qa-a.open { max-height: 300px; padding: 13px 16px; }
.reveal-btn {
  background: var(--brown-mid);
  color: var(--tan-light);
  border: none;
  padding: 8px 18px;
  font-family: Georgia, serif;
  font-size: 0.84rem;
  cursor: pointer;
  border-radius: 2px;
  margin-bottom: 18px;
}
.reveal-btn:hover { background: var(--orange-hot); }

/* ── Letter / advice column ──────────────────── */
.letter { margin-bottom: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.letter-reply {
  background: var(--white-warm);
  border-left: 4px solid var(--orange-hot);
  padding: 16px 20px;
  margin-top: 18px;
}
.letter-sig { font-style: italic; color: var(--text-muted); margin-top: 10px; font-size: 0.9rem; }

/* ── Song block ──────────────────────────────── */
.song-block {
  background: var(--white-warm);
  border: 1px solid var(--tan-mid);
  border-left: 4px solid var(--orange-hot);
  padding: 28px 32px;
  margin: 24px 0;
  font-size: 1rem;
  line-height: 2;
  white-space: pre-wrap;
  font-family: Georgia, serif;
}
.song-stage {
  font-family: Georgia, serif;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
}
.song-holler {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--orange-hot);
  letter-spacing: 2px;
}

/* ── Poem block (haiku) ──────────────────────── */
.poem-block {
  background: var(--white-warm);
  border-left: 3px solid var(--orange-warm);
  padding: 14px 20px;
  margin: 16px 0;
  font-style: italic;
}
.poem-block p { margin-bottom: 4px; }
.poem-attr {
  font-family: Georgia, serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  margin-top: 8px !important;
}

/* ── Memorial ────────────────────────────────── */
.memorial-person { text-align: center; margin: 36px 0; }
.memorial-person img {
  max-width: 280px;
  border: 1px solid var(--tan-dark);
  margin: 0 auto 14px;
  display: block;
}
.memorial-name { font-family: 'Playfair Display', Georgia, serif; font-size: 1.4rem; color: var(--brown-deep); }
.memorial-dates { font-size: 0.88rem; color: var(--text-muted); margin: 4px 0; }
.memorial-quote { font-style: italic; color: var(--brown-mid); }

/* ── Stat row ────────────────────────────────── */
.stat-row { display: flex; gap: 20px; margin: 20px 0; flex-wrap: wrap; }
.stat {
  background: var(--white-warm);
  border: 1px solid var(--tan-mid);
  padding: 14px 20px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}
.stat-num { font-size: 1.6rem; font-weight: bold; color: var(--brown-deep); display: block; font-family: 'Playfair Display', Georgia, serif; }
.stat-lbl { font-size: 0.74rem; color: var(--text-muted); font-family: Georgia, serif; }

/* ── Footer ──────────────────────────────────── */
footer {
  background: var(--brown-deep);
  color: var(--tan-mid);
  text-align: center;
  padding: 22px 24px;
  font-family: Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.8;
  border-top: 3px solid var(--orange-hot);
}
footer a { color: var(--orange-warm); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .photo-row.two, .photo-row.three { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2rem; }
  .home-hero h1 { font-size: 2.2rem; }
  figure.float-right, figure.float-left { float: none; width: 100%; margin: 20px 0; }
  .site-banner { height: 150px; }
  .page-body { padding: 28px 18px 48px; }
}
