/* ============================================================
   NEIL CAVANAGH — stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,600;1,400&family=Urbanist:wght@400;600&display=swap');

/* --- Variables --- */
:root {
  --color-bg:         #fdf8ef;
  --color-text:       #3D3530;
  --color-accent:     #8B1A1A;
  --color-tan:        #C4A882;
  --color-dark:       #9E1A10;

  --font-serif:       'Spectral', Georgia, serif;
  --font-sans:        'Spectral', Georgia, serif;

  --size-h1:          1.5rem;
  --size-h2:          1.2rem;
  --size-h3:          1rem;
  --size-body:        1rem;
  --size-small:       0.875rem;
  --size-caption:     0.75rem;

  --content-width:    1100px;
  --line-height:      1.7;
}

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

/* --- Base --- */
html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: var(--line-height);
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

h1 { font-size: var(--size-h1); margin-bottom: 1.5rem; }
h2 { font-size: var(--size-h2); margin-bottom: 1.25rem; margin-top: 2.5rem; }
h3 { font-size: var(--size-h3); margin-bottom: 1rem; margin-top: 2rem; }

p {
  margin-bottom: 1.25rem;
}

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

a:hover {
  text-decoration: underline;
}

em { font-style: italic; }
strong { font-weight: 400; }

blockquote {
  border-left: 3px solid var(--color-tan);
  padding: 0.75rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
}

blockquote cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: var(--size-small);
  margin-top: 0.75rem;
  color: var(--color-tan);
}

/* --- Layout --- */
.content-wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Header --- */
header {
  background-color: var(--color-dark);

  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Decorative glow layer. Clipped here so the light can't spill past the bar,
   and (crucially) so it never clips the desktop dropdown inside .content-wrap. */
.header-glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* A soft, dim warm light drifting across the top of the header.
   Animated with transform only, so it runs on the compositor — no repaint,
   no layout, negligible cost (about as cheap as scrolling). */
.header-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -25%;
  width: 150%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 210, 170, 0.22) 0%,
    rgba(255, 210, 170, 0.08) 40%,
    rgba(255, 210, 170, 0) 70%
  );
  will-change: transform;
  animation: headerGlow 10s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}

/* keep the header's content (brand, nav, dropdown) above the glow layer */
header > .content-wrap {
  position: relative;
  z-index: 1;
}

/* PARKED — slow red ↔ red-orange colour drift (kept for reference).
   To restore: uncomment the block below and add
   `animation: headerShade 10s ease-in-out infinite;` to `header`.
@keyframes headerShade {
  0%   { background-color: #9E1A10; }
  50%  { background-color: #A84314; }
  100% { background-color: #9E1A10; }
}
*/

@media (prefers-reduced-motion: reduce) {
  .header-glow::before { animation: none; }
}

/* No glow on phones at all — keeps them perfectly quiet. */
@media (max-width: 640px) {
  .header-glow { display: none; }
}

header .content-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-daisy {
  position: relative;
  top: 1px;
  height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .header-daisy {
    height: 40px;
  }
}

.site-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-bg);
  text-decoration: none;
  white-space: nowrap;
}

.site-title:hover {
  text-decoration: none;
  opacity: 0.7;
}

/* --- Nav --- */
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.mobile-nav {
  display: none;
  align-items: flex-start;
  gap: 0;
}

nav a {
  font-family: 'Urbanist', sans-serif;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-bg);
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

nav a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-bg);
}

