/* VIALY Studios: shared styles for every page */

/* 1. Tokens: colours and fonts, used everywhere through var(--name) */
:root {
  --ink: #0a0a0a;          /* stage black, main background */
  --ink-2: #161616;
  --paper: #f2f2f0;        /* light card grey */
  --white: #fafaf8;
  --line: #2a2a2a;
  --mute: #8d8d8a;
  --accent: #B3261E;       /* oxblood red: fills */
  --accent-deep: #8E1D17;  /* hover */
  --accent-text: #E0483E;  /* red text on black */

  --display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --cond: "Oswald", "Arial Narrow", Impact, sans-serif;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Anything marked hidden in the HTML stays hidden, even if a rule below gives it a display */
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; }

/* Centred page column */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: 20px;
}

/* 3. Type */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 104px); }
h2 { font-size: clamp(36px, 5.5vw, 68px); }
h3 { font-size: clamp(24px, 2.6vw, 34px); }
p  { margin: 0; }

/* Small condensed caps, e.g. "Production · Record label · Events" */
.label {
  font-family: var(--cond);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.red { color: var(--accent-text); }

/* Light sections: grey background, black text */
.on-light { background: var(--paper); color: var(--ink); color-scheme: light; }
.on-light :focus-visible { outline-color: var(--ink); }

/* 4. Buttons: pill shape, 2px border */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 32px;
  border: 2px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-family: var(--cond);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:hover, .btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Solid red button, e.g. "Book a session" */
.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.btn-solid:hover, .btn-solid:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

/* On light grey, outline buttons hover to black instead of red */
.on-light .btn:not(.btn-solid):hover,
.on-light .btn:not(.btn-solid):focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

/* 5. Cards: 6px black frame on light grey */
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 6px solid var(--ink);
  padding: 32px;
  min-width: 0;
}
.card p { color: #33332f; }

/* 6. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-block: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--white);
}
.brand span {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Nav links */
.menu { margin-left: auto; }
.menu ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  font-family: var(--cond);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  opacity: 0.85;
}
.menu a:hover, .menu a:focus-visible {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.menu a[aria-current="page"] { opacity: 1; color: var(--accent-text); }

/* "Book": outlined CTA in the nav */
.menu a.nav-cta {
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 4px 16px;
  opacity: 1;
}
.menu a.nav-cta:hover, .menu a.nav-cta:focus-visible {
  background: var(--accent);
  text-decoration: none;
}

/* Account and cart, on the right */
.bar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.acct-link, .cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--cond);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--white);
}
.acct-link svg, .cart-btn svg { width: 24px; height: 24px; }
.acct-link:hover, .cart-btn:hover { color: var(--accent-text); }
.cart-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.bag { position: relative; display: flex; }
.cart-n {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0;
}
.cart-n[hidden] { display: none; }

/* Burger: only on small screens */
.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px 2px;
  cursor: pointer;
}
.burger i {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--white);
  margin: 7px 0;
  transition: transform 0.25s;
}
.burger[aria-expanded="true"] i:first-child { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child  { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1060px) {
  .menu ul { gap: 16px; }
  .menu a { font-size: 15px; letter-spacing: 0.06em; }
  .acct-link span { display: none; }
}

/* Phones and small tablets: nav becomes a drop-down panel */
@media (max-width: 900px) {
  .bar-actions { margin-left: auto; }
  .burger { display: block; }
  .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
  }
  .site-header.menu-open .menu { display: block; }
  .menu ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
  }
  .menu a {
    display: block;
    padding: 12px 0;
    font-size: 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu a.nav-cta { border: 0; border-radius: 0; padding: 12px 0; color: var(--accent-text); }
  .menu a.nav-cta:hover { background: none; }
}

@media (max-width: 420px) {
  .brand span { font-size: 15px; }
  .cart-total { display: none; }
}

