
:root {
  --background: #0b1624;
  --surface: #172638;
  --surface-light: #223448;
  --text: #f3f0e8;
  --muted: #aab8c6;
  --teal: #56d8c4;
  --orange: #f4a261;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  padding: 24px 0;
  border-bottom: 1px solid #304254;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  color: var(--teal);
  font-weight: bold;
  text-decoration: none;
  font-size: 1.2rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
}

.hero {
  padding: 90px 0;
}

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.1;
  margin: 20px 0;
}

h2 {
  font-size: 1.8rem;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.15rem;
}

.button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 24px;
  background: var(--teal);
  color: var(--background);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
}

.card {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 16px;
  padding: 28px;
  margin: 20px 0;
}

.card p {
  color: var(--muted);
}

footer {
  margin-top: 80px;
  padding: 30px 0;
  border-top: 1px solid #304254;
  color: var(--muted);
}

/* Signal chain */

.signal-chain {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0 28px;
}

.signal-block {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 14px;
  padding: 22px;
  min-width: 170px;
  flex: 1 0 170px;
}

.signal-block h3 {
  margin: 12px 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.signal-block p {
  color: var(--muted);
  font-size: 0.9rem;
}

.block-number {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: bold;
}

.optional {
  display: inline-block;
  color: var(--orange);
  font-size: 0.8rem;
  margin-top: 8px;
}

.recipe-content {
  margin-top: 40px;
}

.recipe-content h2 {
  color: var(--teal);
  margin-top: 32px;
}

@media (max-width: 600px) {
  .signal-chain {
    flex-direction: column;
    overflow-x: visible;
  }

  .signal-block {
    flex: none;
    min-width: 0;
  }
}

/* Beginner Route and Veteran Notes */

.guide-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.guide-panel {
  border-radius: 16px;
  padding: 30px;
  line-height: 1.75;
}

.panel-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 20px;
}

.beginner-panel {
  background: #f3f0e8;
  color: #183247;
}

.beginner-panel .panel-label {
  color: #145d66;
}

.beginner-panel p {
  color: #334155;
}

.veteran-panel {
  background: #172638;
  border: 1px solid #304254;
  color: #f3f0e8;
}

.veteran-panel .panel-label {
  color: #56d8c4;
}

.veteran-panel p {
  color: #aab8c6;
}

.guide-panel p {
  margin: 0;
}

/* Mobile layout */

@media (max-width: 700px) {
  .guide-panels {
    grid-template-columns: 1fr;
  }

  .guide-panel {
    padding: 24px;
  }
}

/* Numbered build instructions */

.build-section {
  margin-top: 50px;
}

.build-section h2 {
  font-size: 2rem;
  margin: 12px 0;
  color: var(--text);
}

.build-intro {
  color: var(--muted);
  margin-bottom: 30px;
}

.build-steps {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 16px;
  padding: 12px 30px;
}

.build-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid #304254;
}

.build-step:last-child {
  border-bottom: none;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  background: var(--surface-light);
  color: var(--teal);
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: bold;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-content h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.1rem;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 600px) {
  .build-section h2 {
    font-size: 1.6rem;
  }

  .build-steps {
    padding: 8px 18px;
  }

  .build-step {
    gap: 16px;
    padding: 22px 0;
  }

  .step-number {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
    font-size: 1rem;
  }
}

/* Before You Build */

.before-build-panel {
  margin-top: 24px;
  border-left: 4px solid var(--orange);
}

.before-build-panel .eyebrow {
  color: var(--orange);
}

.before-build-panel p {
  color: var(--text);
  line-height: 1.8;
  white-space: pre-line;
}

/* Scene configurations */

.scenes-section {
  margin-top: 50px;
}

.scenes-section h2 {
  color: var(--text);
  font-size: 1.8rem;
  margin: 12px 0 24px;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scene-card {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 16px;
  padding: 28px;
}

.scene-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.scene-id {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  background: var(--surface-light);
  color: var(--teal);
  border-radius: 10px;
  font-weight: bold;
  font-size: 1.2rem;
}

.scene-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.1rem;
}

