/* Taylor Drew — public site
   Colours come from the theme variables injected by the server. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  /* Phone browsers shrink the viewport as the URL bar hides; svh stays put. */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* Grey flash on tap looks like a bug — the :active states below replace it. */
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

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

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

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

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

.main:focus {
  outline: none;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 50;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------------------------------ type */

.display {
  margin: 0;
  font-weight: 900;
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  /* A single long word must break rather than push the page sideways. */
  overflow-wrap: break-word;
}

.display-sm {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

/* Headings of three words or more wrap instead of stacking one word per line. */
.display-flow {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.92;
  max-width: 16ch;
}

.display-sm.display-flow {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.subhead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--muted);
}

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

.rule {
  height: 1px;
  background: var(--line);
  opacity: 0.55;
  border: 0;
}

.rule-accent {
  height: 2px;
  background: var(--accent);
  opacity: 1;
}

/* ---------------------------------------------------------------- header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}

.logo {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Touch screens have no hover to leave; without this guard a tapped card keeps
   its hover colour until you tap somewhere else, which reads as a stuck state. */
@media (hover: hover) {
  .nav-link:hover::after {
    transform: scaleX(1);
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0;
  border: 2px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 0 7px;
  transition: transform 0.2s ease;
}

.topbar.is-open .menu-toggle span:first-child {
  transform: translateY(4.5px) rotate(45deg);
}

.topbar.is-open .menu-toggle span:last-child {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 26px;
  border: 2px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn:active {
  transform: translateY(1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-ghost:active {
  background: var(--text);
  color: var(--bg);
}

@media (hover: hover) {
  .btn-accent:hover {
    filter: brightness(1.1);
  }

  .btn-ghost:hover {
    background: var(--text);
    color: var(--bg);
  }
}

/* ------------------------------------------------------------------ main */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* hero */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.hero-main {
  display: flex;
  flex-direction: column;
  padding: 44px 28px 40px;
  min-height: min(78vh, 760px);
}

.hero-kicker {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero-title {
  margin-bottom: 34px;
}

.hero-main .rule-accent {
  max-width: 640px;
  margin-bottom: 26px;
}

.hero-main .cta-row {
  margin-top: auto;
  padding-top: 56px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-side {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--line);
}

.hero-photo-wrap {
  position: relative;
  flex: 1;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  overflow: hidden;
}

/* An empty photo panel reads as deliberate rather than broken. */
.hero-photo-wrap:not(:has(img))::before,
.side-photo:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 14px,
    color-mix(in srgb, var(--line) 7%, transparent) 14px 15px
  );
  pointer-events: none;
}

.side-photo {
  position: relative;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  position: relative;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-upcoming {
  padding: 28px;
  border-top: 2px solid var(--line);
}

.hero-upcoming .eyebrow {
  margin-bottom: 14px;
}

.hero-upcoming .rule {
  margin-bottom: 22px;
}

.hero-upcoming .display-sm {
  margin-bottom: 6px;
}

/* page heads (about / links / 404) */

.page-head {
  padding: 56px 28px 40px;
  border-bottom: 2px solid var(--line);
}

.page-head .eyebrow {
  color: var(--muted);
  margin-bottom: 18px;
}

.page-head .rule-accent {
  max-width: 640px;
  margin: 30px 0 24px;
}

.page-head .cta-row {
  margin-top: 28px;
}

/* about */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.split-main {
  padding: 44px 28px;
}

.split-side {
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
}

.side-photo {
  flex: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  overflow: hidden;
}

.side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prose p {
  max-width: 62ch;
  margin: 0 0 1.35em;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.65;
}

.prose p:last-child {
  margin-bottom: 0;
}

.facts {
  margin: 0;
  padding: 24px 28px;
  border-top: 2px solid var(--line);
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
}

.fact:last-child {
  border-bottom: 0;
}

.fact dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  border-top: 2px solid var(--line);
}

.quote {
  margin: 0;
  padding: 32px 28px;
  border-right: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
}

.quote p {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.quote cite {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* links */

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 30px 28px;
  border-bottom: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transition: background 0.15s ease, color 0.15s ease;
}

.link-card:active {
  background: var(--accent);
  color: var(--accent-text);
}

.link-card:active .link-sub {
  color: var(--accent-text);
}

@media (hover: hover) {
  .link-card:hover {
    background: var(--accent);
    color: var(--accent-text);
  }

  .link-card:hover .link-sub {
    color: var(--accent-text);
  }
}

.link-card.is-featured {
  background: var(--surface);
}

.link-card.is-featured::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--accent);
}

.link-card.is-featured:active::before,
.link-card.is-featured:hover::before {
  background: var(--accent-text);
}

.link-label {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  /* Keeps a long label clear of the arrow parked in the corner. */
  padding-right: 44px;
}

.link-sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.link-arrow {
  position: absolute;
  top: 26px;
  right: 26px;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.link-card:focus-visible .link-arrow,
.link-card:active .link-arrow {
  transform: translateX(6px);
}

@media (hover: hover) {
  .link-card:hover .link-arrow {
    transform: translateX(6px);
  }
}

.link-grid .muted {
  padding: 30px 28px;
}

/* shows */

.dates {
  padding: 44px 28px;
  border-top: 2px solid var(--line);
}

.dates .eyebrow {
  color: var(--muted);
  margin-bottom: 14px;
}

.dates .rule {
  margin-bottom: 10px;
}

.dates-past {
  opacity: 0.65;
}

.show-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.show {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
}

.show:last-child {
  border-bottom: 0;
}

.show-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  line-height: 1;
}

.show-year {
  margin-top: 3px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.show-month {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.show-day {
  font-size: 1.7rem;
  font-weight: 900;
}

.show-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.show-venue {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.show-meta,
.show-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.show-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 2px solid var(--line);
  white-space: nowrap;
}

a.show-cta:active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

@media (hover: hover) {
  a.show-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
  }
}

.show-cta.is-soldout {
  border-style: dashed;
  color: var(--muted);
}

.show-compact {
  padding: 14px 0;
  gap: 14px;
}

.show-compact .show-day {
  font-size: 1.35rem;
}

/* ---------------------------------------------------------------- footer */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 28px;
  border-top: 2px solid var(--line);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-note {
  color: var(--muted);
  letter-spacing: 0.12em;
}

@media (hover: hover) {
  a.footer-right:hover {
    color: var(--accent);
  }
}

/* ------------------------------------------------------------ responsive */

/* Tablets and phones: the two-column layouts become one column. */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .topbar {
    flex-wrap: wrap;
    padding: 14px 18px;
    /* Landscape phones put the notch beside the content. */
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .topbar-right {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 10px;
    display: none;
  }

  .topbar.is-open .topbar-right {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Full-width rows: a thumb-sized target instead of a word-sized one. */
  .nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0;
    font-size: 0.86rem;
    border-top: 1px solid color-mix(in srgb, var(--line) 28%, transparent);
  }

  .nav-link::after {
    bottom: 12px;
    right: auto;
    width: 2.2em;
  }

  /* Comfortable targets for a thumb: the logo and the footer email are links
     too, and at their natural size they are barely half a fingertip tall. */
  .logo {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  a.footer-right {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  .hero,
  .split,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .hero-side,
  .split-side {
    border-left: 0;
    border-top: 2px solid var(--line);
  }

  .hero-main {
    padding: 32px 18px 28px;
    min-height: 0;
  }

  .hero-main .cta-row {
    padding-top: 40px;
  }

  /* Left to itself the photo panel grows to the image's full height and eats a
     whole screen of scrolling. A fixed ratio keeps it a deliberate block. */
  .hero-photo-wrap,
  .side-photo {
    flex: none;
    aspect-ratio: 4 / 5;
    min-height: 0;
    max-height: 70svh;
  }

  .hero-upcoming,
  .page-head,
  .split-main,
  .dates,
  .link-card,
  .footer,
  .facts,
  .quote {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .link-card {
    border-right: 0;
  }

  .quote {
    border-right: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 30%, transparent);
  }

  .quote:last-child {
    border-bottom: 0;
  }

  .footer {
    justify-content: flex-start;
    gap: 10px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }
}

/* A phone held sideways is short but wide. Stacking the hero there leaves a
   headline alone on screen and pushes the photo out of sight, so the two
   columns come back while the menu stays behind the hamburger. */
@media (max-width: 900px) and (min-width: 680px) and (orientation: landscape) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  .hero-side,
  .split-side {
    border-left: 2px solid var(--line);
    border-top: 0;
  }

  .hero-photo-wrap,
  .side-photo {
    flex: 1;
    aspect-ratio: auto;
    max-height: none;
    min-height: 200px;
  }
}

/* Phones. Everything below here is about one narrow column of text. */
@media (max-width: 640px) {
  .page-head {
    padding: 34px 18px 30px;
  }

  .page-head .eyebrow {
    margin-bottom: 12px;
  }

  /* Without a subhead the rule left a dead band above the next section. */
  .page-head .rule-accent {
    margin: 22px 0 0;
  }

  .page-head .rule-accent:not(:last-child) {
    margin-bottom: 22px;
  }

  .hero-main {
    padding: 28px 18px 30px;
  }

  .hero-title {
    margin-bottom: 26px;
  }

  .hero-main .rule-accent {
    margin-bottom: 22px;
  }

  .hero-main .cta-row {
    padding-top: 32px;
  }

  .hero-photo-wrap {
    aspect-ratio: 1 / 1;
  }

  .split-main,
  .dates {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .hero-upcoming {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .link-card {
    padding: 24px 18px;
  }

  .link-label {
    font-size: 1.3rem;
    padding-right: 38px;
  }

  .link-arrow {
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
  }

  .link-card:focus-visible .link-arrow,
  .link-card:active .link-arrow {
    transform: translateY(-50%) translateX(6px);
  }

  /* A show row is date + details + a ticket button. Side by side in 300-odd
     pixels the venue wraps one word per line, so the button moves underneath. */
  .show {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
    row-gap: 12px;
    padding: 20px 0;
  }

  .show-date {
    align-items: flex-start;
    min-width: 0;
    padding-top: 2px;
  }

  .show-cta {
    grid-column: 2;
    justify-self: start;
    min-height: 44px;
    padding: 9px 20px;
    white-space: normal;
  }

  .quote {
    padding: 26px 18px;
  }

  .quote p {
    font-size: 1.05rem;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    letter-spacing: 0.14em;
    /* Long email addresses must break rather than widen the page. */
    overflow-wrap: anywhere;
  }
}

/* Small phones — the last place things run out of room. */
@media (max-width: 400px) {
  .logo {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }

  .hero-main,
  .page-head,
  .split-main,
  .dates,
  .hero-upcoming,
  .link-card,
  .footer,
  .facts,
  .quote {
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }

  /* Two buttons share the row evenly instead of one squeezing the other. */
  .cta-row .btn {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    letter-spacing: 0.12em;
  }

  /* A right-aligned value beside its label leaves no room for an email. */
  .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .fact dd {
    text-align: left;
    overflow-wrap: anywhere;
  }

  .show-venue {
    font-size: 0.98rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
