/* Brand palette as supplied by the designer. The six --brand-* values are her
   exact hex codes; everything below them is a role that maps onto one. Change
   a role, not a brand value. */
:root {
  --brand-purple: #b241a2;
  --brand-purple-med: #d18dc7;
  --brand-purple-light: #e0b3da;
  --brand-orange: #e9661f;
  --brand-orange-light: #f6c2a5;
  --brand-grey: #5c5c5c;

  --orange: var(--brand-orange);
  --purple: var(--brand-purple);
  /* No hover tint in the supplied palette — this lifts --brand-purple toward
     --brand-purple-med so buttons still respond without leaving the family. */
  --purple-hover: #c456b3;
  /* Accent text on the dark panel (breadcrumb, category labels, "Response »").
     Uses Medium Purple rather than Purple: at these small sizes Purple lands
     around 2.4:1 against the card background, which is not readable. */
  --pink: var(--brand-purple-med);
  /* The revealed correct answer on the trivia page. */
  --purple-answer: var(--brand-purple-med);

  --dark-bg: #2c1c26;
  --card-bg: #2a2a2a;
  --card-border: var(--brand-orange);
  --text-body: #d9cfd4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Responsive conversion — in progress (footer is the first fluid component).
   Every page shares the same three body children: header + main + footer. The
   global 1280px lock that used to live on <body> is gone; instead we pin only
   the header and the (still desktop-only) main content at 1280px, leaving the
   footer free to be mobile-first. Effect on a phone: everything above the
   footer behaves exactly as it does today (renders at 1280 and scrolls
   horizontally), while the footer renders at the device width. As each section
   above is converted to be responsive, its min-width comes off; once they all
   are, this shim goes away entirely. */
body > .site-header,
body > main {
  min-width: 1280px;
}

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */

.site-header {
  background: #f7f5f3;
  border-bottom: 1px solid #e5e1dd;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #1f1f2e;
}

.logo-word {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}

.main-nav a {
  color: var(--brand-grey);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--orange);
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-item .chevron-down {
  transition: transform 0.15s ease;
}

.nav-item:hover .chevron-down,
.nav-item:focus-within .chevron-down {
  transform: rotate(180deg);
}

/* Invisible hover bridge: the header has vertical padding above/below the
   nav text, so the mouse crosses dead space on its way down to the dropdown
   and loses :hover before it arrives. This pseudo-element is always part of
   .nav-item's hit area (unlike the dropdown, which is hidden/non-hittable
   until hovered), so it keeps the hover chain unbroken across that gap. */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  height: 26px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  margin-top: 20px;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e1dd;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  padding: 0.4rem;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  /* Closing is deliberately delayed a full second (visibility flips only once
     the fade has finished) so the menu stays clickable while the pointer
     travels toward it, or if it clips a corner on the way down. Opening stays
     instant. `visibility` alone gates interaction here — `pointer-events` is
     not transitionable, so using it would kill clicks the moment hover
     dropped and defeat the delay. */
  transition: opacity 0.15s ease 1s, visibility 0s linear 1.15s;
  z-index: 50;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.15s ease 0s, visibility 0s linear 0s;
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 5px;
  color: #333;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.nav-dropdown a:hover {
  background: #f7ede8;
  color: var(--orange);
}

.social-links {
  display: flex;
  gap: 0.9rem;
}

.social-links a {
  color: var(--brand-grey);
  display: flex;
}

.social-links a:hover {
  color: var(--orange);
}

/* ---------------------------------------------------------------------- */
/* Dark panel (hero through the contact form share one continuous bg)      */
/* ---------------------------------------------------------------------- */

.dark-panel {
  position: relative;
  min-height: 100vh;
  background: var(--dark-bg);
  overflow: hidden;
}

.dark-panel > section {
  position: relative;
  z-index: 1;
}

/* The designer's bubble artwork, knocked well back so it reads as texture
   behind the dark panel rather than as content. It replaced a stack of CSS
   radial gradients that approximated it. Upscaling is safe here — the source
   is nothing but soft gradients. */
.decor-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("img/page_bg.jpg");
  background-size: cover;
  background-position: center top;
  opacity: 0.12;
}

