:root {
  --editorial-paper: #f1f0ed;
  --editorial-ink: #080808;
  --editorial-red: #f32b1c;
  --editorial-blue: #35b9ff;
  --editorial-rule: rgba(8, 8, 8, 0.18);
}

@font-face {
  font-family: 'SCUFF SF Pro Condensed Black';
  src: url('assets/fonts/SFPro-CondensedBlack.ttf') format('truetype');
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

body {
  background: var(--editorial-paper);
  color: var(--editorial-ink);
  font-family: Arial, Helvetica, sans-serif;
}

body::before,
body::after {
  opacity: 0;
}

.topbar,
.ticker,
.layout,
.mobile-nav,
.editorial-hero {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  box-shadow: none;
}

.brand__logo {
  filter: none;
}

.brand__beta {
  background: var(--editorial-ink);
  border-color: var(--editorial-ink);
  color: #fff;
}

.mobile-sign-in {
  display: none;
}

.topnav a,
.topbar__actions .button--ghost {
  color: var(--editorial-ink);
}

.topnav a:hover,
.topnav a:focus-visible,
.topbar__actions .button--ghost:hover,
.topbar__actions .button--ghost:focus-visible {
  border-color: var(--editorial-red);
  color: var(--editorial-red);
}

.search-field {
  border-color: var(--editorial-rule);
  background: transparent;
}

.search-field input {
  color: var(--editorial-ink);
}

.search-field__icon {
  color: var(--editorial-red);
}

.button--primary {
  background: var(--editorial-ink);
  color: #fff;
  box-shadow: 4px 4px 0 var(--editorial-red);
}

.button--ghost {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
  box-shadow: none;
}

.editorial-hero {
  display: grid;
  gap: clamp(1.3rem, 2.7vw, 2.6rem);
  padding: clamp(2.6rem, 6vw, 6.5rem) clamp(1.1rem, 3.2vw, 3.8rem) clamp(1.7rem, 3.2vw, 3.2rem);
  background: #fff;
  border: 1px solid var(--editorial-ink);
  margin-top: 18px;
  overflow: hidden;
}

.editorial-hero__topline,
.editorial-hero__bottomline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.editorial-wordmark {
  color: var(--editorial-ink);
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: clamp(3.6rem, 8.7vw, 9.5rem);
  font-stretch: condensed;
  letter-spacing: -0.105em;
  line-height: 0.76;
  text-decoration: none;
  white-space: nowrap;
}

.editorial-wordmark span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.42em;
  font-weight: 400;
  letter-spacing: -0.09em;
  margin-left: 0.12em;
}

.editorial-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--editorial-ink);
  font-size: clamp(0.68rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.editorial-link span {
  font-size: 1.1em;
  transition: transform 180ms ease;
}

.editorial-link:hover span,
.editorial-link:focus-visible span {
  transform: translate(3px, -3px);
}

.editorial-hero__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.75rem, 2.1vw, 2.1rem);
  padding-top: clamp(0.5rem, 1.2vw, 1.3rem);
}

.editorial-frame {
  position: relative;
  display: block;
  aspect-ratio: 0.67;
  overflow: hidden;
  background: var(--editorial-ink);
  transform: translateZ(0);
}

.editorial-frame:nth-child(2) {
  margin-top: clamp(1.2rem, 5vw, 5.5rem);
}

.editorial-frame:nth-child(4) {
  margin-top: clamp(0.5rem, 2.4vw, 2.5rem);
}

.editorial-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 42%, rgba(0, 0, 0, 0.65));
  transition: opacity 240ms ease;
}

.editorial-frame--red img {
  filter: saturate(1.35) contrast(1.14) hue-rotate(-8deg);
}

.editorial-frame--blue img {
  filter: saturate(1.2) contrast(1.06) hue-rotate(4deg);
}

.editorial-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 240ms ease;
}

.editorial-frame:hover img,
.editorial-frame:focus-visible img {
  transform: scale(1.045);
}

.editorial-frame:hover::after,
.editorial-frame:focus-visible::after {
  opacity: 0.75;
}

