/* Shared design tokens from the original Squarespace site. */
:root {
  --max-page-width: 1200px;
  --page-padding: 4vw;
  --font-heading: "ivymode", "Cormorant Garamond", "Playfair Display", serif;
  --font-body: "athelas-web", "Athelas", Georgia, serif;
  --white: #ffffff;
  --black: #000000;
  --accent: #ad2c1e;
  --light-accent: #eed8cb;
  --dark-accent: #6c1415;
  --base-font-size: 16px;
  --heading-1-size: 4.3rem;
  --heading-2-size: 3.3rem;
  --heading-3-size: 2.3rem;
  --heading-4-size: 1.5rem;
  --large-text-size: 1.5rem;
  --normal-text-size: 1.1rem;
  --small-text-size: 0.9rem;
}

/* Reset and base elements. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: var(--base-font-size);
  scroll-behavior: smooth;
  /* Keep page geometry stable while the mobile menu locks scrolling. */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--base-font-size);
  font-weight: 400;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.5rem, 1.7rem + 3.5vw, var(--heading-1-size));
}

h2 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, var(--heading-2-size));
}

h3 {
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, var(--heading-3-size));
}

h4 {
  font-size: var(--heading-4-size);
}

p {
  font-family: var(--font-body);
  font-size: var(--normal-text-size);
  font-weight: 400;
  line-height: 1.6;
}

p + p {
  margin-block-start: 1em;
}

a {
  color: inherit;
  text-decoration: none;
}

p a,
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

/* Reusable layout and typography utilities. */
.page-shell,
.section-inner {
  width: 100%;
  max-width: var(--max-page-width);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}

.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.text-large {
  font-size: var(--large-text-size);
}

.text-normal {
  font-size: var(--normal-text-size);
}

.text-small {
  font-size: var(--small-text-size);
}

.meta,
nav {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
}

/* Shared header and section anchor offsets. */
:root {
  --header-height: 88px;
  --sticky-header-height: 72px;
  --anchor-spacing: 16px;
}

section[id] {
  scroll-margin-top: calc(var(--measured-sticky-header-height, var(--sticky-header-height)) + var(--anchor-spacing));
}

#hero {
  scroll-margin-top: 0;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  color: var(--white);
  background: transparent;
}

.site-header--scrolled {
  position: fixed;
  color: var(--black);
  background: var(--white);
  box-shadow: 0 1px 0 var(--light-accent);
}

.site-header__inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-header--scrolled .site-header__inner {
  min-height: var(--sticky-header-height);
}

.site-brand {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 0.7rem + 1vw, 1.4rem);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.desktop-nav,
.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.language-switch {
  font-family: var(--font-heading);
  font-weight: 600;
}

.menu-toggle,
.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before {
  top: -7px;
}

.menu-toggle__icon::after {
  top: 7px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow-y: auto;
  color: var(--black);
  background: var(--white);
}

.mobile-menu::backdrop {
  background: var(--white);
}

.mobile-menu__top {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.menu-close {
  font-size: 2rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding-block: 2rem;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
}

.mobile-menu__nav .language-switch {
  margin-block-start: 1rem;
  font-size: var(--normal-text-size);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1024px) {
  :root {
    --header-height: 76px;
    --sticky-header-height: 64px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header__inner,
  .site-header__actions {
    gap: 0.75rem;
  }
}

/* Full-screen hero with a centered image crop and a light dark overlay. */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  /* Equal top/bottom clearance keeps the text centered and below the header. */
  padding-block: calc(var(--header-height) + 1.5rem);
  color: var(--white);
  background: var(--black);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Local contrast behind the transparent header; retain the image overlay. */
  background:
    linear-gradient(to bottom,
      rgb(0 0 0 / 60%),
      rgb(0 0 0 / 52%) var(--header-height),
      transparent calc(var(--header-height) + 6rem)),
    rgb(0 0 0 / 15%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 1.2rem + 4vw, var(--heading-1-size));
  /* Keep normal word wrapping so narrow screens can use two lines. */
  text-wrap: balance;
}

.hero__subtitle {
  margin-block-start: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 0.9rem + 1vw, var(--large-text-size));
  font-weight: 400;
  line-height: 1.6;
}

