@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&display=swap");

:root {
  color-scheme: dark;

  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Arial, Helvetica, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --bg: #0a0808;
  --fg: #f5f2f2;
  --muted: #b8a8a8;
  --card: rgba(220, 38, 38, 0.09);
  --border: rgba(245, 242, 242, 0.14);

  --primary: #dc2626;
  --primary2: #f87171;
  --accent: #3f0f14;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.68);
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #0b1220;
  --muted: #5b6476;
  --card: #ffffff;
  --border: rgba(11, 18, 32, 0.1);
  --primary: #991b1b;
  --primary2: #dc2626;
  --accent: #b91c1c;
  --shadow: 0 16px 44px rgba(11, 18, 32, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1;
}

::selection {
  background: color-mix(in oklab, var(--primary) 38%, transparent);
  color: var(--fg);
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ——— Header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.headerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

@media (max-width: 899px) {
  .headerRow {
    flex-wrap: wrap;
  }
  .headerRow .nav {
    order: 3;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    gap: 8px 14px;
  }
  .headerRow .actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

.header .btn {
  padding: 9px 13px;
  font-size: 12px;
}
.header .btnHeaderContact {
  padding: 12px 22px;
  font-size: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand:hover .brandTitle {
  color: var(--primary2);
}

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: contain;
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--primary) 15%, transparent);
}

.brandTitle {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.15;
  transition: color 0.15s ease;
}
.brandSub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 14px;
  color: var(--muted);
}
.nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover {
  color: var(--fg);
}
.nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 700;
  border-bottom-color: color-mix(in oklab, var(--primary2) 65%, transparent);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btnPrimary {
  background: var(--primary);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow);
}
.btnPrimary:hover {
  background: var(--primary2);
}
.btnGhost {
  background: transparent;
}
.btnGhost:hover {
  background: color-mix(in oklab, var(--fg) 6%, transparent);
}

/* ——— Typography & layout ——— */
h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

.page h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.35rem);
}

