/* ==========================================================================
   Automatic Lover — site styles
   --------------------------------------------------------------------------
   Rebuilt from the Squarespace site as plain, hand-written CSS.

   Organization (cascade order matters, so read top to bottom):
     1. Fonts
     2. Design tokens (custom properties)
     3. Reset
     4. Type scale
     5. Base elements
     6. Color themes
     7. Layout: page bands and the layout grid
     8. Components (header, menu, buttons, player, forms, figures…)
     9. Page placement: where each item sits on the grid, per breakpoint
    10. Utilities

   Breakpoints
     768px — the layout grid switches from 8 to 24 columns; type scales with
             the viewport width instead of the viewport height.
     800px — the header switches from the menu button to the full nav bar.
   ========================================================================== */


/* 1. Fonts
   ========================================================================== */

@font-face {
  font-family: "Syncopate";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syncopate-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}


/* 2. Design tokens
   ========================================================================== */

:root {
  /* Palette */
  --cream: rgb(252 240 240);
  --plum: rgb(83 26 74);
  --lavender: rgb(209 200 244);
  --violet: rgb(174 157 239);
  --brick: rgb(155 41 41);

  /* Families */
  --font-display: "Syncopate", "Arial Black", sans-serif;
  --font-text: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  /* Page gutter: the space between the viewport edge and content. */
  --gutter: 6vw;

  /* Layout grid */
  --grid-cols: 8;
  --grid-gap: 11px;
  --grid-max: 1600px;
  --row-min: 24px;

  /* Type scale. Each text style declares a --size; the rendered size is
     1rem + (size − 1) × unit. On small screens the unit follows the
     viewport height, so text stays proportional to the screen. */
  --type-unit: calc(min(100vh, 900px) * 0.012);

  /* Header height (used to push the first band's content below it).
     Below 800px: 6vw padding above and below the 37px menu button. */
  --header-height: calc(12vw + 37px);
}

@media (min-width: 768px) {
  :root {
    --gutter: 4vw;
    --grid-cols: 24;
    --type-unit: calc(min(100vw, 1600px) * 0.012);
  }
}

@media (min-width: 800px) {
  :root {
    /* 2vw top + 2vw bottom + one line of the site title */
    --header-height: calc(4vw + 1.2 * (1rem + 0.5 * var(--type-unit)));
  }
}


/* 3. Reset
   A small reset in the spirit of Eric Meyer's: zero out the browser
   defaults this design overrides, and leave the rest alone.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1, h2, h3, h4, p,
ul, figure, blockquote, fieldset {
  margin: 0;
  padding: 0;
}

fieldset {
  border: 0;
}

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}


/* 4. Type scale
   Sizes and line heights mirror the original theme's formulas:
     size  = 1rem + (step − 1) × unit
     lead  = 1.2 × (1 + (1 − step) / 25)    (headings tighten as they grow)
   ========================================================================== */

.t-h1, .t-h2, .t-h3, .t-h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: calc(1rem + (var(--size) - 1) * var(--type-unit));
  line-height: calc(1.2 * (1 + (1 - var(--size)) / 25));
}

.t-h1 { --size: 4; }
.t-h2 { --size: 2.8; }
.t-h3 { --size: 2.2; }
.t-h4 { --size: 1.6; }

.t-large,
.t-small {
  font-size: calc(1rem + (var(--size) - 1) * var(--type-unit));
  line-height: 1.5;
}

.t-large { --size: 1.4; }
.t-small { --size: 0.9; }


/* 5. Base elements
   ========================================================================== */

