/* =========================================================
   THE MARITIME COUNTY — global stylesheet
   Used by index.html, live.html and listen.html
   ---------------------------------------------------------
   To change the brand colours or fonts, edit the variables
   in :root below — everything else reads from them.
   ========================================================= */

:root {
  /* Brand colours (sampled from TMC_RIVERSIDE_MASTER.ai) */
  --red: #ED1D24;          /* "The Maritime County" wordmark */
  --red-dark: #C8141B;     /* hover state for red buttons */
  --green: #225242;        /* "Riverside" wordmark */
  --green-deep: #173A2F;   /* darker green for footer */
  --white: #FFFFFF;
  --ink: #0E0E0E;          /* near-black for text + dark sections */
  --grey: #6B6B6B;         /* secondary text on white */
  --line: #E4E4E4;         /* thin dividers on white */

  /* Fonts (loaded from Google Fonts in each HTML <head>) */
  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;   /* tall condensed — like the band wordmark */
  --font-wide: "Archivo", "Arial Black", sans-serif;               /* wide + heavy — like "RIVERSIDE" */
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 0.95; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Typography helpers ---------- */
.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(3rem, 9vw, 7.5rem);
}
.eyebrow {
  font-family: var(--font-wide);
  font-weight: 800;
  font-stretch: 125%;
  font-variation-settings: "wdth" 125;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 36ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 56px;
  padding: 0 2rem;
  border: 2px solid transparent;
  font-family: var(--font-wide);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-red    { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-white  { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--ink); color: var(--white); border-color: var(--white); }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 1.25rem; font-size: 0.85rem; }

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 22px; width: auto; }
.brand .logo-light { display: none; }

.nav-links { display: flex; gap: 2.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-family: var(--font-wide); font-weight: 800; font-variation-settings: "wdth" 125;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem;
  text-decoration: none; position: relative; padding: 0.4rem 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* Transparent header that sits over the home-page video */
.site-header.over-hero { background: transparent; border-color: transparent; color: var(--white); }
.site-header.over-hero .logo-dark { display: none; }
.site-header.over-hero .logo-light { display: block; }
.site-header.over-hero .nav-links a::after { background: var(--white); }
/* once the page scrolls, JS removes .over-hero so the bar turns solid again */

/* Burger button (mobile only) */
.menu-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer; position: relative; z-index: 60;
}
.menu-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor;
  transition: transform .3s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; justify-content: center; gap: 0.5rem;
    padding: 0 var(--gutter);
    background: var(--green); color: var(--white);
    transform: translateY(-100%); visibility: hidden;
    transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s linear .4s;
  }
  .nav-links a {
    font-family: var(--font-display); font-weight: 400; font-variation-settings: normal;
    font-size: clamp(3.5rem, 18vw, 6rem); letter-spacing: 0; line-height: 1.05;
  }
  .nav-links a::after { background: var(--red); height: 6px; }
  .menu-open .nav-links { transform: translateY(0); visibility: visible; transition: transform .4s cubic-bezier(.7,0,.2,1); }
  .menu-open .site-header { color: var(--white); }
  body.menu-open { overflow: hidden; }
}

main { padding-top: var(--nav-h); }
main.has-hero { padding-top: 0; }

/* =========================================================
   HOME — HERO  (black, like the Riverside artwork)
   Cover/animation on one side, release info on the other.
   ========================================================= */
