/* ==========================================================================
   Echo the Division — public site styles
   Clean & bright. Change the colours in :root to re-theme everything.
   ========================================================================== */

:root {
  --accent: #f2542d;          /* warm stage orange */
  --accent-dark: #c93c18;
  --accent-soft: #fff0ea;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #6b6b76;
  --line: #e7e3dc;
  --bg: #ffffff;
  --tint: #faf7f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24,24,27,.06), 0 8px 24px rgba(24,24,27,.06);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--accent-dark); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: .5em; }
.eyebrow a { text-decoration: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0 72px; }
.section-tint { background: var(--tint); }
.section-accent { background: var(--accent); color: #fff; }
.section-accent .lead { color: rgba(255,255,255,.92); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.link-arrow { font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " \2192"; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.3em; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-small { padding: .45em 1em; font-size: .9rem; }
.btn-large { padding: .9em 1.7em; font-size: 1.05rem; }
.btn-outline { background: transparent; color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-dark); }
.btn-light { background: #fff; border-color: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: #fff; }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-mark { color: var(--accent); display: flex; }
.brand:hover { color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: .3rem; }
.site-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; padding: .5em .8em; border-radius: 8px; }
.site-nav a:not(.btn):hover { background: var(--tint); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--accent-dark); }
.site-nav .btn { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 22px 1.2rem; display: none; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: .8em .4em; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav .btn { margin: 1rem 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: min(78vh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); color: #fff; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.72) 100%); }
.hero-plain { background: linear-gradient(135deg, #ffb48a 0%, var(--accent) 55%, #b9311a 100%); }
.hero-plain .hero-shade { display: none; }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 64px; }
.hero-kicker { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; margin-bottom: .6rem; opacity: .95; }
.hero-title { font-family: var(--font-display); font-size: clamp(2.8rem, 9vw, 6.2rem); line-height: .95; letter-spacing: -0.03em; margin: 0 0 2rem; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.page-head { padding: 56px 0 24px; background: linear-gradient(180deg, var(--accent-soft), #fff); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin-bottom: 0; }

/* Gigs ------------------------------------------------------------------- */
.gig-list { display: grid; gap: 14px; }
.gig { display: grid; grid-template-columns: 74px 1fr auto; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 16px 16px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.gig:target { outline: 3px solid var(--accent); }
.gig-date { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; padding: 8px 0; line-height: 1.05; text-transform: uppercase; font-weight: 800; }
.gig-dow, .gig-mon { font-size: .72rem; letter-spacing: .08em; }
.gig-day { font-size: 1.9rem; color: var(--ink); letter-spacing: -0.03em; }
.gig-title { margin: 0 0 .2em; font-size: 1.15rem; }
.gig-meta { display: flex; flex-wrap: wrap; gap: .25em 1em; margin: 0; color: var(--ink-2); font-size: .95rem; }
.gig-meta { column-gap: 1.4em; }
.gig-notes { margin: .4em 0 0; font-size: .92rem; color: var(--muted); }
.gig-address { margin: .3em 0 0; font-size: .88rem; }
.gig-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.gig.is-cancelled .gig-title, .gig.is-cancelled .gig-meta { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.gig.is-cancelled .gig-title .badge { text-decoration: none; display: inline-block; }
.gig-list-past .gig { box-shadow: none; }
.gig-list-past .gig-date { background: #f0ede8; color: var(--muted); }
@media (max-width: 600px) {
  .gig { grid-template-columns: 62px 1fr; padding: 14px; gap: 14px; }
  .gig-actions { grid-column: 2; justify-content: flex-start; }
  .gig-actions:empty { display: none; }
}

.badge { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .25em .6em; border-radius: 999px; vertical-align: middle; background: var(--tint); color: var(--ink-2); }
.badge-red { background: #fde4e1; color: #b42318; }

.gigs-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .gigs-layout { grid-template-columns: 1fr; } }

.calendar-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); position: sticky; top: 90px; }
@media (max-width: 960px) { .calendar-wrap { position: static; } }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.calendar-head h2 { margin: 0; font-size: 1.4rem; scroll-margin-top: 100px; }
.cal-nav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); text-decoration: none; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.cal-nav:hover { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-soft); }
.calendar { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.calendar th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 4px 0; }
.calendar th abbr { text-decoration: none; display: none; }
.calendar td { vertical-align: top; height: 86px; border-radius: 10px; background: var(--tint); padding: 6px; overflow: hidden; }
.calendar td.cal-empty { background: transparent; }
.calendar td.is-past { opacity: .55; }
.calendar td.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.calendar td.has-gig { background: var(--accent-soft); }
.cal-num { display: block; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.cal-gig { display: block; margin-top: 4px; font-size: .74rem; line-height: 1.25; background: var(--accent); color: #fff; border-radius: 6px; padding: 3px 5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-gig:hover { background: var(--accent-dark); color: #fff; }
.cal-gig.is-private { background: var(--ink-2); }
.cal-gig.is-cancelled { background: #ddd; color: #777; text-decoration: line-through; }
.cal-time { font-weight: 700; }
@media (max-width: 600px) {
  .calendar-wrap { padding: 12px 8px; }
  .calendar { border-spacing: 2px; }
  .calendar th .wide { display: none; }
  .calendar th abbr { display: inline; }
  .calendar td { height: 52px; padding: 4px; }
  .cal-gig { font-size: 0; padding: 0; height: 8px; width: 8px; border-radius: 50%; margin: 6px auto 0; }
}

/* Cards ------------------------------------------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(24,24,27,.06), 0 16px 32px rgba(24,24,27,.10); }
.card-img { display: block; aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img-empty { background: linear-gradient(135deg, #ffd5c2, var(--accent)); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--accent-dark); }
.card-body p:last-child { margin-bottom: 0; font-size: .95rem; }

/* Split / prose ---------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.prose p { color: var(--ink-2); }
.prose p:first-of-type { font-size: 1.1rem; color: var(--ink); }
.review-body p { font-size: 1.1rem; }

.photo-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-mosaic .media-photo { aspect-ratio: 1; }
.photo-mosaic .media-photo:first-child { grid-row: span 2; aspect-ratio: auto; }

.follow-box { background: var(--tint); border-radius: var(--radius); padding: 26px; }
.follow-links { display: grid; gap: 10px; }
.follow-link { display: flex; align-items: center; gap: .7em; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75em 1em; color: var(--ink); text-decoration: none; font-weight: 600; }
.follow-link:hover { border-color: var(--accent); color: var(--accent-dark); }

.book-actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.6rem; }

/* Media ------------------------------------------------------------------ */
.media-photo { display: block; border-radius: 10px; overflow: hidden; background: var(--tint); cursor: zoom-in; }
.media-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.media-photo:hover img { transform: scale(1.04); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery-grid .media-photo { aspect-ratio: 1; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.video-item { margin: 0; }
.video-item figcaption { margin-top: .5em; font-size: .95rem; color: var(--ink-2); }
.from-review { display: block; font-size: .85rem; font-weight: 600; }
.media-video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; object-fit: contain; }
.media-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.media-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.review-videos { margin: 2rem auto 2.5rem; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: 1rem; }
.tabs a { padding: .45em 1.1em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.review-meta { display: flex; flex-wrap: wrap; gap: .3em 1.2em; color: var(--muted); margin: 0; }
.review-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.review-nav a { text-decoration: none; font-weight: 700; color: var(--ink); max-width: 48%; }
.review-nav a small { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.review-nav a.right { text-align: right; margin-left: auto; }
.notice { background: #fff7d6; border: 1px solid #f3df8a; border-radius: 10px; padding: .6em 1em; margin-top: 1rem; }

.empty { background: var(--tint); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--ink-2); }
.empty p:last-child { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #d4d4d8; padding: 44px 0 26px; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.2rem; margin: 0; }
.site-footer .muted { color: #a1a1aa; margin: 0; }
.footer-links { display: flex; gap: .6rem; }
.footer-links a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); }
.footer-links a:hover { background: var(--accent); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; color: #a1a1aa; }
.footer-bottom a { color: #d4d4d8; }

/* Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,10,12,.94); display: flex; align-items: center; justify-content: center; padding: 24px 64px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 110px); width: auto; border-radius: 6px; }
.lightbox figcaption { color: #e4e4e7; margin-top: .8em; text-align: center; min-height: 1.4em; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--accent); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 60px 8px; } .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
[hidden] { display: none !important; }