/* 7. Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 32px;
  color: var(--mute);
  font-size: 14px;
}
.foot { display: grid; gap: 18px; }
.foot-links, .foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
}
.foot-links a, .foot-meta a {
  font-family: var(--cond);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
}
.foot-links a { color: var(--white); }
.foot-meta a.plain { text-transform: none; letter-spacing: 0.02em; }
.foot-links a:hover, .foot-meta a:hover { color: var(--accent-text); }

/* 8. Sections shared by many pages */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; }
.section-head p { max-width: 36em; color: var(--mute); }
.on-light .section-head p { color: #55554f; }

/* Red tag block in a card's top-right corner */
.card { position: relative; }
.card .tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 14px 9px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--cond);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* 9. Home */

/* Hero: dark gradient over the waveform banner, logo medal on the right */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(10,10,10,.94) 0%, rgba(10,10,10,.7) 45%, rgba(10,10,10,.35) 100%),
    url('/assets/bg/waveform.jpg') center / cover no-repeat;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  padding-block: clamp(56px, 9vw, 120px);
}
.hero h1 { margin-top: 18px; }
.hero .lede {
  max-width: 34em;
  margin-top: 28px;
  font-size: clamp(18px, 1.6vw, 20px);
  color: #d9d9d6;
}
.ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

.medal {
  position: relative;
  justify-self: center;
  width: min(100%, 340px);
  aspect-ratio: 1;
}
.medal img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--white), 0 30px 80px rgba(0,0,0,.7);
}
.medal::after {
  content: "";
  position: absolute;
  inset: -30px;
  border: 1px solid var(--accent-text);
  border-radius: 50%;
  opacity: 0.5;
}

