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

:root {
  --colour-bg:           #FDF7EF;
  --colour-bg-raised:    #FFFFFF;
  --colour-crimson:      #C8102E;
  --colour-crimson-dark: #9E0C24;
  --colour-crimson-wash: #FCE8EB;
  --colour-gold:         #C9952C;
  --colour-gold-dim:     #E8D49A;
  --colour-dark:         #2A1A10;
  --colour-muted:        #7A6858;
  --colour-border:       #E8D5CC;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Lato', system-ui, sans-serif;
  --max-width: 1040px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--colour-bg);
  color: var(--colour-dark);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
}

/* ─── Header ───────────────────────────────────────────────────────── */
.site-header {
  background: var(--colour-crimson);
  padding: 2rem 2rem 1.75rem;
  text-align: center;
}

.site-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
}

.site-logo {
  height: 190px;
  width: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.tagline {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  color: var(--colour-gold-dim);
  margin-top: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

/* ─── Main ─────────────────────────────────────────────────────────── */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ─── Section headings ─────────────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--colour-crimson);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--colour-border);
}

/* ─── Current show (full-width) ────────────────────────────────────── */
.current-show-section {
  margin-bottom: 3rem;
}

.current-show {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: start;
  background: var(--colour-bg-raised);
  border: 1px solid var(--colour-border);
  border-radius: 3px;
  box-shadow: 0 2px 24px rgba(42,26,16,0.1);
  overflow: hidden;
}

.current-poster {
  width: 260px;
  aspect-ratio: 1 / 1.4142;
  flex-shrink: 0;
  border-radius: 0;
}

.current-info {
  padding: 2rem 2rem 2rem 0;
  gap: 1rem;
}

.current-title {
  font-size: 2rem !important;
}

@media (max-width: 640px) {
  .current-show {
    grid-template-columns: 1fr;
  }
  .current-poster {
    width: 100%;
  }
  .current-info {
    padding: 1.5rem;
  }
}

/* ─── Past shows ───────────────────────────────────────────────────── */

.shows-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 360px));
  gap: 2.5rem;
  justify-content: center;
}

/* ─── Show card ────────────────────────────────────────────────────── */
.show {
  background: var(--colour-bg-raised);
  border: 1px solid var(--colour-border);
  border-radius: 3px;
  box-shadow: 0 2px 18px rgba(42,26,16,0.08);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.show:hover {
  box-shadow: 0 6px 28px rgba(42,26,16,0.14);
  transform: translateY(-2px);
}

/* ─── A4 poster centrepiece ────────────────────────────────────────── */
.show-poster {
  width: 100%;
  aspect-ratio: 1 / 1.4142;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(160deg, #2e5f7a 0%, #3a7a6e 45%, #5d9a6a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.show-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* placeholder shown when no <img> child */
.show-poster:not(:has(img))::after {
  content: 'Poster TBC';
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
}

/* ─── Show info (below poster) ─────────────────────────────────────── */
.show-info {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

.show-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.show-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--colour-dark);
}

.show-year {
  font-size: 0.8rem;
  color: var(--colour-muted);
  letter-spacing: 0.08em;
  font-weight: 400;
}

.show-desc {
  color: var(--colour-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.show-link {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--colour-crimson);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.show-links {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.show-links .show-link {
  margin-top: 0;
  padding-top: 0;
}

.show-link:hover { border-color: var(--colour-crimson); }

/* ─── Away shows ────────────────────────────────────────────────────── */
.away-shows {
  margin-top: 3rem;
}

.venue-group {
  background: var(--colour-bg-raised);
  border: 1px solid var(--colour-border);
  border-radius: 3px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
}

.venue-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--colour-crimson-dark);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--colour-border);
}

.venue-shows {
  list-style: none;
}

.venue-shows li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.22rem 0;
  border-bottom: 1px solid rgba(232,213,204,0.4);
}

.venue-shows li:last-child {
  border-bottom: none;
}

.venue-shows .show-title {
  font-size: 0.88rem;
}

.venue-shows .show-year {
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.venue-shows--cols {
  column-count: 3;
  column-gap: 2rem;
}

.venue-shows--cols li {
  break-inside: avoid;
}

.venue-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.venue-groups-grid .venue-group {
  margin-bottom: 0;
}

.show-cancelled-row {
  opacity: 0.45;
}

.show-note {
  font-size: 0.7em;
  font-style: italic;
}

@media (max-width: 700px) {
  .venue-shows--cols { column-count: 2; }
  .venue-groups-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .venue-shows--cols { column-count: 1; }
}

/* ─── Footer ───────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: var(--colour-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--colour-border);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-credit {
  font-size: 0.72rem;
  opacity: 0.7;
}

.footer-credit a {
  color: var(--colour-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-credit a:hover { border-color: var(--colour-muted); }