.lead {
  margin: 14px 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.measure {
  max-width: 72ch;
}
.measureWide {
  max-width: 80ch;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ctaRow {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.card h2,
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
}
.card h2 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.card h3 {
  font-size: 1rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.9em;
  padding: 0.12em 0.45em;
  border-radius: 8px;
  background: color-mix(in oklab, var(--fg) 8%, transparent);
  border: 1px solid var(--border);
}

/* ——— Hero & sections ——— */
.hero {
  background: radial-gradient(
      1200px circle at 15% -10%,
      color-mix(in oklab, var(--primary) 26%, transparent),
      transparent 55%
    ),
    radial-gradient(
      1200px circle at 80% 0%,
      color-mix(in oklab, var(--accent) 22%, transparent),
      transparent 60%
    );
}
.heroInner {
  padding: 56px 0 48px;
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  color: var(--muted);
  font-size: 12px;
}
.pill b {
  color: var(--fg);
}

.grid2 {
  display: grid;
  gap: 18px;
}
@media (min-width: 900px) {
  .grid2 {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: center;
  }
  .grid2--start {
    align-items: start;
  }
  .grid2--start > aside.cardShadow {
    position: sticky;
    top: 72px;
    align-self: start;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.cardShadow {
  box-shadow: var(--shadow);
}
.card--inset {
  background: color-mix(in oklab, var(--bg) 75%, transparent);
}

.kpi {
  display: grid;
  gap: 12px;
}
@media (min-width: 700px) {
  .kpi {
    grid-template-columns: repeat(3, 1fr);
  }
}
.kpi .card {
  padding: 16px;
}
.kpi dt {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.kpi dd {
  margin: 8px 0 0;
  font-size: 14px;
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section p {
  margin: 10px 0 0;
  color: var(--muted);
}

.tiles {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
@media (min-width: 900px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
  .tiles--auto {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

.page {
  padding: 48px 0 56px;
}
.page--top {
  padding-top: 36px;
  background: radial-gradient(
    900px circle at 50% -30%,
    color-mix(in oklab, var(--primary) 16%, transparent),
    transparent 58%
  );
}

.page h2 {
  font-size: 1.05rem;
  margin: 0;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footerInner {
  padding: 26px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 700px) {
  .footerInner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footerBrand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.footerBrandTitle {
  font-weight: 700;
  font-size: 13px;
}

.fine {
  font-size: 12px;
  color: var(--muted);
}

/* ——— Officers (About us) ——— */
.officerGrid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 700px) {
  .officerGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}
.officerRole {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.officerDetails {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
}
.officerDetails p {
  margin: 0;
}
.officerDetails a {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
}
.officerDetails a:hover {
  text-decoration: underline;
}

/* ——— Resources ——— */
.resourceList {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.resourceItem {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.resourceItem a {
  font-weight: 700;
  text-decoration: none;
}
.resourceItem a:hover {
  text-decoration: underline;
  color: var(--primary2);
}

.uniformSubhead {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
}
.uniformSubhead:first-of-type {
  margin-top: 0.5rem;
}
.uniformGrid {
  display: grid;
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}
@media (min-width: 768px) {
  .uniformGrid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
}
.uniformFigure {
  margin: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  background: color-mix(in oklab, var(--fg) 4%, transparent);
}
.uniformFigure img {
  display: block;
  width: 100%;
  height: auto;
}
.uniformReqTitle {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
}
.uniformReq ul {
  margin: 0;
  padding-left: 1.2rem;
}
.uniformReq li {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}
.uniformReq li strong {
  color: var(--fg);
  font-weight: 600;
}

.setListBlock {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.setListBlock:first-of-type {
  margin-top: 14px;
  padding-top: 0;
  border-top: none;
}
.setListBlock h2,
.setListBlock h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}
.setSongList {
  margin: 0;
  padding-left: 1.35rem;
  list-style-type: upper-alpha;
}
.setSongItem {
  margin: 14px 0;
  padding-left: 6px;
}
.setSongRow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 640px) {
  .setSongRow {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px 16px;
  }
}
.setSongName {
  font-weight: 600;
}
.scoreLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 13px;
}
.scoreLinks a {
  color: var(--primary2);
  text-decoration: none;
  font-weight: 600;
}
.scoreLinks a:hover {
  text-decoration: underline;
}
.scoreSep {
  color: var(--muted);
  user-select: none;
}

.instrumentScoreList {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.instrumentScoreItem {
  margin: 10px 0;
}
.instrumentScoreItem[id] {
  scroll-margin-top: 88px;
}
.instrumentScoreList a {
  font-weight: 600;
  text-decoration: none;
}
.instrumentScoreList a:hover {
  text-decoration: underline;
  color: var(--primary2);
}

.viewer {
  margin-top: 20px;
}
.viewerToolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.viewerActions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.viewerFrame {
  width: 100%;
  height: 70vh;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.youtubeFrameWrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0a0a0f;
}
.viewerFrame--youtube {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: none;
  border-radius: 0;
  background: #000;
}

.listMuted {
  margin: 14px 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 14px;
}
.listMuted li {
  margin: 8px 0;
}

.mt0 {
  margin-top: 0;
}
.mtSm {
  margin-top: 8px;
}
.mtMd {
  margin-top: 14px;
}
.mtLg {
  margin-top: 18px;
}

/* ——— Application share (QR) dialog ——— */
.appShareScrim {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: color-mix(in oklab, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.appShareScrim[hidden] {
  display: none !important;
}

.appSharePanel {
  width: 100%;
  max-width: 420px;
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 20px 22px 22px;
  position: relative;
  z-index: 1;
}

.appSharePanel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.appSharePanel__top h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.appShareQrWrap {
  margin: 16px auto 0;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--fg) 4%, transparent);
  display: flex;
  justify-content: center;
  align-items: center;
}

.appShareQrWrap img {
  display: block;
  width: min(72vw, 260px);
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.appSharePanel .ctaRow {
  margin-top: 18px;
}

.appShareUrlWrap label {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.appShareUrlInput {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
  color: var(--fg);
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  word-break: break-all;
  box-sizing: border-box;
}

.appShareOpenHint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.appShareOpenHint a {
  color: var(--primary2);
  font-weight: 600;
  text-decoration: none;
}

.appShareOpenHint a:hover {
  text-decoration: underline;
}

/* ——— Focus ——— */
:where(a, button):focus-visible {
  outline: 2px solid color-mix(in oklab, var(--primary) 45%, transparent);
  outline-offset: 3px;
}
