@font-face {
  font-family: Road;
  src: url('/silex.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #f5f5f5;
  background: #09090c;
  --red: #ff383d;
  --gutter: clamp(14px, 4vw, 60px);
}
* { box-sizing: border-box; }
html { margin: 0; }
body {
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-width: 1550px;
  padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) env(safe-area-inset-bottom) max(var(--gutter), env(safe-area-inset-left));
}
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, label:has(input:focus-visible) { outline: 2px solid white; outline-offset: -3px; }
a, label { touch-action: manipulation; }
.mast, footer { display: flex; align-items: center; gap: 1.2rem; }
.mast { justify-content: space-between; border-bottom: 1px solid #37373c; }
.mast a, footer a { display: inline-flex; align-items: center; }
.mast a { min-height: 50px; text-decoration: none; font-size: .9rem; }
.guide { gap: .4em; font-weight: 650; }
.guide span, .back { color: var(--red); }
main, .overview, .preview, .stage { min-height: 0; min-width: 0; }
.overview { height: 100%; display: grid; grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr); gap: 10px; padding-block: 14px 10px; }
h1, h2 { font: normal clamp(2.25rem, 9vw, 5rem)/.94 Road, "Arial Black", sans-serif; text-transform: uppercase; margin: 0; letter-spacing: -.012em; }
h1 em { font-style: normal; color: var(--red); }
.intro p { margin: 7px 0 0; color: #cecdd1; font-size: .88rem; line-height: 1.35; }
.preview {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border: 1px solid #46464c;
  background: #151519;
  padding: 0;
  margin: 0;
}
.sr, .switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.stage { position: relative; isolation: isolate; }
.stage::before, .stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.stage::before {
  background: repeating-linear-gradient(116deg, transparent 0 8px, #242429 8px 9px);
}
.stage::after {
  background: #c6282d;
  clip-path: polygon(0 68%, 100% 16%, 100% 23%, 0 75%, 0 78%, 100% 26%, 100% 28%, 0 80%);
}
.preview-image {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.amp { display: block; }
.preview:has(input[value="setlist"]:checked) .amp,
.preview:has(input[value="pedalier"]:checked) .amp { display: none; }
.preview:has(input[value="setlist"]:checked) .list,
.preview:has(input[value="pedalier"]:checked) .board { display: block; }
.switch { display: flex; border-top: 1px solid #46464c; background: #101013; }
.switch label { position: relative; flex: 1; cursor: pointer; }
.switch label + label { border-left: 1px solid #46464c; }
.switch span { display: grid; place-items: center; min-height: 40px; font-size: .86rem; font-weight: 650; }
.switch input:checked + span { color: #09090c; background: #edeeee; box-shadow: inset 0 -3px var(--red); }
.actions { display: flex; gap: 8px; }
.button {
  min-height: 44px; padding: 6px clamp(10px, 3vw, 24px);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  border: 1px solid #85858e; font-size: .95rem; font-weight: 700; text-decoration: none;
}
.actions .button { flex: 1 1 auto; }
.main-action { background: var(--red); color: #100b0d; border-color: var(--red); }
footer { border-top: 1px solid #37373c; font-size: .76rem; color: #bcbcc3; }
footer a { min-height: 34px; }
.notes { display: none; height: 100%; align-items: center; max-width: 41rem; margin: 0 auto; outline: none; }
.notes:target { display: grid; }
main:has(.notes:target) .overview { display: none; }
.notes h2 { margin: 5px 0 12px; font-size: clamp(2.2rem, 8vw, 4.6rem); }
.notes p, .notes ol { font-size: 1rem; line-height: 1.43; margin: 10px 0 16px; color: #dcdce0; }
.notes ol { padding-left: 1.6em; }
.notes li { padding-left: .22em; margin: .4em 0; }
.notes li::marker { color: var(--red); font-weight: bold; }
.back, .text-link { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.back { text-decoration: none; }
.text-link { font-size: .82rem; margin-inline-end: 8px; }
.notes .button { margin-inline-end: 10px; }
@media (min-width: 720px), (orientation: landscape) and (min-width: 510px) {
  .overview {
    grid-template: 1fr auto auto 1fr / minmax(0, 1fr) minmax(0, 1fr);
    column-gap: clamp(24px, 5vw, 90px);
    max-width: 1100px; margin: auto; padding-block: clamp(8px, 3vh, 32px);
  }
  .intro { grid-area: 2 / 1; }
  .intro h1 { font-size: clamp(3rem, 7.5vw, 7rem); }
  .intro em { display: block; }
  .intro p { margin-top: 14px; font-size: 1rem; }
  .preview { grid-area: 1 / 2 / -1 / 3; }
  .actions { grid-area: 3 / 1; flex-wrap: wrap; justify-self: start; margin-top: 5px; }
}
@media (max-height: 580px) {
  .overview { gap: 6px; padding-block: 7px; }
  .mast a { min-height: 38px; }
  footer a { min-height: 26px; }
  .switch span { min-height: 34px; }
  .intro p { margin-top: 3px; }
  .notes p, .notes ol { font-size: .9rem; line-height: 1.3; margin: 6px 0 10px; }
  .notes h2 { margin: 3px 0 6px; }
}
@media (orientation: landscape) and (max-height: 480px) {
  .overview { column-gap: 20px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .notes { max-width: 66rem; }
  .intro em { display: inline; }
  .intro h1, .notes h2 { font-size: clamp(1.65rem, 7.8vh, 2.35rem); }
  .intro p { font-size: .88rem; }
  .actions { gap: 5px; margin: 0; }
  .actions .button { padding: 5px 8px; min-height: 36px; font-size: .81rem; }
  .notes .note-layout {
    display: grid;
    grid-template: auto auto / minmax(0, .8fr) minmax(0, 1.6fr);
    align-content: center; align-items: end; gap: 7px 20px;
  }
  .note-head { grid-area: 1 / 1; }
  .note-actions { grid-area: 2 / 1; align-self: start; }
  .note-copy { grid-area: 1 / 2 / 3; align-self: center; }
  .notes .button { min-height: 36px; padding: 5px 8px; font-size: .85rem; margin: 0; }
  .notes .text-link { margin: 0; min-height: 30px; }
  .notes p, .notes ol { font-size: .86rem; }
  .notes .back { min-height: 28px; }
}
@media (max-width: 350px) {
  .actions .button { font-size: .83rem; padding-inline: 7px; }
  .intro h1 { font-size: 2.2rem; }
}

.step-picker { display: flex; align-items: center; gap: .45em; margin: .55em 0; font-size: .85rem; }
.step-picker select {
  color: inherit; background: #17171c; border: 1px solid #686870;
  padding: .2em .4em; font: inherit; min-height: 30px;
}
[hidden] { display: none !important; }
@media (orientation: landscape) and (max-height: 340px) {
  .intro p { font-size: .82rem; }
  .actions .button { line-height: 1.1; }
}
.notes:has(.step-picker:not([hidden])) h2 { font-size: clamp(1.5rem, 7vw, 3rem); }
