/* By WiRED, editorial light, direction 4.
   Source of truth: bywired_design_spec.md */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;800&family=Inter+Tight:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* canvas and structure */
  --bone: #F2EFE8;
  --bone-2: #E8E4DA;
  --ink: #12140F;
  --body: #3E3F37;
  --muted: #6E6A5E;
  --line: #D8D3C7;

  /* video panel interior */
  --panel: #0C1113;
  --panel-deep: #06090A;
  --on-panel: #F2EFE8;
  --on-panel-2: #C5CBCE;

  /* homepage default accent: Arugam Days rust */
  --accent: #C2540E;
  --lead: #26281F;

  --font-display: 'Archivo', sans-serif;
  --font-body: 'Inter Tight', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--body);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

/* visible keyboard focus everywhere, never removed without replacement */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

/* type roles */

.display,
h1, h2,
.logo-mark-text,
.row-name {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}

.mono,
.eyebrow,
.mono-count,
.mono-label,
.site-nav a,
.row-num,
.row-city,
.row-date,
.video-caption,
.form-field label,
.site-footer {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
}

p {
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  max-width: 48ch;
  color: var(--body);
}

hr,
.hairline {
  border: 0;
  border-top: 0.5px solid var(--line);
}

/* ============ header ============ */

.site-header {
  border-bottom: 0.5px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
}

/* Interim fix: source logo art is white-only PNGs with transparent backgrounds.
   brightness(0) forces the visible pixels solid black against the bone canvas.
   Replace with a real ink-coloured SVG when the vector is delivered. */
.logo-mark {
  width: 120px;
  height: auto;
  filter: brightness(0);
}

@media (min-width: 768px) {
  .logo-mark {
    width: 165px;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

/* ============ hero ============ */

.hero {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
}

.accent-word {
  color: var(--accent);
}

.video-panel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  margin-bottom: 2rem;
}

@media (max-width: 639px) {
  .video-panel {
    aspect-ratio: 4 / 5;
  }
}

.hero-video,
.video-panel .poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  cursor: pointer;
}

.video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6, 9, 10, 0.45) 0%,
    rgba(6, 9, 10, 0.08) 42%,
    rgba(6, 9, 10, 0.1) 58%,
    rgba(6, 9, 10, 0.5) 100%
  );
  pointer-events: none;
}

.video-caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--on-panel-2);
}

/* ============ statement ============ */

.statement {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.statement-h1 {
  font-size: clamp(30px, 7.8vw, 72px);
}

/* ============ index of brands ============ */

.brands-index {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-size: clamp(18px, 3vw, 28px);
}

.brand-row {
  display: grid;
  grid-template-columns: 26px 1fr 78px 74px;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-top: 0.5px solid var(--line);
  transition: background 250ms ease;
}

.brand-rows a:last-child {
  border-bottom: 0.5px solid var(--line);
}

@media (min-width: 768px) {
  .brand-row {
    grid-template-columns: 40px 1fr 160px 140px;
    padding: 20px 24px;
  }
}

.brand-row:hover {
  background: var(--bone-2);
}

.brand-row:hover .row-name {
  transform: translateX(6px);
}

.row-num {
  color: var(--muted);
}

.row-name {
  font-size: clamp(18px, 3.4vw, 32px);
  letter-spacing: -0.025em;
  transition: transform 250ms ease;
}

.row-city {
  color: var(--muted);
}

.row-date {
  text-align: right;
}

.row-date.confirmed {
  color: var(--row-accent, var(--accent));
}

.row-date.muted {
  color: var(--muted);
}

/* ============ studios block ============ */

.studios-block {
  background: var(--bone-2);
  border-top: 0.5px solid var(--line);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mono-label {
  display: block;
  color: var(--accent);
  background: none;
  margin-bottom: 1rem;
}

.studios-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.004em;
  max-width: 48ch;
  color: var(--body);
  margin: 0 0 1.5rem;
}

.lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--lead);
}

/* ============ two column body copy ============ */

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px 48px;
}

.two-col > p {
  max-width: 42ch;
  margin: 0;
}

