/* Look copied from apexsoundlab.com. Artist values live only in the
   first five custom properties below. */
:root {
  --glow: #2F5BFF;
  --link: #A9C2FF;
  --h1: #3B82F6;
  --h2: #FBBF24;
  --h3: #3B82F6;

  --bg: #04061A;
  --text: #EDE9E1;
  --muted: #BEBBC8;
  --faint: #9C99A8;
  --hairline: rgba(237, 233, 225, 0.1);
  --focus: #FFD27A;
}

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

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

/* Header */

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
}

.wordmark {
  font-family: 'Marcellus', serif;
  font-size: 21px;
  text-decoration: none;
}

.site-header nav a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #D6D2E2;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--link);
}

/* Hero: the logo melts into the page over a breathing glow. */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: -8px;
}

.hero__glow {
  position: absolute;
  width: min(70vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(60px);
  opacity: .2;
  animation: breathe 7s ease-in-out infinite;
}

.hero__logo {
  position: relative;
  display: block;
  width: min(88vw, 560px);
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  mask-image: radial-gradient(circle, #000 46%, transparent 70%);
  animation: rise 2s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes breathe {
  0%, 100% { opacity: .2; }
  50% { opacity: .42; }
}

/* Horizon line, drawn once on load. At rest it is fully drawn, so with
   motion turned off it simply shows. */

.horizon {
  display: block;
  overflow: visible;
  width: min(80%, 420px);
  height: auto;
  margin: -24px auto 0;
  fill: none;
}

.horizon path {
  stroke-width: 2;
  stroke-dasharray: 1000;
  filter: drop-shadow(0 0 6px var(--glow));
  animation: draw 2.4s ease-out .8s both;
}

@keyframes draw {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* Sound bars + sentence */

.wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 46px;
  margin: 28px 0 14px;
}

.wave i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--h1), var(--h2), var(--h3));
  transform-origin: center;
  animation: bar 1.9s ease-in-out infinite;
}

@keyframes bar {
  0%, 100% { transform: scaleY(.35); }
  50% { transform: scaleY(1); }
}

.statement {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: 'Marcellus', serif;
  font-size: 30px;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}

/* About, label credit, labelmates */

.about {
  max-width: 620px;
  margin: 88px auto 0;
  padding: 0 24px;
  text-align: center;
}

.about h2 {
  margin: 0 0 16px;
  font-family: 'Marcellus', serif;
  font-weight: 400;
  font-size: 36px;
  line-height: 1.2;
  text-wrap: balance;
}

.about p {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.credit {
  margin: 72px 0 0;
  text-align: center;
}

.label-credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Marcellus', serif;
  font-size: 22px;
  text-decoration: none;
}

.label-credit:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* Gold "A" crest from apexsoundlab.com: dark corners vanish via screen blend. */
.label-credit img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 58%, transparent 74%);
  mask-image: radial-gradient(circle, #000 58%, transparent 74%);
}

.roster {
  margin: 36px 0 0;
  padding: 0 16px;
  text-align: center;
}

.roster__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--faint);
}

.roster a {
  display: inline-block;
  margin: 4px 14px;
  font-weight: 600;
  color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  padding: 32px 16px 36px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.site-footer__email {
  font-family: 'Marcellus', serif;
  font-size: 24px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer__email:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

.site-footer small {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--faint);
}

@media (max-width: 599px) {
  .site-header {
    padding: 18px 16px;
  }

  .statement {
    font-size: 24px;
  }

  .label-credit {
    font-size: 19px;
  }

  .site-footer__email {
    font-size: 20px;
  }
}

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