@font-face {
  font-family: Geist;
  src: url("./assets/geist-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #f1f6f0;
  --ink: #070707;
  --muted: #b1b3af;
  --quiet: #8c918b;
  --panel: #111;
  --edge: #424542;
  --focus: #d8bd8e;
  --body: Geist, Arial, sans-serif;
  --serif: "Times New Roman", "Times", "Liberation Serif", serif;
  --u: clamp(.708px, .069444444vw, 1.2px);
  --gutter: clamp(22px, 4.1666667vw, 72px);
  --layout-width: 1680px;
  --grid-gap: calc(15 * var(--u));
  --section-space: calc(60 * var(--u));
  --speed: 340ms;
  --ease: cubic-bezier(.2, .65, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: calc(20 * var(--u));
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.07em;
}

h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:is(a, button):focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }

.sr-only {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 5;
  inset: 12px auto auto 12px;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
}

.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }

.display, .section-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.07em;
}

.section-title {
  font-size: calc(64 * var(--u));
  line-height: .8;
}

.display {
  font-size: calc(36 * var(--u));
  line-height: 1;
}

.layout {
  inline-size: min(var(--layout-width), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

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

/* First screen */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  --hero-height: calc(950 * var(--u));
  --hero-bottom: clamp(20px, 6vh, calc(60 * var(--u)));
  block-size: min(var(--hero-height), 100vh);
  block-size: min(var(--hero-height), 100svh);
  background: #15120e;
}

.hero-photo {
  position: absolute;
  z-index: -1;
  inset: 0;
  transform: translate3d(0, var(--photo-shift, 0px), 0);
}

.hero-photo img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 39%;
}