@media (max-width: 767px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ============ contact form ============ */

.contact-block {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 0.5px solid var(--line);
}

.contact-h2 {
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 1.5rem;
}

.contact-form {
  max-width: 560px;
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-field label {
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bone);
  border: 0.5px solid var(--line);
  border-radius: 0;
  padding: 12px;
  width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-field textarea {
  resize: vertical;
}

.form-submit {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0.5px solid var(--ink);
  padding: 14px 24px;
  margin-top: 8px;
}

.form-submit:hover {
  color: var(--bone);
  background: var(--ink);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.form-result {
  max-width: 560px;
}

.form-result-heading {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.form-result-error .form-result-heading {
  color: var(--accent);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ footer ============ */

.site-footer {
  border-top: 0.5px solid var(--line);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-social,
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
}

.footer-inner a:hover {
  color: var(--ink);
}

/* ============ artist pages ============ */

.artist-hero {
  padding-top: 3rem;
  padding-bottom: 2rem;
}

/* Portrait and name share one column so the name never runs wider than
   the photo; two word names break onto a second line. */
.artist-id {
  width: 220px;
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.artist-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 0;
  margin-bottom: 1rem;
}

.artist-name {
  font-size: 30px;
  line-height: 0.95;
  margin: 0;
}

.artist-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.artist-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
}

.artist-social a:hover,
.artist-social a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.social-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.artist-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.artist-action {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0.5px solid var(--ink);
  padding: 14px 24px;
}

.artist-action:hover {
  color: var(--bone);
  background: var(--ink);
}

.artist-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-top: 0.5px solid var(--line);
}

.artist-section h2 {
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 1.5rem;
}

.genre-line {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
}

/* Sets: video and audio are separate lists, switched with two icon
   buttons. Without JS both lists simply stack. */
.sets-toggle {
  display: none;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.js-tabs .sets-toggle {
  display: flex;
}

.sets-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  color: var(--muted);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.sets-toggle-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.sets-toggle-btn[aria-pressed="true"] {
  color: var(--bone);
  background: var(--ink);
  border-color: var(--ink);
}

.sets-toggle-btn .social-icon {
  width: 20px;
  height: 20px;
}

.video-sets,
.audio-sets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-sets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px 24px;
}

.audio-sets {
  margin-top: 1.5rem;
}

.js-tabs .audio-sets {
  margin-top: 0;
}

.video-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bone-2);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.play-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(12, 17, 19, 0.75);
  color: var(--on-panel);
}

.play-badge svg {
  width: 18px;
  height: 18px;
}

.video-thumb:hover .play-badge {
  background: var(--accent);
}

.video-title {
  font-size: 16px;
  color: var(--body);
}

.video-title:hover {
  color: var(--accent);
}

.audio-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--line);
}

.audio-set:first-child {
  border-top: 0.5px solid var(--line);
}

.audio-title {
  font-size: 16px;
  color: var(--body);
}

.audio-platforms {
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.audio-platforms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.audio-platforms a:hover {
  color: var(--accent);
  background: var(--bone-2);
}

.audio-platforms .social-icon {
  width: 24px;
  height: 24px;
}

.sets-empty {
  color: var(--muted);
  font-size: 14px;
}

/* Wider screens: photo column on the left, tabs and their content beside
   it. Phones and tablets keep the stacked layout. */
@media (min-width: 900px) {
  .artist-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0 64px;
    align-items: start;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .artist-layout .artist-hero {
    padding-top: 0;
  }

  .artist-layout .artist-id {
    width: 100%;
  }

  .artist-layout .tab-list {
    margin-top: 0;
  }
}

/* Keep the photo column in view while scrolling, only where it fits. */
@media (min-width: 900px) and (min-height: 760px) {
  .artist-layout .artist-hero {
    position: sticky;
    top: 2rem;
  }
}

/* ============ artist tabs ============ */

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-top: 2.5rem;
}

.tab-btn {
  display: none;
}

.js-tabs .tab-list {
  border-bottom: 0.5px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}

.js-tabs .tab-btn {
  display: inline-block;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 2px solid transparent;
}

.js-tabs .tab-btn:hover {
  color: var(--ink);
}

.js-tabs .tab-btn[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.js-tabs .artist-section {
  border-top: 0;
}

/* ============ shows tab ============ */

.shows-table-wrap {
  overflow-x: auto;
}

.shows-table {
  width: 100%;
  border-collapse: collapse;
}

.shows-table th,
.shows-table td {
  text-align: left;
  padding: 14px 12px 14px 0;
  border-bottom: 0.5px solid var(--line);
  font-size: 15px;
  vertical-align: middle;
  white-space: nowrap;
}

.shows-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.shows-table td.show-event {
  white-space: normal;
  min-width: 200px;
}

.show-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.buy-tickets {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--accent);
  border: 0.5px solid var(--accent);
  padding: 8px 12px;
  white-space: nowrap;
}

.buy-tickets:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.add-to-cal {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0.5px solid var(--ink);
  padding: 8px 12px;
  white-space: nowrap;
}

.add-to-cal:hover {
  background: var(--ink);
  color: var(--bone);
}

.past-shows-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
}

.past-shows td {
  color: var(--muted);
}

.shows-loading,
.shows-empty,
.shows-error {
  color: var(--muted);
  font-size: 14px;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.update-date {
  display: block;
  margin-bottom: 0.5rem;
}

/* ============ legal pages ============ */

.legal-content h2 {
  font-size: clamp(18px, 3vw, 24px);
  margin: 2.5rem 0 1rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p.studios-copy {
  max-width: 70ch;
}

/* ============ bookings page ============ */

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px 24px;
}

.bookings-card {
  display: block;
}

.bookings-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 12px;
}

.bookings-card .row-name {
  font-size: clamp(18px, 2.4vw, 26px);
  transition: transform 250ms ease;
}

.bookings-card:hover .row-name {
  transform: translateX(6px);
  color: var(--accent);
}

/* ============ motion and accessibility ============ */

@media (prefers-reduced-motion: reduce) {
  .brand-row,
  .row-name,
  .bookings-card .row-name,
  .video-thumb img {
    transition: none;
  }

  .brand-row:hover .row-name,
  .bookings-card:hover .row-name {
    transform: none;
  }
}
