/* ==========================================================================
   The Salamanders — stylesheet
   Light, modern, mobile-first, responsive
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --bg-dark: #171513;
  --text: #1a1816;
  --text-muted: #5f5b56;
  --text-on-dark: #f6f4f0;
  --accent: #e2531d;
  --accent-dark: #b83f13;
  --accent-soft: #fdece3;
  --teal: #0c6e66;
  --border: #e7e2da;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(23, 21, 19, 0.18);
  --max-width: 1180px;
  --font-hero: 'Anton', 'Oswald', 'Impact', sans-serif;
  --font-head: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: 0.015em;
}
h2 { font-family: var(--font-hero); font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 400; letter-spacing: 0.015em; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1.1em; color: var(--text-muted); max-width: 65ch; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

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

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 46px;
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-hero);
  font-weight: 400;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand-tag { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.main-nav a {
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(226, 83, 29, 0.55);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-outline:hover { background: var(--text); color: #fff; }

.btn-light {
  background: #fff;
  color: var(--text);
}

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #201c19 0%, #2c2521 55%, #402a1d 100%);
  color: var(--text-on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media svg,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15,13,11,0.75) 0%, rgba(15,13,11,0.25) 45%, rgba(15,13,11,0.15) 100%),
    linear-gradient(180deg, rgba(23,21,19,0.25) 0%, rgba(23,21,19,0.7) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(255,255,255,0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.35em; }

.hero-lede {
  color: rgba(246,244,240,0.86);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 2em;
}

.hero-placeholder-note {
  margin-top: 22px;
  font-size: 0.8rem;
  color: rgba(246,244,240,0.55);
}

/* Page header for inner pages */
.page-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 48px;
}
.page-header .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 10px;
  display: block;
}
.page-header p { font-size: 1.05rem; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-dark p { color: rgba(246,244,240,0.75); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  display: block;
  margin-bottom: 10px;
}

/* ---------- Grid / Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}

.member-card { text-align: center; }
.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(150deg, #efe8de, #e2d3c1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.member-photo svg { width: 62%; height: 62%; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-role {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
}

/* Track list */
.track-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.track {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  flex-wrap: wrap;
}
.track-index {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  width: 34px;
  flex: none;
}
.track-info { flex: 1 1 200px; min-width: 160px; }
.track-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.track-info span { font-size: 0.85rem; color: var(--text-muted); }
.track audio { flex: 1 1 260px; min-width: 220px; height: 40px; }

.stream-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.stream-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  background: #fff;
}
.stream-links a:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }

/* News / articles */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-meta { font-size: 0.85rem; color: var(--text-muted); }
.news-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2c2521, #4a3226);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  text-transform: uppercase;
  overflow: hidden;
}

article.post h1 { margin-bottom: 0.3em; }
.post-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2em; }
.post-body p { max-width: 72ch; }

/* Timeline (gig history / highlights) */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline h3 { margin-bottom: 4px; font-size: 1.05rem; }

/* Social row */
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }
.social-row a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.social-row svg { width: 20px; height: 20px; }

.site-footer .social-row a,
.section-dark .social-row a { border-color: rgba(255,255,255,0.22); color: rgba(246,244,240,0.85); }
.site-footer .social-row a:hover,
.section-dark .social-row a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: #fff;
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 14px; }

.contact-info .card { margin-bottom: 24px; }
.contact-info h3 { margin-bottom: 6px; }

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: 70px 0;
}
.cta-band h2 { margin-bottom: 0.4em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(246,244,240,0.7);
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: rgba(246,244,240,0.7); }
.footer-grid a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:hover, .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--border); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .hero { min-height: 68vh; }
  .track { flex-direction: column; align-items: flex-start; }
  .track audio { width: 100%; }
}
