@font-face {
  font-family: Geist;
  src: url("assets/geist.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Geist, system-ui, sans-serif;
  color: #000;
  background: #fff;
  color-scheme: light;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-block-size: 100vh;
  min-block-size: 100svh;
  position: relative;
  isolation: isolate;
  background: #fff;
}

body::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 58%;
  background: url("assets/padrao-an.png") top right / 72px repeat;
  filter: brightness(0);
  opacity: 0.04;
  mask-image: linear-gradient(to right, transparent, #000);
  -webkit-mask-image: linear-gradient(to right, transparent, #000);
  pointer-events: none;
}

.stage {
  --artwork-width: min(210px, 35svh);
  --logo-width: 100px;
  --title-center: 14.218svh;
  --signature-bottom: clamp(24px, 11.848svh, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(min-content, 1fr) auto minmax(min-content, 1fr);
  justify-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  padding-inline: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  text-align: center;
}

h1 {
  align-self: start;
  margin: max(env(safe-area-inset-top, 0px), calc(var(--title-center) - 0.6em)) 0 16px;
  color: #8a8a8a;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.045em;
  max-inline-size: 100%;
}

.artwork {
  inline-size: var(--artwork-width);
  max-inline-size: 100%;
  aspect-ratio: 1.05;
  overflow: hidden;
}

.artwork img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.signature {
  align-self: end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--logo-width) minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  inline-size: 100%;
  margin-block: 16px max(var(--signature-bottom), env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  line-height: 1;
}

.signature span {
  grid-column: 1;
  justify-self: end;
}

.signature img {
  grid-column: 2;
  display: block;
  inline-size: var(--logo-width);
  block-size: auto;
  filter: brightness(0);
}

@media (min-width: 768px) and (min-height: 481px) {
  .stage { --artwork-width: min(290px, 35svh); --logo-width: 110px; }
  h1 { font-size: 40px; }
  body::before { background-size: 88px; }
}

@media (max-height: 480px) {
  .stage {
    --artwork-width: min(210px, 38svh);
    --logo-width: 80px;
    --title-center: 10svh;
    --signature-bottom: 5svh;
  }
  h1 { font-size: 24px; margin-block-end: 12px; }
  .signature { margin-block-start: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  h1 { animation: appear 700ms ease-out both; }
  .artwork { animation: appear 900ms 100ms ease-out both; }
  .signature { animation: appear 700ms 250ms ease-out both; }
}

@keyframes appear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
