/* Irish Trad Music Sessions Bangkok — hand-written, no framework */

/* ---------- fonts ---------- */
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url('../fonts/newsreader-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap; }

/* ---------- tokens ---------- */
:root {
  --bg:        hsl(111, 11%, 12%);
  --bg-deep:   hsl(110, 13%, 9%);
  --ink:       hsl(45, 24%, 92%);
  --muted:     hsl(45, 14%, 74%);
  --green:     hsl(143, 60%, 44%);
  --green-ink: hsl(143, 66%, 33%);
  --cream:     #f6f0e9;
  --line:      hsla(45, 30%, 90%, .16);
  --display:   'Instrument Serif', Georgia, serif;
  --body:      'Newsreader', Georgia, serif;
  --header-h:  76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.125rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: hsl(143, 60%, 56%); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--green); color: #fff; padding: .6em 1em; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px clamp(16px, 4vw, 48px); height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
body.scrolled header { background: var(--bg-deep); box-shadow: 0 2px 24px rgba(0,0,0,.4); }
.brand img { width: 108px; height: 108px; margin-top: 44px; filter: drop-shadow(0 2px 10px rgba(0,0,0,.5));
  transition: width .3s ease, height .3s ease, margin .3s ease; }
body.scrolled .brand img { width: 56px; height: 56px; margin-top: 0; }

nav ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); list-style: none; margin: 0; padding: 0; }
nav a { color: var(--ink); text-decoration: none; font-size: 1.05rem; letter-spacing: .01em;
  text-shadow: 0 1px 6px rgba(0,0,0,.45); }
nav a:hover { color: var(--green); }
nav .social a { display: inline-flex; align-items: center; gap: 7px; }
nav .social svg { width: 18px; height: 18px; fill: currentColor; }
#menu-btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,8,5,.62) 0%, rgba(5,8,5,.08) 38%, rgba(5,8,5,.05) 55%, var(--bg) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 0 clamp(16px, 5vw, 64px) clamp(40px, 7vh, 84px); max-width: 1100px; }
.hero h1 { font-family: var(--display); font-weight: 400; line-height: 1.02;
  font-size: clamp(2.9rem, 7.2vw, 5.6rem); margin: 0 0 .35em; text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.hero p { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink); margin: 0 0 1.3em; text-shadow: 0 1px 12px rgba(0,0,0,.6); }

/* ---------- buttons ---------- */
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: .72em 1.5em; border-radius: 999px; text-decoration: none;
  font-size: 1.05rem; letter-spacing: .02em; transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--green); color: hsl(110, 30%, 8%); font-weight: 700; }
.btn-solid:hover { background: hsl(143, 60%, 52%); color: hsl(110, 30%, 8%); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- sections ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vh, 110px) clamp(16px, 4vw, 48px) 0; }
.wrap:last-of-type { padding-bottom: clamp(56px, 9vh, 110px); }
.display { font-family: var(--display); font-weight: 400; color: var(--green);
  font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; margin: 0 0 18px; scroll-margin-top: var(--header-h); }
section, aside[id] { scroll-margin-top: calc(var(--header-h) + 8px); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 clamp(28px, 4vw, 48px); }
h3 { font-family: var(--display); font-weight: 400; color: var(--green); font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.1; margin: 1.6em 0 .7em; }
h4 { font-size: 1.2rem; line-height: 1.35; margin: .8em 0 .25em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.lede strong { color: var(--cream); }
.when { color: var(--green); font-weight: 700; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.cols p { color: var(--muted); }
.cols .lede, .cols .when { color: var(--cream); }
.cols .lede strong { line-height: 1.45; }

/* two-column blocks */
.cols { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.cols.flip { grid-template-columns: 1fr 1.35fr; }
.cols.flip .poster { order: 2; }
.gathering { margin-bottom: clamp(40px, 6vw, 72px); }
.gathering h3 { margin-top: 0; }
.poster img { border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.45); }
.poster { margin: 0; }

/* visiting musicians playlist */
.visitor-card { margin-top: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 44px);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: center;
  background: var(--bg-deep); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.28); }
