/* kolja.com.br: Kölja Records (the record, red) and Kölja Games (black). */

:root {
  --red: #a8302a;
  --cream: #f4ecdd;
  --cream-2: #ecdcc7;
  --ink: #12110f;
  --night: #0b0a09;
  --bone: #efe9dd;
  --bone-2: #b8b1a4;
  --ember: #e8603f;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --gutter: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--night); }
body { background: var(--night); color: var(--bone); font: 400 17px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ header */
.top {
  position: absolute; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter); color: var(--cream);
}
.top__mark img { width: clamp(100px, 9vw, 136px); height: auto; }
.top__nav { display: flex; gap: clamp(16px, 2.6vw, 34px); }
.top__nav a {
  font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top__nav a:hover { border-color: currentColor; }

/* ------------------------------------------------------------------ music */
.music {
  --D: min(52vw, 96svh, 1100px);
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--D); column-gap: clamp(28px, 4vw, 72px); align-items: start;
  padding: clamp(104px, 13svh, 132px) calc(var(--D) * .075) clamp(48px, 7svh, 88px) var(--gutter);
  background: var(--red); color: var(--cream);
  overflow: clip;
}
.music::before { /* paper grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("grain.png"); opacity: .08; mix-blend-mode: multiply;
}
.music__copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.music__name { font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-2); }
.music__slogan { font: 700 clamp(40px, 4.6vw, 76px)/.95 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.music__slogan em { font-weight: 400; }
.music.has-player .music__slogan { display: none; }

/* now playing */
.player {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 10px; min-width: 0;
  container-type: inline-size; scroll-margin: 14px;
  background: rgba(18, 17, 15, .28); border: 1px solid rgba(244, 236, 221, .22);
  animation: rise .5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.player__screen { /* the card's width, 16:9, never under YouTube's 200px minimum height */
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000;
}
@supports (height: 1cqw) { .player__screen { aspect-ratio: auto; height: max(200px, 100cqw * 9 / 16); } }
.player__screen iframe, .player__screen > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 2px; }
.player__now { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.player__title { font: 700 18px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__artist { font: italic 400 15px/1.3 var(--serif); color: var(--cream-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player__controls { display: flex; align-items: center; gap: 6px; flex: none; }
.player__btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(244, 236, 221, .35); transition: background-color .2s, border-color .2s; }
.player__btn:hover { border-color: var(--cream); }
.player__btn svg { width: 15px; height: 15px; fill: currentColor; }
.player__btn--main { width: 42px; height: 42px; background: var(--cream); color: var(--red); border-color: var(--cream); }
.player__btn--main svg { width: 17px; height: 17px; }
.player__btn--main .i-play, .player.is-playing .player__btn--main .i-pause { display: block; }
.player__btn--main .i-pause, .player.is-playing .player__btn--main .i-play { display: none; }
.player__time { min-width: 5.6em; text-align: right; font: 500 13px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--cream-2); }
.player__hint { font-size: 14px; color: var(--cream); padding: 0 4px 4px; }
.player__hint a { font-weight: 600; }

/* the tracklist */
.tracks { list-style: none; border-top: 1px solid rgba(244, 236, 221, .3); }
.tracks li { border-bottom: 1px solid rgba(244, 236, 221, .3); }
.track {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 9px 10px 9px 4px; transition: background-color .25s, padding .35s var(--ease);
}
.track__no { flex: none; width: 1.6em; font: 600 13px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--cream-2); }
.track__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.track__title { font: 700 clamp(18px, 1.35vw, 23px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.track__by { font: italic 400 15px/1.25 var(--serif); color: var(--cream-2); }
.track__meta { flex: none; font: 600 12px/1 var(--ui); font-stretch: 108%; letter-spacing: .08em; color: var(--cream-2); font-variant-numeric: tabular-nums; }
.track__state { flex: none; width: 18px; height: 16px; position: relative; opacity: 0; transition: opacity .2s; }
.track__state::before { /* play triangle */
  content: ""; position: absolute; left: 3px; top: 1px; border-style: solid; border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--cream);
}
.track:focus-visible, .track.is-cued { background: rgba(18, 17, 15, .2); padding-left: 12px; }
.track:focus-visible .track__state, .track.is-cued .track__state, .track.is-current .track__state { opacity: 1; }
@media (hover: hover) {
  .track:hover { background: rgba(18, 17, 15, .2); padding-left: 12px; }
  .track:hover .track__state { opacity: 1; }
}
.track.is-current { background: rgba(18, 17, 15, .28); }
.track.is-current .track__no { color: var(--cream); }
.track.is-current.is-playing .track__state::before { /* equaliser */
  border: 0; left: 0; top: 0; width: 3px; height: 100%; background: var(--cream);
  box-shadow: 5px 0 0 var(--cream), 10px 0 0 var(--cream), 15px 0 0 var(--cream);
  transform-origin: bottom; animation: eq .9s ease-in-out infinite;
}
.track.is-current:not(.is-playing) .track__state::before { /* paused */
  border: 0; left: 3px; top: 1px; width: 4px; height: 14px; background: var(--cream); box-shadow: 7px 0 0 var(--cream);
}
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }

.music__more {
  align-self: flex-start; font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--cream);
}
.music__more span { display: inline-block; transition: transform .3s var(--ease); }
.music__more:hover span { transform: translateX(6px); }

/* ------------------------------------------------------------------ the record */
.deck {  /* stays in view while the list below the player scrolls */
  position: sticky; top: max(16px, calc((100svh - var(--D)) / 2)); width: var(--D); aspect-ratio: 1; align-self: start;
  animation: deck-in 1.4s var(--ease) .1s both;
}
@keyframes deck-in { from { opacity: 0; transform: translateX(10%); } }
.deck::before { content: ""; position: absolute; inset: -16%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(18, 17, 15, .36) 0 36%, rgba(18, 17, 15, 0) 70%); }
.disc { position: absolute; inset: 0; border-radius: 50%; cursor: pointer; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .034) 0 .6px, rgba(0, 0, 0, 0) 1.1px 2.4px),
    radial-gradient(circle at 50% 50%, #0d0d0d 0 60%, #101010 80%, #0b0b0b 100%);
  box-shadow:
    0 calc(var(--D) * .03) calc(var(--D) * .06) rgba(0, 0, 0, .45),
    0 calc(var(--D) * .008) calc(var(--D) * .012) rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(255, 255, 255, .1),
    inset 0 0 0 calc(var(--D) * .006) #0a0a0a;
}
.bands { position: absolute; inset: 0; width: 100%; height: 100%; }
.bands .gap { fill: none; stroke: #0b0b0b; }
.bands .gap-edge { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.bands .smooth { fill: none; stroke: #0e0e0e; }
.bands .band-hi { fill: none; stroke: rgba(255, 244, 228, .075); opacity: 0; transition: opacity .35s; }
.bands .band-hi.is-on { opacity: 1; }
.spin { position: absolute; inset: 0; border-radius: 50%; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.etch { position: absolute; inset: 0; width: 100%; height: 100%; }
.etch text { font: 500 11px var(--ui); font-stretch: 90%; letter-spacing: .32em; fill: rgba(255, 255, 255, .15); }
.label {
  position: absolute; left: 33.5%; top: 33.5%; width: 33%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 calc(var(--D) * .004) rgba(0, 0, 0, .6);
}
.label__base { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #f8f1e4 0 55%, #efe4d1 100%); color: var(--red); }
.label__logo { position: absolute; left: 50%; top: 20%; width: 32%; height: auto; transform: translateX(-50%); }
.label__rpm { position: absolute; left: 0; right: 0; top: 64%; text-align: center; font: 600 calc(var(--D) * .016)/1 var(--ui); letter-spacing: .12em; }
.label__art {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  opacity: 0; transform: scale(1.14); transition: opacity .45s, transform .9s var(--ease);
}
.label.has-art .label__art { opacity: 1; transform: scale(1.08); }
.label__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.label__ring text { font: 700 13.5px var(--ui); font-stretch: 112%; letter-spacing: .08em; fill: var(--red); }
.label__band { fill: none; stroke: rgba(10, 10, 10, .66); stroke-width: 24; opacity: 0; transition: opacity .4s; }
.label.has-art .label__band { opacity: 1; }
.label.has-art .label__ring text { fill: var(--cream); }
.sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 200deg at 50% 50%,
    rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, .11) 22deg, rgba(255, 255, 255, .02) 44deg,
    rgba(255, 255, 255, 0) 90deg, rgba(255, 255, 255, 0) 180deg,
    rgba(255, 255, 255, .08) 202deg, rgba(255, 255, 255, .015) 226deg, rgba(255, 255, 255, 0) 270deg);
  -webkit-mask: radial-gradient(circle, transparent 0 33.4%, #000 33.8% 99.4%, transparent 99.7%);
          mask: radial-gradient(circle, transparent 0 33.4%, #000 33.8% 99.4%, transparent 99.7%);
  filter: blur(calc(var(--D) * .006));
}
.hole {
  position: absolute; left: 50%; top: 50%; width: 2.6%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fbf8f2 0 18%, #bdb6aa 45%, #6b665d 100%);
  box-shadow: 0 0 0 calc(var(--D) * .003) rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .5);
}
.arm { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.deck__tag {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none;
  padding: 7px 12px; border-radius: 999px; background: var(--cream); color: var(--red);
  font: 700 12px/1 var(--ui); font-stretch: 110%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)); transition: opacity .2s;
}
.deck__tag.is-on { opacity: 1; }
@media (hover: none) { .deck__tag { display: none; } }

/* ------------------------------------------------------------------ games */
.games { position: relative; padding: clamp(80px, 10vw, 140px) var(--gutter) clamp(64px, 8vw, 110px); background: var(--night); color: var(--bone); }
.games__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 56px); }
.games__name img { width: clamp(200px, 22vw, 320px); height: auto; }
.games__more {
  font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--bone);
}
.games__more span { display: inline-block; transition: transform .3s var(--ease); }
.games__more:hover span { transform: translateX(6px); }
.gamelist { list-style: none; border-top: 1px solid rgba(239, 233, 221, .16); }
.gamelist li { border-bottom: 1px solid rgba(239, 233, 221, .16); }
.game {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15em) 9em; align-items: center; column-gap: 32px;
  padding: clamp(14px, 1.6vw, 22px) 0; text-decoration: none;
}
.game__thumb { display: none; }
.game__title {
  font: 900 clamp(40px, 6.2vw, 100px)/.9 var(--display); text-transform: uppercase; letter-spacing: -.005em;
  transition: color .25s, transform .45s var(--ease);
}
.game__genre { font-size: 16px; color: var(--bone-2); }
.game__status { justify-self: end; font: 600 12px/1 var(--ui); font-stretch: 110%; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-2); }
.game__status--out { color: var(--ember); }
.game__note { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; color: var(--bone-2); }
.game:hover .game__title, .game:focus-visible .game__title { color: var(--ember); transform: translateX(14px); }
.games__preview {
  position: fixed; left: 0; top: 0; z-index: 10; width: clamp(260px, 24vw, 380px); aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: 6px; pointer-events: none; box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  opacity: 0; transform: translate(var(--px, -999px), var(--py, -999px)) rotate(-3deg) scale(.94);
  transition: opacity .25s, transform .18s var(--ease);
}
.games__preview.is-on { opacity: 1; transform: translate(var(--px), var(--py)) rotate(-3deg); }
@media (hover: none) { .games__preview { display: none; } }

