/* catfestivals.com shared styles */
:root {
  --cream: #f7eddb;
  --cream-2: #efe0c3;
  --paper: #fffaf0;
  --tomato: #d9432b;
  --tomato-dark: #a92f1c;
  --mustard: #e8ae2a;
  --ink: #1c1814;
  --ink-soft: #4a4038;
  --teal: #2f6f6a;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--ink);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background-image: radial-gradient(rgba(28, 24, 20, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

img { max-width: 100%; display: block; }

a { color: var(--tomato-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--tomato); }

h1, h2, h3, .display {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.3px;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

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

/* ---------- Header / nav ---------- */
.topstripe {
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--tomato) 0 40px, var(--mustard) 40px 80px, var(--ink) 80px 120px);
}
.site-header {
  background: var(--ink);
  color: var(--cream);
  border-bottom: 4px solid var(--mustard);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.45rem;
  color: var(--cream);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo:hover { color: var(--mustard); }
.logo .paw {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--tomato);
  border: 2px solid var(--mustard);
  font-size: 1.1rem;
}
.logo .dot { color: var(--mustard); }
.site-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.site-nav a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.site-nav a:hover { border-color: var(--mustard); color: var(--mustard); }
.site-nav a[aria-current="page"] { background: var(--tomato); color: var(--paper); border-color: var(--tomato); }

/* ---------- Kicker / lede ---------- */
.kicker {
  display: inline-block;
  background: var(--mustard);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
  padding: 5px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  margin-bottom: 16px;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  padding: 11px 20px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--tomato);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.alt:hover { color: var(--ink); }

/* page hero (inner pages) */
.page-hero {
  padding: 42px 0 30px;
  border-bottom: 4px solid var(--ink);
  background: var(--mustard);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: "🐾";
  position: absolute;
  right: 4%;
  bottom: -18px;
  font-size: 8rem;
  opacity: 0.18;
  transform: rotate(-18deg);
  pointer-events: none;
}
.page-hero .lede { color: var(--ink); }
.page-hero.tomato { background: var(--tomato); color: var(--paper); }
.page-hero.tomato .lede { color: var(--cream); }
.page-hero.tomato .kicker { background: var(--cream); }
.page-hero.ink { background: var(--ink); color: var(--cream); }
.page-hero.ink .lede { color: var(--cream-2); }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 48px 0; }
.section.alt { background: var(--cream-2); border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); }
.section-head { max-width: 44em; margin-bottom: 26px; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Ranked list ---------- */
.ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rank-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rank-num {
  background: var(--ink);
  color: var(--mustard);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 0;
}
.rank-num .emoji { font-size: 1.6rem; }
.rank-card:nth-child(3n+2) .rank-num { background: var(--tomato); color: var(--paper); }
.rank-card:nth-child(3n) .rank-num { background: var(--mustard); color: var(--ink); }
.rank-body { padding: 18px 22px 20px; }
.rank-body h3 { margin-bottom: 6px; font-size: 1.45rem; }
.rank-body p:last-child { margin-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.meta li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--cream);
}
.rank-card.featured { border-color: var(--tomato); box-shadow: 7px 7px 0 var(--tomato); }
.rank-card.featured .rank-body { background: linear-gradient(180deg, #fff6e2, var(--paper)); }
.rank-thumb {
  float: right;
  width: 180px;
  margin: 0 0 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}
.rank-thumb img { width: 100%; height: 130px; object-fit: cover; }
.more-link { font-weight: 800; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card .badge { font-size: 2rem; margin-bottom: 8px; display: block; }
.card p:last-child { margin-bottom: 0; }

/* ---------- Fact box ---------- */
.factbox {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--mustard);
  padding: 20px 22px;
}
.factbox h3 { font-size: 1.15rem; border-bottom: 3px dotted var(--ink); padding-bottom: 8px; }
.factbox dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 0.95rem; }
.factbox dt { font-weight: 800; }
.factbox dd { margin: 0; }

.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 4px solid var(--ink); }
.timeline li { position: relative; margin: 0 0 18px; padding-left: 10px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -35px; top: 6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--tomato);
  border: 3px solid var(--ink);
}
.timeline .yr { font-family: "Alfa Slab One", Georgia, serif; color: var(--tomato-dark); margin-right: 6px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
}
.gallery figure {
  margin: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 10px 10px 0;
  box-shadow: 4px 4px 0 var(--ink);
}
.gallery figure:nth-child(odd) { transform: rotate(-0.8deg); }
.gallery figure:nth-child(even) { transform: rotate(0.8deg); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; border: 2px solid var(--ink); }
.gallery figure.portrait { grid-row: span 2; }
.gallery figure.portrait img { aspect-ratio: 2 / 3; }
.gallery figcaption { font-size: 0.9rem; padding: 10px 4px 12px; font-weight: 600; }

