/* ==========================================================================
   OompahME: retro brass-band handbill
   Square corners, hard 2px ink borders, solid offset shadows, condensed caps.
   ========================================================================== */

:root {
  /* Palette */
  --ink: #143A26;            /* deep ink green */
  --ink-deep: #14201a;       /* high-contrast outlines */
  --paper: #F2E8D0;          /* warm paper */
  --paper-soft: #F8F1DF;
  --paper-deep: #E0D2B5;
  --mustard: #D4A441;        /* brass */
  --ivy: #4F6B3E;            /* hover fills; paper text on it is 4.9:1 */
  --saddle: #C7834E;
  --muted: #2c4636;          /* body copy on light backgrounds, 8.5:1 on paper */
  --muted-dark: #E0D2B5;     /* body copy on ink backgrounds, 8.5:1 */
  --line-dark: #2f5a43;      /* hairlines on ink */
  --accent: #C65A32;         /* brick: non-text accents only */
  --accent-text: #9E3F26;    /* brick for small text; 5.4:1 on paper */

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --max: 1240px;
  --gutter: 28px;
  --section-pad: 104px;
  --rule: 2px solid var(--ink);
  --header-h: 60px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--accent-text); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-header :focus-visible,
.setlist :focus-visible,
.site-footer :focus-visible { outline-color: var(--mustard); }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-pad); }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--mustard); color: var(--ink);
  border: var(--rule); padding: 10px 16px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .3px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Shared type */
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 4.8vw, 66px);
  line-height: 1.05;
  letter-spacing: -.5px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .3px;
}
.eyebrow--mustard { color: var(--mustard); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--ink); color: var(--paper);
}
.site-header__inner {
  padding-block: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.logo { display: block; line-height: 0; text-decoration: none; }
.logo img { height: 46px; width: auto; }
.logo-badge { width: 112px; height: 112px; }

.site-nav {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .3px;
}
.site-nav a { color: var(--paper); text-decoration: none; }
.site-nav a:hover { color: var(--mustard); }
.site-nav .site-nav__cta { color: var(--ink); background: var(--mustard); padding: 9px 16px; }
.site-nav .site-nav__cta:hover { color: var(--ink); background: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--mustard);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .3px;
  padding: 9px 14px;
  cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--mustard); color: var(--ink); }

/* Collapsed nav below 640px (only when JS is running, so the nav stays usable without it) */
@media (max-width: 639.98px) {
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line-dark);
    padding-top: 8px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-dark); }
  .js .site-nav .site-nav__cta { margin-top: 14px; padding: 14px 16px; border-bottom: 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--mustard); border-bottom: var(--rule); }
.hero__inner { padding-top: 56px; padding-bottom: 64px; }
.hero__strip {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: var(--rule); border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
}
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 48px;
  align-items: end;
  padding-top: 40px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -.5px;
}
.hero__lede { font-size: 19px; line-height: 1.55; max-width: 500px; text-wrap: pretty; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 620px;
  object-fit: cover;
  object-position: 50% 50%; /* source is pre-cropped to the mockup's 50% 78% framing */
  border: var(--rule);
  box-shadow: 10px 10px 0 var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  border: var(--rule);
  padding: 14px 26px;
  font-weight: 600; font-size: 16px; letter-spacing: .3px;
  text-decoration: none;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--ivy); color: var(--paper); }
.btn--outline { color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--mustard); }

/* ---------- Occasions strip ---------- */
.occasions { background: var(--ink); color: var(--mustard); }
.occasions__list {
  padding-block: 18px;
  display: flex; gap: 14px 32px; flex-wrap: wrap; justify-content: space-between;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}