.scene-card p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* Responsive scene cards */

@media (max-width: 700px) {
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .scene-card {
    padding: 24px;
  }
}

/* Troubleshooting section */

.troubleshooting-section {
  margin-top: 40px;
}

.troubleshooting-section .eyebrow {
  margin-bottom: 20px;
}

.troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, 210px), 1fr)
  );
  gap: 16px;
}

.troubleshooting-card {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 14px;
  padding: 24px;
}

.troubleshooting-card h3 {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.troubleshooting-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .troubleshooting-card {
    padding: 20px;
  }
}

/* Signal Chain Library */

.library-hero {
  padding-bottom: 45px;
}

.library-section {
  margin: 30px 0 70px;
}

.library-section h2 {
  margin: 12px 0 26px;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.recipe-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 16px;
  padding: 28px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.recipe-card:hover,
.recipe-card:focus-visible {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.recipe-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.recipe-card-artist {
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.recipe-card h3 {
  font-size: 1.5rem;
  margin: 14px 0;
  color: var(--text);
}

.recipe-card p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 26px;
}

.recipe-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #304254;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}

.recipe-card-arrow {
  color: var(--teal);
  font-size: 1.5rem;
}

/* Mobile layout */

@media (max-width: 700px) {
  .recipe-grid {
    grid-template-columns: 1fr;
  }

  .recipe-card {
    padding: 24px;
  }
}

/* Library search and filters */

.library-filters {
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 40px;
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.filter-controls label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  background: var(--background);
  color: var(--text);
  border: 1px solid #405166;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
}

.filter-controls input:focus,
.filter-controls select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.filter-controls input::placeholder {
  color: var(--muted);
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.85rem;
}

#clear-filters {
  background: transparent;
  border: 1px solid #405166;
  border-radius: 8px;
  color: var(--teal);
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

#clear-filters:hover {
  border-color: var(--teal);
}

.recipe-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.recipe-card-tags span {
  background: var(--surface-light);
  color: var(--teal);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
}

.recipe-card[hidden],
#no-results[hidden] {
  display: none !important;
}

#no-results {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

/* Responsive filters */

@media (max-width: 800px) {
  .filter-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .library-filters {
    padding: 20px;
  }

  .filter-footer {
    flex-wrap: wrap;
  }
}

/* =====================================
   REFINED SIGNAL CHAIN DESIGN
   ===================================== */

.signal-section {
  margin-top: 45px;
  margin-bottom: 35px;
}

.signal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.signal-heading h2 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--text);
}

.signal-heading span {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* The signal path */

.signal-chain {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  align-items: stretch;
}

/* Individual signal blocks */

.signal-block {
  position: relative;
  flex: 0 0 185px;
  min-width: 0;
  padding: 22px;

  background: var(--surface);
  border: 1px solid #355569;
  border-radius: 14px;

  display: flex;
  flex-direction: column;

  transition: border-color 0.2s ease;
}

.signal-block:hover {
  border-color: var(--teal);
}

/* Connecting arrows */

.signal-block:not(:last-child)::after {
  content: "\2192";
  position: absolute;

  left: calc(100% + 1px);
  top: 50%;
  width: 33px;

  transform: translateY(-50%);

  color: var(--teal);
  font-size: 1.5rem;
  text-align: center;

  pointer-events: none;
}

/* Block heading */

.signal-block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 22px;
}

.signal-block .block-number {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Block type */

.block-type {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Block title */

.signal-block h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.3;
}

/* Description */

.signal-block p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
}

/* Optional blocks */

.signal-block.is-optional {
  border-color: #946445;
}

