
:root {
  --bg: #f6efe3;
  --panel: #fffaf2;
  --panel-alt: #efe0c8;
  --brown: #5a3b26;
  --brown-dark: #2d190b;
  --gold: #c58e43;
  --gold-light: #e5b44f;
  --red: #8c3f31;
  --red-dark: #6f1f17;
  --text: #2d241d;
  --muted: #6d6156;
  --border: #d9bb93;
  --shadow: 0 10px 24px rgba(57, 35, 23, 0.16);
  --radius: 16px;
  --maxw: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--maxw), calc(100% - 2rem)); margin: 0 auto; }

.topbar { background: #241409; color: #fff0d6; border-bottom: 3px solid var(--gold); padding: 0.45rem 1rem; font-size: 0.95rem; }
.topbar-inner { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; text-align: center; letter-spacing: 0.04em; font-weight: bold; }
.star, .radio-mark { color: var(--gold-light); }

.hero {
  min-height: 320px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #2b1609;
  border-bottom: 5px solid var(--gold);
}
.hero.home { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.about { background-image: url("../images/hero/about-barn-radio.jpg"); }
.hero.repeaters { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.weather { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.calendar { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.blog { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.membership { background-image: url("../images/hero/home-pig-radio.jpg"); }
.hero.resources { background-image: url("../images/hero/about-barn-radio.jpg"); }
.hero.contact { background-image: url("../images/hero/home-pig-radio.jpg"); }

.nav-shell { background: #2d190b; border-bottom: 3px solid var(--gold); box-shadow: 0 8px 16px rgba(0,0,0,0.18); }
.nav { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.55rem 0; justify-content: center; }
.nav a { color: #fff4df; background: rgba(255,255,255,0.07); border: 1px solid rgba(229,180,79,0.25); padding: 0.62rem 0.9rem; border-radius: 10px; font-size: 0.95rem; font-weight: bold; }
.nav a:hover, .nav a.active { background: var(--gold); color: #241409; text-decoration: none; }

main { padding: 1rem 0 2rem; }
.section, .card { background: rgba(255,250,242,0.98); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.section { padding: 1.2rem 1.3rem; margin-bottom: 1rem; }
.section h2, .card h3 { color: var(--brown-dark); margin-top: 0; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1rem; margin-bottom: 1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { padding: 1rem; background: #fffdf8; }
.card.highlight, .calendar-blog { background: linear-gradient(135deg, #fff8ee, #f2e3cd); }

.small { font-size: 0.95rem; }
.muted { color: var(--muted); }
.btn-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.btn { display: inline-block; background: var(--red-dark); color: #fff; border: 1px solid var(--red-dark); padding: 0.72rem 1rem; border-radius: 9px; font-weight: bold; text-align: center; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2d190b; }
.btn.alt { background: #fff; border-color: var(--border); color: var(--brown); }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

.list { margin: 0; padding-left: 1.15rem; }
.repeater-list { display: grid; gap: 0.65rem; }
.repeater-row { display: grid; grid-template-columns: 115px 1fr; gap: 0.75rem; align-items: center; border-bottom: 1px solid #ead7b6; padding-bottom: 0.55rem; }
.repeater-row:last-child { border-bottom: 0; padding-bottom: 0; }
.freq-badge { background: var(--red); color: #fff; border-radius: 6px; padding: 0.38rem 0.55rem; font-weight: bold; text-align: center; white-space: nowrap; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid #ead7b6; padding: 0.55rem 0; }
.link-list li:last-child { border-bottom: none; }

.calendar-frame, .map-frame { width: 100%; min-height: 650px; border: 0; border-radius: 12px; background: #fff; }
.map-placeholder { min-height: 260px; border: 2px dashed #bf9b67; background: linear-gradient(135deg, #f6ead7, #fff7ec); border-radius: 14px; padding: 1.2rem; }
.news-post { display: grid; gap: .25rem; border-bottom: 1px solid #ead7b6; padding: .8rem 0; }
.news-post:last-child { border-bottom: 0; }
.news-post time { color: var(--muted); font-size: .9rem; }

footer { background: var(--brown-dark); color: #fbeede; border-top: 5px solid var(--gold); padding: 1.2rem 1rem 1.6rem; font-size: 0.95rem; }
footer .footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1rem; align-items: center; }
footer a { color: #ffd7aa; }

@media (max-width: 1100px) {
  .hero { min-height: 330px; }
}
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 280px; background-position: center center; }
  footer .footer-grid { grid-template-columns: 1fr; text-align: center; }
}
@media (max-width: 650px) {
  .hero { min-height: 240px; }
  .repeater-row { grid-template-columns: 1fr; }
  .freq-badge { text-align: left; }
}
