/* sound-credits.php — attribution page.
   Themed entirely from the cosmic-shell tokens (--ink/--sub/--surface/--line/
   --accent) so it follows the light/dark toggle and the palette tweaks, with
   fallbacks so it still reads if the shell fails to load. Fluid type and an
   auto-fit grid: no fixed widths, nothing to break between 360px and desktop. */

.sc-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 32px) clamp(14px, 3vw, 28px) clamp(32px, 6vw, 64px);
}

.sc-lede {
  color: var(--sub, #6b7280);
  font-size: clamp(.95rem, .9rem + .25vw, 1.05rem);
  line-height: 1.6;
  margin: 0 0 clamp(24px, 4vw, 40px);
  max-width: 62ch;
}

.sc-section { margin: 0 0 clamp(32px, 5vw, 56px); }

.sc-section > h2 {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
  color: var(--ink, #111827);
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.sc-h2-sub {
  font-family: inherit;
  font-size: .7em;
  font-weight: 500;
  color: var(--sub, #6b7280);
  letter-spacing: .02em;
}

.sc-section-note {
  color: var(--sub, #6b7280);
  font-size: clamp(.86rem, .84rem + .12vw, .95rem);
  line-height: 1.55;
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  max-width: 68ch;
}

.sc-section-flag > h2 { color: var(--accent, #7c3aed); }

/* minmax(0,1fr) — a plain 1fr will not shrink below its content's min-content
   width in WebKit and the grid blows out of the viewport on iOS. */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(12px, 2vw, 20px);
}

.sc-card {
  min-width: 0;
  background: var(--surface, rgba(255, 255, 255, .04));
  border: 1px solid var(--line, rgba(128, 128, 128, .22));
  border-radius: 14px;
  padding: clamp(14px, 2vw, 20px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sc-section-flag .sc-card {
  border-color: color-mix(in srgb, var(--accent, #7c3aed) 42%, transparent);
}

.sc-work {
  font-size: clamp(1rem, .96rem + .2vw, 1.1rem);
  font-weight: 600;
  color: var(--ink, #111827);
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sc-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: .86rem;
  color: var(--sub, #6b7280);
}

.sc-meta a { color: var(--accent, #7c3aed); text-decoration: none; }
.sc-meta a:hover,
.sc-meta a:focus-visible { text-decoration: underline; }

.sc-lic {
  border: 1px solid var(--line, rgba(128, 128, 128, .22));
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .78rem;
  white-space: nowrap;
}

.sc-lic a { color: inherit; }
.sc-lic-none { opacity: .75; font-style: italic; }

.sc-src { font-size: .78rem; }

.sc-note {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--sub, #6b7280);
}

.sc-insts {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sc-insts li {
  font-size: .76rem;
  line-height: 1.3;
  color: var(--ink, #111827);
  background: color-mix(in srgb, var(--ink, #111827) 7%, transparent);
  border-radius: 6px;
  padding: 3px 8px;
  overflow-wrap: anywhere;
}

.sc-foot-note,
.sc-empty {
  color: var(--sub, #6b7280);
  font-size: .86rem;
  line-height: 1.6;
  max-width: 72ch;
  margin: clamp(24px, 4vw, 40px) 0 0;
}

.sc-foot-note a,
.sc-empty a { color: var(--accent, #7c3aed); }

/* The "Sound credits" link that points here is styled where it lives — in
   php/cosmic-footer.php and css/a2m.css — because this sheet only loads on this
   page and a link styled from here would be unstyled everywhere else. */