.hero {
  background: #0D0C0A; color: var(--white);   /* exact black of the artwork, so the video edges blend in */
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vw, 3rem)) 0 clamp(3rem, 7vw, 5rem);
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
}
/* Portrait video box: as tall as the screen allows, width follows the 9:16 shape */
.hero-cover {
  aspect-ratio: 9 / 16;
  height: min(calc(100svh - var(--nav-h) - 4rem), 780px);
  background: #0D0C0A; overflow: hidden;
}
.hero-cover video { width: 100%; height: 100%; object-fit: cover; }
.hero .eyebrow { display: block; margin-bottom: 1.25rem; color: var(--red); }
.hero-title { margin: 0 0 1.25rem; }
.hero-title img { width: 100%; height: auto; }
.release-date {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: 0 0 1.5rem;
}
.countdown { display: flex; gap: 1.5rem; margin-bottom: 2rem; font-variant-numeric: tabular-nums; }
.countdown div { text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.countdown small { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: .8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; justify-items: center; }
  .hero-cover { height: auto; width: min(100%, 420px); }
  .hero-content { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Animation loops grid ---------- */
.motion { padding-top: clamp(1rem, 3vw, 2rem); }   /* sits close under the black hero */
.motion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.motion-item { aspect-ratio: 9 / 16; background: #000; overflow: hidden; }
.motion-item video { width: 100%; height: 100%; object-fit: cover; }
.section-dark .btn-outline:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: clamp(4rem, 10vw, 8rem) 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-dark  { background: var(--ink);   color: var(--white); }
.section-green { background: var(--green); color: var(--white); }
.section-red   { background: var(--red);   color: var(--white); }

/* Page title band at the top of live.html and listen.html */
.page-hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero .display { font-size: clamp(4rem, 15vw, 12rem); }
.page-hero .eyebrow { color: var(--red); display: block; margin-bottom: 1rem; }

/* =========================================================
   LIVE — tour list (used on live.html and the home preview)
   ========================================================= */
.tour-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid currentColor; }
.show {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  align-items: center; gap: 1rem 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.section-dark .show, .section-green .show { border-color: rgba(255,255,255,.2); }
.show-date { font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.show-date .day { display: block; font-size: 3rem; }
.show-date .month { font-size: 1.1rem; letter-spacing: .04em; }
.show-city {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1;
}
.show-venue { font-size: 1rem; margin-top: .35rem; opacity: .85; }
.show-tag {
  display: inline-block; margin-left: .6rem; vertical-align: middle;
  padding: .3rem .6rem;
  font-family: var(--font-wide); font-weight: 800; font-variation-settings: "wdth" 125;
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--red); color: var(--white);
}

/* Headline shows: full-bleed green row so they stand out */
.show.is-headline {
  background: var(--green); color: var(--white);
  border-bottom-color: var(--green);
  margin: 0 calc(var(--gutter) * -1);
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.show.is-headline .show-city { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.show.is-headline .btn { background: var(--white); color: var(--ink); }
.show.is-headline .btn:hover { background: var(--red); color: var(--white); }
.section-green .show.is-headline { background: var(--ink); }

.show.is-past { display: none; }       /* JS hides shows whose date has gone */
.tour-empty { padding: 2rem 0; display: none; }

@media (max-width: 640px) {
  .show { grid-template-columns: 1fr auto; grid-template-areas: "date date" "info btn"; }
  .show-date { grid-area: date; display: flex; align-items: baseline; gap: .5rem; }
  .show-date .day { display: inline; font-size: 1.6rem; }
  .show-info { grid-area: info; }
  .show .btn { grid-area: btn; }
  .show-tag { margin-left: 0; }
}

/* =========================================================
   NEWSLETTER
   ========================================================= */
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.newsletter .display { font-size: clamp(3rem, 8vw, 6.5rem); }
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.signup .full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.field input {
  width: 100%; height: 56px; padding: 0 1rem;
  font: inherit; color: var(--white);
  background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.6); border-radius: 0;
  transition: border-color .2s ease, background-color .2s ease;
}
.field input::placeholder { color: rgba(255,255,255,.6); }
.field input:focus { outline: none; border-bottom-color: var(--white); background: rgba(255,255,255,.07); }
.signup .btn { width: 100%; }
.signup-note { grid-column: 1 / -1; font-size: .85rem; opacity: .8; margin: 0; }
.signup-success { display: none; font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; }
.signup.sent > * { display: none; }
.signup.sent .signup-success { display: block; grid-column: 1 / -1; }
.signup-error { grid-column: 1 / -1; margin: 0; padding: .75rem 1rem; background: var(--white); color: var(--ink); font-weight: 700; }

@media (max-width: 860px) { .newsletter-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .signup { grid-template-columns: 1fr; } }

/* =========================================================
   LISTEN
   ========================================================= */
.release-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.release-art {
  aspect-ratio: 1 / 1; background: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 6%;
}
.release-art img { width: 100%; height: auto; }
.release-art.has-photo { padding: 0; }
.release-art.has-photo img { height: 100%; object-fit: cover; }
.release-info .display { font-size: clamp(3rem, 8vw, 6rem); margin: .5rem 0 1rem; }
.release-info .btn { margin: .5rem .75rem .5rem 0; }

.embed { width: 100%; border: 0; background: rgba(0,0,0,.06); }
.embed-wide { height: 352px; margin-top: 1.5rem; }

.disco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.disco-item h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 2rem; margin: 1rem 0 .25rem; }
.disco-item p { color: var(--grey); font-size: .95rem; }
.disco-item .embed { height: 352px; }

@media (max-width: 860px) { .release-feature { grid-template-columns: 1fr; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--green-deep); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.footer-logo img { width: 100%; max-width: 900px; height: auto; margin-bottom: 3rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.socials { display: flex; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.socials a {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.4); font-size: 1.2rem; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover { background: var(--white); color: var(--green-deep); border-color: var(--white); transform: translateY(-2px); }
.footer-nav { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; }
.footer-small { margin-top: 2.5rem; font-size: .8rem; opacity: .7; }

/* ---------- Respect "reduce motion" settings ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* "Tickets soon" — a greyed-out button for gigs with no ticket link yet.
   It's a <span>, not a link, so clicking it does nothing. */
.btn.is-soon { opacity: .45; cursor: default; pointer-events: none; }