/* --- Mobile Nav --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: var(--header-height, 60px);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height, 60px));
  background-color: var(--color-dark);
  padding: 0.5rem 2rem 2rem;
  z-index: 998;
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav-close {
  display: none;
}

.mobile-nav a {
  font-family: 'Urbanist', sans-serif;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-bg);
  text-decoration: none;
  padding: 0.75rem 0;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mobile-nav a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.mobile-albums {
}

.mobile-albums-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Urbanist', sans-serif;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-bg);
  padding: 0.75rem 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.mobile-albums-toggle::after {
  content: '▾';
  font-size: 1rem;
  color: var(--color-bg);
  margin-left: 0.5rem;
}

.mobile-albums-toggle[aria-expanded="true"]::after {
  content: '▴';
}

.mobile-albums-menu {
  display: none;
  list-style: none;
  padding: 0 0 0.75rem 1rem;
}

.mobile-albums-menu.is-open {
  display: block;
}

.mobile-albums-menu li a {
  display: block;
  padding: 0.5rem 0;
  font-size: var(--size-small);
  border-bottom: none;
  color: var(--color-bg);
}

@media (max-width: 640px) {
  .desktop-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hamburger span {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  :root {
    --size-h1: 1.375rem;
    --size-h2: 1.1rem;
    --size-h3: 1rem;
  }

  .header-brand {
    gap: 0.5rem;   /* tighten the daisy-to-wordmark gap on mobile */
  }

  .site-title {
    font-size: 1.2rem;   /* scale the wordmark down on mobile */
  }
}

/* --- Nav active state --- */
.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.4em;
  text-decoration-thickness: 2px;
}

