/* merttmusic.com — site.css */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-017F, U+0218-021B, U+1E9E;
}

:root {
  --black: #000;
  --bone: #eee9e1;
  --ash: #9a948b;
  --line: rgba(238, 233, 225, 0.14);
  --line-strong: rgba(238, 233, 225, 0.32);
  --lift: rgba(238, 233, 225, 0.045);
  --ember: #e3a15a;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --gap: clamp(1.25rem, 2.2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 10rem);
  --bar-h: 4.25rem;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --step-3: clamp(1.625rem, 1.1rem + 2vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

img, svg, iframe { display: block; max-width: 100%; }
p, h1, h2, h3, h4, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }

::selection { background: var(--ember); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: fixed;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--bone);
  color: var(--black);
}
.skip:focus { top: 1rem; color: var(--black); }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.muted { color: var(--ash); }

/* ---------- Header ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--bar-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
.bar.is-solid {
  background: rgba(0, 0, 0, 0.8);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.bar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.bar__mark {
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0;
  transform: translateY(0.25rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bar.is-solid .bar__mark { opacity: 1; transform: none; }
.bar__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.9375rem;
}
.bar__nav a { padding-block: 0.75rem; }
.bar__book { color: var(--ember); }
.bar__book:hover { color: var(--bone); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero__media,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.hero__media img,
.hero__media video { filter: grayscale(1) contrast(1.06) brightness(0.86); }

/* without a photo: a low horizon glow, the last minute of a sunset */
.hero__glow {
  position: absolute;
  inset: auto -20% -55% -20%;
  height: 100%;
  z-index: -2;
  background: radial-gradient(50% 50% at 50% 50%, rgba(227, 161, 90, 0.26) 0%, rgba(227, 161, 90, 0.08) 45%, rgba(227, 161, 90, 0) 72%);
  pointer-events: none;
}
.hero--photo .hero__glow { display: none; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%),
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 30%, rgba(0, 0, 0, 0) 60%);
  opacity: 0;
}
.hero--photo .hero__shade { opacity: 1; }

.hero__inner {
  container-type: inline-size;
  padding-top: calc(var(--bar-h) + 2rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 3rem);
}

/* the wordmark: 'mertt' ink is 3.242em wide at this width/weight/tracking */
.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 0.8;
  white-space: nowrap;
  font-size: calc((100vw - 2 * var(--pad)) / 3.28);
  margin-left: -0.065em;
}
@supports (font-size: 1cqi) {
  .wordmark { font-size: 30.75cqi; }
}
.wordmark > [aria-hidden] { display: block; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: var(--step-0);
}
.hero__next { color: var(--ash); display: inline-flex; align-items: baseline; gap: 0.6rem; }
.hero__next::before {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--ember);
  transform: translateY(-0.05rem);
  flex: none;
}
.hero__next strong { color: var(--bone); font-weight: 500; }
.hero__next:hover strong { color: var(--ember); }

