/*
 * Corner Canyon Battle of the Bands.
 * The flyer sets the rules: black, white, one copper, thin steel rules, heavy solid letters.
 * The home page borrows its shapes from gigs: a festival bill, a set list, a list of tour dates.
 */
:root {
  --ink: #000;
  --ink-2: #111113;
  --ink-3: #1c1c20;
  --line: #2e2e33;
  --paper: #fff;
  --mute: #b9b5b0;
  --copper: #bf7643;
  --copper-hi: #de9159;
  --steel: #6c9db0;
  --ash: #8b8580;
  --bad: #ff8f7a;
  --display: 'League Spartan', 'Arial Black', Impact, sans-serif;
  --caps: 'Jost', 'Century Gothic', 'Avenir Next', sans-serif;
  --body: 'Archivo', Arial, Helvetica, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img, svg, video { max-width: 100%; }
a { color: var(--copper-hi); }
a:hover { color: var(--paper); }
:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { display: block; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 12px; }

/* ---------- Display type ---------- */
h1, h2, h3 { margin: 0; }
h2, .page-head h1, .done h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(44px, 9vw, 112px); line-height: .84; letter-spacing: -.01em; padding-top: .12em;
}
h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 26px; line-height: 1; padding-top: .14em; }
.lede { color: var(--mute); max-width: 60ch; margin: 18px 0 0; font-size: 18px; }
.eyebrow { font-family: var(--caps); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--copper-hi); font-size: 14px; margin: 0 0 6px; }

/* ---------- Solid letterforms ----------
   The owner's logo type has no counters. solid.js wraps each letter that has a hole;
   each rule below plugs that hole in League Spartan 900 (em units, measured from the glyph). */
.solid { font-style: normal; position: relative; }
.solid::before { content: ''; position: absolute; background: currentColor; }
.solid[data-c="0"]::before { left: 0.185em; width: 0.220em; bottom: 0.354em; height: 0.388em; border-radius: 32%; }
.solid[data-c="4"]::before { left: 0.166em; width: 0.119em; bottom: 0.501em; height: 0.164em; }
.solid[data-c="6"]::before { left: 0.181em; width: 0.193em; bottom: 0.338em; height: 0.197em; }
.solid[data-c="8"]::before { left: 0.201em; width: 0.156em; bottom: 0.351em; height: 0.414em; }
.solid[data-c="9"]::before { left: 0.173em; width: 0.194em; bottom: 0.561em; height: 0.194em; }
.solid[data-c="A"]::before { left: 0.275em; width: 0.150em; bottom: 0.478em; height: 0.189em; }
.solid[data-c="B"]::before { left: 0.211em; width: 0.141em; bottom: 0.348em; height: 0.399em; }
.solid[data-c="D"]::before { left: 0.208em; width: 0.189em; bottom: 0.366em; height: 0.364em; }
.solid[data-c="O"]::before { left: 0.198em; width: 0.334em; bottom: 0.364em; height: 0.368em; border-radius: 32%; }
.solid[data-c="P"]::before { left: 0.201em; width: 0.151em; bottom: 0.582em; height: 0.169em; }
.solid[data-c="Q"]::before { left: 0.198em; width: 0.334em; bottom: 0.364em; height: 0.368em; border-radius: 32%; }
.solid[data-c="R"]::before { left: 0.198em; width: 0.152em; bottom: 0.577em; height: 0.174em; }

/* ---------- Top bar ---------- */
.topbar { border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; }
.brand { font-family: var(--caps); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); text-decoration: none; font-size: 14px; }
.brand b { font-family: var(--body); font-weight: 800; letter-spacing: .06em; }
.topnav { display: flex; align-items: center; gap: 24px; }
.topnav a { color: var(--paper); text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.topnav a:hover { color: var(--copper-hi); }
.topnav a.btn:hover { color: var(--ink); }
@media (max-width: 760px) { .topnav a:not(.btn) { display: none; } }
/* On the home page the bar floats over the footage. */
.home .topbar { position: absolute; inset: 0 0 auto 0; z-index: 5; border-bottom: 0; background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, 0)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; background: var(--copper); color: var(--paper);
  font-family: var(--body); font-weight: 800; font-size: 16px; letter-spacing: .08em; text-transform: uppercase;
  padding: 15px 28px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--ink { background: var(--ink); }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: progress; }

/* ---------- Hero: the flyer at full size ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92svh, 860px); display: grid; place-items: center; padding: 96px 22px 56px;
  /* still frame under the video; also what shows if the video cannot play */
  background: #1a0a03 url(/img/hero.webp) center 40% / cover no-repeat;
}
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 40%; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 50%, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 70%), linear-gradient(to bottom, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .65));
}