body {
  background: var(--lavender);
  color: var(--plum);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

a {
  color: inherit;
}

/* Running text: spacing between blocks inside a text area. */
.prose > * {
  margin-block: 1rem;
}

.prose > .t-h1,
.prose > .t-h2,
.prose > .t-h3,
.prose > .t-h4 {
  margin-block: 2rem;
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose a,
.text-link {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.prose ul {
  padding-left: 40px;
}

.prose li > p {
  margin: 0 0 0.5rem;
}

.prose li {
  overflow-wrap: break-word;
}


/* 6. Color themes
   Each band sets its own text, link, and button colors.
   ========================================================================== */

.theme-cream-on-dark {        /* hero, about, footer, booking */
  color: var(--cream);
  --link: var(--violet);
  --button: var(--violet);
}

.theme-plum-on-light {        /* music, press-kit bio */
  color: var(--plum);
  --link: var(--plum);
  --button: var(--plum);
}

.theme-violet {               /* shows, press photos, press music */
  color: var(--violet);
  --link: var(--violet);
  --button: var(--violet);
}


/* 7. Layout: bands and the grid
   ========================================================================== */

/* A band is one full-width horizontal section of a page.
   Its height and padding scale with the viewport, and its content is
   vertically centered inside it. */
.band {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--band-min);
  padding-block: var(--band-pad);
}

.band--tall   { --band-min: 100vh; --band-pad: 10vmax; }
.band--medium { --band-min: 66vh;  --band-pad: 6.6vmax; }
.band--short  { --band-min: 33vh;  --band-pad: 3.3vmax; }
.band--slim   { --band-min: 10vh;  --band-pad: 1vmax; }

/* The first band on each page sits under the header. */
.band--first {
  padding-top: calc(var(--header-height) + var(--band-pad));
}

/* Band backgrounds */
.bg-plum     { background-color: var(--plum); }
.bg-lavender { background-color: var(--lavender); }
.bg-violet   { background-color: var(--violet); }
.bg-brick    { background-color: var(--brick); }

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

/* Optional plum wash over a background photo */
.band--wash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--plum);
  opacity: 0.15;
}

/* An inset band has a colored panel that stops short of the edges. */
.band--inset {
  padding: calc(var(--band-pad) + 4vw) 4vw;
}

.band--inset::before {
  content: "";
  position: absolute;
  inset: 4vw;
  z-index: -1;
  background: var(--panel);
}

/* The layout grid.
   Outer tracks hold the gutters; the inner columns stop growing once the
   content reaches --grid-max, after which the gutters absorb the extra
   width. Rows have a minimum height that grows with the content area. */
.grid {
  --cell-max: calc((var(--grid-max) - var(--grid-gap) * (var(--grid-cols) - 1)) / var(--grid-cols));
  --rows: var(--rows-sm);

  display: grid;
  grid-template-columns:
    minmax(calc(var(--gutter) - var(--grid-gap)), 1fr)
    repeat(var(--grid-cols), minmax(0, var(--cell-max)))
    minmax(calc(var(--gutter) - var(--grid-gap)), 1fr);
  grid-template-rows: repeat(var(--rows), minmax(var(--row-min), auto));
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .grid {
    --rows: var(--rows-lg);
    --row-min: calc(min(var(--grid-max), 100vw - var(--gutter) * 2 - var(--inset, 0px)) * 0.0215);
  }

  .band--inset .grid {
    --inset: calc(var(--gutter) * 2);
  }
}

/* Grid items sit at the top of their area unless placed otherwise. */
.grid > *,
.subgrid > *,
.press-group > * {
  align-self: start;
}

/* A grid item that shares its parent's rows and columns. */
.subgrid {
  align-self: stretch;
  display: grid;
  grid-template-columns: subgrid;
  grid-template-rows: subgrid;
}

/* Images that must fit inside their grid area without cropping.
   The frame is positioned; the image is centered and scaled down to fit. */
.fit-frame {
  position: relative;
  align-self: stretch;
  min-height: 0;
}

.fit-frame > img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

/* Images that fill their grid area, cropping as needed. */
.fill-frame {
  position: relative;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
}

.fill-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* 8. Components
   ========================================================================== */

/* Skip link ---------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: 24px;
  left: 50%;
  z-index: 100;
  translate: -50% 0;
  padding: 2.5rem 4.175rem;
  background: var(--violet);
  border: 2px solid var(--violet);
  color: var(--plum);
  text-transform: uppercase;
}

.skip-link:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
}

/* Site header ---------------------------------------------------------------
   Sits on top of the first band. Small screens: menu button and title.
   Wide screens: nav · title · social links.                                 */

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 6vw;
  color: var(--header-color, var(--plum));
}

.page-home .site-header {
  --header-color: var(--cream);
}

