/* ewlloyd.com redesign — design tokens from brand-brief.md / build-spec.md */

:root {
  --canvas: #0A0A0C;
  --canvas-raised: #131316;
  --ink: #F0ECE6;
  --ink-soft: rgba(240, 236, 230, 0.72);
  --ink-faint: rgba(240, 236, 230, 0.5);
  --accent: #C47A4A;
  --accent-soft: rgba(196, 122, 74, 0.35);
  --border: rgba(240, 236, 230, 0.12);
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

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

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 20px;
}

h1 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: 22px; }

p { color: var(--ink-soft); margin: 0 0 16px; }

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--canvas);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 18px 32px; }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #14100c;
}
.btn-primary:hover { transform: translateY(-1px); background: #d5895a; }

.btn-quiet {
  color: var(--ink);
  border-color: var(--border);
}
.btn-quiet:hover { border-color: var(--accent); color: var(--accent); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

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

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(10,10,12,0.1) 0%, rgba(10,10,12,0.55) 100%), url('../assets/hero-ambient.png');
  background-size: cover;
  background-position: center left;
}

.hero-inner { max-width: 480px; margin-left: auto; text-align: left; }

/* The default .wrap is centered with a 1200px cap, which left hero-inner looking centered on
   wide screens even with margin-left:auto — it never got a chance to reach the real right edge
   of the page. Override the cap here so it can push further right, using viewport-relative
   padding instead of the shared max-width. */
.hero .wrap {
  max-width: none;
  width: 100%;
  padding: 0 5vw;
}

.hero .subhead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 480px;
}

.credit-line {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.credit-line b { color: var(--ink); font-weight: 600; }

@media (max-width: 780px) {
  .hero { min-height: 58vh; background-position: center 20%; }
  .hero-inner { max-width: 100%; }
}

/* ---------- Buyer cards ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.card h3 { margin-bottom: 10px; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent); }
.card p { margin-bottom: 22px; font-size: 15px; }

.card .demo-list { margin-bottom: 18px; }
.card .demo-list li:first-child { border-top: none; padding-top: 0; }

.card-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Demo showcase ---------- */

.demo-card {
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px;
  margin-top: 32px;
}

.demo-card audio { width: 100%; margin-top: 12px; }

.demo-placeholder {
  border: 1px dashed var(--border);
  border-radius: 6px;
  padding: 28px;
  text-align: center;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ---------- Real demo players ---------- */

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

.demo-list li {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.demo-list li:last-child { padding-bottom: 4px; }

.demo-list .track-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--ink);
}

.demo-list audio,
.demo-card audio {
  width: 100%;
  height: 40px;
  border-radius: 20px;
}

/* Style the native audio element to sit on dark canvas without a jarring white player chrome */
audio {
  filter: invert(88%) hue-rotate(180deg) brightness(0.95) contrast(1.05);
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s ease;
}

audio:hover,
audio:focus-within {
  border-color: var(--accent);
}

/* Chrome/Safari/Edge expose the play control as a pseudo-element we can restyle directly;
   Firefox doesn't expose it, so those users still get the border accent above on hover. */
audio::-webkit-media-controls-play-button {
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

audio:hover::-webkit-media-controls-play-button,
audio:focus-within::-webkit-media-controls-play-button {
  background-color: var(--accent-soft);
}

/* ---------- About teaser / split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 32px;
}

.split img {
  border-radius: 8px;
  border: 1px solid var(--border);
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

/* ---------- Genre page header ---------- */

.page-header {
  padding: 140px 0 72px;
  border-bottom: 1px solid var(--border);
}

.page-header .grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .page-header .grid { grid-template-columns: 1fr; }
}

/* ---------- Credit list ---------- */

.credit-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.credit-list li {
  padding: 18px 0;
  border-top: 1px solid var(--border);
}

.credit-list li:last-child { border-bottom: 1px solid var(--border); }

.credit-list .credit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.credit-list .credit-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.credit-list .name { font-weight: 600; color: var(--ink); }
.credit-list a.name:hover { color: var(--accent); }
.credit-list .meta { color: var(--ink-faint); font-size: 14px; }

.credit-list audio {
  width: 260px;
  max-width: 100%;
  height: 40px;
  border-radius: 20px;
  flex-shrink: 0;
}

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

.contact-form {
  max-width: 560px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-form label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--canvas-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.fallback-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 8px;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-faint);
}

.site-footer a { color: var(--ink-faint); }
.site-footer a:hover { color: var(--accent); }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