.editorial-frame__index {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.7rem;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.editorial-title {
  margin: 0;
  max-width: 9.5em;
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.76;
  text-transform: uppercase;
}

.editorial-title em {
  color: var(--editorial-red);
  font-style: normal;
}

.editorial-link--solid {
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
}

.editorial-link--right {
  align-self: end;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid currentColor;
}

.ticker {
  border-color: var(--editorial-ink);
  background: var(--editorial-ink);
  color: #fff;
}

.layout {
  margin-top: 28px;
}

.sidebar {
  background: #fff;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.content {
  border-color: var(--editorial-ink);
}

.display-title,
.section-title,
.utility-panel__title,
.pause-card__title,
.spotlight-card__title,
.compact-event-card__title,
.day-card__title,
.timeline-card__title,
.feed-card__title,
.venue-card__title {
  font-family: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
  font-style: normal;
  letter-spacing: -0.05em;
}

.display-title,
.section-title,
.section-title--muted,
.utility-panel__title,
.pause-card__title {
  color: var(--editorial-ink);
}

.section-line {
  background: var(--editorial-ink);
}

.section-pin {
  background: linear-gradient(180deg, rgba(241, 240, 237, 0.98) 0 82%, rgba(241, 240, 237, 0) 100%);
}

.section-block,
.section-footer {
  color: var(--editorial-ink);
}

.spotlight-card,
.day-card,
.timeline-card,
.feed-card,
.venue-card,
.utility-panel,
.pause-panel,
.empty-state,
.empty-grid,
.compact-event-card {
  background: #fff;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.spotlight-card:hover,
.spotlight-card:focus-within,
.day-card:hover,
.day-card:focus-within,
.timeline-card:hover,
.timeline-card:focus-within,
.feed-card:hover,
.feed-card:focus-within,
.venue-card:hover,
.venue-card:focus-within,
.utility-panel:hover,
.utility-panel:focus-within,
.compact-event-card:hover,
.compact-event-card:focus-within {
  box-shadow: 6px 6px 0 var(--editorial-red);
  border-color: var(--editorial-ink);
}

.rail-title,
.panel-kicker,
.spotlight-card__price,
.compact-event-card__price,
.feed-card__price,
.day-card__count,
.stat-box__value {
  color: var(--editorial-red);
}

.rail-button,
.chip,
.stat-box {
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.rail-button.is-active,
.chip.is-active {
  background: var(--editorial-red);
  border-color: var(--editorial-red);
  color: #fff;
}

.card-link {
  background: var(--editorial-ink);
  color: #fff;
}

.card-link--ghost {
  background: transparent;
  border-color: var(--editorial-ink);
  color: var(--editorial-ink);
}

.status-pill {
  background: var(--editorial-red);
  color: #fff;
}

.status-pill--upcoming {
  background: var(--editorial-blue);
  color: var(--editorial-ink);
}

.time-badge,
.tag-chip {
  background: var(--editorial-ink);
  border-color: var(--editorial-ink);
  color: #fff;
}

.pause-panel {
  background: rgba(255, 255, 255, 0.5);
}

.page-loader__lanes {
  display: none;
}

.page-loader__status {
  position: absolute;
  left: 50%;
  bottom: 3.5vh;
  z-index: 4;
  margin: 0;
  color: #fff;
  font-family: 'SCUFF SF Pro Condensed Black', 'SF Pro Condensed', 'Helvetica Neue Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100% - 28px);
  text-align: center;
  white-space: normal;
}

html.scuff-slow-loading .page-loader__status {
  opacity: 1;
  transform: translate(-50%, 0);
}

html.scuff-slow-loading .page-loader__status.is-changing {
  opacity: 0;
  transform: translate(-50%, 8px);
}

html.scuff-entering-explorer .page-loader {
  background: var(--editorial-paper);
  place-items: stretch;
  overflow: hidden;
  isolation: isolate;
}

html.scuff-entering-explorer .page-loader__frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

html.scuff-entering-explorer .page-loader__mark {
  color: #fff;
  font-family: 'SCUFF SF Pro Condensed Black', 'SF Pro Condensed', 'Helvetica Neue Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(5rem, 14vw, 13rem);
  font-style: normal;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -0.1em;
  mix-blend-mode: normal;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane {
  transform: translateY(-104%);
  transition: transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--one {
  transition-delay: 0ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--two {
  transition-delay: 80ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--three {
  transition-delay: 160ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__lane--four {
  transition-delay: 240ms;
}

html.scuff-entering-explorer.scuff-explorer-reveal .page-loader__frame {
  transform: translate(-50%, -50%) translateY(-18px);
  opacity: 0;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), opacity 280ms ease;
}

html.scuff-entering-explorer .page-loader__bar {
  display: none;
}

html.scuff-entering-explorer .page-loader__status {
  mix-blend-mode: difference;
}

html.scuff-entering-explorer .page-loader__lanes {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.scuff-entering-explorer .page-loader__lane {
  display: block;
  min-width: 0;
  background-position: center;
  background-size: cover;
  transform: translateY(0);
}

html.scuff-entering-explorer .page-loader__lane--one {
  background-image: url('assets/events/downloads-red-crowd.jpg');
}

html.scuff-entering-explorer .page-loader__lane--two {
  background-image: url('assets/events/downloads-dance-floor.jpg');
}

html.scuff-entering-explorer .page-loader__lane--three {
  background-image: url('assets/events/downloads-flash-crowd.jpg');
}

html.scuff-entering-explorer .page-loader__lane--four {
  background-image: url('assets/events/downloads-street.jpg');
}

@media (max-width: 760px) {
  .topbar,
  .ticker,
  .layout,
  .mobile-nav,
  .editorial-hero {
    width: min(var(--max), calc(100% - 20px));
  }

  .editorial-hero {
    padding: 1.5rem 0.85rem 1.2rem;
    gap: 1.2rem;
  }

  .editorial-hero__topline {
    align-items: center;
  }

  .editorial-wordmark {
    font-size: clamp(3.2rem, 16vw, 5.8rem);
  }

  .editorial-hero__gallery {
    gap: 0.45rem;
  }

  .editorial-frame:nth-child(2),
  .editorial-frame:nth-child(4) {
    margin-top: 0;
  }

  .editorial-frame__index {
    right: 0.3rem;
    bottom: 0.35rem;
    font-size: 0.47rem;
    writing-mode: vertical-rl;
  }

  .editorial-hero__bottomline {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1rem;
  }

  .editorial-title {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: clamp(3rem, 16vw, 6rem);
  }

  .editorial-link--solid {
    grid-column: 1;
    grid-row: 2;
  }

  .editorial-link--right {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-frame img,
  .editorial-link span,
  html.scuff-entering-explorer .page-loader__lane,
  html.scuff-entering-explorer .page-loader__frame {
    transition: none;
  }
}

/* Explorer mobile layout: keep the event stream readable at phone widths. */
@media (max-width: 760px) {
  body {
    padding-bottom: 96px;
  }

  .topbar,
  .ticker,
  .layout,
  .mobile-nav {
    width: min(var(--max), calc(100% - 28px));
  }

  .topbar {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    margin-top: 8px;
    padding: 6px 8px;
    border-width: 2px;
    min-height: 50px;
  }

  .mobile-icon {
    width: 34px;
    height: 34px;
    border-width: 2px;
    font-size: 0.78rem;
  }

  .brand {
    gap: 8px;
  }

  .brand__logo {
    height: 19px;
  }

  .brand__beta {
    padding: 2px 5px;
    font-size: 0.52rem;
  }

  .mobile-icon--tickets {
    display: none;
  }

  .mobile-sign-in {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    border: 2px solid var(--editorial-ink);
    padding: 0 7px;
    color: var(--editorial-ink);
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .mobile-sign-in:hover,
  .mobile-sign-in:focus-visible {
    background: var(--editorial-ink);
    color: #fff;
    outline: none;
  }

  .ticker {
    margin-top: 6px;
    height: 3px;
  }

  .layout {
    margin-top: 16px;
  }

  .content {
    border-left: 0;
    padding-left: 0;
    gap: 56px;
  }

  .section-block {
    gap: 14px;
  }

  .section-pin {
    top: 58px;
    padding: 0 0 10px;
    gap: 5px;
    background: linear-gradient(180deg, rgba(241, 240, 237, 0.98) 0 82%, rgba(241, 240, 237, 0) 100%);
  }

  .section-head-row {
    gap: 10px;
    padding-right: 60px;
  }

  .display-title,
  .section-title,
  .section-meta {
    color: var(--editorial-ink);
  }

  .display-title {
    font-size: clamp(1.7rem, 8.6vw, 2.15rem);
    letter-spacing: -0.065em;
  }

  .section-line {
    height: 2px;
    background: rgba(8, 8, 8, 0.28);
  }

  #live .section-line,
  #today .section-line,
  #tomorrow .section-line {
    background: rgba(8, 8, 8, 0.28);
  }

  .section-meta {
    font-size: 0.74rem;
    line-height: 1.2;
  }

  .section-badge {
    min-height: 27px;
    padding-inline: 8px;
    font-size: 0.54rem;
  }

  .live-layout {
    gap: 16px;
  }

  .live-layout__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compact-event-card {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr);
  }

  .compact-event-card__media-wrap {
    min-height: 164px;
  }

  .compact-event-card__media {
    height: 100%;
    aspect-ratio: auto;
  }

  .compact-event-card__body {
    align-content: center;
  }

  .spotlight-card__media {
    aspect-ratio: 16 / 9;
  }

  .compact-event-card__media {
    aspect-ratio: 16 / 9;
  }

  .spotlight-card__body,
  .compact-event-card__body {
    padding: 11px;
    gap: 9px;
  }

  .spotlight-card__top,
  .compact-event-card__row {
    gap: 10px;
  }

  .spotlight-card__title {
    font-size: 1.08rem;
  }

  .spotlight-card__price {
    font-size: 0.96rem;
  }

  .compact-event-card__title {
    font-size: 0.92rem;
  }

  .compact-event-card__price {
    font-size: 0.78rem;
  }

  .spotlight-card__tags {
    gap: 6px;
  }

  .status-pill,
  .tag-chip {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 0.5rem;
  }

  .card-link {
    min-height: 38px;
  }

  .mobile-nav {
    bottom: 8px;
    border-width: 2px;
    background: rgba(255, 255, 255, 0.97);
    color: var(--editorial-ink);
    box-shadow: 0 6px 0 rgba(8, 8, 8, 0.14), 0 12px 26px rgba(8, 8, 8, 0.12);
    backdrop-filter: blur(12px);
  }

  .mobile-nav a {
    color: var(--editorial-ink);
    border-color: rgba(8, 8, 8, 0.22);
    padding: 8px 3px 9px;
    font-size: 0.52rem;
  }

  .mobile-nav a::before {
    color: var(--editorial-red);
  }

  #live,
  #today,
  #tomorrow,
  #venues,
  #tickets {
    scroll-margin-top: 76px;
  }
}
