/* tapitiyo */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-200-800-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plexmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #0b0b16;
  --xerox: #5157ad;
  --haze: #9aa0d6;
  --paper: #edecf5;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--night);
  color: var(--paper);
  font-family: var(--display);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* blurred cover art wash behind everything */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background: url("../images/where-you-are.jpg") center / cover no-repeat;
  filter: blur(70px) brightness(0.45) saturate(1.15);
}

/* grain over the wash */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--grain);
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

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

a { color: inherit; }

:focus-visible {
  outline: 2px dashed var(--paper);
  outline-offset: 3px;
}

/* ---------- ticker ---------- */

.ticker {
  overflow: hidden;
  white-space: nowrap;
  background: var(--xerox);
  border-bottom: 1px solid rgba(237, 236, 245, 0.3);
  padding-block: 0.7rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ticker__track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}
.ticker__track > span { display: inline-block; }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- stage ---------- */

.stage {
  min-height: calc(100svh - 2.6rem);
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vh, 3.5rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.9rem;
}

.wordmark {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.art {
  width: min(100%, 46svh);
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.art img {
  border: 1px solid rgba(237, 236, 245, 0.25);
  box-shadow: 0 34px 100px -20px rgba(81, 87, 173, 0.55);
}

.title {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  font-weight: 800;
  font-variation-settings: "opsz" 96;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.meta {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--haze);
  animation: rise 0.9s 0.24s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.player {
  border: 0;
  border-radius: 12px;
  margin-top: 0.5rem;
  animation: rise 0.9s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--night);
  background: var(--paper);
  border: 1px solid var(--paper);
  padding: 0.95rem 1.7rem;
  transition: background 0.18s ease, color 0.18s ease;
  animation: rise 0.9s 0.34s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.btn:hover {
  background: transparent;
  color: var(--paper);
}

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

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

.footer {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--haze);
  text-align: center;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .wordmark, .art, .title, .meta, .player, .btn { animation: none; }
}
