/* ==========================================================================
   Steven Brent — shared stylesheet
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg2: #141414;
  --bg3: #1b1b1b;
  --text: #ffffff;
  --muted: #8a8a8a;
  --accent: #ff3cac;
  --line: #232323;

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --max-width: 1140px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
}

/*
  Headings (h1) and subheadings (h2) use the accent color -- this
  automatically follows whatever color is chosen via the CMS's accent
  picker, no extra CMS work needed. Card-level titles (h3 -- release/video
  names inside grid cards) intentionally stay the default white; there are
  too many of them per page for solid accent color to read as emphasis
  rather than noise. The site header (logo/nav) and footer are untouched
  by this rule since they don't use heading tags -- they keep their own
  white-text-with-accent-hover/underline treatment exactly as before.
*/
h1, h2 {
  color: var(--accent);
}

p { margin: 0; }

a { color: inherit; }

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.btn {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.btn:hover { background: var(--text); color: var(--bg); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.btn.primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }

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

.site-header {
  border-bottom: 2px solid var(--text);
  position: relative;
  z-index: 100;
}

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

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--text);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  padding: 100px 0 84px;
  border-bottom: 2px solid var(--text);
}

.hero.small { padding: 64px 0 56px; }

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
}

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

.hero .kicker {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero p.lede {
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---- Section scaffolding ---- */

section { padding: 80px 0; border-bottom: 2px solid var(--text); }
section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: 2rem; }

.section-head .label {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Release / media grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 2px solid var(--text);
}

.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--bg); }

.art {
  aspect-ratio: 1 / 1;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 45%, rgba(10, 10, 10, 0.7) 100%);
  pointer-events: none;
}

.play {
  position: relative;
  z-index: 2;
  width: 54px; height: 54px;
  background: var(--accent);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.card-body { padding: 20px 20px 24px; }

.card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-body p { color: var(--muted); font-size: 0.82rem; }

.card-body .card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

.card-body .card-link:hover { text-decoration: underline; }

/* ---- Bandcamp embed frame ---- */

.bc-frame {
  background: var(--bg2);
  border: 2px solid var(--text);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/*
  .embed-wrapper reuses whichever sizing class the facade had
  (.bc-facade / .bc-facade.tall / .video-facade — defined below) so the
  loaded iframe fills exactly the same box the facade occupied.
*/
.embed-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg3);
}

.embed-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Facades (click-to-load embeds, shared by Bandcamp + video) ---- */

.facade {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg3);
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.facade-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facade::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.8) 100%);
}

.facade .play,
.facade .facade-label { position: relative; z-index: 2; }

.facade:hover,
.facade:focus-visible { border-color: var(--accent); }

.facade:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.facade .facade-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.bc-facade { min-height: 120px; }
.bc-facade.tall { min-height: 470px; }

.video-facade { aspect-ratio: 16 / 9; }

.bc-frame h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
}

.bc-frame p { color: var(--muted); font-size: 0.85rem; }

.bc-note {
  font-size: 0.75rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  padding: 10px 14px;
}

.release-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ---- Link-out (Music/Video "see everything" link below the grid) ---- */

.linkout {
  text-align: center;
  margin-top: 44px;
}

.linkout.top {
  margin-top: 0;
  margin-bottom: 44px;
}

.linkout-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
}

.linkout-link .arrow { color: var(--accent); font-family: var(--font-body); font-weight: 400; }
.linkout-link:hover { color: var(--accent); }

/* ---- Video grid ---- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.video-card { background: var(--bg2); border: 2px solid var(--text); }

.video-card .card-body h3 { text-transform: none; }

/* ---- About ---- */

.about-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: var(--bg2);
  border: 2px solid var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; max-width: 62ch; }
.about-copy p:last-child { margin-bottom: 0; }

.about-copy h2 { font-size: 1.8rem; margin-bottom: 22px; }

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.stats div { border-left: 2px solid var(--accent); padding-left: 16px; }
.stats .num { font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; }
.stats .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

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

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
}

.contact-primary h2 { font-size: 2.2rem; margin-bottom: 20px; }
.contact-primary p { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 30px; }

.social-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--text); }

.social-list li { border-bottom: 2px solid var(--text); }

.social-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  color: var(--text);
}

.social-list a span.arrow { color: var(--accent); font-family: var(--font-body); font-weight: 400; }
.social-list a:hover { color: var(--accent); }

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

.contact-form { margin-top: 8px; }

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: var(--bg2);
  border: 2px solid var(--line);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  box-sizing: border-box;
}

.contact-form textarea { min-height: 140px; resize: vertical; }

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

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  display: none;
}

.contact-form .form-status.success { display: block; color: var(--accent); }
.contact-form .form-status.error { display: block; color: #ff6b6b; }

.contact-form .h-captcha { margin-bottom: 20px; }

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

.site-footer {
  border-top: 2px solid var(--text);
  padding: 32px 0;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
}

.footer-links a:hover { color: var(--accent); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 760px) {
  .site-header .wrap { padding: 18px 20px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--text);
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li:first-child { border-top: none; }

  .main-nav a {
    display: block;
    padding: 18px 20px;
  }

  .main-nav a::after { display: none; }

  .nav-toggle { display: flex; }

  .hero { padding: 64px 0 48px; }

  .grid, .grid.cols-2, .video-grid, .release-list { grid-template-columns: 1fr; }

  .section-head { margin-bottom: 28px; }

  section { padding: 56px 0; }

  .stats { gap: 28px; }

  .site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  .footer-links a { margin: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; }
}
