/* OnDeck DJ content site — retro ballpark scoreboard look.
   Legacy pages keep styles.css; new content pages use this file only. */
:root {
  --field: #0d2b1c;
  --field-soft: #143d28;
  --field-line: #1d5237;
  --chalk: #f5f1e4;
  --chalk-dim: #c9c2ac;
  --score: #f7c948;
  --score-deep: #e8a13c;
  --clay: #b3562f;
  --card: #10331f;
  --max-w: 1080px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 120ms;
  --dur-hover: 150ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--field);
  color: var(--chalk);
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, .wordmark {
  font-family: "Archivo Black", "Archivo", -apple-system, sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

a { color: var(--score); transition: color var(--dur-hover) ease; }
a:hover { color: var(--score-deep); }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  border-bottom: 2px solid var(--field-line);
  background: var(--field);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
  flex-wrap: wrap;
}
.wordmark {
  font-size: 22px;
  color: var(--chalk);
  text-decoration: none;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark .ball { font-size: 24px; }
.wordmark span.dj { color: var(--score); }
nav.main { display: flex; gap: 22px; flex-wrap: wrap; }
nav.main a {
  color: var(--chalk-dim);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color var(--dur-hover) ease;
}
nav.main a:hover, nav.main a.active { color: var(--score); }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  text-transform: uppercase;
  max-width: 850px;
  margin: 0 auto 20px;
}
.hero h1 em { color: var(--score); font-style: normal; }
.hero p.lead {
  font-size: 20px;
  color: var(--chalk-dim);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--score);
  color: #1c1503;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 15px;
  transition: background var(--dur-hover) ease, color var(--dur-hover) ease,
    border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.btn:hover { background: var(--score-deep); color: #1c1503; }
.btn:active { transform: scale(0.97); }
.btn.ghost {
  background: transparent;
  color: var(--chalk);
  border: 2px solid var(--field-line);
}
.btn.ghost:hover { border-color: var(--score); color: var(--score); }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 24px 0 64px;
}
.card {
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}
/* Archivo Black reads too heavy at card size; the 800 weight of the body face keeps the hierarchy without the slab. */
.card h3 { font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 800; font-size: 20px; margin-bottom: 10px; }
.card h3 a { color: var(--chalk); text-decoration: none; transition: color var(--dur-hover) ease; }
.card h3 a:hover { color: var(--score); }
.card p { color: var(--chalk-dim); font-size: 15.5px; flex: 1; }
.card .more {
  margin-top: 14px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.card .kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--score-deep);
  margin-bottom: 8px;
}

/* Article layout */
article.page { max-width: 780px; margin: 0 auto; padding: 56px 24px 48px; }
article.page h1 { font-size: clamp(30px, 5vw, 42px); margin-bottom: 12px; text-transform: uppercase; }
article.page .sub { color: var(--chalk-dim); font-size: 18px; margin-bottom: 8px; }
article.page .updated { color: var(--chalk-dim); font-size: 14px; margin-bottom: 32px; }
article.page h2 {
  font-size: 25px;
  margin: 44px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--field-line);
}
article.page h3 { font-size: 19px; margin: 26px 0 8px; }
article.page p { margin-bottom: 16px; }
article.page ul, article.page ol { margin: 0 0 18px 24px; }
article.page li { margin-bottom: 7px; }

/* Song tables */
.table-scroll { overflow-x: auto; }
table.songs {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 26px;
  font-size: 15.5px;
}
table.songs th {
  text-align: left;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--score);
  border-bottom: 2px solid var(--field-line);
  padding: 8px 10px;
}
table.songs td { padding: 9px 10px; border-bottom: 1px solid var(--field-line); }
table.songs td:first-child { font-weight: 600; }
table.songs td:last-child { color: var(--chalk-dim); }