.divider {
  border: none;
  border-top: 1px solid rgba(232, 99, 43, 0.4);
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                    */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 3.5rem 2rem;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.hero-copy h1 {
  color: #fff;
  font-size: 2.4rem;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.hero-copy h1 .highlight {
  color: var(--orange);
}

.hero-copy p {
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
}

.btn {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--purple-hover);
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1rem 1.1rem;
}

.fact-label {
  display: block;
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.fact-body {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.fact-text {
  flex: 1;
}

.fact-text h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.4rem;
}

.fact-text h3 .by {
  color: var(--orange);
  font-style: italic;
  font-weight: 400;
  font-size: 0.85rem;
  display: block;
  margin-top: 0.15rem;
}

.fact-text p {
  color: var(--text-body);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

.fact-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
}

/* ---------------------------------------------------------------------- */
/* Very Human, Very Interesting.                                           */
/* ---------------------------------------------------------------------- */

.very-human {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  text-align: center;
}

.very-human h2 {
  color: #fff;
  font-size: 1.7rem;
  margin: 1.75rem 0 1rem;
}

.very-human p {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 68ch;
  margin: 0 auto 1.75rem;
}

.orange {
  color: var(--orange);
}

/* ---------------------------------------------------------------------- */
/* Feature sections (Available Now / Coming Soon)                          */
/* ---------------------------------------------------------------------- */

.available-now,
.coming-soon {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.available-now h2,
.coming-soon h2 {
  color: #fff;
  font-size: 1.5rem;
  text-align: center;
  margin: 0 0 1.5rem;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.feature-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Coming Soon's first row is two cards centered at the same width as the
   three-up row beneath it, not two half-width cards. */
.feature-grid.cols-2-center {
  grid-template-columns: repeat(2, calc((100% - 2.5rem) / 3));
  justify-content: center;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 6px;
  padding: 1.5rem 1.25rem 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.feature-title {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.7rem;
}

.feature-card p {
  color: var(--text-body);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.btn-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% + 2.5rem);
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  margin-top: auto;
}

.btn-view:hover {
  background: var(--purple-hover);
}

.feature-card-wide p {
  max-width: 50ch;
}

/* ---------------------------------------------------------------------- */
/* Get Started / contact form                                             */
/* ---------------------------------------------------------------------- */

.get-started {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.eyebrow {
  display: block;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.get-started h2 {
  color: #fff;
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.get-started > p {
  color: var(--text-body);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}

.api-form {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.1rem;
}

.form-row-full {
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  color: #fff;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-field textarea {
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9a8a92;
}

.form-field select {
  color: #cfc3c9;
}

/* Some platforms (Windows, Linux) draw the open dropdown list with the
   select's own colors — the translucent background would leave light text
   on a white list. Give the options explicit, readable colors. */
.form-field select option {
  background: #fff;
  color: #1d1d1d;
}

/* `.form-field { display: flex }` would otherwise override the [hidden]
   attribute on the conditional "Other" field. */
.form-field[hidden] {
  display: none;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.form-note {
  color: var(--text-body);
  font-size: 0.85rem;
}

.form-note-success {
  color: #6fd98f;
}

.form-note-error {
  color: #f08a6c;
}

/* ---------------------------------------------------------------------- */
/* Footer gradient bar                                                     */
/* ---------------------------------------------------------------------- */

.gradient-bar {
  height: 48px;
  background: linear-gradient(90deg, #d9832f, #c9457a, #9c3aa8, #d9832f);
}

/* ---------------------------------------------------------------------- */
/* Shared: breadcrumb, page header, generic content wrapper, CTA bar       */
/* ---------------------------------------------------------------------- */

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #a68d95;
}

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

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb .current {
  color: var(--pink);
}

.page-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 2rem 1.75rem;
}

.page-header h1 {
  color: #fff;
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
}

.page-header h1 .accent {
  color: var(--orange);
}

.page-header p {
  color: var(--text-body);
  font-size: 0.92rem;
  max-width: 90ch;
  margin: 0;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 2rem 0.5rem;
}

.cta-bar {
  max-width: 1200px;
  margin: 1rem auto 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--card-bg);
  border: 1px solid var(--purple);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-bar h2 {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
}

.cta-bar p {
  color: var(--text-body);
  font-size: 0.85rem;
  margin: 0;
}

.cta-bar .btn {
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------- */
/* Fact tiles (SongFacts / ArtistFacts examples)                           */
/* ---------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.card-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.fact-tile {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.4rem 1.25rem 1.6rem;
}

/* The mockup centers a smaller square of cover art above left-aligned copy,
   rather than bleeding it to the card's full width. */
.fact-tile .thumb {
  display: block;
  width: 64%;
  aspect-ratio: 1;
  margin: 0 auto 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  object-fit: cover;
}

.fact-tile h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.fact-tile h3.artist-name {
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.fact-tile .by {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.9rem;
}

.fact-tile p {
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 0.9rem;
}

.fact-tile p:last-child {
  margin-bottom: 0;
}

.fact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------- */
/* Categories examples                                                     */
/* ---------------------------------------------------------------------- */

/* The page is one worked example of a "rabbit hole": each category listing
   ends in a song the user clicked, which opens the next category one level
   deeper. The nesting in the markup mirrors that, so each .chain-level just
   indents relative to its parent. */
.categories-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.category-chain {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.6rem 1.75rem 2rem;
}

.chain-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.chain-song {
  color: var(--orange);
  font-size: 1.15rem;
  font-weight: 700;
}

.chain-level {
  padding-left: 2.75rem;
}

.chain-cat {
  display: block;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.chain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chain-list li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.35rem 0;
  color: #fff;
  font-size: 0.95rem;
}

/* The last entry in each list is the one that was clicked to descend. */
.chain-list li.is-followed {
  color: var(--pink);
  font-weight: 700;
}

.chain-arrow {
  display: block;
  color: var(--pink);
  margin: 0.35rem 0 0.35rem 3.25rem;
}

.chain-level-end {
  padding-bottom: 0.25rem;
}

.thumb-md {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  object-fit: cover;
}

.thumb-sm {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  object-fit: cover;
}

.other-categories {
  border: 1px solid var(--purple);
  border-radius: 10px;
  overflow: hidden;
}

.other-categories-header {
  background: var(--purple);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  padding: 0.9rem 1rem;
}

.other-categories ul {
  list-style: none;
  margin: 0;
  padding: 0 1.1rem;
  background: var(--card-bg);
}

.other-categories li {
  position: relative;
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.other-categories li:last-child {
  border-bottom: none;
}

.other-categories li::before {
  content: "\00BB";
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Music History Calendar examples                                        */
/* ---------------------------------------------------------------------- */

.calendar-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.calendar-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.calendar-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.calendar-col {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.calendar-col.accent-purple-border {
  border-color: var(--purple);
}

.calendar-col-header {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.calendar-col-header.bar-orange {
  background: var(--orange);
}

.calendar-col-header.bar-purple {
  background: var(--purple);
}

.calendar-col-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Illustration of a lookup control, not a real one — this page demos API
   output and queries nothing, so it's built from flat elements rather than an
   input/button that would invite typing and clicking. The accent colour comes
   in via the .accent-* class below and is picked up through currentColor. */
.calendar-search {
  display: flex;
  align-items: stretch;
  border: 1px solid;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.calendar-search-value {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.calendar-search-icon {
  display: flex;
  align-items: center;
  background: currentColor;
  padding: 0 0.75rem;
}

.calendar-search-icon svg {
  color: #fff;
}

.calendar-search.accent-orange {
  color: var(--orange);
}

.calendar-search.accent-purple {
  color: var(--purple);
}

.timeline {
  list-style: none;
  margin: 0 0 0.5rem 0.5rem;
  padding: 0;
  border-left: 2px solid var(--purple);
}

.timeline li {
  position: relative;
  padding: 0 0 1rem 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline li:last-child {
  border-bottom: none;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--orange);
}

.timeline .year {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  display: block;
  margin-bottom: 0.3rem;
}

.timeline p {
  color: var(--text-body);
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 0;
}

.view-more {
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 0.5rem;
  display: block;
}

.view-more:hover {
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Blurbs examples                                                         */
/* ---------------------------------------------------------------------- */

.blurbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.blurbs-col {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.blurbs-col:last-child {
  border-color: var(--purple);
}

.blurbs-col-header {
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blurbs-col-header.bar-orange {
  background: var(--orange);
}

.blurbs-col-header.bar-purple {
  background: var(--purple);
}

.blurb-list {
  list-style: none;
  margin: 0;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--card-bg);
}

/* Each blurb sits in its own outlined box, tinted to match its column. */
.blurb-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
}

.blurbs-col:last-child .blurb-item {
  border-color: var(--purple);
}

.blurb-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  object-fit: cover;
}

.blurb-text {
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------------------------------------------------------------------- */
/* Quotes examples                                                         */
/* ---------------------------------------------------------------------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.quote-card {
  border: 1px solid var(--purple);
  border-radius: 6px;
  padding: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quote-mark {
  flex-shrink: 0;
  color: var(--purple);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.quote-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.quote-text {
  color: #fff;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0 0 1.1rem;
  flex: 1;
}

.quote-divider {
  border: none;
  border-top: 1px solid var(--purple);
  margin: 0 0 0.9rem;
}

.quote-attribution {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.quote-avatar {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--card-border);
  background: linear-gradient(135deg, #4a2e42, #7a3a2c);
  object-fit: cover;
  /* Several supplied portraits are tall crops; anchoring the top keeps the
     subject's face in a 64px square instead of centring on their torso. */
  object-position: center top;
}

.quote-attribution .name {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  display: block;
}

.quote-attribution .context {
  color: var(--orange);
  font-size: 0.92rem;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Trivia examples                                                         */
/* ---------------------------------------------------------------------- */

/* The four zones of a card — question / answers / response / player — sit on
   four rows shared by all three cards, so each zone starts at the same height
   across the row no matter how many lines its copy runs to (question 2 wraps
   to three lines, question 1 to two). Each card opts into the parent's rows
   via subgrid rather than sizing its own. */
.trivia-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.trivia-card {
  background: var(--card-bg);
  border: 1px solid var(--purple);
  border-radius: 10px;
  padding: 1.5rem 1.4rem;
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
}

.trivia-question {
  color: #fff;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 1.4rem;
}

.trivia-answers {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--purple);
}

.trivia-answer {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.trivia-answer:hover {
  background: var(--purple-hover);
}

/* The mockup shows each example with its answer already revealed. */
.trivia-answer.is-correct {
  background: var(--purple-answer);
}

.trivia-response-label {
  display: block;
  color: var(--pink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.trivia-response p {
  color: var(--text-body);
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
}

/* Top-aligned, not bottom: the three supplied player images differ slightly in
   aspect ratio, so anchoring their bottoms would stagger the labels above
   them. Anchoring the tops keeps the labels level and pushes the couple of
   pixels of difference to the bottom edge, where it doesn't read. */
.trivia-play {
  align-self: start;
  padding-top: 1.6rem;
}

.trivia-play-label {
  display: block;
  color: var(--pink);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

/* Supplied artwork of a player, not a working one — it illustrates how a
   client might pair a trivia answer with playback. There is no audio behind
   it, so it stays a flat image. */
.player {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------------------------------------------------------------------- */
/* Site footer (responsive, mobile-first) — from songfacts_v7_mobile.pdf   */
/* ---------------------------------------------------------------------- */

/* Visually-hidden label (accessible name for the newsletter input). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  background: var(--orange);
  color: #fff;
  padding: 2.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-heading {
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 1.15rem;
  font-weight: 700;
}

.footer-newsletter-copy {
  margin: 0 0 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.newsletter-input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: none;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 1rem;
  font-family: inherit;
}

.newsletter-input::placeholder {
  color: #8a8a8a;
}

.newsletter-button {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 4px;
  background: var(--brand-grey);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-button:hover {
  background: #4a4a4a;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

/* From tablet up, lay the newsletter and the three link groups side by side.
   (Desktop footer will be refined against landingpage_v7.pdf later.) */
@media (min-width: 768px) {
  .site-footer {
    padding: 3rem 2rem 1.5rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2.5rem 3rem;
  }

  .footer-newsletter {
    flex: 1 1 320px;
    min-width: 280px;
  }

  .footer-col {
    flex: 1 1 160px;
  }
}

/* ---------------------------------------------------------------------- */
/* Mobile navigation tab strip (from songfacts_v7_mobile.pdf)              */
/* A horizontally-scrollable row of the 8 sections; the active one is a    */
/* filled purple pill. Hidden on desktop, revealed in the mobile query.    */
/* A tiny inline script on each page scrolls the active tab into view.     */
/* ---------------------------------------------------------------------- */
.tab-nav {
  display: none;
}

/* ====================================================================== */
/* MOBILE LAYOUT — below 768px everything reflows to a single column, per  */
/* the designer's mobile PDF. Above 768px the desktop layout is untouched  */
/* (main stays pinned at 1280px). This is the responsive conversion; the   */
/* footer was step one and the transitional min-width shim now lifts here. */
/* ====================================================================== */
@media (max-width: 767.98px) {

  /* Release the desktop width lock so content can reflow to fit. */
  body > .site-header,
  body > main {
    min-width: 0;
  }

  /* --- Header: hamburger pinned left, logo centered, desktop nav hidden --- */
  .header-inner {
    position: relative;
    justify-content: center;
    gap: 0;
    padding: 0.75rem 1.25rem;
  }

  .menu-toggle {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .main-nav,
  .social-links {
    display: none;
  }

  /* --- Mobile section tab strip --- */
  .tab-nav {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.55rem 1rem;
    background: #f7f5f3;
    border-bottom: 1px solid #e5e1dd;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .tab-nav::-webkit-scrollbar {
    display: none;
  }

  .tab-nav a {
    flex: 0 0 auto;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-grey);
    text-decoration: none;
    white-space: nowrap;
  }

  .tab-nav a.is-active {
    background: var(--purple);
    color: #fff;
  }

  /* --- Trim section side padding for more content width on narrow screens --- */
  .hero,
  .very-human,
  .available-now,
  .coming-soon,
  .get-started,
  .page-header,
  .page-content {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }

  .hero {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  /* --- Landing hero: center the copy, and drop the CTA buttons below the two
     highlight cards (per the mobile PDF). The buttons live inside .hero-copy
     for the desktop layout, so we use display:contents to promote the copy's
     children into the hero's flex flow — then `order` can place the buttons
     after the cards without changing the desktop DOM. --- */
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .hero-copy {
    display: contents;
  }

  .hero-copy h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
  }

  .hero-copy p {
    margin: 0 auto;
  }

  .hero-cards {
    order: 0;
    text-align: left;
  }

  .hero-actions {
    order: 1;
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  /* --- Landing: Available Now / Coming Soon feature grids to one column --- */
  .feature-grid.cols-2,
  .feature-grid.cols-3,
  .feature-grid.cols-2-center {
    grid-template-columns: 1fr;
  }

  /* --- Contact form: paired fields stack --- */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* --- Example pages: every multi-column grid collapses to one column --- */
  .card-grid.cols-4,
  .calendar-grid.cols-2,
  .calendar-grid.cols-3,
  .blurbs-grid,
  .quotes-grid,
  .categories-layout {
    grid-template-columns: 1fr;
  }

  /* --- SongFacts / ArtistFacts tiles: switch from the desktop's big centered
     thumb-on-top to the mobile PDF's horizontal layout — a small square thumb
     floated top-left with the title/artist/body flowing to its right and
     wrapping beneath it. flow-root contains the float. --- */
  .fact-tile {
    display: flow-root;
  }

  .fact-tile .thumb {
    float: left;
    width: 88px;
    margin: 0.15rem 0.9rem 0.4rem 0;
  }

  /* --- Categories: tighten the deep rabbit-hole indentation so it fits --- */
  .category-chain {
    padding: 1.25rem 1rem 1.5rem;
  }

  .chain-level {
    padding-left: 1.1rem;
  }

  .chain-arrow {
    margin-left: 1.4rem;
  }

  /* --- Trivia: drop the 3-column subgrid; each card becomes a plain block --- */
  .trivia-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .trivia-card {
    grid-row: auto;
    grid-template-rows: none;
    display: block;
  }

  /* --- CTA bar stacks (its side gutter comes from .page-content padding) --- */
  .cta-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  /* --- Sub-page header: smaller title, and center the title + short
     description per the mobile PDF (they're left-aligned on desktop). --- */
  .page-header {
    text-align: center;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