/* --- Dropdown --- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  font-family: 'Urbanist', sans-serif;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-bg);
  cursor: default;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dropdown-toggle:hover {
  opacity: 0.7;
  cursor: default;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--color-dark);
  list-style: none;
  min-width: 240px;
  border-top: 2px solid var(--color-accent);
  z-index: 100;
}

.dropdown-menu li a {
  display: block;
  padding: 0.75rem 1.25rem;
  font-size: var(--size-small);
  white-space: nowrap;
  border-bottom: 1px solid rgba(196, 168, 130, 0.15);
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
  opacity: 1;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

/* --- Main Content --- */
main {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

main:not(:has(*)) {
  padding: 0;
}

/* --- Footer --- */
footer {
  background-color: var(--color-dark);
  color: var(--color-bg);
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

footer .content-wrap {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.footer-connect h2 {
  font-family: 'Urbanist', sans-serif;
  font-size: var(--size-body);
  font-weight: 600;
  color: var(--color-bg);
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  color: var(--color-bg);
}

.footer-social a svg {
  fill: var(--color-bg);
  transition: fill 0.2s ease;
}

.footer-social a:hover svg {
  fill: var(--color-tan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--size-small);
  color: var(--color-bg);
  border-top: 1px solid rgba(253, 251, 248, 0.25);
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}

.footer-bottom a {
  color: var(--color-bg);
}

.footer-bottom a:hover {
  opacity: 0.8;
  text-decoration: none;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* --- Biography --- */
.bio-photo {
  float: right;
  width: 45%;
  max-width: 480px;
  margin: 0 0 2rem 3rem;
}

.bio-photo img {
  width: 100%;
  display: block;
}

.bio-photo figcaption {
  font-size: var(--size-caption);
  color: var(--color-tan);
  margin-top: 0.5rem;
  font-style: italic;
}

.bio::after {
  content: '';
  display: table;
  clear: both;
}

@media (max-width: 640px) {
  .bio-photo {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 2rem 0;
  }
}

/* --- Albums --- */
.album-header {
  display: flex;
  gap: 2.5rem;
  align-items: center;   /* vertically centre the text block against the cover */
  margin-bottom: 0;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-tan);
}

@media (max-width: 640px) {
  .album-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

.album-header img {
  width: 40%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  flex-shrink: 0;
}

.album-header h1 {
  margin-bottom: 1rem;
}

.album-meta {
  font-size: var(--size-body);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.album-links {
  margin-top: 0;
}

.album-note {
  margin-top: 0;
  margin-bottom: 0;
}

.sep {
  color: var(--color-text);
  margin: 0 0.3rem;
}

.album-links a {
  font-size: var(--size-body);
  font-weight: 400;
}

.album-notes {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.album-notes p:last-child,
.album-notes blockquote:last-child {
  margin-bottom: 0;
}

.album-notes blockquote:first-child {
  margin-top: 0;
}

.album-tracklist {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-tan);
}

.album-tracklist ol {
  padding-left: 1.25rem;
}

.album-tracklist li {
  margin-bottom: 0.375rem;
  font-size: var(--size-small);
}

.album-lyrics h2 {
  margin-bottom: 2rem;
}

.lyric {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196, 168, 130, 0.3);
}

.lyric:last-child {
  border-bottom: none;
}

.lyric h3 {
  margin-top: 0;
}

.lyric p {
  font-family: var(--font-serif);
  font-size: var(--size-body);
  line-height: 1.9;
  margin-bottom: 1rem;
}

/* --- Page Hero --- */
.page-hero {
  width: 100%;
  height: 620px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.page-hero-quote {
  width: 100%;
  padding: 2.5rem 0 3rem;
}

.page-hero-quote-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
}

.page-hero-quote blockquote {
  max-width: 780px;
  margin: 0;
  border-left: none;
  padding: 0;
  text-align: right;
}

.page-hero-quote blockquote p {
  color: #FAF7F2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--size-h3);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.page-hero-quote blockquote cite {
  color: var(--color-tan);
  font-size: var(--size-small);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 640px) {
  .page-hero {
    height: 380px;
  }

  .page-hero-quote blockquote p {
    font-size: var(--size-body);
  }
}

/* --- Home --- */
.home-quote {
  margin-bottom: 4rem;
}

.home-quote blockquote {
  max-width: 740px;
}

.home-albums h2 {
  margin-top: 0;
  margin-bottom: 2rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 860px) {
  .album-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.album-grid-item {
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

.album-grid-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s ease;
}

.album-grid-item:hover img {
  opacity: 0.85;
}

.album-grid-title {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--size-small);
  margin-top: 0.50rem;
  color: var(--color-text);
}

.album-grid-item:hover .album-grid-title {
  color: var(--color-accent);
  text-decoration: none;
}

/* --- gh-audio-player (shared component; themed via --gh-* variables) --- */
.gh-audio-player {
  --gh-accent: #8B1A1A;
  --gh-accent-dark: #6b1414;
  --gh-text: #3D3530;
  --gh-tan: #C4A882;
  --gh-bg: #ffffff;
}

/* --- Album Strip --- */
.album-strip {
  padding: 3rem 0;
  background-color: #ece6c6;
}

.album-strip .content-wrap {
  padding-top: 0;
}

.album-grid-item--current {
  display: block;
  color: var(--color-text);
  cursor: default;
  pointer-events: none;
}

.album-grid-item--current img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  opacity: 0.3;
}

.album-grid-item--current .album-grid-title {
  opacity: 0.3;
}

/* --- Videos --- */
.video {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--color-tan);
}

.video:last-child {
  border-bottom: none;
}

.video h2 {
  margin-top: 0;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background-color: var(--color-dark);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .album-header {
    flex-direction: column;
    align-items: flex-start;  /* stacked: keep text left-aligned, not centred */
  }

  .album-header img {
    width: 100%;
    max-width: 100%;   /* override the base rule's 400px cap so it fills the row */
    height: auto;
  }
}

/* --- Contact form --- */
.contact-form {
  max-width: 36rem;
  margin-top: 2rem;
}

.contact-form label {
  display: block;
  font-size: var(--size-small);
  margin-bottom: 0.35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid var(--color-tan);
  border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .h-captcha {
  margin-bottom: 1.25rem;
}

/* --- Buttons (reusable) --- */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  font-weight: 600;
  line-height: 1;
  color: var(--color-bg);
  background-color: var(--color-accent);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;   /* so it also works on <a> links */
  transition: background-color 0.2s ease;
}

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

.contact-email {
  margin-top: 2rem;
}

.signup-form {
  max-width: 36rem;
  margin-top: 1rem;
}

.signup-form label {
  display: block;
  font-size: var(--size-small);
  margin-bottom: 0.35rem;
}

.signup-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.signup-fields input[type="email"] {
  flex: 1 1 12rem;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-sans);
  font-size: var(--size-body);
  color: var(--color-text);
  background-color: #fff;
  border: 1px solid var(--color-tan);
  border-radius: 2px;
}

.signup-fields input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}
