:root {
  --ink: #16130f;
  --night: #080706;
  --paper: #fff8ea;
  --paper-soft: #f7eedc;
  --line: #dfd0b8;
  --red: #c92d32;
  --red-dark: #852027;
  --teal: #047c82;
  --gold: #ca8c23;
  --muted: #74695d;
  --shadow: 0 20px 60px rgba(10, 8, 6, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  align-items: center;
  background: rgba(8, 7, 6, 0.88);
  color: var(--paper);
  display: flex;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 12px 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  font-weight: 900;
  line-height: 1;
}

.brand span {
  font-size: 18px;
}

.brand small {
  color: #edc271;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 3px;
}

.social-links {
  align-items: center;
  display: flex;
  gap: 10px;
}

.social-links a {
  align-items: center;
  border: 1px solid rgba(255, 248, 234, 0.25);
  border-radius: 8px;
  color: #fff3d8;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: #edc271;
  outline: none;
}

.social-links svg {
  fill: currentColor;
  height: 19px;
  width: 19px;
}

.hero {
  background-image: url("./assets/karaoke-stage.webp");
  background-position: center;
  background-size: cover;
  color: var(--paper);
  min-height: 760px;
  overflow: hidden;
  padding-top: 68px;
  position: relative;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 7, 6, 0.96), rgba(8, 7, 6, 0.75) 42%, rgba(8, 7, 6, 0.24)),
    linear-gradient(0deg, rgba(8, 7, 6, 0.82), rgba(8, 7, 6, 0.05) 42%);
  inset: 0;
  position: absolute;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 400px;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 692px;
  padding: 48px 28px 76px;
  position: relative;
  width: 100%;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  color: #edc271;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red-dark);
}

h1,
h2 {
  line-height: 1.05;
  margin: 0;
}

h1 {
  font-size: 58px;
  max-width: 620px;
}

@media (min-width: 1100px) {
  .hero-copy {
    max-width: none;
  }

  h1 {
    max-width: none;
    white-space: nowrap;
  }
}

h2 {
  font-size: 30px;
}

.lede {
  color: #fff0cf;
  font-size: 20px;
  margin: 22px 0 0;
  max-width: 590px;
}

.lede-secondary {
  color: #f0d8a8;
  font-size: 16px;
  max-width: 640px;
}

.donation-button {
  align-items: center;
  background: #edc271;
  border-radius: 8px;
  color: var(--night);
  display: inline-flex;
  font-weight: 900;
  gap: 9px;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 18px;
}

.donation-button:hover,
.donation-button:focus-visible {
  background: #fff0cf;
  outline: none;
}

.donation-button svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

.request-panel {
  background: rgba(255, 248, 234, 0.95);
  border: 1px solid rgba(255, 248, 234, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  min-height: 416px;
  padding: 26px;
}

.request-panel h2 {
  margin-bottom: 22px;
}

.request-panel label {
  color: #4a3c2f;
  font-size: 14px;
  font-weight: 800;
  margin: 16px 0 7px;
}

.request-panel input,
.search-box input,
.queue-tools select {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  height: 48px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.request-panel input:focus,
.search-box input:focus,
.queue-tools select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(4, 124, 130, 0.16);
}

.primary-button,
.secondary-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

.primary-button {
  background: var(--red);
  color: #fff8ea;
  margin-top: 24px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--red-dark);
  outline: none;
}

.secondary-button {
  background: var(--ink);
  color: var(--paper);
  min-width: 100px;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: var(--teal);
  outline: none;
}

.form-status {
  color: var(--teal);
  font-size: 14px;
  font-weight: 800;
  min-height: 22px;
  margin: 16px 0 0;
}

.hidden-frame {
  border: 0;
  height: 0;
  position: absolute;
  width: 0;
}

.queue-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 64px 28px 72px;
}

.queue-header {
  align-items: end;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 24px;
}

.queue-tools {
  display: grid;
  gap: 10px;
  grid-template-columns: 230px 160px 110px;
}

.queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.queue-summary span {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4e443a;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 12px;
}

.table-shell {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(22, 19, 15, 0.08);
  overflow-x: auto;
  position: relative;
}

table {
  border-collapse: collapse;
  min-width: 880px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #eadfcc;
  padding: 16px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f7eedc;
  color: #4a3c2f;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #2e2923;
  font-size: 15px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.song-title {
  display: block;
  font-weight: 900;
}

.request-id {
  color: #5f5347;
  display: inline-block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  min-width: 84px;
}

.status-chip {
  border-radius: 8px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
}

.status-received {
  background: #ebe3d2;
  color: #5a4b39;
}

.status-making {
  background: #fff0c9;
  color: #7a4c00;
}

.status-complete {
  background: #eadff8;
  color: #523084;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
  padding: 24px;
}

.footer {
  align-items: center;
  background: var(--night);
  display: flex;
  justify-content: center;
  min-height: 76px;
  padding: 22px 28px;
}

.trans-flag {
  aspect-ratio: 5 / 3;
  background: linear-gradient(
    to bottom,
    #5bcffb 0 20%,
    #f5abb9 20% 40%,
    #ffffff 40% 60%,
    #f5abb9 60% 80%,
    #5bcffb 80% 100%
  );
  border: 1px solid rgba(255, 248, 234, 0.35);
  border-radius: 3px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  width: 78px;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 52px;
  }

  .request-panel {
    max-width: 560px;
  }

  .queue-header {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .queue-tools {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px 18px;
    position: static;
  }

  .social-links {
    overflow-x: auto;
    width: 100%;
  }

  .social-links a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 0;
  }

  .hero-shade {
    background: rgba(8, 7, 6, 0.76);
  }

  .hero-inner {
    gap: 28px;
    padding: 44px 18px 46px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 26px;
  }

  .lede {
    font-size: 18px;
  }

  .request-panel {
    min-height: 0;
    padding: 20px;
  }

  .queue-section {
    padding: 44px 18px 54px;
  }

  .footer {
    padding: 22px 18px;
  }
}
