@font-face {
  font-family: "DIN Pro";
  src: url("/assets/DINPro.otf") format("opentype");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "DIN Pro";
  src: url("/assets/DINPro-Bold.otf") format("opentype");
  font-display: swap;
  font-weight: 700;
}

:root {
  color-scheme: dark;
  font-family: "DIN Pro", Arial, sans-serif;
  background: #050607;
  color: #fff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; }

body {
  display: grid;
  place-items: center;
  background: #050607;
}

.portrait-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(100%, 32rem);
  min-height: 100svh;
  padding: max(2.25rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 72% 58%, rgba(0, 119, 139, .25), transparent 42%),
    radial-gradient(circle at 15% 28%, rgba(135, 37, 28, .24), transparent 45%),
    #050708;
}

.portrait-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.36), transparent 24%, transparent 72%, rgba(0,0,0,.42));
}

.intro {
  position: relative;
  z-index: 2;
  padding: 4.2rem 0 1rem;
  text-shadow: 0 2px 16px rgba(0,0,0,.75);
}

.intro h1,
.intro p { margin: 0; }

.intro h1 {
  font-size: clamp(1.45rem, 7vw, 2.2rem);
  line-height: .95;
  font-weight: 700;
}

.intro p {
  margin-top: .18rem;
  font-size: clamp(.9rem, 4vw, 1.25rem);
  line-height: 1.15;
}

.artwork-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: -2rem -1.5rem 0;
}

#artwork {
  width: 121%;
  height: 100%;
  max-height: 70svh;
  object-fit: contain;
  filter: drop-shadow(0 0 1.4rem rgba(239, 81, 226, .22));
}

#artwork-status {
  max-width: 18rem;
  margin: 0;
  color: rgba(255,255,255,.72);
  text-align: center;
  font-size: .9rem;
}

footer {
  display: grid;
  justify-items: center;
  gap: 1.05rem;
  position: relative;
  z-index: 2;
  padding-top: .4rem;
}

.brand { width: 6.8rem; height: auto; }

.download {
  display: grid;
  place-items: center;
  width: 4rem;
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(2, 11, 13, .46);
  color: #fff;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.download:not(:disabled):active { transform: scale(.94); }
.download:not(:disabled):hover { background: rgba(255,255,255,.13); }
.download:disabled { cursor: wait; opacity: .38; }
.download svg { width: 2rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.download-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }

@media (min-width: 40rem) {
  .portrait-shell { min-height: min(100svh, 58rem); }
}