/* Her logo: the disc with the offset copper tab. */
.lockup { position: relative; width: min(78vw, 60svh, 560px); aspect-ratio: 1; margin: 0; }
.lockup__disc {
  position: absolute; inset: 0; border-radius: 50%; background: var(--ink); border: 5px solid var(--ash);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-transform: uppercase; text-align: center; line-height: 1; container-type: inline-size; padding-bottom: 11%;
}
.lockup__school { font-family: var(--caps); font-weight: 500; letter-spacing: .06em; font-size: 9.2cqw; margin-bottom: 3cqw; }
.lockup__big { font-family: var(--display); font-weight: 900; font-size: 21cqw; letter-spacing: -.01em; line-height: .86; padding-top: 2.4cqw; }
.lockup__of { font-family: var(--body); font-weight: 800; color: var(--copper); font-size: 4.6cqw; letter-spacing: .12em; margin: .6cqw 0 .2cqw; }
.lockup__tab {
  position: absolute; right: -14%; bottom: 13%; background: var(--copper); color: var(--paper);
  font-weight: 800; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  font-size: clamp(14px, 4.4vw, 31px); padding: .28em 1.5em;
}
@media (max-width: 560px) { .lockup__tab { right: -6%; } }

/* The copper bar under the photo, as on the flyer. Here it carries the one thing to do. */
.open { background: var(--copper); }
.open__row { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.open__msg { margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 6.2vw, 68px); line-height: .9; padding-top: .14em; }
.open .btn--ink:hover { background: var(--paper); color: var(--ink); }

.strip {
  display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 22px 0 0; padding: 12px 0;
  border-top: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-align: center; font-size: clamp(11px, 2vw, 17px);
}
.strip li + li { border-left: 1px solid var(--ash); }
.when { margin: 26px 0 0; text-align: center; font-weight: 800; font-size: clamp(24px, 4.6vw, 44px); line-height: 1.2; }
.when > span { display: block; }
.is-tba { color: var(--mute); }

/* ---------- Page sections ---------- */
.band { padding: clamp(64px, 10vw, 128px) 0 0; }

/* The bill: three acts on the poster. Each row is the way in to that sign-up. */
.bill { margin-top: 36px; border-top: 2px solid var(--steel); }
.bill__row { display: block; color: var(--paper); text-decoration: none; border-bottom: 2px solid var(--steel); }
.bill__in { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 6px 40px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.bill__name { grid-row: span 2; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(50px, 9.4vw, 124px); line-height: .8; letter-spacing: -.015em; padding-top: .14em; white-space: nowrap; }
.bill__facts { display: grid; gap: 2px; font-size: 18px; }
.bill__facts b { color: var(--copper-hi); font-weight: 800; }
.bill__note { color: var(--mute); font-size: 15px; max-width: 46ch; }
.bill__row:hover, .bill__row:focus-visible { background: var(--copper); color: var(--paper); }
.bill__row:hover .bill__facts b, .bill__row:focus-visible .bill__facts b { color: var(--ink); }
.bill__row:hover .bill__note, .bill__row:focus-visible .bill__note { color: var(--paper); }
.bill__row--open .bill__name { -webkit-text-stroke: 0; color: var(--mute); }
.bill__row--open:hover .bill__name { color: var(--paper); }
@media (max-width: 820px) {
  .bill__in { grid-template-columns: 1fr; }
  .bill__name { grid-row: auto; white-space: normal; }
}

/* Footage and photos from past shows, edge to edge. */
.shots { padding: clamp(64px, 10vw, 128px) 0 0; }
.shots__reel { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink-3); }
.shots__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 22px 0 0; padding: 0; list-style: none; }
.shots__grid img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--ink-3); }
@media (max-width: 720px) { .shots__grid { grid-template-columns: repeat(2, 1fr); } }

