﻿:root {
  color-scheme: dark;
  --ink: #171817;
  --bone: #ede7da;
  --acid: #cde64b;
  --gutter: clamp(1.125rem, 4.4vw, 5rem);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ink);
  color: var(--bone);
  font-family: Arial, sans-serif;
}

.masthead {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1.15rem var(--gutter);
  color: #bbb9af;
  text-transform: uppercase;
}

.name {
  font-size: clamp(.75rem, 1.15vw, 1rem);
  font-weight: 900;
  letter-spacing: .09em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .65em;
  color: inherit;
  font: 700 clamp(.65rem, 1.1vw, .8rem)/1.3 ui-monospace, Consolas, monospace;
  letter-spacing: .12em;
}

.status::before {
  content: "";
  width: .45em;
  height: .45em;
  background: currentColor;
  transform: rotate(45deg);
}

.poster {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  isolation: isolate;
}

.type {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.65rem, 3.8vw, 4.5rem);
  min-height: 32rem;
  padding: 4rem var(--gutter);
}

h1, .type p { margin: 0; }

h1 {
  font: 900 clamp(5rem, 13vw, 15rem)/.77 "Arial Black", Arial, sans-serif;
  letter-spacing: -.11em;
  transform: skewX(-9deg);
  transform-origin: left bottom;
  white-space: nowrap;
  text-shadow: .026em .035em var(--ink);
}

h1 span { color: var(--acid); }

.rally {
  color: var(--bone);
  font: 700 italic clamp(1.05rem, 2vw, 2rem)/1.1 Arial, sans-serif;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.art {
  position: absolute;
  inset: clamp(.5rem, 2.5svh, 1.5rem) var(--gutter) 0 47%;
  overflow: hidden;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink), transparent 18%, transparent 88%, var(--ink)),
    linear-gradient(0deg, var(--ink), transparent 12%, transparent 91%, var(--ink));
  pointer-events: none;
}

@media (max-width: 56rem) {
  .poster { grid-template-rows: minmax(0, 1fr) auto; }
  .type {
    display: contents;
  }
  h1 {
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: start;
    margin: 0 0 -.15em var(--gutter);
    font-size: clamp(4rem, 22vw, 10rem);
    pointer-events: none;
  }
  .art {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    min-height: clamp(19rem, 58svh, 34rem);
  }
  .art img { object-position: 50% 55%; }
  .type .rally {
    z-index: 1;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    margin: 2.1rem var(--gutter) 2.75rem;
    font-size: clamp(1rem, 4vw, 1.6rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rally span { display: block; animation: ink-in 380ms ease-out both; }
  @keyframes ink-in {
    from { opacity: 0; transform: translateX(-.25em); }
  }
}
