/* Sound:Vision — site styles.
   Dark theme derived from the project logo (red "SOUND:", white "VISION" on near-black).
   Contrast targets: body text >= 7:1, links >= 7:1, large headings >= 3:1, UI borders >= 3:1. */

:root {
  color-scheme: dark;
  --bg: #101013;
  --bg-raised: #1a1a20;
  --bg-inset: #17171c;
  --text: #f4f2ef;
  --text-muted: #c6c2bc;
  --red: #e2372b;         /* logo red — large text and decoration only */
  --red-strong: #c72d22;  /* button resting bg: 5.49:1 with white */
  --red-hover: #a8241a;   /* button hover bg: 7.16:1 with white */
  --link: #ff8a7d;
  --focus: #ffd166;
  --border: #8a867f;
  --border-subtle: #3a3a42;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--focus);
  color: #101013;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---------- Header & nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
}

.site-header .inner {
  max-width: 66rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo .l-sound { color: var(--red); }
.logo .l-vision { color: var(--text); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Links & focus ---------- */

main a, footer a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

main a:hover, footer a:hover { text-decoration-thickness: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
audio:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

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

.hero {
  padding: 4.5rem 1rem 4rem;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 10%, rgba(226, 55, 43, 0.16), transparent 70%),
    linear-gradient(180deg, #0a0a0c 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.005em;
  line-height: 1.1;
}

.hero h1 .l-sound { color: var(--red); }
.hero h1 .l-vision { color: var(--text); }

.hero .tagline {
  max-width: 42rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  color: var(--text);
}

.hero .sub {
  max-width: 42rem;
  margin: 0.75rem auto 0;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
}

main .button.primary, .button.primary {
  background: var(--red-strong);
  color: #ffffff;
}

.button.primary:hover { background: var(--red-hover); }

main .button.secondary, .button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button.secondary:hover { border-color: var(--text); }

main .button { text-decoration: none; }

/* ---------- Sections ---------- */

main {
  display: block;
}

section {
  padding: 3.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

section > .inner {
  max-width: 66rem;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

section h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  margin-top: 0.6rem;
  background: var(--red);
  border-radius: 2px;
}

.lede {
  color: var(--text-muted);
  max-width: 46rem;
}

.two-col {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 52rem) {
  .two-col { grid-template-columns: 3fr 2fr; }
}

.prose { max-width: 46rem; }
.prose p { margin: 1rem 0; }

/* ---------- Figures ---------- */

figure.photo {
  margin: 0;
}

figure.photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

figure.photo figcaption {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

figure.photo.spaced { margin-top: 2rem; }

.photo-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 52rem) {
  .photo-row { grid-template-columns: 1fr 1fr; }
}

/* ---------- Cards (resources) ---------- */

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 52rem) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.card p { margin: 0.5rem 0 1rem; color: var(--text-muted); }

.card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0;
}

/* ---------- Details / disclosure ---------- */

details {
  margin-top: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-inset);
}

details summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-weight: 700;
  color: var(--text);
}

details summary:hover { color: var(--link); }

details[open] summary { border-bottom: 1px solid var(--border-subtle); }

details .details-body {
  padding: 0.5rem 1.25rem 1.25rem;
}

details .details-body h4 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.25rem;
  color: var(--red) ;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

details .details-body h5 {
  font-size: 1.1rem;
  margin: 1.25rem 0 0.25rem;
}

details .details-body p { margin: 0.25rem 0 0.75rem; color: var(--text); }

/* Red used at >= 1.05rem bold only (large-text exemption is 14pt bold = 1.166rem;
   bump size to be safe) */
details .details-body h4 { font-size: 1.2rem; }

/* ---------- Video embed ---------- */

.video-wrap {
  max-width: 52rem;
  margin-top: 2rem;
}

.video-embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.video-fallback {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---------- Audio ---------- */

.audio-block {
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 2rem;
  max-width: 46rem;
}

.audio-block audio {
  width: 100%;
  margin: 0.75rem 0;
}

.audio-block .audio-links {
  font-size: 1rem;
}

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 52rem) {
  .testimonials { grid-template-columns: 1fr 1fr; }
}

figure.testimonial {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
}

figure.testimonial blockquote {
  margin: 0;
}

figure.testimonial blockquote p {
  margin: 0 0 0.75rem;
}

figure.testimonial figcaption {
  margin-top: 0.75rem;
  font-weight: 700;
}

figure.testimonial figcaption .instrument {
  display: block;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 34rem;
  margin-top: 1.5rem;
}

.contact-form .field {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.contact-form .hint {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form .form-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* Skip-link target: focusable programmatically, but not an interactive control */
main:focus { outline: none; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: var(--bg-inset);
  border: 2px solid var(--border);
  border-radius: 8px;
  min-height: 44px;
}

.contact-form textarea { min-height: 9rem; resize: vertical; }

.contact-form button {
  font: inherit;
  font-weight: 700;
  padding: 0.8rem 2rem;
  background: var(--red-strong);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
}

.contact-form button:hover { background: var(--red-hover); }

/* Honeypot field — hidden from everyone, including AT */
.hp-field { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.5rem 1rem 3rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.site-footer .inner {
  max-width: 66rem;
  margin: 0 auto;
}

.site-footer .credit {
  max-width: 46rem;
}

.site-footer .partners {
  margin-top: 1rem;
}

/* ---------- Utilities ---------- */

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

@media print {
  :root {
    color-scheme: light;
    --bg: #fff;
    --bg-raised: #fff;
    --bg-inset: #fff;
    --text: #000;
    --text-muted: #333;
    --red: #a8241a;
    --red-strong: #a8241a;
    --link: #00349e;
    --border: #666;
    --border-subtle: #bbb;
  }
  body { background: #fff; color: #000; }
  .hero { background: #fff; }
  .site-nav, .hero-actions, .contact-form, audio, .video-embed { display: none; }
  main .button, .button {
    background: none;
    color: #000;
    border: 2px solid #000;
  }
}