.site-title {
  grid-column: 2;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav ul,
.social-links {
  display: flex;
  align-items: center;
  list-style: none;
}

.site-nav a {
  display: block;
  padding-block: 0.1rem;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.social-links a {
  --hit: 20px;
  display: grid;
  place-items: center;
  width: var(--hit);
  height: var(--hit);
  color: inherit;
}

.social-links li {
  flex: none;
}

/* The icons are drawn on a 64-unit artboard with the glyph in the middle
   ~30 units, so the artboard is drawn larger than the link and allowed to
   overhang. Header glyphs come out ≈16px, footer glyphs ≈19px. */
.social-links svg {
  --box: 34.375px;
  flex: none;
  width: var(--box);
  height: var(--box);
  max-width: none;
  margin: calc((var(--hit) - var(--box)) / 2);
  fill: currentColor;
}

.footer-social svg {
  --box: 40px;
}

/* Header layout below 800px: menu button + centered title */
.site-header > .site-nav,
.site-header > .social-links {
  display: none;
}

.menu-toggle {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  position: relative;
  width: 47px;
  height: 37px;
  padding: 0;
}

/* Three thin bars; they cross into an X when the menu is open. */
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 6px;
  width: 35px;
  height: 1px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle__bars {
  top: 18px;
}

.menu-toggle__bars::before,
.menu-toggle__bars::after {
  content: "";
  left: 0;
}

.menu-toggle__bars::before { top: -9px; }
.menu-toggle__bars::after  { top: 9px; }

.menu-open .menu-toggle__bars { background: transparent; }
.menu-open .menu-toggle__bars::before { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-toggle__bars::after  { transform: translateY(-9px) rotate(-45deg); }

@media (min-width: 800px) {
  .site-header {
    padding: 2vw 4vw;
  }

  .site-header > .site-nav,
  .site-header > .social-links {
    display: flex;
  }

  .site-nav ul {
    gap: 3.5vw;
  }

  .site-header > .social-links {
    justify-self: end;
    gap: 3.5vw;
  }

  .site-title {
    font-size: calc(1rem + 0.5 * var(--type-unit));
  }

  .menu-toggle,
  .menu {
    display: none;
  }
}

/* Small-screen menu overlay ------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-height) + 1rem) var(--gutter) var(--gutter);
  background: var(--lavender);
  color: var(--plum);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-open .menu {
  opacity: 1;
  visibility: visible;
}

.menu-open .site-header {
  --header-color: var(--plum);
}

.menu ul {
  list-style: none;
}

.menu .site-nav {
  margin-block: auto;
}

.menu .site-nav ul {
  flex-direction: column;
}

.menu .site-nav a {
  display: inline-block;
  margin: 15px 5vw;
  padding: 0;
  font-size: 8.5vw;
  line-height: 1;
}

.menu .social-links {
  gap: 15px;
}

.menu .social-links a {
  --hit: 25px;
}

.menu .social-links svg {
  --box: 43px;
}

@media (min-width: 800px) {
  .menu {
    display: none;
  }
}

/* Buttons --------------------------------------------------------------------
   Outline style used across the site.                                       */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  border: 2px solid var(--button);
  background: transparent;
  color: var(--button);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.button--wide {
  padding: 2.5rem 4.175rem;
}

/* Fills its grid area; used for the Booking link. */
.button--block {
  padding: 0 4.175rem;
}

.button:hover,
.button:focus-visible {
  background: var(--button);
  color: var(--plum);
}

/* Audio player ----------------------------------------------------------------
   A native <audio> element, with a compact custom face when JavaScript runs.
   Without JavaScript the browser's own controls show instead.               */

.player {
  --player-bg: rgb(0 0 0 / 0.05);
  --player-text: rgb(0 0 0 / 0.95);
  --player-muted: rgb(0 0 0 / 0.5);
  --player-rule: rgb(0 0 0 / 0.08);
  --player-progress: rgb(0 0 0 / 0.03);

  position: relative;
  align-self: stretch;
  display: flex;
  align-items: stretch;
  min-height: 0;
  background: var(--player-bg);
  color: var(--player-text);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 400;
}

.player--dark {
  --player-bg: rgb(24 24 24);
  --player-text: rgb(255 255 255 / 0.95);
  --player-muted: rgb(255 255 255 / 0.5);
  --player-rule: rgb(255 255 255 / 0.15);
  --player-progress: rgb(255 255 255 / 0.05);
}

.player audio {
  align-self: center;
  width: 100%;
}

.player__toggle,
.player__labels,
.player__time,
.player__progress {
  display: none;
}

.js .player audio { display: none; }
.js .player__toggle,
.js .player__labels,
.js .player__time,
.js .player__progress { display: flex; }

.player__toggle {
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--player-rule);
}

/* Play triangle; becomes two pause bars while playing. */
.player__icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9.5px 0 9.5px 14px;
  border-color: transparent transparent transparent currentColor;
}

.player.is-playing .player__icon {
  width: 14px;
  height: 18px;
  border-width: 0 5px;
  border-color: currentColor;
}

.player__labels {
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-inline: 15px;
}

.player__title,
.player__artist {
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__title {
  font-size: 1.2em;
}

.player__artist {
  color: var(--player-muted);
}

.player__time {
  flex: 0 0 30px;
  align-items: center;
  justify-content: flex-end;
  padding-right: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.player__progress {
  position: absolute;
  inset: 0 auto 0 60px;
  width: calc((100% - 60px) * var(--played, 0));
  background: var(--player-progress);
  pointer-events: none;
}

/* Newsletter ------------------------------------------------------------------
   Heading and note are ours; the sign-up form itself is MailerLite's embed,
   restyled below. Lays itself out by its own width (container queries).      */

.newsletter {
  container-type: inline-size;
  text-align: center;
}

.newsletter__header {
  padding-inline: 7.5%;
}

.newsletter__title {
  line-height: 1.2;
}

.newsletter__intro {
  margin-top: 1rem;
}

.newsletter__form {
  /* Reserve the form's height so the footer doesn't jump when MailerLite
     finishes loading: field + button side by side. */
  min-height: 84px;
  margin-top: 2rem;
}

/* Field stacked over button. */
@container (width < 440px) {
  .newsletter__form {
    min-height: 182px;
  }
}

.newsletter__note {
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .newsletter__note {
    font-size: min(0.9rem, 1rem - 0.12vw);
  }
}

@container (width < 300px) {
  .newsletter__header {
    padding-inline: 0;
  }

  .newsletter__intro {
    margin-top: 14px;
    line-height: 1.25;
  }

  .newsletter__form {
    min-height: 160px;
    margin-top: 30px;
  }

  .newsletter__note {
    margin-top: 20px;
  }
}

/* MailerLite embed overrides ----------------------------------------------------
   The embed injects its own stylesheet: selectors pinned to the form's ID and
   about 120 !important declarations. Rather than out-shout it selector by
   selector, these rules live in a cascade layer. An !important declaration in
   a layer beats an unlayered !important one regardless of specificity, so
   every declaration here is marked !important on purpose.

   What MailerLite renders (simplified):
     .ml-form-embedContainer > .ml-form-align-center > .ml-form-embedWrapper
       > .ml-form-embedBody
           .ml-form-embedContent     its own heading + text (hidden; we use ours)
           form.ml-block-form
             .ml-form-horizontalRow
               .ml-input-horizontal … input[type=email]
               .ml-button-horizontal  button.primary, button.loading
             .ml-form-recaptcha       only if reCAPTCHA is on for the form
             .ml-mobileButton-horizontal  duplicate button (hidden)
       > .ml-form-successBody         shown after a successful sign-up
   ------------------------------------------------------------------------------ */

@layer mailerlite-overrides {

  /* Strip the card: no background, width cap, padding, or floats. */
  .newsletter .ml-form-embedContainer,
  .newsletter .ml-form-align-center,
  .newsletter .ml-form-embedWrapper,
  .newsletter .ml-form-embedBody,
  .newsletter .ml-form-successBody,
  .newsletter .ml-block-form,
  .newsletter .ml-form-formContent,
  .newsletter .ml-input-horizontal,
  .newsletter .horizontal-fields,
  .newsletter .ml-field-group,
  .newsletter .ml-button-horizontal {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    text-align: center !important;
  }

  /* MailerLite shows/hides the form body and success message with inline
     display styles, so only the wrapper's display is overridden. */
  .newsletter .ml-form-embedContainer,
  .newsletter .ml-form-embedWrapper {
    display: block !important;
  }

  /* MailerLite swaps to a second "mobile" button on small screens; keep
     the one button and hide the copy at every size. */
  .newsletter .ml-button-horizontal {
    display: block !important;
  }

  /* Their copy of the heading, and their second (mobile) button. */
  .newsletter .ml-form-embedContent,
  .newsletter .ml-mobileButton-horizontal {
    display: none !important;
  }

  /* Field and button side by side, centered. */
  .newsletter .ml-form-horizontalRow {
    display: flex !important;
    float: none !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    width: auto !important;
    margin: 0 !important;
  }

  .newsletter .ml-input-horizontal {
    padding: 8px 4px !important;
  }

  .newsletter .ml-button-horizontal {
    padding: 8px 4px 8px 8px !important;
  }

  .newsletter .ml-form-embedContainer input[type="email"] {
    display: block !important;
    box-sizing: border-box !important;
    width: 280px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 1.4rem 2rem !important;
    border: 1px solid rgb(0 0 0 / 0.12) !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #000 !important;
    font: 500 1rem/1.2 var(--font-text) !important;
    letter-spacing: normal !important;
    text-align: left !important;
  }

  .newsletter .ml-form-embedContainer input[type="email"]::placeholder {
    color: rgb(0 0 0 / 0.55) !important;
    font: inherit !important;
  }

  /* Matches .button: violet outline, uppercase. */
  .newsletter .ml-form-embedContainer button.primary,
  .newsletter .ml-form-embedContainer button.loading {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 128px !important;
    margin: 0 !important;
    padding: 1.4rem 2rem !important;
    border: 2px solid var(--button) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--button) !important;
    font: 500 1rem/1.2 var(--font-text) !important;
    letter-spacing: normal !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .newsletter .ml-form-embedContainer button.primary:hover,
  .newsletter .ml-form-embedContainer button.primary:focus-visible {
    background: var(--button) !important;
    color: var(--plum) !important;
  }

  .newsletter .ml-form-embedContainer button.loading[style*="none"] {
    display: none !important;
  }

  /* reCAPTCHA (only present if turned on for the form): centered below. */
  /* The reCAPTCHA box stays folded away until someone engages with the
     form: it opens when focus is anywhere inside the form, and stays open
     once the email field has text in it (so clicking the checkbox, which
     moves focus off the field, doesn't fold it shut mid-click). */
  .newsletter .ml-form-recaptcha {
    display: grid !important;
    grid-template-rows: 0fr !important;
    justify-items: center !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition:
      grid-template-rows 0.3s ease,
      margin 0.3s ease,
      opacity 0.3s ease,
      visibility 0s linear 0.3s !important;
  }

  .newsletter .ml-block-form:focus-within .ml-form-recaptcha,
  .newsletter .ml-block-form:has(input[type="email"]:not(:placeholder-shown)) .ml-form-recaptcha {
    grid-template-rows: 1fr !important;
    margin-top: 8px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition:
      grid-template-rows 0.3s ease,
      margin 0.3s ease,
      opacity 0.3s ease,
      visibility 0s !important;
  }

  .newsletter .ml-form-recaptcha > * {
    float: none !important;
    min-height: 0 !important;
  }

  /* MailerLite shrinks the widget on small screens from its left edge. */
  .newsletter .g-recaptcha {
    transform-origin: 50% 0 !important;
  }

  /* Validation error: a brick outline on the field. */
  .newsletter .ml-error input[type="email"] {
    border-color: var(--brick) !important;
    outline: 2px solid var(--brick) !important;
  }

  /* Success message in the site's type. */
  .newsletter .ml-form-successContent h4,
  .newsletter .ml-form-successContent p {
    margin: 0 !important;
    color: inherit !important;
    text-align: center !important;
    letter-spacing: normal !important;
  }

  .newsletter .ml-form-successContent h4 {
    font: 700 calc(1rem + 0.6 * var(--type-unit)) / 1.17 var(--font-display) !important;
    letter-spacing: -0.02em !important;
    text-transform: uppercase !important;
  }

  .newsletter .ml-form-successContent p {
    margin-top: 1rem !important;
    font: 500 1rem/1.5 var(--font-text) !important;
  }

  /* Not enough room side by side: stack the field over the button. */
  @container (width < 440px) {
    .newsletter .ml-form-horizontalRow {
      flex-direction: column !important;
    }

    .newsletter .ml-button-horizontal {
      padding: 24px 4px 8px !important;
    }
  }

  /* Very narrow: the field fills the width. */
  @container (width < 300px) {
    .newsletter .ml-form-horizontalRow {
      align-items: stretch !important;
    }

    .newsletter .ml-input-horizontal {
      padding: 5px 0 !important;
    }

    .newsletter .ml-form-embedContainer input[type="email"] {
      width: 100% !important;
    }

    .newsletter .ml-button-horizontal {
      padding: 11px 0 5px !important;
    }
  }
}

/* Contact form ---------------------------------------------------------------- */

.contact-form label {
  display: block;
  padding-bottom: 4px;
}

.contact-form .field {
  margin-bottom: 20px;
}

.contact-form .required {
  font-size: calc(1rem + (0.9 - 1) * var(--type-unit));
  opacity: 0.7;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: rgb(250 250 250);
  color: #000;
  line-height: 1.5;
}

.contact-form textarea {
  height: 100px;
  resize: vertical;
}

/* Turnstile check sits above the button. */
.contact-form__check {
  min-height: 65px;
}

.contact-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Result message under the button. */
.contact-form__status {
  margin-top: 1rem;
  font-weight: 500;
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status[data-state="sent"]::before {
  content: "✓ ";
}

.contact-form__status[data-state="error"] {
  padding: 0.5rem 0.75rem;
  background: var(--cream);
  color: var(--brick);
}

/* Social links in the footer -------------------------------------------------- */

.footer-social {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  align-self: start;
  padding-top: 3px;
}

/* Gallery strip --------------------------------------------------------------- */

.photo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}

.photo-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* Keep each player's face in frame, as on the original. */
.photo-strip li:nth-child(1) img { object-position: 53% 22%; }
.photo-strip li:nth-child(2) img { object-position: 25% 34%; }

@media (width > 768px) {
  .photo-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Press-kit figures ------------------------------------------------------------ */

.download-figure a {
  display: block;
  border-radius: 10px;
}

.download-figure figcaption {
  align-self: start;
}

/* Tour dates (Bandsintown widget) --------------------------------------------- */

.tour-dates {
  line-height: 1.75;
}

/* Bandsintown widget buttons ------------------------------------------------------
   The widget draws its own white, rounded buttons (Follow, RSVP, Tickets,
   I Was There, Play My City). Like the MailerLite form, its stylesheet uses
   !important, so these overrides sit in a cascade layer where an !important
   declaration wins regardless of selector specificity.

   Small, solid violet, square corners; a lighter violet on hover.           */

@layer bandsintown-overrides {
  .tour-dates .bit-button,
  .tour-dates .bit-follow-section-cta,
  .tour-dates .bit-play-my-city-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 0.4rem 0.9rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--violet) !important;
    color: var(--plum) !important;
    font: 500 0.8125rem/1.2 var(--font-text) !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: background-color 0.2s ease !important;
  }

  .tour-dates .bit-button:hover,
  .tour-dates .bit-button:focus-visible,
  .tour-dates .bit-follow-section-cta:hover,
  .tour-dates .bit-follow-section-cta:focus-visible,
  .tour-dates .bit-play-my-city-cta:hover,
  .tour-dates .bit-play-my-city-cta:focus-visible {
    background: color-mix(in srgb, var(--violet), white 25%) !important;
    color: var(--plum) !important;
  }

  .tour-dates .bit-button:focus-visible,
  .tour-dates .bit-follow-section-cta:focus-visible,
  .tour-dates .bit-play-my-city-cta:focus-visible {
    outline: 2px solid var(--lavender) !important;
    outline-offset: 2px !important;
  }
}

/* Video ----------------------------------------------------------------------- */

.video-figure video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-figure figcaption {
  margin-top: 1rem;
}


/* 9. Page placement
   Grid areas use the same row/column line numbers as the original layout
   (row-start / column-start / row-end / column-end). Column line 2 is the
   first content column. Small-screen placement comes first; the wide
   layout overrides it from 768px up.
   ========================================================================== */

/* ---------- Home: hero ---------- */

.hero .grid      { --rows-sm: 11; --rows-lg: 16; }
.hero__logo      { grid-area: 3 / 2 / 9 / 10; z-index: 1; }
.hero__cta       { grid-area: 10 / 2 / 12 / 7; align-self: start; }

@media (min-width: 768px) {
  .hero__logo    { grid-area: 1 / 8 / 17 / 20; }
  .hero__cta     { grid-area: 15 / 2 / 17 / 6; align-self: end; }
}

.hero__cta a {
  text-transform: uppercase;
}

/* ---------- Home: about ---------- */

.about .grid     { --rows-sm: 5; --rows-lg: 16; }
.about__text     { grid-area: 1 / 2 / 5 / 10; align-self: start; }

@media (min-width: 768px) {
  .about__text   { grid-area: 3 / 6 / 15 / 22; align-self: center; }
}

/* ---------- Home: music ---------- */

.music .grid     { --rows-sm: 40; --rows-lg: 38; }

/* Each single is a subgrid; positions below are relative to it. */
.single--helena  { grid-area: 3 / 2 / 20 / 10; }
.single--sick    { grid-area: 21 / 2 / 38 / 10; }

.single hgroup   { grid-area: 1 / 1 / 5 / -1; }
.single__eyebrow { grid-area: 1 / 1 / 3 / -1; align-self: center; text-transform: uppercase; }
.single__title   { grid-area: 3 / 1 / 5 / -1; align-self: start; }
.single__cover   { grid-area: 5 / 1 / 15 / -1; }
.single .player  { grid-area: 15 / 1 / 18 / -1; }

.single--helena .single__cover img { margin-left: 0; }
.single--sick .single__cover img   { margin-right: 0; }

@media (min-width: 768px) {
  .single--helena  { grid-area: 3 / 4 / 20 / 26; }
  .single--helena hgroup   { grid-area: 6 / 1 / 9 / 11; }
  .single--helena .single__eyebrow { grid-area: 1 / 1 / 2 / -1; }
  .single--helena .single__title   { grid-area: 2 / 1 / 4 / -1; }
  .single--helena .single__cover   { grid-area: 1 / 11 / 18 / 23; }
  .single--helena .player          { grid-area: 9 / 1 / 12 / 7; }

  .single--sick    { grid-area: 21 / 2 / 38 / 26; }
  .single--sick hgroup     { grid-area: 5 / 15 / 8 / 25; }
  .single--sick .single__eyebrow { grid-area: 1 / 1 / 2 / -1; }
  .single--sick .single__title   { grid-area: 2 / 1 / 4 / -1; }
  .single--sick .single__cover   { grid-area: 1 / 1 / 18 / 13; }
  .single--sick .player          { grid-area: 8 / 15 / 11 / 21; }
}

/* ---------- Home: shows ---------- */

.shows .grid     { --rows-sm: 26; --rows-lg: 15; }
.shows__booking  { display: grid; align-self: stretch; }
.shows__title    { grid-area: 1 / 2 / 6 / 10; text-align: center; }
.tour-dates      { grid-area: 6 / 2 / 19 / 10; }
.shows__booking  { grid-area: 20 / 2 / 24 / 10; }

@media (min-width: 768px) {
  .shows__title   { grid-area: 1 / 2 / 4 / 26; }
  .tour-dates     { grid-area: 5 / 4 / 11 / 24; }
  .shows__booking { grid-area: 12 / 12 / 14 / 16; }
}

/* ---------- Footer (both pages) ---------- */

.site-footer .grid { --rows-sm: 18; --rows-lg: 17; }
.newsletter        { grid-area: 3 / 2 / 15 / 10; }
.footer-social     { grid-area: 15 / 2 / 17 / 10; }
.photo-credit      { grid-area: 17 / 2 / 19 / 10; }

@media (min-width: 768px) {
  .newsletter      { grid-area: 6 / 9 / 14 / 19; }
  .footer-social   { grid-area: 15 / 12 / 17 / 16; }
  .photo-credit    { grid-area: 16 / 2 / 18 / 8; }
}

/* ---------- Press kit: biography ---------- */

.bio .grid       { --rows-sm: 14; --rows-lg: 32; }
.bio__text       { grid-area: 1 / 2 / 15 / 10; }

@media (min-width: 768px) {
  .bio__text     { grid-area: 1 / 5 / 33 / 23; }
}

/* ---------- Press kit: photos and logos ---------- */

.press .grid     { --rows-sm: 52; --rows-lg: 40; }

/* Groups exist for document structure only; their children are placed
   directly on the band's grid. */
.press-group     { display: contents; }

.press__photos-title { grid-area: 1 / 2 / 3 / 10; }
.press__logos-title  { grid-area: 19 / 2 / 21 / 10; }

/* Each figure is a subgrid: image on top, caption underneath. */
.download-figure > a          { grid-area: 1 / 1 / 7 / -1; }
.download-figure > figcaption { grid-area: 7 / 1 / 9 / -1; }

.fig-full-band   { grid-area: 3 / 2 / 11 / 10; }
.fig-stage       { grid-area: 11 / 2 / 19 / 10; }
.fig-logo-black  { grid-area: 21 / 2 / 29 / 10; }
.fig-cowbell     { grid-area: 29 / 2 / 37 / 10; }
.fig-logo-photo  { grid-area: 37 / 2 / 45 / 10; }
.fig-logo-cream  { grid-area: 45 / 2 / 53 / 10; }

@media (min-width: 768px) {
  .press__photos-title { grid-area: 1 / 3 / 2 / 9; }
  .press__logos-title  { grid-area: 28 / 3 / 29 / 9; }

  .download-figure > a          { grid-area: 1 / 1 / 12 / -1; }
  .download-figure > figcaption { grid-area: 12 / 1 / 13 / 7; }

  .fig-full-band  { grid-area: 2 / 3 / 14 / 14; }
  .fig-stage      { grid-area: 15 / 3 / 27 / 14; }
  .fig-logo-black { grid-area: 29 / 3 / 41 / 14; }
  .fig-cowbell    { grid-area: 2 / 14 / 14 / 25; }
  .fig-logo-photo { grid-area: 15 / 14 / 27 / 25; }
  .fig-logo-cream { grid-area: 29 / 14 / 41 / 25; }
}

/* ---------- Press kit: music and video ---------- */

.press-media .grid      { --rows-sm: 18; --rows-lg: 10; }
.press-media__music     { grid-area: 1 / 2 / 3 / 10; }
.press-media .player--1 { grid-area: 3 / 2 / 6 / 10; }
.press-media .player--2 { grid-area: 6 / 2 / 9 / 10; }
.press-media__video     { grid-area: 9 / 2 / 11 / 10; }
.video-figure           { grid-area: 11 / 2 / 19 / 10; }

@media (min-width: 768px) {
  .press-media__music     { grid-area: 1 / 3 / 2 / 9; }
  .press-media .player--1 { grid-area: 2 / 3 / 5 / 9; }
  .press-media .player--2 { grid-area: 5 / 3 / 8 / 9; }
  .press-media__video     { grid-area: 1 / 14 / 2 / 20; }
  .video-figure           { grid-area: 2 / 14 / 11 / 22; }
}

/* ---------- Press kit: booking ---------- */

.booking         { --panel: var(--brick); }
.booking .grid   { --rows-sm: 19; --rows-lg: 11; }
.booking__text   { grid-area: 2 / 2 / 9 / 10; }
.contact-form    { grid-area: 10 / 2 / 20 / 10; }

@media (min-width: 768px) {
  .booking__text { grid-area: 3 / 2 / 10 / 12; }
  .contact-form  { grid-area: 3 / 15 / 12 / 26; }
}


/* Fade-in on scroll ------------------------------------------------------------
   Elements marked data-fade start transparent and fade in over 0.9s the first
   time they scroll into view (js/site.js adds .is-in). Each one waits a
   little longer than the one before it, as on the original site; the script
   sets that wait in --fade-delay. Without JavaScript nothing is hidden.       */

.js [data-fade] {
  opacity: 0;
  transition: opacity 0.9s ease var(--fade-delay, 0s);
}

.js [data-fade].is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .js [data-fade] {
    opacity: 1;
    transition: none;
  }
}


/* ---------- 404 page ---------- */

.not-found .grid  { --rows-sm: 8; --rows-lg: 12; }
.not-found__text  { grid-area: 1 / 2 / 9 / 10; align-self: center; }

@media (min-width: 768px) {
  .not-found__text { grid-area: 1 / 5 / 13 / 23; }
}


/* 10. Utilities
   ========================================================================== */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Contact details read as plain text, but stay tappable. */
.booking__text li a {
  color: inherit;
  text-decoration: none;
}
