/* TeX Gyre Heros Bold (a free Helvetica clone, GUST Font License, see
   assets/fonts/GUST-FONT-LICENSE.txt), subset to Latin-1 + common punctuation
   so every OS renders the same type instead of Arial/Roboto. Swap in a
   licensed Helvetica here if one is bought. */
@font-face {
  font-family: 'Whalebone Heros';
  src: url('assets/fonts/whalebone-heros-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #222221;
  --pure-black: #000000; /* Live's mobile CTA/footer band */
  --white: #ffffff;
  --off-white: #f5f3ee;

  --font-condensed-black: 'Whalebone Heros', 'Helvetica', Arial, sans-serif;
  --font-regular: 'Helvetica Neue', Arial, sans-serif;
  --page-padding-mobile: 1rem; /* 16px */
  --page-padding-desktop: 3rem; /* 48px */
  --page-transition-duration: 100ms; /* keep in sync with PAGE_TRANSITION_MS in page-transition.js */
  --page-reveal-duration: 200ms; /* slightly slower page fade-in */
  --ui-motion-duration: 500ms; /* smooth UI motion, e.g. Live's past-shows disclosure */
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  /* background-color: var(--off-white); */
}

/* body carries the page background and viewport height so the footer can
   sit after <main> (as the page's contentinfo landmark) and still be pinned
   to the bottom; main grows to fill the space above it */
body {
  min-height: 100vh; /* fallback for browsers without dvh */
  /* mobile browsers size vh as if the address bar were hidden, so 100vh
     overflows (and scrolls) while it's showing; dvh is the visible height */
  min-height: 100dvh;
  background-image: url('./assets/paper-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--page-transition-duration) ease; /* fade-out */
}

body.page-visible {
  opacity: 1;
  transition: opacity var(--page-reveal-duration) ease; /* slightly slower fade-in on load */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.copy-text {
  font-family: var(--font-condensed-black);
  text-transform: uppercase;
  font-weight: 700; /* not 900: Windows maps 900 on Arial (its Helvetica stand-in) to Arial Black */
}

@media (min-width: 768px) {
  .md\:not-sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
  }
}

/* no bottom padding: the footer after main supplies the bottom inset */
main {
  flex: 1;
  padding: var(--page-padding-mobile) var(--page-padding-mobile) 0;
}

@media (min-width: 768px) {
  main {
    padding: var(--page-padding-desktop) var(--page-padding-desktop) 0;
  }
}

/* shared About/Listen/Live header: home-link asterisk + page wordmark */
.page-header {
  gap: 1rem;
}

.page-title img {
  height: 1.75rem;
  width: auto;
}

.page-asterisk {
  width: 2rem;
  height: auto;
}

/* sets currentColor for the focus outline below; the asterisk itself is an <img>.
   Padding grows the 2rem mobile asterisk to a 44px tap target; the negative
   margin cancels it out so the asterisk doesn't move. */
.page-home-link {
  padding: 0.375rem;
  margin: -0.375rem;
  color: var(--black);
}

@media (min-width: 768px) {
  .page-title img {
    height: 3.5rem;
  }

  .page-asterisk {
    width: 3.25rem;
  }
}

/* social icon links, a sibling after every page's <main> */
.site-footer {
  padding: 1.5rem var(--page-padding-mobile) var(--page-padding-mobile);
  color: var(--black);
}

@media (min-width: 768px) {
  .site-footer {
    padding: 1.5rem var(--page-padding-desktop) var(--page-padding-desktop);
  }
}

.social-links {
  list-style: none;
  gap: 0.5rem;
}

.social-link {
  padding: 0.625rem; /* 1.5rem icon + padding = 44px tap target */
  color: inherit;
  transition: opacity 150ms ease;
}

.social-link:hover {
  opacity: 0.6;
}

/* black/white focus ring instead of the browser default */
.page-home-link:focus-visible,
.social-link:focus-visible,
.hero-nav a:focus-visible,
.not-found-nav a:focus-visible,
.about-copy a:focus-visible,
.live-contact-email:focus-visible,
.live-show-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.social-link svg {
  width: 1.5rem;
  height: 1.5rem;
}

.image-carousel {
  width: 100%;
  height: 100%;
  background-color: var(--black);
  /* carousel.js handles horizontal swipes; the browser keeps vertical scroll */
  touch-action: pan-y;
}

.image-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
}

.image-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.image-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-carousel-toggle {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 2.75rem; /* 44px tap target */
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background-color: var(--off-white);
  /* 1px dark edge so the circle still reads against bright photos
     (box-shadow rather than border so it doesn't change the 44px size) */
  box-shadow: 0 0 0 1px var(--black);
  color: var(--black);
  cursor: pointer;
  padding: 0;
}

.image-carousel-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* click-to-load YouTube thumbnail (youtube-embed.js), a dark video frame */
.youtube-facade {
  background-color: var(--black);
  color: var(--black);
}

.youtube-facade-thumb {
  object-fit: cover; /* crops the side bars baked into the 16:9 thumbnail */
}

/* the video's title over a dark fade, like YouTube's own embed shows it */
.youtube-facade-title {
  padding: 0.75rem 1rem 2rem;
  background: linear-gradient(rgb(0 0 0 / 0.7), transparent);
  color: var(--white);
  font-size: 1rem;
}

.youtube-facade-play {
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--off-white);
  box-shadow: 0 0 0 1px var(--black);
  transform: translate(-50%, -50%);
}

.youtube-facade-play svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* inset: .listen-media clips overflow, so an outside ring would be cut off */
.youtube-facade:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: -4px;
}