/* How it works: a set list, on paper, taped down. */
.how { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.setlist { position: relative; background: var(--paper); color: var(--ink); padding: clamp(28px, 5vw, 56px); transform: rotate(-.7deg); }
.setlist::before, .setlist::after { content: ''; position: absolute; width: 120px; height: 34px; background: rgba(139, 133, 128, .82); }
.setlist::before { top: -16px; left: 8%; transform: rotate(-4deg); }
.setlist::after { bottom: -15px; right: 9%; transform: rotate(3deg); }
.setlist h2 { font-size: clamp(40px, 7vw, 84px); }
.setlist__steps { counter-reset: step; list-style: none; margin: 26px 0 0; padding: 0; }
.setlist__steps li { counter-increment: step; position: relative; padding: 14px 0 14px 62px; border-top: 2px solid var(--ink); font-size: 16.5px; line-height: 1.45; }
.setlist__steps li::before { content: counter(step); position: absolute; left: 0; top: 8px; font-family: var(--display); font-weight: 900; font-size: 46px; line-height: 1; padding-top: .12em; color: var(--copper); }
.setlist__steps strong { font-weight: 800; }
.how__photo { display: block; width: 100%; height: auto; aspect-ratio: 5 / 7; object-fit: cover; }
@media (max-width: 860px) { .how { grid-template-columns: 1fr; } .how__photo { aspect-ratio: 3 / 2; } }

/* Tour dates. */
.tour { list-style: none; margin: 36px 0 0; padding: 0; border-top: 2px solid var(--steel); }
.tour li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 104px; gap: 8px 32px; align-items: center; padding: 20px 0; border-bottom: 2px solid var(--steel); }
.tour__date { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 8.5vw, 104px); line-height: .84; padding-top: .14em; }
.tour__where { display: grid; gap: 1px; color: var(--mute); font-size: 16.5px; }
.tour__where b { color: var(--paper); font-weight: 800; font-size: 21px; }
.tour__level { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; background: var(--copper); color: var(--paper); padding: 6px 0; text-align: center; }
@media (max-width: 760px) { .tour li { grid-template-columns: 1fr 104px; } .tour__date { grid-column: 1 / -1; } }

/* 100 points: one bar, split the way the judges split it. */
.score { display: grid; grid-template-columns: 30fr 30fr 20fr 20fr; gap: 4px; margin-top: 36px; }
.score__part { border-top: 14px solid var(--copper); padding: 14px 18px 0 0; }
.score__part--20 { border-top-color: var(--steel); }
.score__part b { display: block; font-family: var(--display); font-weight: 900; font-size: clamp(56px, 8vw, 104px); line-height: .84; padding-top: .14em; }
.score__part strong { display: block; font-weight: 800; font-size: 18px; line-height: 1.25; margin-top: 6px; }
.score__part p { margin: 8px 0 0; color: var(--mute); font-size: 15px; }
@media (max-width: 860px) { .score { grid-template-columns: 1fr 1fr; gap: 28px 4px; } }
@media (max-width: 480px) { .score { grid-template-columns: 1fr; } }

.rules-list { margin: 32px 0 0; padding: 0; list-style: none; columns: 2 360px; column-gap: 48px; }
.rules-list li { break-inside: avoid; padding: 13px 0 13px 24px; border-top: 1px solid var(--line); position: relative; }
.rules-list li::before { content: ''; position: absolute; left: 0; top: 23px; width: 11px; height: 4px; background: var(--copper); }

/* The last thing on the page is the first thing again. */
.encore { display: block; margin-top: clamp(64px, 10vw, 128px); background: var(--copper); color: var(--paper); text-decoration: none; }
.encore__in { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(40px, 7vw, 88px); }
.encore__big { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(52px, 12.5vw, 176px); line-height: .8; letter-spacing: -.015em; padding-top: .14em; }
.encore__small { display: block; margin-top: 20px; font-size: 18px; font-weight: 600; max-width: 52ch; }
.encore:hover, .encore:focus-visible { background: var(--paper); color: var(--ink); }

footer { padding: 30px 0 46px; color: var(--mute); font-size: 14.5px; }
footer p { margin: 0 0 8px; max-width: 78ch; }

/* ---------- Sign-up form ---------- */
.page-head { padding: 48px 0 10px; }
.notice { border-left: 5px solid var(--steel); background: var(--ink-2); padding: 14px 18px; margin: 22px 0 0; max-width: 78ch; font-size: 15.5px; }
.notice strong { color: var(--paper); }

form { padding-bottom: 80px; }
fieldset { border: 0; margin: 0; padding: 40px 0 8px; min-width: 0; }
fieldset + fieldset { border-top: 2px solid var(--steel); margin-top: 34px; }
legend { padding: 0; float: left; width: 100%; margin-bottom: 6px; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(30px, 5.4vw, 52px); line-height: .9; }
legend span { color: var(--copper); margin-right: .35em; }
legend + * { clear: both; }
.hint { color: var(--mute); font-size: 15px; margin: 4px 0 18px; max-width: 74ch; }

