/* ============================================================
   Hannah Marie — East Texas Country
   Warm, feminine, vintage 60s–70s country styling
   ============================================================ */

:root {
  --cream: #f8f2e6;
  --paper: #fdfaf2;
  --ink: #3b2d20;
  --ink-soft: #5c4a38;
  --rust: #a6522b;
  --rust-dark: #8a4222;
  --gold: #c79a62;
  --gold-pale: #e6d3b3;
  --sage: #7e8465;
  --dark: #2c2117;
  --dark-2: #372a1d;
}

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

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }

body {
  font-family: "Karla", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2 {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-weight: 500;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  margin-bottom: 0.75rem;
}

a { color: var(--rust); }

section { scroll-margin-top: 4.5rem; }

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}
.container.narrow { max-width: 780px; }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }

/* ============ NAV ============ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1.2rem, 4vw, 3rem);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}
#nav.scrolled {
  background: rgba(248, 242, 230, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(59, 45, 32, 0.12);
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.nav-brand {
  font-family: "Fraunces", serif;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--cream);
  opacity: 0;
  transition: color 0.35s ease, opacity 0.35s ease;
}
#nav.scrolled .nav-brand { color: var(--ink); opacity: 1; }
.nav-links { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); }
.nav-links a {
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream);
  transition: color 0.35s ease;
}
#nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover { color: var(--gold); }
#nav.scrolled .nav-links a:hover { color: var(--rust); }

.nav-toggle { display: none; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(rgba(44, 33, 23, 0.18), rgba(44, 33, 23, 0.18)),
    url("../images/hero.jpg") center 32% / cover no-repeat;
}
@media (max-width: 700px) {
  .hero {
    background-image:
      linear-gradient(rgba(44, 33, 23, 0.22), rgba(44, 33, 23, 0.22)),
      url("../images/hero-sm.jpg");
    background-position: 62% 30%;
  }
}
.hero-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(30, 22, 14, 0.82), rgba(30, 22, 14, 0));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
  color: var(--cream);
  text-align: center;
}
.kicker {
  font-weight: 700;
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-bottom: 0.9rem;
}
.kicker .star { color: var(--gold); }
.hero h1 {
  font-size: clamp(2.6rem, 11.5vw, 7.5rem);
  font-style: italic;
  font-weight: 550;
  color: var(--cream);
  text-shadow: 0 2px 30px rgba(30, 22, 14, 0.45);
}
.hero-tag {
  font-family: "Fraunces", serif;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 400;
  margin: 1rem auto 2rem;
  max-width: 34em;
  color: #f2e9d8;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn-solid { background: var(--rust); color: var(--cream); border: 2px solid var(--rust); }
.btn-solid:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-ghost { border: 2px solid rgba(248, 242, 230, 0.85); color: var(--cream); }
.btn-ghost:hover { background: rgba(248, 242, 230, 0.15); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

/* ============ SECTION HEADINGS ============ */
.section-kicker {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.8rem;
}
.section-kicker.light { color: var(--gold-pale); }
.section-lede {
  color: var(--ink-soft);
  max-width: 40em;
  margin-bottom: 2.2rem;
}
.section-cream .container.narrow,
.section-dark .container.narrow { text-align: center; }
.section-cream .section-lede { margin-left: auto; margin-right: auto; }