.optional-indicator {
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Supporting note */

.signal-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Mobile layout */

@media (max-width: 700px) {

  .signal-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .signal-chain {
    flex-direction: column;
    gap: 34px;
    overflow-x: visible;
    padding: 8px 4px 24px;
  }

  .signal-block {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .signal-block:not(:last-child)::after {
    content: "\2192";
    top: calc(100% + 1px);
    left: 50%;
    width: 32px;

    transform: translateX(-50%) rotate(90deg);
    transform-origin: center;

    line-height: 32px;
  }

}

/* =====================================
   TYPOGRAPHY AND LAYOUT REFINEMENTS
   ===================================== */

/* Global typography */

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3 {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

/* Song titles */

.hero h1 {
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin: 12px 0 18px;
}

.hero > p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 0;
}

/* Section titles */

.signal-heading h2,
.build-section h2,
.scenes-section h2,
.library-section h2 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 18px;
}

/* Uppercase editorial labels */

.eyebrow,
.panel-label {
  font-family: "Inter", Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Block names */

.signal-block h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Step headings */

.step-content h3 {
  font-size: 1.45rem;
  font-weight: 700;
}

/* Scene headings */

.scene-card h3 {
  font-size: 1.35rem;
}

/* Better page rhythm */

main.container > section {
  margin-bottom: 48px;
}

.hero {
  padding: 75px 0 40px;
}

.card {
  padding: 32px;
}

.guide-panel {
  padding: 32px;
}

.build-section {
  margin-top: 60px;
}

.scenes-section {
  margin-top: 60px;
}

.troubleshooting-section {
  margin-top: 55px;
}

/* Improve readability */

.sound-panel p,
.guide-panel p,
.before-build-panel p,
.step-content p,
.scene-card p {
  line-height: 1.8;
}

/* Mobile typography */

@media (max-width: 700px) {
  .hero {
    padding: 45px 0 25px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 13vw, 4.8rem);
    letter-spacing: -0.5px;
  }

  .card,
  .guide-panel {
    padding: 24px;
  }

  .step-content h3 {
    font-size: 1.25rem;
  }

  main.container > section {
    margin-bottom: 35px;
  }
}

/* Homepage title adjustment */

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }
}

/* =====================================
   SHARED HEADER AND NAVIGATION
   ===================================== */

.site-header {
  border-bottom: 1px solid #304254;
  padding: 0;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.site-nav .logo {
  font-family: "Inter", Arial, sans-serif;
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a,
.mobile-nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.desktop-nav a:hover,
.mobile-nav-links a:hover {
  color: var(--teal);
}

.desktop-nav a.nav-guide {
  color: var(--orange);
}

.site-nav a:focus-visible,
.mobile-nav summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Mobile navigation */

.mobile-nav {
  display: none;
}

.mobile-nav summary {
  cursor: pointer;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav summary span {
  color: var(--teal);
  margin-left: 10px;
  font-size: 1.3rem;
}

.mobile-nav-links {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-width: 200px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid #304254;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.mobile-nav-links a {
  padding: 12px;
}

/* =====================================
   SHARED FOOTER
   ===================================== */

.site-footer {
  margin-top: 80px;
  border-top: 1px solid #304254;
  padding: 48px 0;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand strong {
  color: var(--teal);
  font-size: 1rem;
}

.footer-brand p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--text);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-disclaimer,
.footer-copyright {
  max-width: 750px;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.7;
}

/* Responsive navigation */

@media (max-width: 700px) {
  .site-nav {
    min-height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: relative;
  }

  .site-footer {
    padding: 35px 0;
  }

  .footer-links {
    gap: 16px;
  }
}

/* Standard content pages */

.standard-page-hero {
  padding-bottom: 20px;
}

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

.standard-page-content {
  max-width: 850px;
}

.standard-page-content h2 {
  color: var(--teal);
  margin-top: 28px;
}

.standard-page-content h2:first-child {
  margin-top: 0;
}

.standard-page-content p,
.standard-page-content li {
  color: var(--muted);
  line-height: 1.8;
}

.standard-page-content ul {
  padding-left: 24px;
}