/* ---------- Section intro (Ensembles, Band) ---------- */
.section-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px 64px;
  margin-bottom: 56px;
  align-items: end;
}
.section-intro p { font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

/* ---------- Ensembles ---------- */
.ensembles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border-top: var(--rule);
}
.ensemble {
  padding: 32px 28px 32px 0;
  display: flex; flex-direction: column; gap: 16px;
  border-bottom: 1px solid var(--ink);
}
.ensemble__photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: var(--rule);
  background: var(--paper-deep);
}
.ensemble__title {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  line-height: 1.1;
}
.ensemble__body { font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.ensemble__good {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
}

/* ---------- Set list ---------- */
.setlist { background: var(--ink); color: var(--paper); }
.setlist__head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.setlist__intro { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.setlist__lede { font-size: 17px; line-height: 1.55; color: var(--muted-dark); }
.setlist__filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
  padding: 10px 15px;
  cursor: pointer;
  border: 1px solid var(--mustard);
  background: transparent;
  color: var(--paper);
}
.filter:hover { background: rgba(219, 167, 42, .15); }
.filter[aria-pressed="true"] { background: var(--mustard); color: var(--ink); }

.setlist__groups { display: flex; flex-direction: column; gap: 48px; }
.genre {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px 48px;
  border-top: 2px solid var(--mustard);
  padding-top: 22px;
}
.genre__meta { display: flex; flex-direction: column; gap: 10px; }
.genre__name {
  font-family: var(--font-display); font-weight: 700; font-size: 30px;
  line-height: 1.1; color: var(--mustard);
}
.genre__count { font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--muted-dark); }
.genre__note { font-size: 14px; line-height: 1.5; color: var(--muted-dark); font-style: italic; max-width: 260px; }
.genre__songs {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  column-gap: 40px;
  align-content: start;
}
.genre__songs li { padding: 11px 0; border-bottom: 1px solid var(--line-dark); font-size: 16px; }
/* One-column layout: a 2-column span would force an implicit extra column */
@media (max-width: 623.98px) {
  .genre__songs { grid-column: auto; }
}

/* ---------- The Band ---------- */
.members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 32px 24px;
}
.member { display: flex; flex-direction: column; gap: 14px; }
.member__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--rule);
  background: var(--paper-deep);
}
.member__photo--jimi    { object-position: 45% 30%; }
.member__photo--cleaves { object-position: 50% 20%; }
.member__photo--mar     { object-position: 45% 25%; }
.member__photo--chris   { object-position: 55% 30%; }
.member__photo--mike    { object-position: 50% 30%; }
.member__head { display: flex; flex-direction: column; gap: 4px; border-top: var(--rule); padding-top: 10px; }
.member__name {
  font-family: var(--font-display); font-weight: 700; font-size: 24px;
  line-height: 1.1;
}
.member__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px; color: var(--accent-text); }
.member__bio { font-size: 14.5px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }

/* ---------- Booking ---------- */
.booking { background: var(--mustard); border-top: var(--rule); }
.booking__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
}
.booking__copy { display: flex; flex-direction: column; gap: 22px; }
.booking__title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.05; letter-spacing: -.5px;
}
.booking__lede { font-size: 18px; line-height: 1.6; max-width: 460px; }
.booking__panel { display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.booking__button {
  display: block;
  background: var(--ink); color: var(--paper);
  border: var(--rule);
  padding: 36px 28px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(22px, 3vw, 30px); line-height: 1.2;
  text-align: center; text-decoration: none;
  overflow-wrap: anywhere;
}
.booking__button:hover { background: var(--ivy); color: var(--paper); }
.booking__phone { font-size: 20px; text-align: center; }
.booking__phone a { font-weight: 600; }
.booking__related { margin-top: 12px; padding-top: 20px; border-top: var(--rule); font-size: 16px; line-height: 1.5; text-align: center; }
.booking__related ul { list-style: none; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.booking__related a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); }
.site-footer__inner {
  padding-block: 40px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .3px;
}
.site-footer a { color: var(--mustard); }
.site-footer a:hover { color: var(--paper); }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100vh - var(--header-h)); background: var(--mustard); }
.notfound__inner { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }

/* ---------- Small screens ---------- */
@media (max-width: 639.98px) {
  /* Larger header wordmark and footer badge */
  .logo img { height: 56px; }
  .logo-badge { width: 180px; height: 180px; }
  .site-footer__inner {
    flex-direction: column; justify-content: center; text-align: center;
    gap: 16px; padding-block: 48px;
    font-size: 14px;
  }

  /* Info strip: centered stack so it reads as a label, not a row of links */
  .hero__strip {
    flex-direction: column; align-items: center; text-align: center;
    gap: 6px; padding: 14px 0;
    font-size: 13px;
  }
  .hero__strip span:last-child { font-weight: 500; }

  /* Occasions: centered wrap instead of ragged justified rows */
  .occasions__list {
    justify-content: center; text-align: center;
    gap: 10px 24px; padding-block: 28px;
    font-size: 20px;
  }
}