.hero-nav {
  position: absolute;
  z-index: 1;
  inset: calc(56 * var(--u)) 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.hero-link {
  inline-size: fit-content;
  min-block-size: 44px;
  display: inline-flex;
  align-items: center;
  position: relative;
}

.hero-link::after {
  content: "";
  position: absolute;
  inset: auto 0 7px;
  block-size: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}

.hero-link:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.hero-link:last-child { justify-self: end; }
.hero-brand { display: grid; align-items: center; min-block-size: 44px; }
.hero-brand img { inline-size: calc(205 * var(--u)); block-size: auto; }

.hero-copy {
  position: absolute;
  inset: auto 0 max(var(--hero-bottom), env(safe-area-inset-bottom, 0px));
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-title {
  inline-size: min(calc(1324 * var(--u)), 100%);
}

.hero-wordmark {
  display: grid;
  aspect-ratio: 1324 / 194;
}

.hero-wordmark-part {
  grid-area: 1 / 1;
  background: url("./assets/dias-and-darina.svg") center / 100% 100% no-repeat;
}

/* The cuts fall in the transparent gaps of the 1324-pixel wordmark. */
.hero-wordmark-part--dias { clip-path: inset(0 65.94% 0 0); }
.hero-wordmark-part--ampersand { clip-path: inset(0 49.85% 0 34.06%); }
.hero-wordmark-part--darina { clip-path: inset(0 0 0 50.15%); }

.hero-intro {
  margin-block-start: calc(22 * var(--u));
  font-size: calc(24 * var(--u));
  line-height: 1;
}

.hero-intro span { display: block; }

/* Venue */
.venue { min-block-size: calc(761 * var(--u)); }

.venue-info {
  padding-block: var(--section-space);
  min-inline-size: 0;
}

.venue-facts {
  margin-block-start: var(--section-space);
  display: grid;
  gap: calc(35 * var(--u));
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: calc(12 * var(--u));
  min-inline-size: 0;
  padding-block-end: calc(29 * var(--u));
  border-block-end: 1px solid var(--edge);
}

.fact dt { color: var(--quiet); }
.fact-row--date dd, .fact-row--time dd { line-height: 1.2; }

.fact-action {
  min-inline-size: 44px;
  min-block-size: 44px;
  inline-size: calc(112 * var(--u));
  margin-inline-end: calc(45 * var(--u));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: calc(10 * var(--u));
  font-size: max(12px, calc(15 * var(--u)));
  line-height: 1.2;
  text-align: center;
}

.fact-action img {
  inline-size: calc(36 * var(--u));
  block-size: auto;
  transition: transform var(--speed) var(--ease), filter var(--speed) var(--ease);
}

a.fact-action:is(:hover, :focus-visible) img { transform: translateY(-3px); filter: brightness(1.15); }
a.fact-action:active img { transform: translateY(0) scale(.94); }

a.fact-action span {
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--speed) var(--ease);
}

a.fact-action:is(:hover, :focus-visible) span { text-decoration-color: currentColor; }

.countdown { margin-inline-end: var(--gutter); }
.countdown dd { font-variant-numeric: tabular-nums; }
.countdown:not(.is-ended) dd { white-space: nowrap; }
.countdown-units {
  display: block;
  margin-block-start: 4px;
  color: var(--quiet);
  font: 400 max(11px, calc(13 * var(--u))) / 1.2 var(--body);
  letter-spacing: -.025em;
}
.countdown.is-ended dd { font-size: calc(27 * var(--u)); }

.venue-photo {
  position: relative;
  min-inline-size: 0;
  min-block-size: calc(761 * var(--u));
  overflow: hidden;
  background: #211b13;
}

.venue-photo img {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Format */
.format { padding-block: var(--section-space); }

.format-intro { text-align: center; }

.format-intro p {
  max-inline-size: calc(665 * var(--u));
  margin: calc(26 * var(--u)) auto 0;
  text-wrap: pretty;
}

.format-cards {
  margin-block-start: var(--section-space);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.format-card {
  --card-padding: calc(20 * var(--u));
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-block-size: calc(340 * var(--u));
  padding: var(--card-padding);
  background: var(--panel);
  transition: background var(--speed) var(--ease);
}

.format-card p {
  margin-block-start: calc(10 * var(--u));
  color: var(--muted);
  font-size: calc(16 * var(--u));
  line-height: 1.2;
}

.card-art {
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  pointer-events: none;
}

.card-art img {
  inline-size: min(100%, calc(430 * var(--u)));
  block-size: auto;
  margin-inline-start: auto;
  transition: filter var(--speed) var(--ease);
}

@media (hover: hover) {
  .format-card:hover { background: #151513; }
  .format-card:hover .card-art img { filter: brightness(1.12); }
}

.palette {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: calc(5 * var(--u));
  margin-block-start: calc(20 * var(--u));
}

.palette li {
  inline-size: calc(30 * var(--u));
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--swatch);
}

.palette li:last-child { border: 1px solid #343433; }

/* Coming soon */
.details { padding-block: var(--section-space); }

.details-intro { padding-inline-end: calc(36 * var(--u)); }
.details-intro p { margin-block-start: calc(26 * var(--u)); }

.detail-list {
  display: grid;
  align-content: start;
  gap: var(--grid-gap);
  min-inline-size: 0;
}

.detail {
  padding: calc(30 * var(--u));
  background: var(--panel);
}

.detail:first-child { background: #151515; }

.detail-preview {
  display: block;
  margin-block-start: calc(10 * var(--u));
  color: #9b9d99;
  font-size: calc(16 * var(--u));
  line-height: 1.2;
  filter: blur(calc(4 * var(--u)));
  opacity: .73;
}

/* Audio */
.music {
  position: fixed;
  z-index: 3;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.music-status {
  max-inline-size: min(240px, calc(100vw - 100px));
  max-block-size: 5rem;
  overflow: hidden;
  padding: 9px 14px;
  border: 1px solid #ffffff1f;
  border-radius: 20px;
  background: #111110f2;
  color: var(--paper);
  font-size: 14px;
  letter-spacing: -.04em;
  animation: audio-status-in var(--speed) var(--ease);
}

.music-status:empty { display: none; }

.music-button {
  inline-size: 51px;
  block-size: 51px;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff3b;
  border-radius: 50%;
  background: #111110e9;
  color: var(--paper);
  cursor: pointer;
  transition: background var(--speed) var(--ease), border-color var(--speed) var(--ease), transform 160ms var(--ease);
}

.music-button:is(:hover, :focus-visible) { background: #211d17; border-color: #ffffff75; }
.music-button:active { transform: scale(.93); }

.music-bars { display: flex; align-items: center; gap: 2px; block-size: 13px; }
.music-bars i { inline-size: 1px; block-size: 5px; background: currentColor; border-radius: 1px; }
.music-bars i:nth-child(2) { block-size: 10px; }
.music-bars i:nth-child(3) { block-size: 7px; }

.music-glyph {
  border-block: 4px solid transparent;
  border-inline-start: 6px solid currentColor;
  inline-size: 0;
  block-size: 0;
}

.music[data-state="playing"] .music-glyph {
  inline-size: 6px;
  block-size: 8px;
  border-block: 0;
  border-inline: 1px solid currentColor;
}

.music[data-state="playing"] .music-bars i { animation: audio-wave 760ms ease-in-out infinite alternate; }
.music[data-state="playing"] .music-bars i:nth-child(2) { animation-delay: -360ms; }
.music[data-state="playing"] .music-bars i:nth-child(3) { animation-delay: -140ms; }
.music[data-state="loading"] .music-button { animation: audio-loading 900ms ease-in-out infinite alternate; }

/* Motion */
[data-intro] .hero-photo img { animation: photo-enter 1350ms var(--ease) both; }
[data-intro] .hero-nav { animation: reveal-fade 700ms 100ms var(--ease) both; }
[data-intro] .hero-wordmark-part { animation: reveal-fade 900ms var(--name-delay) var(--ease) both; }
[data-intro] .hero-wordmark-part--dias { --name-delay: 190ms; }
[data-intro] .hero-wordmark-part--ampersand { --name-delay: 350ms; }
[data-intro] .hero-wordmark-part--darina { --name-delay: 500ms; }
[data-intro] .hero-intro span { animation: reveal-fade 600ms 740ms var(--ease) both; }
[data-intro] .hero-intro span:nth-child(2) { animation-delay: 820ms; }
[data-intro] .hero-intro span:nth-child(3) { animation-delay: 900ms; }
[data-intro] .music { animation: reveal-fade 540ms 820ms var(--ease) both; }

[data-reveal] {
  --reveal-offset: 12px;
  --reveal-speed: 700ms;
  --row-shift: -10px;
}

[data-reveal].waiting { opacity: 0; }
[data-reveal].entering { animation: reveal-rise var(--reveal-speed) var(--reveal-delay, 0ms) var(--ease) both; }
[data-reveal="row"].entering { animation-name: reveal-row; }
[data-reveal="photo"].entering { animation-name: venue-enter; animation-duration: 920ms; }
[data-reveal="detail"].entering { animation-name: reveal-fade; }
[data-reveal="intro"].entering { animation: none; }

[data-reveal="intro"].entering > .section-title {
  animation: reveal-rise var(--reveal-speed) var(--ease) both;
}

[data-reveal="intro"].entering > p {
  animation: reveal-rise var(--reveal-speed) 110ms var(--ease) both;
}

[data-reveal="card"].entering .card-art {
  animation: reveal-fade 680ms calc(var(--reveal-delay, 0ms) + 110ms) var(--ease) both;
}

[data-delay="1"] { --reveal-delay: 75ms; }
[data-delay="2"] { --reveal-delay: 150ms; }
[data-delay="3"] { --reveal-delay: 190ms; }
[data-reveal]:focus-within { opacity: 1; animation: none; }

@keyframes reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(var(--reveal-offset)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-row {
  from { opacity: 0; transform: translateX(var(--row-shift)); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes photo-enter {
  from { opacity: .42; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes venue-enter {
  from { opacity: .48; clip-path: inset(0 5% 0 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@keyframes audio-wave { to { transform: scaleY(.4); } }
@keyframes audio-loading { to { opacity: .55; } }
@keyframes audio-status-in { from { opacity: 0; transform: translateX(5px); } }

/* Narrow layouts */
@media (max-width: 880px) {
  :root { --gutter: clamp(22px, 5.2vw, 48px); --grid-gap: 12px; }

  body { font-size: 17px; letter-spacing: -.055em; }
  .section-title { font-size: clamp(45px, 7.8vw, 62px); line-height: .88; }
  .display { font-size: clamp(29px, 4.6vw, 36px); line-height: 1.02; }

  .hero {
    --hero-height: 880px;
    --hero-bottom: clamp(22px, 8vh, 72px);
  }

  .hero-photo img { object-position: 50% 31%; }
  [data-intro] .hero-photo img { animation-name: reveal-fade; animation-duration: 880ms; }

  [data-reveal] { --reveal-offset: 7px; --reveal-speed: 540ms; }
  [data-reveal="row"].entering { animation-name: reveal-rise; }
  [data-reveal="photo"].entering { animation-name: reveal-fade; animation-duration: 650ms; }

  .hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 35% 0 0;
    background: linear-gradient(to bottom, transparent 12%, #07070758 62%, #070707d4 100%);
    pointer-events: none;
  }

  .hero-nav { inset-block-start: max(25px, env(safe-area-inset-top, 0px)); }
  .hero-brand img { inline-size: clamp(119px, 24vw, 177px); }
  .hero-title { inline-size: 100%; }
  .hero-intro { max-inline-size: 37ch; margin-block-start: 20px; font-size: 17px; line-height: 1.28; text-wrap: pretty; }
  .hero-intro span { display: inline; }
  .hero-intro span:first-child { display: block; }

  .split-grid { grid-template-columns: 1fr; }
  .venue-info { padding-block: 48px 38px; }
  .venue-facts { margin-block-start: 33px; gap: 21px; }
  .fact-row { gap: 7px; padding-block-end: 20px; }
  .fact-action { inline-size: 77px; margin-inline-end: 0; }
  .fact-action img { inline-size: 32px; }
  .countdown { margin-inline-end: 0; }
  .countdown.is-ended dd { font-size: 24px; }
  .venue-photo { min-block-size: 0; aspect-ratio: 1.38; }
  .venue-photo img { object-position: 50% 53%; }

  .format { padding-block: 48px 36px; }
  .format-intro p { max-inline-size: 56ch; margin-block-start: 19px; }
  .format-cards { margin-block-start: 32px; }
  .format-card { --card-padding: 17px; min-block-size: 240px; display: flex; flex-direction: column; }

  .card-art {
    position: static;
    margin: auto calc(-1 * var(--card-padding)) calc(-1 * var(--card-padding));
    padding-block-start: 10px;
  }

  .card-art img { inline-size: min(100%, 300px); }
  .format-card p { font-size: 15px; }
  .palette { gap: 5px; margin-block-start: 14px; }
  .palette li { inline-size: 23px; }

  .details { row-gap: 27px; padding-block: 31px 78px; }
  .details-intro { padding-inline-end: 0; }
  .details-intro p { margin-block-start: 15px; }
  .detail-list { gap: 10px; }
  .detail { padding: 21px; }
  .detail-preview { font-size: 14px; margin-block-start: 9px; }

  .music { inset-block-end: max(13px, env(safe-area-inset-bottom)); inset-inline-end: max(13px, env(safe-area-inset-right)); }
  .music-button { inline-size: 47px; block-size: 47px; }
}

@media (max-width: 615px) {
  .format-cards { grid-template-columns: 1fr; }
  .format-card { --card-padding: 20px; min-block-size: 210px; }
  .format-card[data-delay] { --reveal-delay: 0ms; }
  .format-card p { max-inline-size: 38ch; }
  .venue-photo { aspect-ratio: 1.12; }
}

@media (max-width: 380px) {
  .display { font-size: 28px; }
  .fact-action { inline-size: 64px; }
  .fact-row--time { gap: 12px; }
}

@media (max-height: 540px) {
  .hero { --hero-bottom: 18px; }
  .hero-nav { inset-block-start: max(12px, env(safe-area-inset-top, 0px)); }
  .hero-title { max-inline-size: 265vh; max-inline-size: 265svh; }
  .hero-intro {
    margin-block-start: clamp(10px, 3vh, 18px);
    font-size: clamp(15px, 3.8vh, calc(22 * var(--u)));
    line-height: 1.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .hero-photo { transform: none; }
  [data-reveal].waiting { opacity: 1; }
}
