/* FestFinder — distinctive design system. Warm amber + deep teal + forest. */

:root {
  --amber-50:  #fff7e8;
  --amber-100: #ffeac4;
  --amber-300: #f5b942;
  --amber-500: #d99316;
  --amber-700: #8a5b0c;
  --teal-50:   #e8f4f4;
  --teal-300:  #4ea0a0;
  --teal-600:  #0d6e6e;
  --teal-800:  #0f2a2e;
  --teal-900:  #08191c;
  --ink:       #1c2326;
  --ink-soft:  #4a565b;
  --ink-mute:  #7a868c;
  --paper:     #faf6ee;
  --paper-2:   #f3ecdc;
  --line:      #e6dec8;
  --rose:      #c44a3f;
  --leaf:      #3f7a3a;
  --plum:      #6b3f70;
  --slate:     #475569;
  --max:       1180px;
  --shadow-sm: 0 1px 2px rgba(15,42,46,.06), 0 4px 12px rgba(15,42,46,.04);
  --shadow-md: 0 6px 24px rgba(15,42,46,.10);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --serif: "Fraunces", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--amber-500); }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--teal-900); letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 1.4em; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
.muted { color: var(--ink-mute); }
.small { font-size: .85rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 900; font-size: 1.4rem; color: var(--teal-900); }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.brand-text { letter-spacing: -.02em; }
.brand-fest { color: var(--teal-900); }
.brand-finder { color: var(--amber-500); }
.primary-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.primary-nav a {
  color: var(--ink); padding: 8px 14px; border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  transition: background .15s, color .15s;
}
.primary-nav a:hover { background: var(--amber-100); color: var(--teal-900); }

/* ---------- HERO ---------- */
.hero {
  background-color: var(--teal-900);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 96px 0 112px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 80px;
  background: linear-gradient(180deg, rgba(250,246,238,0) 0%, var(--paper) 100%);
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--amber-300); margin: 0 0 18px; }
.hero h1 { color: #fff; max-width: 18ch; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.92); max-width: 60ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; transition: transform .12s, box-shadow .12s;
  border: 2px solid transparent; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber-300); color: var(--teal-900); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--amber-500); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- BANDS / SECTIONS ---------- */
.band { background: var(--teal-900); color: #fff; padding: 28px 0; }
.band-light { background: var(--paper-2); color: var(--ink); padding: 56px 0; }
.section { padding: 64px 0; }
.section.narrow { max-width: 760px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.section-head h2 { margin-top: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-num { font-family: var(--serif); font-size: 2rem; font-weight: 900; color: var(--amber-300); }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }

/* ---------- CARD GRIDS ---------- */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card-grid-tight { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.card {
  display: block; background: #fff; padding: 22px; border-radius: var(--r-md);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber-300); }
.card h3 { margin: 8px 0 6px; color: var(--teal-900); font-size: 1.15rem; }
.card-meta { color: var(--ink-mute); font-size: .85rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .06em; }
.card-blurb { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.card-tag {
  display: inline-block; font-size: .7rem; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: #fff;
}
.card-mini { padding: 16px; }
.card-mini h3 { font-size: 1rem; margin: 0 0 4px; }

.tag-music    { background: var(--rose); }
.tag-food     { background: var(--amber-500); }
.tag-fair     { background: var(--leaf); }
.tag-cultural { background: var(--plum); }
.tag-arts     { background: var(--teal-600); }
.tag-film     { background: var(--ink); }
.tag-community{ background: var(--slate); }
.tag-seasonal { background: #b45309; }
.tag-month    { background: var(--paper-2); color: var(--teal-900); border: 1px solid var(--line); }

.cat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.cat-tile {
  display: block; padding: 24px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--line); color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative; overflow: hidden;
}
.cat-tile::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--teal-300);
}
.cat-tile.cat-music::before    { background: var(--rose); }
.cat-tile.cat-food::before     { background: var(--amber-500); }
.cat-tile.cat-fair::before     { background: var(--leaf); }
.cat-tile.cat-cultural::before { background: var(--plum); }
.cat-tile.cat-arts::before     { background: var(--teal-600); }
.cat-tile.cat-film::before     { background: var(--ink); }
.cat-tile.cat-community::before{ background: var(--slate); }
.cat-tile.cat-seasonal::before { background: #b45309; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cat-tile h3 { margin: 0 0 8px; color: var(--teal-900); font-size: 1.2rem; }
.cat-tile p { font-size: .92rem; color: var(--ink-soft); margin: 0 0 14px; }
.pill {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--teal-900);
  font-size: .8rem; font-weight: 600;
}

.city-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.city-card {
  display: block; background: #fff; padding: 18px; border-radius: var(--r-md);
  border: 1px solid var(--line); color: inherit; transition: all .15s;
}
.city-card:hover { border-color: var(--amber-300); transform: translateY(-2px); }
.city-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--teal-900); }
.city-state { font-size: .85rem; color: var(--ink-mute); margin: 2px 0 8px; }
.city-count { font-size: .82rem; color: var(--amber-700); font-weight: 600; }

.month-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.month-pill {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.08); padding: 16px; border-radius: var(--r-md);
  color: #fff; transition: background .15s;
}
.month-pill:hover { background: rgba(255,255,255,.18); color: var(--amber-300); }
.month-pill strong { font-family: var(--serif); font-size: 1.05rem; }
.month-pill span { font-size: .82rem; color: rgba(255,255,255,.75); }