.tracks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.track { position: relative; display: block; cursor: pointer; }
.track input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.track__box { display: block; height: 100%; background: var(--ink-2); border: 2px solid var(--line); padding: 18px; }
.track__box b { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: 1; padding-top: .14em; }
.track__box small { display: block; color: var(--mute); font-size: 14.5px; margin-top: 8px; line-height: 1.45; }
.track input:checked + .track__box { border-color: var(--copper); background: var(--copper); }
.track input:checked + .track__box small { color: var(--paper); }
.track input:focus-visible + .track__box { outline: 3px solid var(--steel); outline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.c12 { grid-column: span 12; } .c8 { grid-column: span 8; } .c6 { grid-column: span 6; } .c4 { grid-column: span 4; } .c3 { grid-column: span 3; }
@media (max-width: 720px) { .c8, .c6, .c4 { grid-column: span 12; } .c3 { grid-column: span 6; } }

.field { min-width: 0; }
.field > label, .field > .label { display: block; font-weight: 800; font-size: 12.5px; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 6px; }
.field .opt { color: var(--mute); font-weight: 400; text-transform: none; letter-spacing: 0; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; background: var(--ink-2); color: var(--paper); border: 1px solid #4a4a52; border-radius: 0;
  font: inherit; padding: 11px 12px; min-height: 46px; color-scheme: dark;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--copper-hi); box-shadow: 0 0 0 2px var(--copper); }
[aria-invalid=true] { border-color: var(--bad) !important; }
.err { color: var(--bad); font-size: 14px; margin: 6px 0 0; font-weight: 600; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 0; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--copper); }
.check + .err { margin: -6px 0 8px 38px; }
.checks > .check + .check, .checks > .err + .check { border-top: 1px solid var(--line); }

.member { background: var(--ink-2); border: 1px solid var(--line); border-left: 5px solid var(--copper); padding: 16px 18px 20px; margin-bottom: 14px; }
.member__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.member__head b { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.member__sign { font-size: 14px; color: var(--steel); margin: 12px 0 0; }
.linkbtn { background: none; border: 0; padding: 4px 0; color: var(--mute); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--paper); }
.member input, .member select, .song input, .song select, .song textarea { background: var(--ink); }

.song { background: var(--ink-2); border: 1px solid var(--line); padding: 18px; margin-bottom: 14px; }
.song h3 { font-size: 24px; margin-bottom: 14px; }
.song h3 em { font-style: normal; color: var(--copper-hi); }

blockquote { margin: 0 0 18px; padding: 16px 18px; background: var(--ink-2); border-left: 5px solid var(--copper); font-size: 15.5px; }
blockquote cite { display: block; margin-top: 8px; color: var(--mute); font-style: normal; font-size: 13.5px; }

.submit-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.form-status { color: var(--bad); font-weight: 600; }
.form-status--ok { color: var(--copper-hi); }
.field input[type=file] { padding: 12px; cursor: pointer; }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; background: var(--copper); color: var(--ink); border: 0; padding: 9px 14px; margin-right: 14px; cursor: pointer; }
.admin .files { margin: 6px 0 0; padding-left: 20px; }
.admin .files small { color: var(--mute); margin-left: 8px; }

.done { padding: 60px 0 90px; }
.done .ref { font-family: var(--caps); letter-spacing: .16em; text-transform: uppercase; color: var(--copper-hi); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 34px 0 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 74px 1fr; gap: 6px 18px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 900; font-size: 52px; line-height: .9; color: var(--copper); grid-row: span 2; padding-top: .12em; }
.steps strong { font-weight: 800; font-size: 19px; }
.steps p { margin: 0; color: var(--mute); grid-column: 2; }

/* ---------- Organizer view ---------- */
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 10px; }
.admin th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--steel); }
.admin td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin details { border: 1px solid var(--line); border-left: 5px solid var(--copper); background: var(--ink-2); padding: 14px 18px; margin: 14px 0; }
.admin summary { cursor: pointer; font-weight: 800; font-size: 18px; }
.admin summary small { color: var(--mute); font-weight: 400; margin-left: 10px; }
.admin h4 { margin: 20px 0 4px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-hi); }
.admin pre { white-space: pre-wrap; font: inherit; background: var(--ink); padding: 12px; margin: 6px 0; border: 1px solid var(--line); }
.admin .flag { color: var(--bad); font-weight: 700; }
.admin .tally { display: flex; flex-wrap: wrap; gap: 26px; margin: 22px 0; }
.admin .tally b { display: block; font-family: var(--display); font-size: 48px; line-height: 1; padding-top: .12em; }
.admin .tally span { color: var(--mute); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .setlist { transform: none; } }
