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

:root {
  --bg: #0e0e0e;
  --surface: #1a1a1a;
  --accent: #c8a96e;
  --text: #e8e8e8;
  --muted: #888;
  --border: #2e2e2e;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Georgia', serif;
  line-height: 1.7;
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(14,14,14,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2.5rem;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

nav .logo {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0;
}

.nav-social a:hover { color: var(--accent); }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

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

.nav-toggle:hover span { background: var(--accent); }

/* Animate to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-toggle { display: flex; }

  .nav-right {
    display: none;
    position: fixed;
    top: 63px;
    left: 0; right: 0;
    background: rgba(14,14,14,0.98);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-right.open { display: flex; }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav ul li {
    border-bottom: 1px solid var(--border);
  }

  nav ul li a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.9rem;
  }

  .nav-social {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  .nav-social a { font-size: 0; }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: linear-gradient(160deg, #111 0%, #0e0e0e 60%, #1a1207 100%);
}

#hero h1 {
  font-size: clamp(2.8rem, 8vw, 6rem);
  letter-spacing: 0.06em;
  color: var(--text);
  line-height: 1.1;
}

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

.sig-img {
  height: clamp(55px, 12vw, 90px);
  width: auto;
  vertical-align: middle;
}

#hero p {
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  font-style: italic;
}

.cta {
  margin-top: 2.5rem;
  display: inline-block;
  padding: 0.75rem 2.2rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.cta:hover { background: var(--accent); color: #0e0e0e; }

/* Latest release block on homepage */
.latest-release {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.latest-release-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.latest-release a {
  display: block;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.latest-release a:hover { border-color: var(--accent); }

.latest-release img {
  width: 512px;
  height: 512px;
  object-fit: cover;
  display: block;
}

.latest-release-title {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
}

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: linear-gradient(160deg, #111 0%, #0e0e0e 60%, #1a1207 100%);
  border-bottom: 1px solid var(--border);
}

.page-header .section-label { margin-bottom: 0.5rem; }

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: 0.06em;
  color: var(--text);
}

/* ============================================================
   SHARED SECTION / TYPOGRAPHY
   ============================================================ */
section {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* Wrapper sections override the global section rule */
.discography-wrap > section,
.album-detail-wrap > section,
.contact-wrap > section {
  max-width: 100%;
  margin: 0;
  padding: 5rem 2rem;
}

.section-label {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.divider {
  width: 48px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 2rem;
}

/* ============================================================
   BIO
   ============================================================ */
#bio p { color: #ccc; max-width: 680px; }
#bio p + p { margin-top: 1rem; }

/* ============================================================
   DISCOGRAPHY
   ============================================================ */
.discography-wrap { background: var(--surface); }
.discography-wrap .inner { max-width: 860px; margin: 0 auto; }

.album-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}

.album-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.album-table tr:hover { background: rgba(255,255,255,0.03); }

.album-table td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

.album-table td:first-child { padding-left: 0; }
.album-table td:last-child  { padding-right: 0; }

.col-art { width: 180px; min-width: 180px; }

.col-art img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
}

.col-art .no-art {
  width: 180px;
  height: 180px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--muted);
}

.col-info { width: 100%; }

.col-info h3 {
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.col-info h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.col-info h3 a:hover { color: var(--accent); }

.col-date {
  white-space: nowrap;
  text-align: right;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 8rem;
}

/* ============================================================
   ALBUM DETAIL
   ============================================================ */
.album-detail-wrap { background: var(--surface); }
.album-detail-wrap .inner { max-width: 860px; margin: 0 auto; }

.back-link {
  display: inline-block;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover { color: var(--accent); }
.back-link::before { content: '← '; }

.album-header {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}

.album-cover img {
  width: 260px;
  height: 260px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.album-cover .no-art {
  width: 260px;
  height: 260px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--muted);
  border: 1px solid var(--border);
}

.album-meta h1 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.album-meta .release-date {
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}

.album-meta .album-info {
  color: #ccc;
  line-height: 1.8;
  white-space: pre-wrap;
}

.songs-heading {
  font-family: 'Arial', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.album-song-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}

.album-song-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.album-song-table tr:hover { background: rgba(255,255,255,0.03); }

.album-song-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
}

.album-song-table td:first-child { padding-left: 0; }
.album-song-table td:last-child  { padding-right: 0; }

.col-author {
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   SONGS
   ============================================================ */
.song-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}

.song-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.song-table tr:hover { background: var(--surface); }

.song-table td {
  padding: 0.9rem 0.75rem;
  vertical-align: middle;
}

.song-table td:first-child { padding-left: 0.5rem; }
.song-table td:last-child  { padding-right: 0.5rem; }

.col-num {
  width: 2rem;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  white-space: nowrap;
}

.col-title  { width: 100%; }

.col-year {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: 'Arial', sans-serif;
  text-align: right;
}

.col-bandcamp {
  white-space: nowrap;
  text-align: center;
  min-width: 6rem;
}

.col-bandcamp a {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.col-bandcamp a:hover { opacity: 0.7; }

.col-lyrics {
  white-space: nowrap;
  text-align: center;
  min-width: 5rem;
}

.song-title  { font-size: 1rem; }
.song-album  { font-size: 0.8rem; color: var(--muted); font-style: italic; }
.song-author { font-size: 0.78rem; color: var(--muted); font-family: 'Arial', sans-serif; }
.album-link  { color: inherit; text-decoration: none; transition: color 0.2s; }
.album-link:hover { color: var(--accent); }

/* ============================================================
   LYRICS BUTTON & MODAL (shared by songs.php and album.php)
   ============================================================ */
.lyrics-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

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

#lyrics-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#lyrics-modal.open { display: flex; }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 1.2rem; margin-bottom: 0.15rem; color: var(--text); }
.modal-header p  { font-size: 0.8rem; color: var(--muted); font-style: italic; }

.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0 0 1rem;
  transition: color 0.2s;
  flex-shrink: 0;
}

.modal-close:hover { color: var(--accent); }

.modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  white-space: pre-wrap;
  font-family: 'Georgia', serif;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #ccc;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap { background: var(--surface); }
.contact-wrap .inner { max-width: 860px; margin: 0 auto; }

#contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact-form label {
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.3rem;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

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

#contact-form textarea { resize: vertical; min-height: 130px; }

#contact-form button {
  align-self: flex-start;
  padding: 0.75rem 2.2rem;
  background: var(--accent);
  color: #0e0e0e;
  border: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

#contact-form button:hover { opacity: 0.85; }

.form-notice {
  max-width: 520px;
  margin: 0 auto 1.5rem;
  padding: 0.85rem 1rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  border: 1px solid;
}

.form-notice.success {
  border-color: #4caf7d;
  color: #4caf7d;
  background: rgba(76,175,125,0.08);
}

.form-notice.error {
  border-color: #c0392b;
  color: #e57373;
  background: rgba(192,57,43,0.08);
}

.form-notice ul { margin: 0.4rem 0 0 1.2rem; }

.grecaptcha-badge { visibility: hidden; }

.recaptcha-notice {
  max-width: 520px;
  margin: 0.75rem auto 0;
  font-family: 'Arial', sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.recaptcha-notice a { color: var(--muted); }

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: 'Arial', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  text-align: center;
  padding: 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  .album-header { grid-template-columns: 1fr; }
  .album-cover img,
  .album-cover .no-art { width: 100%; height: auto; aspect-ratio: 1; }
  .col-author, .col-bandcamp { display: none; }
  .latest-release img { width: 100%; height: auto; }
}

@media (max-width: 600px) {
  nav ul { gap: 1rem; }
  .col-art, .col-art img, .col-art .no-art { width: 80px; min-width: 80px; height: 80px; }
  .col-date { display: none; }
  .col-info h3 { font-size: 1rem; }
  .col-year, .col-bandcamp { display: none; }
  .song-album { display: none; }
}

/* ============================================================
   ARTICLES
   ============================================================ */
.article-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border);
}

.article-table tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.article-table tr:hover { background: var(--surface); }

.article-table td {
  padding: 1.25rem 0.75rem;
  vertical-align: top;
}

.article-table td:first-child { padding-left: 0; }
.article-table td:last-child  { padding-right: 0; }

.article-date {
  white-space: nowrap;
  font-family: 'Arial', sans-serif;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 8rem;
  padding-top: 0.3rem;
}

.article-info { width: 100%; }

.article-title {
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.4rem;
}

.article-title:hover { color: var(--accent); }

.article-excerpt {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
}

.article-read {
  white-space: nowrap;
  text-align: right;
  padding-top: 0.3rem;
}

.article-link {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.article-link:hover { opacity: 0.7; }

.substack-note {
  margin-top: 2rem;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.substack-note a {
  color: var(--accent);
  text-decoration: none;
}

.substack-note a:hover { opacity: 0.7; }

.update-text {
  display: block;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}

.update-text:hover { color: var(--accent); }