/* the one orchestrated moment: a reverb tail that builds, then the filter cuts */
@media (prefers-reduced-motion: no-preference) {
  .wordmark > [aria-hidden] {
    animation: emerge 2.1s cubic-bezier(0.6, 0, 0.9, 0.3) both;
  }
  .hero__meta { animation: settle 0.7s ease-out 1.95s both; }
}
@keyframes emerge {
  0%   { opacity: 0;    filter: blur(36px); transform: scale(1.035); }
  86%  { opacity: 0.85; filter: blur(7px);  transform: scale(1.006); }
  100% { opacity: 1;    filter: blur(0);    transform: none; }
}
@keyframes settle {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- About ---------- */

.about { padding-top: calc(var(--section) * 0.75); }
.about__lead {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  font-size: var(--step-3);
  line-height: 1.28;
  letter-spacing: -0.012em;
  max-width: 26em;
  text-wrap: pretty;
}

.facts {
  border-bottom: 1px solid var(--line);
}
.facts__row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.facts__row dt {
  grid-column: span 3;
  color: var(--ash);
  font-size: var(--step-0);
}
.facts__row dd {
  grid-column: span 5;
  font-size: var(--step-1);
  line-height: 1.45;
}

.venues { columns: 2; column-gap: var(--gap); }
.venues li { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 0.6rem; break-inside: avoid; padding-bottom: 0.4rem; }
.venues__city { color: var(--ash); font-size: var(--step-0); }

/* ---------- Blocks (music, dates) ---------- */

.block {
  padding-block: calc(var(--section) * 0.6) calc(var(--section) * 0.6);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2rem;
}
.block__head {
  grid-column: 1 / span 4;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.block__body { grid-column: 5 / -1; min-width: 0; }
.block__aside { color: var(--ash); font-size: var(--step--1); align-self: flex-start; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.15rem; }
.block__aside:hover { border-bottom-color: var(--ember); }

@media (min-width: 960px) {
  .block__head { position: sticky; top: calc(var(--bar-h) + 2rem); }
}

.h2 {
  font-size: var(--step-4);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.group + .group { margin-top: clamp(3rem, 5vw, 4.5rem); }
.group__h {
  font-size: var(--step-0);
  font-weight: 500;
  color: var(--ash);
  padding-bottom: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.group__count { font-variant-numeric: tabular-nums; }

/* ---------- Tracks ---------- */

.track {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 1.25rem;
  padding-block: 1.05rem;
  border-top: 1px solid var(--line);
}
.track:last-child { border-bottom: 1px solid var(--line); }

.play {
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.play svg { width: 0.85rem; height: 0.85rem; }
.play:hover { border-color: var(--ember); color: var(--ember); }
.play[aria-expanded="true"] { background: var(--ember); border-color: var(--ember); color: var(--black); }
.play:disabled { opacity: 0.35; cursor: default; }
.play:disabled:hover { border-color: var(--line-strong); color: inherit; }
.play .i-close { display: none; }
.play[aria-expanded="true"] .i-play { display: none; }
.play[aria-expanded="true"] .i-close { display: block; }

.track__text { min-width: 0; }
.track__title {
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.track__info { color: var(--ash); font-size: 0.9375rem; line-height: 1.4; margin-top: 0.15rem; }

.track__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-variant-numeric: tabular-nums;
  color: var(--ash);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.track__plays { color: var(--bone); }
.track__out {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  color: var(--ash);
  margin-right: -0.75rem;
}
.track__out svg { width: 1rem; height: 1rem; }

.track__embed {
  grid-column: 1 / -1;
  margin-top: 1rem;
  background: #111;
  overflow: hidden;
}
.track__embed iframe { width: 100%; border: 0; }

/* ---------- Dates ---------- */

.next { margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.next__item {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  column-gap: var(--gap);
  row-gap: 0.75rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.next__item + .next__item { border-top: 0; }
.next__date { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.next__day { white-space: nowrap; font-size: var(--step-3); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1; }
.next__dow { color: var(--ash); font-size: var(--step--1); margin-top: 0.4rem; }
.next__venue { font-size: var(--step-2); font-weight: 600; line-height: 1.2; }
.next__place { color: var(--ash); margin-top: 0.25rem; }
.next__with { color: var(--ash); font-size: 0.9375rem; margin-top: 0.25rem; }
.next__cta {
  align-self: center;
  display: inline-flex; align-items: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  font-size: 0.9375rem;
}
.next__cta:hover { border-color: var(--ember); }

.empty { color: var(--ash); padding-block: 1.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.empty a { color: var(--bone); border-bottom: 1px solid var(--line-strong); }

.year {
  font-size: var(--step-2);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--bone);
  padding-block: clamp(2.75rem, 5vw, 3.75rem) 1rem;
  font-variant-numeric: tabular-nums;
}
.past__a > .year:first-child { padding-top: 0.25rem; }

.gig {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 0.55fr);
  column-gap: var(--gap);
  align-items: baseline;
  padding-block: 1rem;
  border-top: 1px solid var(--line);
}
.gig__date { color: var(--ash); font-variant-numeric: tabular-nums; font-size: 0.9375rem; }
.gig__venue { font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.gig__venue a:hover { color: var(--ember); }
.gig__title { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.6rem; row-gap: 0.1rem; }
/* a quiet outline tag: sets the note apart from the lineup line without making the row louder.
   It sits beside the venue name, or drops below it whole when there is no room. */
.gig__note {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1875rem 0.6rem 0.0625rem;   /* 3px over, 1px under: centres the capitals optically */
  margin-left: 0.09rem;                    /* lines the outline up with the venue's first letter when it wraps */
  color: var(--ash);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.125rem;                   /* whole-pixel height so the outline renders crisply */
  white-space: nowrap;
}
.gig__with { display: block; color: var(--ash); font-size: 0.9375rem; font-weight: 400; margin-top: 0.15rem; }
.gig__place { color: var(--ash); font-size: 0.9375rem; text-align: right; }

.past__a,
.past__b { border-bottom: 1px solid var(--line); }
.past:has(.past__more[open]) .past__a { border-bottom: 0; }
.past__more > summary { list-style: none; display: inline-flex; align-items: center; }
.past__more > summary::-webkit-details-marker { display: none; }
.past__more[open] > summary { display: none; }

.more {
  margin-top: 1.5rem;
  background: none;
  border: 1px solid var(--line-strong);
  min-height: 2.75rem;
  padding: 0 1.1rem;
  cursor: pointer;
  font-size: 0.9375rem;
}
.more:hover { border-color: var(--ember); color: var(--ember); }

/* ---------- Booking ---------- */

.booking {
  margin-top: calc(var(--section) * 0.4);
  border-top: 1px solid var(--line);
}
.booking__inner {
  padding-block: var(--section);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 3rem;
}
.booking__intro {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.booking__lede { color: var(--ash); max-width: 24em; }
.booking__direct { display: grid; gap: 0.6rem; font-size: var(--step-1); }
.booking__direct a { border-bottom: 1px solid var(--line-strong); padding-bottom: 0.1rem; }
.booking__direct a:hover { border-bottom-color: var(--ember); }
.booking__direct .sub { font-size: var(--step-0); }
.booking__direct .sub a { color: var(--ash); }
.booking__formwrap { grid-column: 5 / -1; min-width: 0; }

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.cell {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.15rem 0.9rem;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  cursor: text;
  transition: background-color 0.2s ease;
}
.cell--wide { grid-column: 1 / -1; }
.cell:focus-within { background: var(--lift); }
.cell__label { color: var(--ash); font-size: var(--step--1); transition: color 0.2s ease; }
.cell:focus-within .cell__label { color: var(--ember); }
.cell input,
.cell textarea {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0.2rem 0;
  font-size: var(--step-1);
  line-height: 1.4;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.cell textarea { resize: vertical; min-height: 7.5rem; }
.cell input::placeholder,
.cell textarea::placeholder { color: rgba(154, 148, 139, 0.7); }
.cell input[type="date"] { color-scheme: dark; min-height: 1.95rem; color: rgba(154, 148, 139, 0.7); }
.cell input[type="date"].has-value,
.cell input[type="date"]:focus { color: var(--bone); }
.cell input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.cell.is-invalid { background: rgba(227, 161, 90, 0.07); }
.cell.is-invalid .cell__label { color: var(--ember); }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
}
.form__status { color: var(--ash); font-size: 0.9375rem; flex: 1 1 16rem; }
.form__status.is-error { color: var(--ember); }

.btn {
  min-height: 3.5rem;
  padding: 0 2rem;
  background: var(--ember);
  color: var(--black);
  border: 0;
  font-weight: 600;
  font-size: var(--step-0);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover { background: var(--bone); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.note {
  display: none;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line-strong);
  font-size: var(--step-1);
  margin-bottom: 1.5rem;
}
.note a { border-bottom: 1px solid var(--line-strong); }
.note--ok { border-color: var(--ember); }
.note:target,
.note.is-shown { display: block; }
.booking__formwrap:has(.note--ok:target) .form,
.booking__formwrap.is-sent .form { display: none; }

/* ---------- Footer ---------- */

.foot { border-top: 1px solid var(--line); }
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2rem;
  color: var(--ash);
  font-size: 0.9375rem;
}
.foot__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.foot__links a { color: var(--bone); padding-block: 0.6rem; }
.foot__links a:hover { color: var(--ember); }
.foot__top { padding-block: 0.6rem; }

/* ---------- Responsive ---------- */

@media (max-width: 959px) {
  .block__head,
  .block__body,
  .booking__intro,
  .booking__formwrap { grid-column: 1 / -1; }
  .block__head { flex-direction: row; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  :root { --bar-h: 3.75rem; }
  .bar__opt { display: none; }
  .bar__nav { gap: 1.25rem; }
  .facts__row { grid-template-columns: 1fr; row-gap: 0.4rem; }
  .facts__row dt, .facts__row dd { grid-column: 1 / -1; }
  .venues { columns: 1; }
  .track { column-gap: 1rem; }
  .track__meta .track__len { display: none; }
  .gig { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .gig__place { grid-column: 2; text-align: left; margin-top: 0.15rem; }
  .next__cta { justify-self: start; }
  .form__grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero__meta { flex-direction: column; gap: 0.5rem; }
  .hero:not(.hero--photo) { min-height: 78svh; }
  .next__item { grid-template-columns: minmax(0, 1fr); }
  .next__date { flex-direction: row; align-items: baseline; gap: 0.75rem; }
  .next__dow { margin-top: 0; }
  .next__cta { grid-column: 1; }
  .foot__inner { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
}

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

.nowrap { white-space: nowrap; }