/* ---------- Calendar ---------- */
.months { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.month {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.month h2 {
  font-size: 1.35rem;
  margin: 0;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--mustard);
}
.month:nth-child(3n+2) h2 { background: var(--tomato); color: var(--paper); }
.month:nth-child(3n) h2 { background: var(--mustard); color: var(--ink); }
.month ul { list-style: none; margin: 0; padding: 8px 18px 14px; }
.month li { padding: 10px 0; border-bottom: 2px dashed var(--cream-2); }
.month li:last-child { border-bottom: 0; }
.month .when { display: block; font-weight: 800; font-size: 0.85rem; color: var(--tomato-dark); text-transform: uppercase; letter-spacing: 0.8px; }
.month .what { font-weight: 700; }
.month .where { display: block; font-size: 0.9rem; color: var(--ink-soft); }
.month.quiet li { color: var(--ink-soft); font-style: italic; }

/* ---------- Callout ---------- */
.callout {
  background: var(--tomato);
  color: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 26px;
}
.callout a { color: var(--mustard); }
.callout h2, .callout h3 { color: var(--paper); }
.note { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-2);
  border-top: 6px solid var(--tomato);
  padding: 36px 0 26px;
  margin-top: 0;
  font-size: 0.95rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.site-footer h4 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; color: var(--mustard); margin: 0 0 10px; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--mustard); text-decoration: underline; }
.copyright { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(247, 237, 219, 0.2); font-size: 0.85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .hero-poster { max-width: 420px; transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-num { flex-direction: row; font-size: 1.8rem; padding: 8px 16px; justify-content: flex-start; gap: 12px; }
  .rank-thumb { float: none; width: 100%; margin: 0 0 12px; }
  .rank-thumb img { height: 180px; }
  .gallery figure, .gallery figure:nth-child(odd), .gallery figure:nth-child(even) { transform: none; }
  .gallery figure.portrait { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-nav a { padding: 5px 10px; font-size: 0.9rem; }
  .page-hero::after { font-size: 5rem; }
}

/* =====================================================================
   Visual upgrade: poster hero, upcoming list, rank badges, bands,
   polaroid gallery, timeline, footer
   ===================================================================== */
body { overflow-x: clip; }
::selection { background: var(--mustard); color: var(--ink); }

/* ---------- Poster hero (index) ---------- */
.poster-hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: flex;
  align-items: flex-end;
  border-bottom: 5px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.poster-hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
  z-index: -2;
  filter: saturate(1.05) contrast(1.02);
}
.poster-hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(28,24,20,0) 25%, rgba(28,24,20,.55) 62%, rgba(28,24,20,.92) 100%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 2px, transparent 2px 4px);
}
.poster-hero .wrap { width: 100%; padding-top: 120px; padding-bottom: 44px; }
.poster-title {
  max-width: 720px;
  background: var(--cream);
  border: 4px solid var(--ink);
  border-radius: 6px;
  box-shadow: 12px 12px 0 var(--tomato);
  padding: 26px 30px 28px;
  position: relative;
}
.poster-title::before {
  content: "EST. 2,500 YEARS AGO";
  position: absolute; top: -18px; right: 24px;
  background: var(--mustard); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: .72rem; letter-spacing: 2px;
  padding: 4px 12px;
  transform: rotate(3deg);
}
.poster-title h1 {
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: .98;
  text-transform: uppercase;
  margin-bottom: .35em;
  text-shadow: 3px 3px 0 var(--mustard);
}
.poster-title h1 .hl { color: var(--tomato); display: block; }
.poster-title .lede { color: var(--ink-soft); margin-bottom: 0; }
.poster-credit { position: absolute; right: 16px; bottom: 10px; color: rgba(247,237,219,.75); font-size: .75rem; margin: 0; }