.month-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.month-card { display: block; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-align: center; transition: all .15s; }
.month-card:hover { border-color: var(--amber-300); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.month-num { font-family: var(--serif); color: var(--amber-300); font-weight: 900; font-size: 2rem; }
.month-name { font-family: var(--serif); font-weight: 700; color: var(--teal-900); font-size: 1.2rem; }
.month-count { font-size: .85rem; color: var(--ink-mute); margin-top: 4px; }

.state-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.state-card { display: block; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; transition: all .15s; }
.state-card:hover { border-color: var(--teal-300); transform: translateY(-2px); }
.state-code { font-family: var(--serif); font-weight: 900; color: var(--amber-500); font-size: 1.4rem; }
.state-name { font-weight: 600; color: var(--teal-900); }
.state-count { font-size: .8rem; color: var(--ink-mute); margin-top: 4px; }

.city-state-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.city-state-block h2 { font-size: 1.2rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--amber-300); }
.city-state-block ul { list-style: none; padding: 0; margin: 0; }
.city-state-block li { padding: 4px 0; }

.more { text-align: center; margin-top: 28px; }
.more a { font-weight: 600; }

/* ---------- ARTICLE / DETAIL PAGES ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-800) 100%);
  color: #fff; padding: 56px 0 64px;
}
.page-hero h1 { color: #fff; }
.page-hero .eyebrow a { color: var(--amber-300); }
.page-hero .dek { color: rgba(255,255,255,.85); margin: 8px 0 0; font-size: 1.05rem; }
.page-hero.hero-music    { background: linear-gradient(135deg, #5d1d1d 0%, var(--rose) 100%); }
.page-hero.hero-food     { background: linear-gradient(135deg, #5a3a0a 0%, var(--amber-500) 100%); }
.page-hero.hero-fair     { background: linear-gradient(135deg, #1f3a1c 0%, var(--leaf) 100%); }
.page-hero.hero-cultural { background: linear-gradient(135deg, #361d3a 0%, var(--plum) 100%); }
.page-hero.hero-arts     { background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-600) 100%); }
.page-hero.hero-seasonal { background: linear-gradient(135deg, #5a2c0a 0%, #b45309 100%); }

.breadcrumbs { font-size: .85rem; color: var(--ink-mute); padding: 16px 0 0; }
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }
.breadcrumbs a { color: var(--ink-mute); }
.breadcrumbs a:hover { color: var(--amber-500); }

.article { padding: 32px 0 80px; }
.article-header { max-width: 820px; margin: 0 0 32px; }
.meta-tags { display: flex; gap: 8px; margin-bottom: 16px; }
.tag { display: inline-block; font-size: .72rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: #fff; }
.tag.tag-month { color: var(--teal-900); }
.dek { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-soft); }

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  padding-top: 24px;
  padding-bottom: 80px;
}
.article-body {
  font-size: 1.05rem; color: var(--ink);
  max-width: 70ch;
}
.article-body .lead { font-size: 1.18rem; color: var(--ink); font-family: var(--serif); }
.article-body h2 { margin-top: 1.8em; padding-top: .2em; border-top: 1px solid var(--line); }
.article-body p { line-height: 1.7; }
.article-body ul.related-inline { padding-left: 1.2em; }
.article-body ul.related-inline li { margin-bottom: 6px; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; color: var(--amber-700); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--amber-300); }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; font-size: .92rem; }
.kv dt { color: var(--ink-mute); }
.kv dd { margin: 0; color: var(--ink); }
.related-list { list-style: none; padding: 0; margin: 0; }
.related-list li { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.related-list li:last-child { border-bottom: none; }
.related-list .small { display: block; }

.event-list { list-style: none; padding: 0; margin: 24px 0; }
.event-list li { border-bottom: 1px solid var(--line); }
.event-link { display: flex; flex-direction: column; padding: 16px 0; color: inherit; }
.event-link:hover { color: var(--teal-600); }
.event-name { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--teal-900); }
.event-link:hover .event-name { color: var(--amber-500); }
.event-meta { font-size: .85rem; color: var(--ink-mute); margin-top: 4px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--teal-900); color: rgba(255,255,255,.85); padding: 56px 0 24px; margin-top: 60px; }
.site-footer .brand-text, .site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--amber-300); text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; font-family: var(--sans); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { margin-bottom: 8px; }
.link-list a { color: rgba(255,255,255,.85); }
.link-list a:hover { color: var(--amber-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; color: rgba(255,255,255,.6); }

/* ---------- PROSE ---------- */
.prose h2 { margin-top: 1.8em; }
.prose ul, .prose ol { margin: 0 0 1em 1.4em; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .header-wrap { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 20px; }
  .primary-nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 4px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .primary-nav a { white-space: nowrap; padding: 6px 12px; font-size: .9rem; }
  .hero { padding: 64px 0 80px; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat-num { font-size: 1.6rem; }
  .hero { padding: 48px 0 64px; }
  h1 { font-size: 2rem; }
  .kv { grid-template-columns: 80px 1fr; }
  .article-body { font-size: 1rem; }
  .article-body .lead { font-size: 1.08rem; }
  .month-card { padding: 18px; }
  .section { padding: 44px 0; }
  .band-light { padding: 40px 0; }
}
