/* ==========================================================================
   Naina — Pianist | Site stylesheet
   Design: minimal, photo-led, generous white space.
   Fonts: Lora (serif, headings) + Work Sans (sans, body) — loaded in <head>.
   ========================================================================== */

:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-soft: #f7f5f2;
  --accent: #a8763e;        /* warm bronze — change this one line to retheme */
  --line: #e6e2dc;
  --max-width: 960px;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Work Sans', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; }

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.2rem; margin-bottom: .4rem; }

/* page-level h1 on inner pages — sized to match h2 so the look is unchanged */
.page-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.2rem; }

p { margin-bottom: 1.2rem; }

a { color: var(--text); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

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

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

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

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 30px; list-style: none; }

.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
  flex-direction: column;
  gap: 5px;
}

/* hamburger drawn with CSS bars — text glyphs like ☰ can fail to render */
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

@media (max-width: 720px) {
  .wordmark { font-size: 1.05rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { text-align: center; padding: 10px 0; }
}

/* --------------------------------------------------------------------------
   Hero (home page)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  /* subtle dark overlay keeps the white text readable over any photo */
  background:
    linear-gradient(to bottom, rgba(0,0,0,.05) 40%, rgba(0,0,0,.45)),
    url('../images/hero.jpg') center / cover no-repeat;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
  color: #fff;
}

.hero h1 { letter-spacing: .06em; }

.hero-credit {
  position: absolute;
  right: 24px;
  bottom: 18px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero .tagline {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 12px;
  opacity: .85;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }

.section-label {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}

.lead { font-size: 1.25rem; font-family: var(--serif); color: var(--muted); }

/* Two-column split (bio photo + text) */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 56px;
  align-items: start;
}

@media (max-width: 720px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* --------------------------------------------------------------------------
   Homepage video row — three matching 9:16 portrait clips, reel-style
   -------------------------------------------------------------------------- */
.video-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.video-row video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;   /* fills the tile; same-ratio clips lose nothing */
  background: #000;
}

@media (max-width: 720px) {
  .video-row { grid-template-columns: 1fr; }
  .video-row video { max-width: 320px; margin: 0 auto; }
}

/* Listen page — two-column grid of recordings, mixed orientations */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
  margin-top: 32px;
}

.rec { margin: 0; }

.rec video {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 70vh;        /* keeps tall portrait clips in check */
  width: auto;
  height: auto;            /* poster gives intrinsic ratio → no letterbox */
  background: #000;
}

.rec figcaption {
  font-family: var(--serif);
  font-size: 1.02rem;
  margin-top: 12px;
  color: var(--text);
}

.rec-no {
  color: var(--accent);
  margin-right: 8px;
  font-size: .85rem;
  letter-spacing: .1em;
}

.rec-todo { color: var(--muted); font-style: italic; }
.rec-meta { color: var(--muted); }

@media (max-width: 720px) {
  .rec-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.gallery-grid figure { margin: 0; }

.gallery-grid a { display: block; }

.gallery-grid figcaption,
.photo-caption {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}

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

/* --------------------------------------------------------------------------
   Buttons & contact
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  padding: 14px 34px;
  transition: all .25s ease;
}

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

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

.contact-block { text-align: center; max-width: 560px; margin: 0 auto; }

.contact-email {
  font-family: var(--serif);
  font-size: 1.4rem;
  display: inline-block;
  margin: 16px 0 32px;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.socials { display: flex; gap: 28px; justify-content: center; list-style: none; }

/* Instagram follow button (contact page) */
.contact-or {
  margin: 8px 0 18px;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--muted);
}

.ig-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  border: 1px solid var(--text);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  transition: all .25s ease;
}

.ig-button svg { flex: 0 0 auto; }
.ig-button:hover { background: var(--text); color: #fff; }

.socials a {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Project page — Meet Me in the Music
   -------------------------------------------------------------------------- */
.prose { max-width: 680px; }

.prose figure { margin: 2.6rem 0; }
.prose figure img { width: 100%; }

.project-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.4rem;
}

.prose blockquote {
  margin: 2.4rem 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}

.prose blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.5;
  margin-bottom: .4rem;
}

.prose blockquote cite {
  font-style: normal;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.programme { max-width: 560px; }

.prog-intro { color: var(--muted); margin-bottom: 2.6rem; }

.prog-group { margin-bottom: 2.4rem; text-align: center; }

.prog-group h3 { font-size: 1.35rem; margin-bottom: .15rem; }

.prog-group .composer {
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .7rem;
}

.prog-group ol {
  list-style: none;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.prog-group ol li { padding: 3px 0; }

/* Instagram — on-brand mini profile + grid (account public) */
.ig-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 12px 0 28px;
  text-align: left;
}

.ig-avatar {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  /* soft Instagram-style ring in the site's accent */
  padding: 3px;
  background: linear-gradient(45deg, var(--accent), #c9a96a);
}

.ig-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

.ig-profile-meta h2 { margin-bottom: .15rem; }
.ig-profile-meta p { margin-bottom: .8rem; color: var(--muted); font-size: .95rem; }

.ig-follow { padding: 9px 26px; font-size: .76rem; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 8px 0 0;
}

.ig-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; }

.ig-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.ig-grid a:hover img { transform: scale(1.05); }

/* hover overlay with Instagram glyph — signals each tile opens a post */
.ig-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 28, 25, 0);
  opacity: 0;
  transition: background .3s ease, opacity .3s ease;
}

.ig-grid a:hover .ig-hover { background: rgba(31, 28, 25, .38); opacity: 1; }

.ig-viewall {
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
}
.ig-viewall:hover { color: var(--text); }

@media (max-width: 560px) {
  .ig-profile { flex-direction: column; gap: 14px; text-align: center; }
}

/* Featured piece on the homepage */
.featured-title { margin-bottom: .2rem; }
.featured-sub {
  color: var(--muted);
  font-style: italic;
  font-family: var(--serif);
  margin-bottom: 1.8rem;
}
.featured video {
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: 72vh;
  margin: 0 auto;
  background: #000;
  display: block;
}
.featured-note {
  max-width: 580px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}

/* Dark closing band (homepage contact) */
.band-dark {
  background: #1f1c19;
  color: #fff;
}

.band-dark h2 { color: #fff; }
.band-dark .section-label { color: var(--accent); }
.band-dark .btn { border-color: #fff; color: #fff; }
.band-dark .btn:hover { background: #fff; color: var(--text); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 24px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.site-footer .socials { margin-bottom: 14px; }