/* ---------- Color bands ---------- */
.band { padding: 52px 0; border-bottom: 4px solid var(--ink); position: relative; }
.band-mustard { background: var(--mustard); }
.band-tomato { background: var(--tomato); color: var(--paper); }
.band-tomato a { color: var(--paper); }
.band-ink { background: var(--ink); color: var(--cream); }
.band-ink h2 { color: var(--mustard); }
.band-ink .section-head p { color: var(--cream-2); }
.band-ink .card, .band-tomato .card { color: var(--ink); }
.band-ink .card h3, .band-tomato .card h3 { color: var(--ink); }
.band-ink .card a, .band-tomato .card a { color: var(--tomato-dark, #b8321f); }
.band-cream { background: var(--cream-2); }
.band.zig::before {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
  background:
    linear-gradient(135deg, transparent 50%, currentColor 50%) 0 0 / 28px 14px repeat-x,
    linear-gradient(225deg, transparent 50%, currentColor 50%) 0 0 / 28px 14px repeat-x;
}
.band-mustard.zig::before { color: var(--mustard); }
.band-ink.zig::before { color: var(--ink); }
.band-tomato.zig::before { color: var(--tomato); }
.band-cream.zig::before { color: var(--cream-2); }

.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 24px; flex-wrap: wrap; max-width: none; }
.section-head.split > div { max-width: 44em; }
.eyebrow { display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: .78rem; margin-bottom: 6px; }

/* ---------- Upcoming list ---------- */
.up-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.up-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 10px 14px 10px 10px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.up-item:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.up-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--tomato); color: var(--paper);
  border: 3px solid var(--ink); border-radius: 8px;
  height: 66px; line-height: 1;
}
.up-mon { font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: 1.5px; }
.up-day { font-family: "Alfa Slab One", Georgia, serif; font-size: 1.8rem; margin-top: 3px; }
.up-item.featured { border-color: var(--tomato); box-shadow: 4px 4px 0 var(--tomato); background: #fff4dc; }
.up-item.featured .up-date { background: var(--mustard); color: var(--ink); }
.up-item.tba .up-date { background: var(--cream-2); color: var(--ink-soft); }
.up-body { min-width: 0; }
.up-body h3 { font-size: 1.05rem; margin: 0 0 2px; line-height: 1.25; display: flex; gap: 6px; align-items: baseline; }
.up-icon { flex: none; }
.up-name { color: var(--ink); text-decoration: none; }
.up-name:hover { color: var(--tomato-dark); text-decoration: underline; }
.up-where { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.up-count, .count-pill {
  display: inline-block;
  font-weight: 800; font-size: .78rem; white-space: nowrap;
  background: var(--ink); color: var(--mustard);
  padding: 4px 10px; border-radius: 999px;
}
.up-item.tba .up-count { background: var(--cream-2); color: var(--ink-soft); }
.up-item.hot .up-count, .count-pill.hot { background: var(--tomato); color: var(--paper); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .up-item.hot .up-count, .count-pill.hot { animation: none; } }
.up-group { margin-bottom: 30px; }
.up-group-title {
  display: inline-block; font-size: 1.2rem;
  background: var(--ink); color: var(--mustard);
  padding: 6px 16px; border-radius: 6px; margin-bottom: 14px;
  transform: rotate(-1deg);
}
.up-group:nth-child(3n+2) .up-group-title { background: var(--tomato); color: var(--paper); }
.up-group:nth-child(3n) .up-group-title { background: var(--mustard); color: var(--ink); }
.upcoming-more { margin: 22px 0 0; }
.fallback-list { margin: 0; padding-left: 1.2em; }
.fallback-list li { margin-bottom: 4px; }

/* ---------- Rank badges ---------- */
.rank-card { transition: transform .15s ease, box-shadow .15s ease; grid-template-columns: 124px 1fr; }
.rank-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.rank-card.featured:hover { box-shadow: 10px 10px 0 var(--tomato); }
.rank-num { gap: 12px; padding: 18px 0; background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 8px, transparent 8px 16px); }
.rank-badge {
  width: 72px; height: 72px;
  display: grid; place-items: center;
  font-family: "Alfa Slab One", Georgia, serif; font-size: 2rem; line-height: 1;
  color: var(--ink);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 8px var(--ink);
  position: relative;
}
.rank-badge small { position: absolute; top: 9px; font-family: "DM Sans", sans-serif; font-size: .55rem; font-weight: 800; letter-spacing: 1px; }
.rank-badge b { font-weight: 400; margin-top: 8px; }
.rank-card:nth-child(1) .rank-badge { background: #f2c14e; }
.rank-card:nth-child(2) .rank-badge { background: #e6e2da; }
.rank-card:nth-child(3) .rank-badge { background: #d99a5b; }
.rank-num .emoji {
  font-size: 1.9rem; width: 56px; height: 56px; display: grid; place-items: center;
  background: rgba(255,255,255,.14); border-radius: 12px;
}
.next-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  background: var(--cream); border: 2px dashed var(--ink); border-radius: 10px;
  padding: 8px 12px; font-size: .92rem;
}
.next-line .lbl { font-weight: 800; text-transform: uppercase; font-size: .72rem; letter-spacing: 1.5px; color: var(--tomato-dark); }
.rank-thumb { transform: rotate(2deg); box-shadow: 4px 4px 0 var(--ink); transition: transform .15s ease; }
.rank-thumb:hover { transform: rotate(0) scale(1.03); }
.card { transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.card .badge {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--mustard); border: 3px solid var(--ink); border-radius: 50%;
  font-size: 1.7rem; margin-bottom: 12px;
}
.grid .card:nth-child(3n+2) .badge { background: var(--tomato); }
.grid .card:nth-child(3n) .badge { background: var(--cream-2); }

/* ---------- Nottatown summary ---------- */
.summary-hero {
  background: var(--tomato); color: var(--paper);
  border-bottom: 5px solid var(--ink);
  padding: 44px 0 40px;
  position: relative; overflow: hidden;
}
.summary-hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(232,174,42,.35) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.summary-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 36px; align-items: center; position: relative; z-index: 1; }
.summary-hero h1 { color: var(--paper); text-shadow: 4px 4px 0 var(--ink); }
.summary-text p { font-size: 1.12rem; color: var(--cream); max-width: 40em; }
.summary-text p:first-of-type { font-size: 1.28rem; font-weight: 700; color: var(--paper); }
.summary-text strong { color: var(--mustard); }
.summary-stamps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stamp {
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 12px; font-weight: 800; font-size: .8rem;
}
.summary-poster {
  margin: 0; justify-self: center;
  background: var(--paper); padding: 12px 12px 0;
  border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(2.5deg); max-width: 330px;
}
.summary-poster img { width: 100%; height: auto; border: 2px solid var(--ink); }
.summary-poster figcaption { color: var(--ink); font-weight: 700; font-size: .85rem; padding: 8px 2px 10px; text-align: center; }

/* ---------- Polaroid gallery ---------- */
.polaroids {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 34px 26px;
  padding: 10px 4px;
}
.polaroid {
  margin: 0;
  background: #fffdf7;
  padding: 12px 12px 0;
  box-shadow: 0 2px 0 rgba(0,0,0,.08), 0 14px 26px rgba(28,24,20,.28);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  transform: rotate(var(--tilt, -1.5deg));
}
.polaroid::before {
  content: ""; position: absolute; top: -12px; left: 50%;
  width: 92px; height: 26px; margin-left: -46px;
  background: rgba(232,174,42,.75);
  transform: rotate(var(--tape, -3deg));
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.polaroid:nth-child(3n+1) { --tilt: -2deg; --tape: 4deg; }
.polaroid:nth-child(3n+2) { --tilt: 1.5deg; --tape: -5deg; }
.polaroid:nth-child(3n) { --tilt: -0.6deg; --tape: 2deg; }
.polaroid:nth-child(4n)::before { background: rgba(217,67,43,.55); }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 2; box-shadow: 0 22px 40px rgba(28,24,20,.35); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: sepia(.12); }
.polaroid figcaption {
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: 1.35rem; line-height: 1.15;
  text-align: center; color: var(--ink);
  padding: 12px 6px 16px;
}
.polaroid .yr-tag { display: block; font-family: "Alfa Slab One", Georgia, serif; font-size: .8rem; color: var(--tomato-dark); letter-spacing: 1px; }

/* ---------- Timeline (visual) ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 6px; margin-left: -3px;
  background: repeating-linear-gradient(180deg, var(--ink) 0 14px, var(--tomato) 14px 28px);
  border-radius: 3px;
}
.tl li { position: relative; width: 50%; padding: 0 40px 26px 0; }
.tl li:nth-child(even) { margin-left: 50%; padding: 0 0 26px 40px; }
.tl li::after {
  content: ""; position: absolute; top: 14px; right: -12px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--mustard); border: 4px solid var(--ink);
}
.tl li:nth-child(even)::after { right: auto; left: -12px; }
.tl .tl-card {
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 16px 14px;
  transition: transform .15s ease;
}
.tl .tl-card:hover { transform: translateY(-3px); }
.tl .yr {
  display: inline-block; font-family: "Alfa Slab One", Georgia, serif;
  background: var(--tomato); color: var(--paper);
  padding: 2px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 1.05rem;
}
.tl li.big .tl-card { background: var(--mustard); }
.tl li.big .yr { background: var(--ink); color: var(--mustard); }
.tl .tl-card p { margin: 0; }

/* ---------- Festival facts / callout tweaks ---------- */
.factbox { position: relative; }
.factbox .next-line { margin-top: 14px; }
.callout { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 10px, transparent 10px 20px); }
.callout .count-pill { background: var(--ink); color: var(--mustard); }

/* ---------- Footer ---------- */
.site-footer { position: relative; padding-top: 54px; border-top: 0; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 16px;
  background: repeating-linear-gradient(90deg, var(--tomato) 0 40px, var(--mustard) 40px 80px, var(--cream) 80px 120px);
}
.footer-cat { display: block; width: 64px; height: 64px; margin-bottom: 10px; }
.footer-cat path { fill: var(--mustard); }
.site-footer .copyright { color: rgba(247,237,219,.7); }

/* ---------- Focus ---------- */
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }

/* ---------- Responsive (upgrade) ---------- */
@media (max-width: 860px) {
  .summary-grid { grid-template-columns: 1fr; }
  .summary-poster { max-width: 260px; transform: rotate(1.5deg); }
  .tl::before { left: 12px; }
  .tl li, .tl li:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 20px 42px; }
  .tl li::after, .tl li:nth-child(even)::after { left: 0; right: auto; }
}
@media (max-width: 560px) {
  .poster-hero { min-height: 560px; }
  .poster-hero > img { object-position: 22% 20%; }
  .poster-hero .wrap { padding-top: 90px; padding-bottom: 28px; }
  .poster-title { padding: 22px 18px 20px; box-shadow: 7px 7px 0 var(--tomato); }
  .poster-title::before { right: 12px; font-size: .62rem; }
  .up-list { grid-template-columns: 1fr; }
  .up-item { grid-template-columns: 58px 1fr; gap: 10px; }
  .up-date { height: 58px; }
  .up-count { grid-column: 2; justify-self: start; }
  .rank-card { grid-template-columns: 1fr; }
  .rank-num { flex-direction: row; justify-content: flex-start; padding: 12px 16px; gap: 16px; }
  .rank-badge { width: 54px; height: 54px; font-size: 1.5rem; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--ink); }
  .rank-badge small { display: none; }
  .rank-badge b { margin-top: 0; }
  .rank-num .emoji { width: 46px; height: 46px; font-size: 1.5rem; }
  .rank-thumb { transform: none; }
  .polaroids { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .polaroid { padding: 7px 7px 0; }
  .polaroid::before { width: 60px; margin-left: -30px; height: 18px; top: -8px; }
  .polaroid figcaption { font-size: 1.05rem; padding: 8px 2px 10px; }
  .summary-text p:first-of-type { font-size: 1.12rem; }
  .band { padding: 40px 0; }
}