.visitor-copy .eyebrow { color: var(--green); opacity: 1; }
.visitor-copy h3 { margin: 0 0 .55em; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.visitor-copy > p:not(.eyebrow):not(.visitor-meta) { color: var(--muted); }
.visitor-copy .btn { color: hsl(110, 30%, 8%); }
.visitor-meta { color: var(--cream); font-size: 1rem; font-style: italic; }
.playlist-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: #000; border-radius: 12px; box-shadow: 0 12px 36px rgba(0,0,0,.42); }
.playlist-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* upcoming card */
.card { background: var(--cream); color: hsl(110, 15%, 14%); border-radius: 14px;
  padding: clamp(20px, 2.5vw, 32px); display: flex; gap: 22px; align-items: center;
  max-width: 720px; box-shadow: 0 16px 48px rgba(0,0,0,.4); }
.card img { width: 120px; flex: none; }
.card.event { align-items: flex-start; max-width: 820px; }
.card.event img { width: 190px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.card.event h4 { margin: .1em 0 .3em; font-size: 1.35rem; }
.card.event .btn { margin-top: .3em; }
.card p { margin: 0 0 .5em; }
.card p:last-child { margin: 0; }
.card a { color: var(--green-ink); }
.card strong { font-size: 1.15rem; }

/* past events grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.events-grid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: transform .3s ease, filter .3s ease; }
.events-grid li:hover img { transform: scale(1.02); filter: brightness(1.06); }
.events-grid p { color: var(--muted); font-size: 1rem; margin: 0 0 .3em; }
.events-grid .when { font-size: .95rem; }
.events-grid h4 { color: var(--cream); }

/* rotating overhead session film */
.session-film { margin: clamp(64px, 10vh, 120px) 0 0; }
.session-film-link { position: relative; display: grid; place-items: center; height: clamp(220px, 30vw, 430px);
  overflow: hidden; background: var(--bg-deep); text-decoration: none; }
.session-film-link::before { content: ''; position: absolute; inset: -24px;
  background: url('../img/hornpipes-landscape-poster.jpg') center / cover no-repeat;
  filter: blur(18px) brightness(.42) saturate(.85); transform: scale(1.08); }
.session-film video { position: relative; z-index: 1; width: auto; height: 100%; max-width: 100%;
  object-fit: contain; box-shadow: 0 0 60px rgba(0,0,0,.48); }
.session-film-vignette { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,19,15,.72), transparent 18%, transparent 82%, rgba(15,19,15,.72)); }
.session-film figcaption { max-width: 1200px; margin: 0 auto; padding: 13px clamp(16px, 4vw, 48px) 0;
  display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .95rem; }
.session-film figcaption span { font-style: italic; }
.session-film figcaption a { text-decoration: none; }

/* gallery */
.masonry { columns: 3; gap: 18px; }
.masonry img { border-radius: 10px; margin: 0 0 18px; cursor: zoom-in;
  transition: transform .3s ease, filter .3s ease; }
.masonry img:hover { transform: scale(1.015); filter: brightness(1.07); }

/* Trad Buddy promo band */
.promo { background: var(--green); color: hsl(110, 30%, 8%);
  margin-top: clamp(56px, 9vh, 110px); padding: clamp(44px, 6vw, 72px) clamp(16px, 4vw, 48px); }
.promo-inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700;
  color: hsl(110, 30%, 12%); opacity: .75; margin: 0 0 .6em; }
.promo h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05; margin: 0 0 .3em; color: hsl(110, 30%, 8%); }
.promo-sub { font-size: .55em; }
.promo-lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); max-width: 38em; margin: 0 0 1.4em; }
.btn-dark { background: hsl(110, 30%, 10%); color: var(--cream); font-weight: 700; }
.btn-dark:hover { background: hsl(110, 25%, 16%); color: #fff; }
.promo .cta { align-items: center; margin: 0; }
.beta { font-style: italic; font-size: 1rem; opacity: .8; }

/* contact */
.contact { text-align: center; padding-bottom: clamp(56px, 9vh, 110px); }
.contact hr { margin-bottom: clamp(20px, 3vw, 36px); }
.contact .cta { justify-content: center; }

/* footer */
footer { background: var(--bg-deep); border-top: 1px solid var(--line);
  padding: 48px clamp(16px, 4vw, 48px) 56px; text-align: center; }
footer img { width: 92px; height: 92px; margin: 0 auto 16px; }
footer p { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 1rem; }
footer .fine { margin-top: 14px; font-size: .95rem; }

/* ---------- lightbox ---------- */
#lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,9,6,.94);
  display: none; align-items: center; justify-content: center; }
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  border-radius: 6px; box-shadow: 0 14px 60px rgba(0,0,0,.65); }
#lightbox button { position: absolute; background: none; border: 0; color: var(--cream);
  font-family: var(--body); font-size: 44px; line-height: 1; padding: 16px; cursor: pointer; opacity: .85; }
#lightbox button:hover, #lightbox button:focus { opacity: 1; }
#lightbox .close { top: 10px; right: 14px; }
#lightbox .prev { left: 6px; top: 50%; transform: translateY(-50%); }
#lightbox .next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .cols, .cols.flip { grid-template-columns: 1fr; }
  .cols.flip .poster { order: 0; }
  .poster { max-width: 440px; }
  .visitor-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand img { width: 84px; height: 84px; margin-top: 36px; }
  #menu-btn { display: block; background: none; border: 0; padding: 10px; cursor: pointer; }
  #menu-btn span:not(.visually-hidden) { display: block; width: 26px; height: 2px; background: var(--ink);
    margin: 6px 0; box-shadow: 0 1px 4px rgba(0,0,0,.5); transition: transform .25s ease, opacity .25s ease; }
  #menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  #menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  #menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  nav ul { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg-deep); border-top: 1px solid var(--line);
    padding: 10px 0 16px; display: none; box-shadow: 0 20px 40px rgba(0,0,0,.5); }
  nav ul.open { display: flex; }
  nav li { width: 100%; }
  nav a { display: flex; padding: 13px 24px; font-size: 1.2rem; }
  .grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .card { flex-direction: row; }
  .card img { width: 96px; }
  .card.event { flex-direction: column; }
  .card.event img { width: 60%; max-width: 240px; }
  .session-film { margin-top: 64px; }
  .session-film-link { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: hidden; }
  .session-film-link::before { display: none; }
  .session-film video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: fill; box-shadow: none; transform: none; }
  .session-film-vignette { display: none; }
  .session-film figcaption { flex-direction: column; gap: 1px; padding-top: 10px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .brand img, .masonry img, .events-grid img, header { transition: none; }
}