/* ------------------------------------------------------------------ tv */
.tv { background: var(--night); color: var(--bone); padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.tv__link {
  --amber: #ffb000;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "air name more" "air line more";
  align-items: center; column-gap: clamp(20px, 3vw, 44px); row-gap: 6px;
  padding: clamp(22px, 2.6vw, 34px) clamp(20px, 2.6vw, 36px); text-decoration: none;
  border: 1px solid rgba(239, 233, 221, .16); border-radius: 6px;
  background: radial-gradient(ellipse at 0% 0%, rgba(255, 176, 0, .10), transparent 60%);
  transition: border-color .25s;
}
.tv__link:hover, .tv__link:focus-visible { border-color: var(--amber); }
.tv__air {
  grid-area: air; display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--ui); font-stretch: 110%; letter-spacing: .1em; text-transform: uppercase; color: var(--amber);
}
.tv__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px var(--amber); animation: tv-blink 1.6s steps(2, jump-none) infinite; }
@keyframes tv-blink { 50% { opacity: .25; } }
.tv__name { grid-area: name; font: 900 clamp(34px, 4.6vw, 72px)/.9 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tv__name b { display: inline-block; vertical-align: middle; margin-left: .3em; padding: .12em .3em .06em; font-size: .42em; letter-spacing: .06em; background: var(--amber); color: var(--ink); }
.tv__line { grid-area: line; font-size: 16px; color: var(--bone-2); }
.tv__more {
  grid-area: more; font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid var(--bone); white-space: nowrap;
}
.tv__more span { display: inline-block; transition: transform .3s var(--ease); }
.tv__link:hover .tv__more span { transform: translateX(6px); }
@media (max-width: 720px) {
  .tv__link { grid-template-columns: minmax(0, 1fr); grid-template-areas: "air" "name" "line" "more"; row-gap: 10px; }
  .tv__more { justify-self: start; margin-top: 6px; }
}

/* ------------------------------------------------------------------ footer */
.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 36px;
  padding: 40px var(--gutter) 44px; border-top: 1px solid rgba(239, 233, 221, .16); background: var(--night); color: var(--bone);
}
.foot__mail { font: 700 clamp(22px, 2.4vw, 32px)/1.1 var(--serif); text-decoration: none; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
.foot__social { font: 600 13px/1 var(--ui); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.foot__social:hover { text-decoration: underline; }
.foot__fine { margin-left: auto; font-size: 13px; color: var(--bone-2); }

/* ------------------------------------------------------------------ smaller screens */
@media (max-width: 1100px) {
  .music {
    --D: min(calc((100vw - 2 * var(--gutter)) / 1.07), 600px);
    grid-template-columns: minmax(0, 1fr); row-gap: 28px;
    padding: 96px var(--gutter) 56px;
  }
  .deck { order: -1; justify-self: center; position: relative; top: 0; }
  .music__copy { max-width: none; }
  .game { grid-template-columns: 64px minmax(0, 1fr) auto; column-gap: 16px; row-gap: 4px; }
  .game__thumb { display: block; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
  .game__title { font-size: clamp(30px, 8vw, 56px); }
  .game__genre { grid-column: 2; grid-row: 2; font-size: 14px; }
  .game__status { grid-column: 3; grid-row: 1 / span 2; }
  .game__note { grid-column: 2 / -1; margin-top: 2px; }
  .game:hover .game__title { transform: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .top__nav { gap: 14px; }
  .top__nav a { font-size: 12px; letter-spacing: .07em; }
  .nav-long { display: none; }
  .track__meta { display: none; }
  .game { grid-template-columns: 56px minmax(0, 1fr); }
  .game__thumb { width: 56px; height: 56px; grid-row: 1 / span 3; }
  .game__status { grid-column: 2; grid-row: 3; justify-self: start; margin-top: 4px; }
  .game__note { grid-column: 2; grid-row: 4; }
  .foot__fine { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .top { gap: 12px; }
  .top__nav { gap: 10px; }
  .top__nav a { font-size: 11.5px; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
.tv__link + .tv__link { margin-top: 14px; }
@media (max-width: 460px) { .top__nav .nav-app { display: none; } }