/* ============ MUSIC ============ */
.section-cream { background: var(--cream); }
.spotify-frame {
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 5px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark);
  margin: 0 auto 1.8rem;
}
.spotify-frame iframe { display: block; }
.listen-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============ SHOWS ============ */
.section-dark {
  background:
    radial-gradient(ellipse at top, rgba(199, 154, 98, 0.14), transparent 55%),
    var(--dark);
  color: var(--cream);
}
.section-dark h2 { color: var(--cream); }
.poster-rule {
  width: 140px;
  margin: 1.2rem auto 2.4rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  height: 5px;
}
.gig-list { list-style: none; text-align: left; }
.gig-list li + li { border-top: 1px dashed rgba(199, 154, 98, 0.35); }
.gig {
  display: grid;
  grid-template-columns: 5.2rem 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 1.15rem 0.4rem;
}
.gig-date {
  text-align: center;
  font-family: "Fraunces", serif;
  line-height: 1;
  border-right: 1px solid rgba(199, 154, 98, 0.4);
  padding-right: 1.2rem;
}
.gig-date .month {
  display: block;
  font-family: "Karla", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.gig-date .day { font-size: 2rem; font-weight: 500; }
.gig-date .yr {
  display: block;
  font-family: "Karla", sans-serif;
  font-size: 0.72rem;
  color: rgba(248, 242, 230, 0.55);
  margin-top: 0.25rem;
}
.gig-venue {
  font-family: "Fraunces", serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 500;
}
.gig-detail {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-pale);
  border: 1px solid rgba(199, 154, 98, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  white-space: nowrap;
}
.gig-loading, .gig-empty {
  text-align: center;
  padding: 1.4rem 0;
  color: rgba(248, 242, 230, 0.75);
  font-style: italic;
}
.gig-footnote {
  margin-top: 2rem;
  font-size: 0.95rem;
  color: rgba(248, 242, 230, 0.7);
}
.gig-footnote a { color: var(--gold); }

@media (max-width: 560px) {
  .gig { grid-template-columns: 4.2rem 1fr; gap: 1rem; }
  .gig-date { padding-right: 0.8rem; }
  .gig-detail { grid-column: 2; justify-self: start; margin-top: -0.4rem; }
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo img {
  width: 100%;
  display: block;
  border-radius: 200px 200px 14px 14px; /* arched, chapel-window frame */
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold);
  outline-offset: 6px;
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { margin-bottom: 1.1rem; color: var(--ink-soft); }
.about-text strong { color: var(--ink); }
.pull-line {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--rust) !important;
  border-left: 3px solid var(--gold);
  padding-left: 1.1rem;
  margin: 1.4rem 0;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; margin: 0 auto; }
}

/* ============ CONNECT ============ */
.section-rust {
  background:
    radial-gradient(ellipse at bottom left, rgba(199, 154, 98, 0.25), transparent 60%),
    var(--rust-dark);
  color: var(--cream);
}
.section-rust h2 { color: var(--cream); }
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.connect-text > p { color: rgba(248, 242, 230, 0.85); max-width: 32em; }
.social-list { list-style: none; margin-top: 1.8rem; }
.social-list li + li { margin-top: 0.4rem; }
.social-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.social-list a:hover { color: var(--gold-pale); transform: translateX(4px); }
.social-list svg { width: 1.5rem; height: 1.5rem; flex: none; }
.connect-photo img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--gold-pale);
  outline: 1px solid var(--gold-pale);
  outline-offset: 6px;
  transform: rotate(1.5deg);
}
@media (max-width: 820px) {
  .connect-grid { grid-template-columns: 1fr; }
  .connect-photo { max-width: 380px; margin: 0 auto; }
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark);
  color: rgba(248, 242, 230, 0.65);
  text-align: center;
  padding: 2.6rem 1rem;
  font-size: 0.9rem;
}
.footer-stars { color: var(--gold); letter-spacing: 0.8em; margin-bottom: 0.6rem; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ MOBILE NAV ============ */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 0.4rem;
    cursor: pointer;
    z-index: 102;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--cream);
    transition: background 0.35s ease, transform 0.3s ease, opacity 0.3s ease;
  }
  #nav.scrolled .nav-toggle span, #nav.open .nav-toggle span { background: var(--ink); }
  #nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  #nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  #nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 101;
  }
  #nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { color: var(--ink) !important; font-size: 1.05rem; }
  #nav.open .nav-brand { color: var(--ink); opacity: 1; }
}