/* Biography: centered heading and a readable, text-focused column. */
.bio-section {
  padding-block: clamp(2.5rem, 6vw, 6rem);
  color: var(--black);
  background: var(--white);
}

.bio-title {
  margin-block-end: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem);
  font-weight: 700;
  line-height: 1.27;
  color: var(--accent);
  text-align: center;
}

.bio-content {
  display: flow-root;
  max-width: 900px;
  margin-inline: auto;
}

.bio-content p {
  margin-block: 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 0.95rem + 0.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
}

/* Music: spacious album introduction and a centered full-height player. */
.music-section {
  background: var(--light-accent);
  text-align: center;
}

.music-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark-accent);
  text-wrap: wrap;
}

.music-copy {
  max-width: 1100px;
  margin-inline: auto;
  margin-block-start: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent);
  text-align: left;
}

.music-copy p {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
}

.music-copy p + p {
  margin-block-start: 1.25em;
}

.music-cta {
  margin-block: clamp(2rem, 4vw, 3rem) 1.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--dark-accent);
}

.music-embed {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
}

.music-embed iframe {
  display: block;
  width: 100%;
  height: 352px;
  border: 0;
  border-radius: 12px;
}

/* Videos: squared 16:9 players, side by side on desktop. */
.videos-section {
  background-color: var(--accent);
}

.videos-title {
  margin-block-end: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.27;
  color: var(--light-accent);
  text-align: center;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--black);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

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

/* Manual gallery: a continuous strip with native touch scrolling. */
.gallery-section {
  padding-inline: var(--page-padding);
  background: var(--white);
}

.gallery-carousel {
  --gallery-visible: 3;
  --gallery-image-height: 600px;
  position: relative;
  min-width: 0;
  margin-inline: auto;
}

.gallery-track {
  display: flex;
  height: 600px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  list-style: none;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:focus-visible {
  outline-offset: -3px;
}

.gallery-slide {
  flex: 0 0 var(--gallery-slide-width, calc(100% / var(--gallery-visible)));
  min-width: 0;
  height: 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.gallery-slide--4,
.gallery-slide--6,
.gallery-slide--7,
.gallery-slide--8,
.gallery-slide--10 {
  --gallery-slide-width: min(100%, max(calc(100% / var(--gallery-visible)), calc(var(--gallery-image-height) * var(--gallery-width-ratio))));
}

/* The landscape originals are all approximately 3:2; vary framing by composition. */
.gallery-slide--4 { --gallery-width-ratio: 1.4; }
.gallery-slide--6 { --gallery-width-ratio: 1.3; }
.gallery-slide--7 { --gallery-width-ratio: 1.5; }
.gallery-slide--8 { --gallery-width-ratio: 1.35; }
.gallery-slide--10 { --gallery-width-ratio: 1.45; }

.gallery-slide--5 {
  --gallery-slide-width: 100%;
}

.gallery-slide--5 img {
  object-position: 50% 0%;
}

.gallery-slide--1 img {
  object-position: 50% 100%;
}

.gallery-slide--3 img {
  object-position: 50% 65%;
}

.gallery-slide--7 img {
  object-position: 70% 50%;
}

.gallery-slide--8 img {
  object-position: 60% 50%;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  padding: 0;
  border: 0;
  color: var(--black);
  background: rgb(255 255 255 / 75%);
  transform: translateY(-50%);
  cursor: pointer;
}

.gallery-arrow--previous {
  left: 12px;
}

.gallery-arrow--next {
  right: 12px;
}

.gallery-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.gallery-arrow:hover:not(:disabled),
.gallery-arrow:focus-visible {
  background: var(--white);
}

.gallery-arrow:focus-visible {
  outline-color: var(--black);
}

.gallery-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1024px) {
  .gallery-carousel {
    --gallery-visible: 2;
    --gallery-image-height: 500px;
  }

  .gallery-track {
    height: 500px;
  }
}

@media (max-width: 640px) {
  .gallery-carousel {
    --gallery-visible: 1;
  }

  .gallery-slide {
    flex-basis: 100%;
  }

  .gallery-track {
    height: clamp(320px, 120vw, 480px);
  }
}

/* Press: local photographs with consistent landscape crops. */
.press-section {
  background-color: var(--accent);
  color: var(--light-accent);
}

.press-title {
  margin-block-end: clamp(3rem, 6vw, 5rem);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.27;
  text-align: center;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
}

.press-card {
  min-width: 0;
}

.press-card__image {
  aspect-ratio: 1.414 / 1;
  overflow: hidden;
}

.press-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: none;
}

