/* The overpitch holding page. Tokens and materials follow music-frontend/DESIGN.md. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 300 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  --bg: #050505;
  --brand: #F49BDE;
  --ink: #f2f2ef;
  --ink-80: #d6d6d1;
  --ink-70: #c9c9c4;
  --ink-60: #a6a6a1;
  --line: rgba(255, 255, 255, .1);

  --font-sans: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --page-max: 1360px;
  --gutter: clamp(20px, 4vw, 40px);

  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); color: var(--ink); }
html { scrollbar-color: rgba(255, 255, 255, .18) var(--bg); }
body { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: color-mix(in oklch, var(--brand) 42%, transparent); color: #fff; }

.site {
  isolation: isolate;
  /* clip, not hidden: the light reaches past the edges, and the page must not become a scroll box. */
  overflow: clip;
}

/* The first screen. The imprint follows below it, so it only comes into view by scrolling. */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
}

/* --- The light: no album plays here, so the brand's own colour rises from under the wordmark --- */
.light {
  position: absolute;
  z-index: -1;
  left: -12%;
  right: -12%;
  bottom: -30%;
  height: 66%;
  pointer-events: none;
  animation: light-rise 2s var(--ease-out) .15s backwards;
}
.light-bg {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* Hot in the middle and deep at the rim, like a blurred cover, so it reads as light and not as a tint. */
  background: radial-gradient(58% 72% at 58% 62%, var(--brand), #c2438f 58%, #6d1f5c);
  filter: blur(130px) saturate(1.35);
  /* A light colour would wash out the wordmark on top: it glows less. */
  opacity: .46;
  will-change: transform;
  animation: light-drift 26s ease-in-out infinite alternate;
}

/* --- The statement and the line under it --- */
.intro,
.foot,
.imprint {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: end;
  padding-block: clamp(40px, 8vh, 96px) clamp(40px, 5vw, 72px);
}

.title {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 850;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.015em;
  text-transform: uppercase;
}
.word {
  display: inline-block;
  animation: rise 1.1s var(--ease-out) backwards;
}
.word:nth-of-type(1) { animation-delay: .1s; }
.word:nth-of-type(2) { animation-delay: .17s; }
.word:nth-of-type(3) { animation-delay: .24s; }

.copy {
  margin: 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-70);
  text-wrap: pretty;
  animation: rise 1.1s var(--ease-out) .42s backwards;
}

/* --- Rule, year and language, then the wordmark across the content --- */
.foot { padding-bottom: clamp(18px, 2.6vw, 36px); }

.rule {
  height: 1px;
  background: var(--line);
  transform-origin: left;
  animation: draw 1.4s var(--ease-out) backwards;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-60);
  animation: fade 1.2s var(--ease-out) .6s backwards;
}

.meta-end { display: flex; align-items: center; gap: 16px; }
.langs { display: flex; gap: 8px; margin-right: -8px; }
.meta-link {
  /* A comfortable target around small type. */
  padding: 10px 8px;
  border-radius: 999px;
  transition: color .25s;
}
.meta-link:hover, .meta-link[aria-current] { color: var(--ink); }

/* Static by design: logos never move. */
.mark {
  display: block;
  width: 100%;
  height: auto;
  margin-top: clamp(10px, 1.4vw, 20px);
}

/* --- The imprint page: a reading page on the plain ground --- */
.reading {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.bar {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 18px var(--gutter);
}
.bar-home { display: block; border-radius: 4px; }
.bar-home img { display: block; width: auto; height: 26px; }

.imprint {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  padding-block: clamp(56px, 9vw, 136px) clamp(48px, 6vw, 96px);
}
.imprint-title {
  margin: 0;
  /* Sized so the longest word fits its column. */
  font-size: clamp(32px, 5.4vw, 76px);
  font-weight: 850;
  font-stretch: 125%;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  animation: rise 1.1s var(--ease-out) .1s backwards;
}
.imprint-body { display: flex; flex-direction: column; gap: 28px; }
.imprint-part { animation: rise 1.1s var(--ease-out) backwards; }
.imprint-part:nth-child(1) { animation-delay: .24s; }
.imprint-part:nth-child(2) { animation-delay: .31s; }
.imprint-part:nth-child(3) { animation-delay: .38s; }
.imprint-part:nth-child(4) { animation-delay: .45s; }
.imprint-part h2 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-70);
}
.imprint-part p,
.imprint-part address {
  margin: 0;
  font-size: 16px;
  font-style: normal;
  line-height: 1.6;
  color: var(--ink-80);
}
.imprint-part a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, .35);
  text-underline-offset: 3px;
  transition: color .25s, text-decoration-color .25s;
}
.imprint-part a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* --- Motion --- */
@keyframes rise {
  from { opacity: 0; transform: translateY(.45em); filter: blur(10px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes light-rise { from { opacity: 0; transform: translateY(22%); } }
@keyframes light-drift {
  from { transform: translate3d(-5%, 3%, 0) scale(1); }
  to { transform: translate3d(5%, -4%, 0) scale(1.08); }
}

/* Between the two languages the page crossfades instead of cutting. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

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

@media (max-width: 960px) {
  .intro, .imprint { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .title { font-size: 13vw; }
  .imprint-title { font-size: 10.5vw; }
  .light { height: 54%; bottom: -22%; }
  .light-bg { filter: blur(80px) saturate(1.35); opacity: .4; }
}