/* Gear cards */
.gear {
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.gear.has-art { display: flex; gap: 28px; align-items: center; }
.gear-art { flex: 0 0 188px; background: #fff; border-radius: 10px; overflow: hidden; }
.gear-art svg, .gear-art img { width: 100%; height: auto; display: block; }
.gear-body { flex: 1; min-width: 0; }
@media (max-width: 620px) {
  .gear.has-art { flex-direction: column; align-items: stretch; }
  .gear-art { width: 160px; margin: 0 auto; }
}
.gear h3 a { color: var(--chalk); text-decoration: none; transition: color var(--dur-hover) ease; }
.gear h3 a:hover { color: var(--score); }
.gear .pick {
  display: inline-block;
  background: var(--clay);
  color: var(--chalk);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 5px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.gear h3 { margin: 0 0 8px; font-size: 20px; }
.gear .specs { color: var(--chalk-dim); font-size: 14.5px; margin-bottom: 12px; }
.gear p { margin-bottom: 14px; }
.gear .btn { padding: 11px 22px; font-size: 13.5px; }

/* Callouts */
.disclosure-line { color: var(--chalk-dim); font-size: 14px; margin-bottom: 6px; }
.disclosure-line a { color: var(--chalk-dim); }
.note {
  background: var(--field-soft);
  border-left: 4px solid var(--score);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 15.5px;
}
.note.disclosure { border-left-color: var(--clay); color: var(--chalk-dim); font-size: 14px; }

/* WalkAmp promo band */
.walkamp-band {
  background: linear-gradient(135deg, #0d1d36, #061120);
  border-top: 3px solid var(--score);
  padding: 56px 0;
  text-align: center;
}
.walkamp-band h2 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 12px; text-transform: uppercase; }
.walkamp-band p {
  color: #b8c4d8;
  max-width: 560px;
  margin: 0 auto 26px;
  font-size: 17px;
}
.walkamp-band .tag {
  display: inline-block;
  color: var(--score);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Footer */
footer.site {
  border-top: 2px solid var(--field-line);
  padding: 36px 0 44px;
  color: var(--chalk-dim);
  font-size: 14px;
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--chalk-dim); text-decoration: none; margin-right: 18px; transition: color var(--dur-hover) ease; }
footer.site a:hover { color: var(--score); }

@media (max-width: 620px) {
  .hero { padding: 48px 0 36px; }
  header.site .wrap { justify-content: center; }
}

/* Imagery */
.hero.hero-stadium {
  background:
    linear-gradient(rgba(13, 43, 28, 0.78), rgba(13, 43, 28, 0.92)),
    url("/assets/stadium-web.webp") center 40% / cover no-repeat;
  padding: 96px 0 80px;
}

img.banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--field-line);
  margin: 0 0 30px;
  display: block;
}

.walkamp-band .band-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  text-align: left;
}
.walkamp-band .band-copy { max-width: 520px; }
.walkamp-band .band-copy p { margin-left: 0; }
.store-badges { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.store-badges img { display: block; width: auto; }
.store-badges .badge-ios { height: 44px; }
.store-badges .badge-play { height: 64px; margin: -10px 0; }
.walkamp-band .band-shot {
  width: 250px;
  height: auto;
  border-radius: 26px;
  border: 1px solid #24406b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .walkamp-band .band-flex { flex-direction: column; text-align: center; }
  .store-badges { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.store-badges img { display: block; width: auto; }
.store-badges .badge-ios { height: 44px; }
.store-badges .badge-play { height: 64px; margin: -10px 0; }
.walkamp-band .band-shot { width: 210px; }
}

figure.diagram {
  background: var(--card);
  border: 1px solid var(--field-line);
  border-radius: 12px;
  padding: 18px;
  margin: 24px 0;
}
figure.diagram svg { width: 100%; height: auto; display: block; }
figure.diagram figcaption {
  color: var(--chalk-dim);
  font-size: 14px;
  text-align: center;
  padding-top: 10px;
}

/* Printable walk-up song request form */
.resource-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 8px;
}
.resource-actions .btn, .form-actions .btn, .sheet-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-actions .btn.ghost, .sheet-actions .btn.ghost { border: 2px solid var(--field-line); }
.form-intro { color: var(--chalk-dim); }
.request-form {
  max-width: 780px;
  margin: 0 auto 56px;
  padding: 32px;
  background: var(--chalk);
  color: #16231a;
  border: 4px solid var(--score);
}
.form-heading { border-bottom: 2px solid #25442f; padding-bottom: 18px; margin-bottom: 24px; }
.form-kicker {
  color: #805815;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-heading h2 { font-size: 30px; margin: 4px 0; text-transform: uppercase; }
.form-heading p, .form-footnote { color: #405045; font-size: 14px; }
.request-form fieldset { border: 0; border-top: 1px solid #97a49a; margin: 24px 0 0; padding: 18px 0 0; }
.request-form legend { font-family: "Archivo Black", "Archivo", sans-serif; font-size: 17px; padding-right: 8px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-fields { grid-template-columns: 1.3fr 1.1fr 0.8fr; }
.request-form label { display: block; color: #26362b; font-size: 14px; font-weight: 800; }
.request-form input[type="text"] {
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 10px;
  background: #fffef9;
  border: 1px solid #6a7a6d;
  border-radius: 3px;
  color: #16231a;
  font: inherit;
}
.request-form input[type="text"]:focus { outline: 3px solid #f7c948; outline-offset: 1px; }
.checkbox-label { display: flex !important; align-items: flex-start; gap: 9px; margin-bottom: 16px; }
.checkbox-label input { margin-top: 5px; width: 17px; height: 17px; accent-color: #0d2b1c; flex: 0 0 auto; }
.form-footnote { border-top: 1px solid #97a49a; margin-top: 24px; padding-top: 16px; }
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.form-actions-hint { color: #405045; font-size: 14px; max-width: 34ch; }

/* Printable sheet rendered from the form's answers */
.request-sheet { max-width: 780px; margin: 0 auto 56px; }
.sheet-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.sheet-hint { color: var(--chalk-dim); font-size: 14px; margin: 0 0 18px; }
.sheet-pitch { color: var(--chalk-dim); font-size: 14px; margin: 18px 0 0; }
.sheet-paper {
  padding: 32px;
  background: var(--chalk);
  color: #16231a;
  border: 4px solid var(--score);
}
.sheet-section {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: 17px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid #97a49a;
}
.sheet-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
  margin: 14px 0 0;
}
.sheet-team { grid-template-columns: 1.3fr 1.1fr 0.8fr; }
.sheet-sign { margin-top: 22px; }
.sheet-field dt { color: #26362b; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.sheet-field dd {
  margin: 4px 0 0;
  min-height: 32px;
  padding: 4px 2px;
  border-bottom: 1px solid #6a7a6d;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.sheet-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; color: #26362b; font-size: 14px; font-weight: 800; }
.sheet-box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid #26362b;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}
.sheet-box.is-checked::after { content: "\2713"; }

@media (max-width: 620px) {
  .request-form { margin-left: 16px; margin-right: 16px; padding: 22px; }
  .form-grid, .team-fields { grid-template-columns: 1fr; }
  .resource-actions .btn, .form-actions .btn, .sheet-actions .btn { width: 100%; text-align: center; }
  .request-sheet { margin-left: 16px; margin-right: 16px; }
  .sheet-paper { padding: 22px; }
  .sheet-row, .sheet-team { grid-template-columns: 1fr; }
}

@media print {
  /* Printing always goes through the sheet; the page script renders the
     form's answers (or blank lines) into it before the dialog opens. */
  @page { margin: 0.45in; }
  body { background: #fff; }
  body > * { display: none !important; }
  body > #request-sheet { display: block !important; }
  .sheet-actions, .sheet-hint, .sheet-pitch { display: none !important; }
  .request-sheet { max-width: none; margin: 0; }
  .sheet-paper { padding: 0; border: 0; color: #000; }
  .sheet-field dd { border-bottom-color: #555; }
  .sheet-box { border-color: #000; }
  .sheet-row, .sheet-check { break-inside: avoid; }
}

/* Walk-up song generator */
.generator { background: var(--card); border: 1px solid var(--field-line); border-radius: 12px; padding: 24px; margin: 8px 0 24px; }
.gen-group { margin-bottom: 18px; }
.gen-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--chalk-dim); margin-bottom: 8px; }
.gen-options { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-options button,
.gen-options label span {
  background: var(--field-soft); color: var(--chalk); border: 1px solid var(--field-line);
  border-radius: 8px; padding: 8px 14px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease,
    color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.gen-options button:hover,
.gen-options label:hover span { border-color: var(--score); }
.gen-options button:active,
.gen-options label:active span { transform: scale(0.97); }
.gen-options button.on,
.gen-options input:checked + span { background: rgba(247, 201, 72, 0.14); color: var(--score); border-color: var(--score); }
#gen-results { margin-top: 24px; }
#gen-results h2 { margin-top: 0; }
#gen-again { margin-top: 14px; }

/* Front-page song finder: a plain GET form to the finder page, so it works
   without JavaScript. Radio inputs draw the same chips the finder page draws
   with buttons; the shared declarations live in the .gen-options rules above. */
.finder-home { padding: 4px 0 0; }
.finder-home h2 { font-size: 28px; margin-bottom: 8px; }
.finder-home .sub { color: var(--chalk-dim); max-width: 720px; margin-bottom: 8px; }
fieldset.gen-group { border: 0; padding: 0; min-width: 0; }
legend.gen-label { display: block; padding: 0; }
.gen-options label { position: relative; display: inline-block; }
.gen-options label span { display: inline-block; }
/* Keep the native radio in the tab order for keyboard and screen-reader
   users, but out of sight — the span is the visible control. */
.gen-options label input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.gen-options input:focus-visible + span { outline: 3px solid var(--score); outline-offset: 2px; }

/* Ranked lists (Top 40). Numbers come from a CSS counter so the song cell's
   text stays exactly the title — preview.js builds its lookup from it. */
table.songs.ranked { counter-reset: rank; }
table.songs.ranked td:first-child { counter-increment: rank; }
table.songs.ranked td:first-child::before {
  content: counter(rank); display: inline-block; min-width: 24px; margin-right: 6px;
  color: var(--chalk-dim); font-weight: 700; font-variant-numeric: tabular-nums;
}
/* Hanging indent the width of the rank (30px) plus the injected play button
   (34px), so a title that wraps lines up under itself, not under the number. */
table.songs.ranked td:first-child { padding-left: 74px; text-indent: -64px; }
/* text-indent inherits; without this the counter shifts its own digit out of the cell. */
table.songs.ranked td:first-child::before,
table.songs.ranked td:first-child .play-btn { text-indent: 0; }

/* Apple Music previews */
.play-btn {
  background: none; border: 1px solid var(--field-line); color: var(--score);
  border-radius: 50%; width: 26px; height: 26px; margin-right: 8px;
  cursor: pointer; font-size: 11px; line-height: 1; vertical-align: middle; flex-shrink: 0;
  transition: border-color var(--dur-hover) ease, background var(--dur-hover) ease,
    color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.play-btn:hover { border-color: var(--score); }
/* Smaller control, larger ratio — 26px needs more scale to read as a press. */
.play-btn:active { transform: scale(0.92); }
.play-btn.playing { background: var(--score); color: #1c1503; border-color: var(--score); }
.preview-credit { color: var(--chalk-dim); font-size: 13px; margin: 8px 0 20px; }

/* Motion
   Hero entrance is opt-in via prefers-reduced-motion: no-preference, so the
   copy is never left invisible if animations don't run. */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1,
  .hero p.lead,
  .hero .btn-row { animation: hero-rise 500ms var(--ease-out) both; }
  .hero h1 { animation-delay: 0ms; }
  .hero p.lead { animation-delay: 60ms; }
  .hero .btn-row { animation-delay: 120ms; }
}

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