.press-card--crop-portrait .press-card__image img {
  object-position: 50% 42%;
  transform: scale(1.12);
}

.press-card--crop-tight .press-card__image img {
  transform: scale(1.08);
}

.press-card__title {
  margin-block: 1.25rem 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
}

.press-card__title a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.press-card__title a:focus-visible {
  outline-color: var(--light-accent);
}

.press-card__excerpt {
  font-family: var(--font-body);
  font-size: var(--normal-text-size);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .press-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Shows: one featured production per article, with details and dates. */
.shows-section {
  background-color: var(--light-accent);
  color: var(--black);
  font-family: var(--font-body);
}

.shows-title {
  margin-block-end: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.27;
  color: var(--accent);
  text-align: center;
}

.shows-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 1100px;
  margin-inline: auto;
}

.shows-content + .shows-content {
  margin-block-start: 4rem;
}

.shows-production,
.shows-dates {
  min-width: 0;
  text-align: center;
}

.shows-production h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.3rem);
}

.shows-production .shows-subtitle {
  margin-block-start: 0.5rem;
  font-style: italic;
}

.shows-production .shows-venue {
  margin-block: 1.5rem 1rem;
}

.shows-dates h4 {
  font-size: var(--heading-4-size);
}

.shows-dates ul {
  display: grid;
  gap: 1rem;
  margin-block: 1.25rem 1.75rem;
  padding: 0;
  list-style: none;
  font-size: var(--normal-text-size);
}

.shows-ticket-link {
  font-size: var(--normal-text-size);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 1024px) {
  .shows-content {
    grid-template-columns: 1fr;
  }
}

/* Contact: centered details beside the existing portrait. */
.contact-section {
  padding: clamp(1rem, 4vw, 3.5rem);
  border: 0;
  background: var(--accent);
  color: var(--black);
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding-inline: 0;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding-block: 2rem;
  padding-inline: var(--page-padding);
  background: #F5E9E2;
  text-align: center;
}

.contact-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.3rem);
  font-weight: 600;
  line-height: 1.27;
}

.contact-description {
  margin-block-start: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.6;
}

.contact-email {
  max-width: 100%;
  margin-block-start: 1.5rem;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 1rem + 0.75vw, 1.625rem);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  /* 44px targets around 30px logos leave a visible logo gap of 22px. */
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.contact-email:hover {
  color: var(--dark-accent);
}

.contact-social-link:hover {
  opacity: 0.75;
}

.contact-social-icon {
  display: block;
  width: 30px;
  height: 30px;
  background-color: currentColor;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.contact-social-icon--instagram {
  --social-icon: url("/assets/icons/instagram.svg");
}

.contact-social-icon--facebook {
  --social-icon: url("/assets/icons/facebook.svg");
}

.contact-social-icon--youtube {
  --social-icon: url("/assets/icons/youtube.svg");
}

.contact-social-icon--spotify {
  --social-icon: url("/assets/icons/spotify.svg");
}

.contact-social-icon--tiktok {
  --social-icon: url("/assets/icons/tiktok.svg");
}

.contact-image {
  position: relative;
  min-width: 0;
  min-height: clamp(28rem, 50vw, 42rem);
}

.contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}

@media (max-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-image {
    min-height: clamp(20rem, 90vw, 36rem);
  }
}

/* Other sections remain temporary while their final content is prepared. */
.placeholder-section {
  min-height: 45vh;
  border-block: 1px solid var(--light-accent);
}

.placeholder-section p {
  margin-block-start: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Standalone error pages; these classes are absent from the homepages. */
.error-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.5rem, 4vw, 3rem);
  color: var(--black);
  background: var(--white);
}

.error-page__content {
  width: 100%;
  max-width: 600px;
  text-align: center;
}

.error-page__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
}

.error-page__title {
  margin-block-start: 1.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
}

.error-page__description {
  margin-block-start: 1.5rem;
}

.error-page__home {
  display: inline-block;
  margin-block-start: 2rem;
  font-size: var(--normal-text-size);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.error-page__home:hover {
  color: var(--dark-accent);
}
