/* Elliot Vaughan — Producer & Mixing Engineer
 *
 * Palette, type pairing and colour-blocked section rhythm follow the current
 * live site: white base, Courier New body copy, Helvetica Neue headings, and
 * alternating grey / slate / orange full-width blocks.
 */

:root {
  --white: #ffffff;
  --grey: #ebebed;
  --grey-dark: #e1e1e4;
  --slate: #4a637c;
  --orange: #c73c17;
  --orange-bright: #ff6d46;
  --ink: #222222;
  --ink-soft: #55606b;

  --max: 1120px;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Courier New", Courier, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* eleventy-img emits width/height attributes on every image. Those are
   presentational hints, so any rule that sets width without also setting height
   leaves the attribute height in force and distorts the image. height: auto
   here defuses that once, globally. */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--slate);
  color: var(--white);
}

/* On the home page the header sits over the full-bleed hero photo rather than
   above it, so it needs to be transparent and out of the document flow. */
.page-home .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--white);
}

/* The logo is the full lockup (icon + name), so it replaces the wordmark text
   rather than sitting beside it. */
.brand-logo {
  height: clamp(22px, 2.6vw, 28px);
  width: auto;
  flex: none;
}

.nav {
  display: flex;
  gap: 26px;
}

.nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--orange-bright);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.22;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.14;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.2em;
}

.lede {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--ink-soft);
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  text-align: center;
  margin-bottom: 1.4em;
  font-weight: 700;
}

/* ---------- Sections & colour blocks ---------- */

section {
  padding: clamp(64px, 9vw, 110px) 0;
}

.section--grey {
  background: var(--grey);
}

.section--grey-dark {
  background: var(--grey-dark);
}

.section--slate {
  background: var(--slate);
  color: var(--white);
}

.section--orange {
  background: var(--orange);
  color: var(--white);
}

/* On the dark blocks, reverse everything that assumed ink-on-white. */
.section--slate .eyebrow,
.section--orange .eyebrow,
.section--slate .lede,
.section--orange .lede {
  color: rgba(255, 255, 255, 0.82);
}

.section--slate h2,
.section--orange h2,
.section--slate h3,
.section--orange h3 {
  color: var(--white);
}

.hero {
  padding: clamp(72px, 11vw, 140px) 0;
  text-align: center;
}

/* Full-bleed photo hero: image fills the viewport, copy sits over it on the
   left. The scrim is what keeps the text legible over an uncontrolled photo. */
.hero--photo {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  text-align: left;
}

.hero--photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.6) 42%,
    rgba(0, 0, 0, 0.15) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero--bottom {
  align-items: flex-end;
  text-align: center;        /* added */
}

.hero--bottom .hero-text {
  max-width: 46rem;
  margin-inline: auto;       /* added — centres the text block */
}

.hero--bottom .eyebrow {
  text-align: center;        /* was: left */
  color: var(--orange-bright);
}

/* The About hero (the only hero--bottom) is centred to match the rest of the
   centred page; the home hero--photo stays left over its left-weighted scrim. */
.hero--bottom h1 {           /* new rule */
  text-align: center;
}

.hero--photo .wrap {
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 34rem;
}

.hero--photo h1 {
  text-align: left;
  color: var(--white);
  margin-bottom: 0.6em;
}

.hero-role {
  font-weight: 700;
  font-style: italic;
  color: var(--white);
  margin-bottom: 0.5em;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

.hero-body {
  color: rgba(255, 255, 255, 0.95);
  margin-top: 1.6em;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.55;
}

/* Full-bleed photo band between sections. The subject is centre-framed, so it
   carries no text — cropping to a wide strip would cut his head off. */
.image-band {
  padding: 0;
  line-height: 0;
}

.image-band img {
  width: 100%;
  height: auto;
}

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

.btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 15px 34px;
  background: var(--slate);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn--center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.section--slate .btn {
  background: var(--orange);
}

.section--orange .btn,
.section--slate .btn:hover,
.section--orange .btn:hover {
  background: var(--white);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  border: 2px solid currentColor;
  color: inherit;
}

.btn.ghost:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

/* ---------- Heard on ---------- */

.heard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  justify-content: center;
}

.heard-list li {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--ink-soft);
}

/* Logos keep their own colours, as on the live site — BBC 2's orange, 6 Music's
   teal, Netflix red. They are recognisable brands; flattening them loses that. */
.heard-list img {
  height: clamp(30px, 4vw, 48px);
  width: auto;
}

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

.quote-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  margin-top: 3rem;
}

/* Testimonials follow the live site's treatment: the quote set in bold
   Helvetica, centred, with the name below in Courier — no card, no border. */
blockquote {
  margin: 0;
  padding: 24px 20px;
  text-align: center;
  color: var(--ink);
}

blockquote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.35;
  margin-bottom: 0.8em;
}

blockquote cite::before {
  content: "\2014\00a0";
}

blockquote cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.pull-quote {
  max-width: 62ch;
  margin: 3rem auto 0;
  padding: 28px 32px;
  background: var(--grey);
  border-left: 4px solid var(--orange);
}

.pull-quote p {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  line-height: 1.45;
}

/* A grey pull-quote on the grey block would vanish. */
.section--grey .pull-quote,
.section--grey-dark .pull-quote {
  background: var(--white);
}

/* ---------- Prose ---------- */

.prose {
  max-width: 64ch;
  margin: 0 auto;
}

.prose p {
  text-align: left;
}

/* ---------- Credits grid ---------- */

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(18px, 2.6vw, 30px);
  margin-top: 3rem;
}

.credit-tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.credit-tile .credit-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.credit-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
}

.credit-roles {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.credit-listen {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange);
  opacity: 0;
  transition: opacity 0.2s;
}

.credit-tile.is-link:hover .credit-art,
.credit-tile.is-link:focus-visible .credit-art {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.credit-tile.is-link:hover .credit-listen,
.credit-tile.is-link:focus-visible .credit-listen {
  opacity: 1;
}

/* Keyboard users need the affordance without a hover. */
.credit-tile.is-link:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 6px;
}

/* ---------- Playlists ---------- */

.playlists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 2.5rem;
}

.playlist {
  width: 100%;
  border: 0;
  display: block;
}

/* ---------- Forms ---------- */

.form {
  max-width: 540px;
  margin: 2.5rem auto 0;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--grey-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 0;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
  border-color: var(--orange);
}

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

.form-footnote {
  max-width: 540px;
  margin: 3rem auto 0;
}

/* Honeypot: must stay in the DOM and submittable for Netlify to check it,
   so it's hidden from sight and from assistive tech rather than removed. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

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

.site-footer {
  padding: 68px 0 36px;
  background: var(--orange);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 44px;
}

.footer-grid h3 {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.2em;
  text-align: left;
}

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

.footer-links a {
  text-decoration: none;
  color: var(--white);
  transition: opacity 0.2s;
}

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

.site-footer .field label {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer .btn {
  background: var(--white);
  color: var(--orange);
}

.site-footer .btn:hover {
  background: var(--slate);
  color: var(--white);
}

.colophon {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero--photo {
    min-height: 88vh;
    padding-top: 110px;
  }

  .hero--photo::after {
    background: linear-gradient(
      175deg,
      rgba(0, 0, 0, 0.72) 0%,
      rgba(0, 0, 0, 0.62) 55%,
      rgba(0, 0, 0, 0.35) 100%
    );
  }
}

@media (max-width: 640px) {
  .site-header .wrap {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .nav {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }
}
