/* Vocal Exercise Builder — Ted's Voice Academy
   Reskinned to the TVA parent brand (navy + gold, Playfair/Inter).
   Self-hosted fonts mirror the main site (/fonts/*.woff2). */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/playfair-display-700.woff2') format('woff2');
}

:root {
  --navy-deep: #0a1628;
  --navy-medium: #1a2d4d;
  --gold: #d4a84b;
  --gold-hover: #e0b85c;
  --cream: #f5f0e1;
  --off-white: #faf8f5;
  --white: #ffffff;
  --ink: #2a2a2a;
  --muted: #5a6472;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
}

/* Top bar — link back to the main site */
.site-bar {
  background: var(--navy-deep);
  padding: 12px 24px;
}

.site-bar__home {
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-bar__home:hover {
  color: var(--gold);
}

.app-shell {
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.finder-panel {
  width: min(980px, 100%);
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.12);
  border-radius: 12px;
  box-shadow: 0 22px 55px rgba(10, 22, 40, 0.16);
  overflow: hidden;
}

.intro {
  padding: 32px 36px;
  color: var(--white);
  background:
    url('/images/noise-texture.png') repeat,
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-medium) 100%);
  background-size: 200px 200px, 100% 100%;
  background-blend-mode: soft-light, normal;
  border-bottom: 5px solid var(--gold);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-logo {
  width: clamp(110px, 20vw, 180px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.34));
}

.brand-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.intro-text {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(245, 240, 225, 0.9);
  font-size: 1.05rem;
  line-height: 1.6;
}

.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 36px;
  background: var(--cream);
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy-deep);
  font-weight: 600;
}

select,
button {
  min-height: 46px;
  border-radius: 8px;
  font: inherit;
}

select {
  width: 100%;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.22);
}

select:focus,
button:focus-visible {
  outline: 3px solid rgba(212, 168, 75, 0.5);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  border: 0;
  font-weight: 600;
}

.primary-button {
  grid-column: 1 / -1;
  color: var(--navy-deep);
  background: var(--gold);
  font-size: 1.05rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary-button:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.results-card {
  min-height: 220px;
  padding: 30px 36px;
  background: var(--white);
}

.results-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.12);
  padding-bottom: 14px;
}

h2 {
  margin-bottom: 0;
  font-family: var(--font-heading);
  color: var(--navy-deep);
  font-size: 1.5rem;
}

#results-summary {
  margin-bottom: 0;
  color: var(--muted);
}

#results-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.exercise-item {
  border-left: 4px solid var(--gold);
  padding: 18px 20px;
  background: var(--cream);
  border-radius: 8px;
}

.exercise-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  color: var(--navy-deep);
  font-size: 1.2rem;
}

.avf-item {
  background: var(--white);
  border: 1px solid rgba(212, 168, 75, 0.55);
  border-left: 4px solid var(--navy-deep);
}

.exercise-item ol {
  margin: 12px 0;
  padding-left: 22px;
}

.exercise-item li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.purpose,
.image-cue,
.watch,
.safety-note {
  line-height: 1.55;
}

.purpose {
  color: var(--ink);
}

.image-cue {
  margin: 12px 0;
  color: var(--navy-medium);
  font-style: italic;
}

.watch {
  margin-bottom: 0;
  color: var(--navy-deep);
  font-weight: 700;
}

.safety-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.button-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 36px 32px;
}

.button-row button {
  padding: 0 18px;
  color: var(--navy-deep);
  background: var(--cream);
  border: 1px solid rgba(10, 22, 40, 0.18);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-row button:hover {
  background: var(--gold);
  border-color: var(--gold);
}

@media (max-width: 760px) {
  .intro,
  .controls,
  .results-card,
  .button-row {
    padding-left: 22px;
    padding-right: 22px;
  }

  .brand-lockup {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .brand-logo {
    width: min(150px, 46vw);
  }

  .controls {
    grid-template-columns: 1fr;
  }

  .results-header,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}