/* Ticker: one long row that slides left forever */
.ticker {
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.ticker-track {
  display: inline-flex;
  gap: 44px;
  padding-block: 16px;
  font-family: var(--cond);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cfcfcc;
}
.ticker-track span::after { content: "/"; margin-left: 44px; color: var(--accent-text); }

/* Only animate for people who haven't asked their device to reduce motion */
@media (prefers-reduced-motion: no-preference) {
  .medal img { animation: spin 60s linear infinite; }
  .ticker-track { animation: roll 40s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes roll { to { transform: translateX(-50%); } }

/* What we do: 3 columns of service cards */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.services .card h3 { margin-top: 20px; }
.services .card p { flex: 1; }
.services .card .btn { align-self: flex-start; }

/* Our work: tabs, credits grid, releases list */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-family: var(--cond);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tab:hover { border-color: var(--accent-text); }
.tab[aria-selected="true"] { background: var(--white); color: var(--ink); }
.tab .count { font-size: 13px; opacity: 0.7; }

.panel-note { color: var(--mute); margin-bottom: 20px; }
.credits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credits li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.credits b { font-weight: 500; }
.credits span { font-size: 14px; line-height: 1.4; color: var(--mute); }

.releases-label { margin: 56px 0 12px; }
.releases { border-top: 1px solid var(--line); }
.release {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.disc {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--white);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.disc::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
a.release:hover .disc { background: var(--white); color: var(--ink); }
.release h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.01em; }
.release .who { font-size: 15px; color: var(--mute); }
.release .go {
  font-family: var(--cond);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
a.release:hover .go { color: var(--accent-text); }

/* Closing CTA with three link tiles */
.closing { border-top: 1px solid var(--line); }
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.tile {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 150px;
  padding: 26px;
  border: 2px solid var(--white);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.tile strong { font-family: var(--display); font-size: 22px; line-height: 1.2; }
.tile:hover { background: var(--accent); border-color: var(--accent); }
.tile:hover .label { color: #f3c9c5; }

/* Home on tablets and phones */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .medal { width: min(60%, 240px); justify-self: start; margin: 20px 0 10px 30px; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .card { padding: 26px 22px; }
  .credits { grid-template-columns: 1fr 1fr; gap: 8px; }
  .credits li { padding: 12px; }
  .release { grid-template-columns: 44px minmax(0, 1fr); }
  .disc { width: 44px; height: 44px; }
  .release .go { grid-column: 2; }
}

/* 10. Page banner: top of every page except Home.
   Each page sets its own photo with style="--bg: url(...)" */
.page-banner {
  background:
    linear-gradient(90deg, rgba(10,10,10,.92) 0%, rgba(10,10,10,.6) 50%, rgba(10,10,10,.25) 100%),
    var(--bg) center / cover no-repeat,
    var(--ink);
  border-bottom: 1px solid var(--line);
}
.page-banner .wrap {
  display: grid;
  gap: 14px;
  padding-block: clamp(72px, 11vw, 140px) clamp(48px, 7vw, 88px);
}
.page-banner .label { color: var(--accent-text); }
.banner-lede { max-width: 32em; color: #d9d9d6; font-size: clamp(17px, 1.5vw, 20px); }

/* Section heading with the text beside it instead of below */
.section-head.split {
  grid-template-columns: 1fr 1fr;
  gap: 20px 48px;
  align-items: start;
}

/* 11. About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.about h2 { margin-top: 14px; }
.on-light .label { color: #6d6d67; }
.facts {
  display: grid;
  gap: 16px;
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 6px solid var(--ink);
}
.facts dt {
  font-family: var(--cond);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6d6d67;
}
.facts dd { margin: 2px 0 0; font-weight: 500; }
.about-copy { display: grid; gap: 20px; max-width: 36em; font-size: 18px; color: #2a2a26; }

/* 12. Band */
.roster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.seat { gap: 8px; padding: 24px; }
.seat .label { margin-bottom: 4px; }
.seat h3 { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.2; }
.seat small {
  display: block;
  margin-top: 2px;
  font-family: var(--cond);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.band-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 24px;
  padding: 26px 28px;
  border: 2px solid var(--ink);
}
.band-cta p { max-width: 36em; font-size: 18px; }

/* About and Band on tablets and phones */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .section-head.split { grid-template-columns: 1fr; }
  .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .page-banner {
    background:
      linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.9) 100%),
      var(--bg) 70% center / cover no-repeat,
      var(--ink);
  }
  .roster { gap: 12px; }
  .seat { padding: 18px 16px; }
  .band-cta { padding: 22px 20px; }
}

/* 13. Book: intro on the left, form on the right */
.book {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.book-intro h2 { font-size: clamp(32px, 4vw, 48px); }
.book-intro > p { margin-top: 18px; max-width: 30em; font-size: 18px; }
.contact-direct {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 6px solid var(--ink);
}
.contact-direct li { display: grid; gap: 2px; }
.contact-direct a { font-weight: 500; font-size: 18px; text-decoration: none; }
.contact-direct a:hover { color: var(--accent); }
.social { margin-top: 24px; }
.social a:hover { color: var(--accent); }

/* Form fields: two columns, "full" ones span both */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 15px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--accent); }

.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form-foot .btn:disabled { opacity: 0.6; cursor: wait; }
.form-note { font-weight: 500; }
.form-note.error { color: var(--accent); }

/* Bot trap: moved off screen so people never see it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .book { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 620px) {
  .form { grid-template-columns: 1fr; }
}

/* 14. Events */
.event-list { display: grid; gap: 24px; }
.loading { color: #55554f; }

/* An upcoming event: black date column, details on white, 6px black frame */
.event {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  border: 6px solid var(--ink);
  background: var(--white);
}
.event-date {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 28px 24px;
  background: var(--ink);
  color: var(--white);
}
.event-date .mon {
  font-family: var(--cond);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}
.event-date .day { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; }
.event-date .time { color: #cfcfcc; font-size: 15px; }
.event-body { display: grid; gap: 14px; align-content: start; padding: 28px 32px; }
.event-body > .btn { justify-self: start; }
.event-where { color: #55554f; }

/* Ticket rows: name and "[n] left", price, − 0 + */
.tiers { border-top: 1px solid #d6d6d0; }
.tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #d6d6d0;
}
.tier-name { font-weight: 500; }
.tier .label { font-size: 13px; color: #6d6d67; }
.tier-price { font-weight: 500; }
.qty { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 132px; }
.qty button {
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.qty button:hover:not(:disabled) { background: var(--ink); color: var(--white); }
.qty button:disabled { opacity: 0.3; cursor: default; }
.qty output { min-width: 1.5em; text-align: center; font-weight: 500; }
.event-total {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.event-total strong { font-family: var(--display); font-weight: 800; font-size: 24px; }
.event-total .btn:disabled { opacity: 0.4; cursor: default; }
.event-empty { display: grid; gap: 14px; justify-items: start; padding: 32px; border: 6px solid var(--ink); }

/* Past events: light cards on the black section */
.past-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.past {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
}
.past .label { color: #6d6d67; }
.past p:last-child { color: #3a3a35; }

/* Mailing list box */
.mailing {
  display: grid;
  gap: 14px;
  margin-top: 48px;
  padding: 32px;
  background: var(--ink-2);
  border: 1px solid var(--line);
}
.mailing-row { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.mailing-row .field { flex: 1 1 260px; }
.mailing .field label { color: var(--white); }
.mailing .form-note.error { color: var(--accent-text); }

@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; }
  .event-date { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 18px 20px; }
  .event-date .day { font-size: 40px; }
  .event-body { padding: 22px 20px; }
  .tier { grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; }
  .tier .qty { grid-column: 1 / -1; justify-self: start; justify-content: flex-start; min-width: 0; }
  .tier .qty:empty { display: none; }
  .past-list { grid-template-columns: 1fr; }
  .mailing { padding: 24px 20px; }
}

/* 15. Merch: 3 columns of product cards */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product { gap: 12px; padding: 20px; }
.product h3 { font-size: clamp(22px, 2vw, 26px); margin-top: 6px; }
.product p { color: #3a3a35; }
.product-photo { aspect-ratio: 1; background: var(--ink); overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo.no-photo { display: grid; place-items: center; }
.product-photo.no-photo img { width: 45%; height: auto; border-radius: 50%; } /* the logo, when there's no photo */
.product-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; }
.product-price { margin-right: auto; font-family: var(--display); font-weight: 800; font-size: 22px; }
.product-buy .label { color: #6d6d67; }
.size {
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.products .event-empty { grid-column: 1 / -1; }

/* 16. Cart panel: slides in from the right on every page */
.cart-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, 0.6); }
.cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--paper);
  color: var(--ink);
  color-scheme: light; /* light form controls, like the radio buttons */
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.cart.open { transform: none; }
.cart-open { overflow: hidden; } /* the page behind stops scrolling */
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #d6d6d0;
}
.cart-head h2 { font-size: 32px; }
.cart-close {
  width: 52px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.cart-close:hover { background: var(--ink); color: var(--white); }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-body .label { margin-top: 18px; color: #6d6d67; }
.cart-lines { margin: 0; padding: 0; list-style: none; }
.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #d6d6d0;
}
.cart-name { font-weight: 500; }
.cart-sub { color: #55554f; font-size: 15px; }
.cart-line .qty { min-width: 0; }
.cart-empty { display: grid; gap: 12px; justify-items: start; padding-top: 16px; }
.cart-foot { display: grid; gap: 12px; padding: 18px 24px 24px; border-top: 1px solid #d6d6d0; }
.fulfil { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; }
.fulfil legend { margin-bottom: 6px; color: #6d6d67; }
.fulfil label { display: flex; align-items: center; gap: 10px; }
.fulfil input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); }
.cart-subtotal { display: flex; justify-content: space-between; font-family: var(--display); font-weight: 800; font-size: 22px; }
.cart-fine { color: #55554f; font-size: 15px; }
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: 0.5; cursor: default; }

@media (prefers-reduced-motion: reduce) {
  .cart { transition: none; }
}
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .products { grid-template-columns: 1fr; }
  .cart-head, .cart-body, .cart-foot { padding-inline: 18px; }
}

/* 17. Account, success and ticket pages */
.red-deep { color: var(--accent); } /* red text on light grey */

/* Account: one framed box in the middle */
.account { display: grid; justify-items: center; }
.account-box { width: min(100%, 620px); gap: 20px; }
.account-title { font-size: clamp(30px, 4vw, 40px); }
.form.one-col { grid-template-columns: 1fr; }
.mode-switch { display: flex; flex-wrap: wrap; gap: 10px; }
.mode-switch .btn { min-height: 44px; padding: 0 22px; }
.mode-switch .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--accent); }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.account-head p { color: #55554f; margin-top: 6px; }
.account-box h2.label { margin-top: 12px; color: #6d6d67; font-weight: 400; }
.account-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d6d6d0; }
.account-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 0;
  border-bottom: 1px solid #d6d6d0;
}
.account-list li > div { flex: 1 1 240px; min-width: 0; }
.account-list .btn { min-height: 44px; padding: 0 22px; }
.account-item { font-weight: 500; }
.account-sub, .account-empty { color: #55554f; font-size: 15px; }

/* Success: big thank-you */
.success .label { color: #6d6d67; }
.success h1 { margin-top: 14px; font-size: clamp(44px, 7vw, 88px); }
.success-lede { max-width: 36em; margin-top: 24px; font-size: 19px; color: #3a3a35; }
.success #order-ref { margin-top: 20px; }

/* Ticket: a single card, centred, made to be shown on a phone at the door */
.ticket-page { min-height: 100vh; }
.ticket-wrap { display: grid; justify-items: center; gap: 28px; max-width: 560px; padding-block: 32px 56px; }
.ticket-wrap .brand { justify-self: start; }
.ticket-wrap .brand span { color: var(--ink); }
.ticket {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 440px);
  padding: 28px 24px 32px;
  border: 6px solid var(--ink);
  background: var(--white);
  text-align: center;
}
.ticket .label { color: #6d6d67; }
.ticket-title { font-size: clamp(28px, 7vw, 40px); }
.ticket-qr { padding: 12px; background: #fff; }
.ticket-qr img, .ticket-qr canvas { width: 240px; height: 240px; }
.ticket-code { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: 0.02em; }
.ticket-used {
  padding: 6px 14px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* 18. Prose: long text pages like Privacy */
.prose { display: grid; gap: 16px; max-width: 760px; font-size: 18px; color: #2a2a26; }
.prose .label { color: #6d6d67; }
.prose h2 { margin-top: 24px; font-size: clamp(26px, 3vw, 34px); color: var(--ink); }
.prose ul { display: grid; gap: 10px; margin: 0; padding-left: 1.2em; }
.prose a:hover { color: var(--accent); }

/* 19. Admin: the team's page */
.admin-page { min-height: 100vh; }
.admin-bar { border-bottom: 1px solid #d6d6d0; background: var(--white); }
.admin-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.admin-bar .brand span { color: var(--ink); }
.admin-who { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: #55554f; font-size: 15px; }
.admin-who .btn { min-height: 44px; padding: 0 22px; }
.admin-main { padding-block: 32px 64px; }
.admin-login { margin: 24px auto 0; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.admin-tabs .tab { border-color: var(--ink); color: var(--ink); }
.admin-tabs .tab:hover { border-color: var(--accent); }
.admin-tabs .tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.admin-title { font-size: clamp(32px, 4vw, 44px); margin-bottom: 12px; }
.admin-title-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-note { margin-bottom: 20px; color: #55554f; }

/* Admin lists: one framed card per booking */
.admin-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.admin-item { padding: 18px 20px; border: 2px solid #d6d6d0; background: var(--white); }
.admin-item.is-new { border-color: var(--ink); border-left: 6px solid var(--accent); }
.admin-item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; }
.admin-item-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.admin-item-title { font-weight: 500; font-size: 18px; }
.admin-sub { color: #55554f; font-size: 15px; }
.admin-sub a { overflow-wrap: anywhere; }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.admin-actions .size { min-height: 44px; }
.admin-details { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Admin tables: scroll sideways on small screens instead of squashing */
.admin-table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; background: var(--white); border: 2px solid #d6d6d0; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid #e3e3de; text-align: left; white-space: nowrap; }
.admin-table th { font-family: var(--cond); font-weight: 400; font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: #6d6d67; }
