@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --ink: #11100d;
  --surface: #1e1b15;
  --surface-soft: rgba(37, 32, 23, .78);
  --paper: #f1e9dc;
  --muted: #aaa399;
  --yellow: #f7bd4a;
  --line: rgba(247, 189, 74, .55);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--ink); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Manrope, Arial, sans-serif;
}

a { color: inherit; }

.page {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: clip;
  padding: clamp(18px, 3vw, 42px);
  grid-template-rows: 1fr auto;
  --qr-size: clamp(190px, 25vw, 238px);
  background:
    radial-gradient(ellipse 62% 36% at 50% 0%, rgba(113, 74, 25, .16), transparent 72%),
    linear-gradient(180deg, #15130f 0%, #11100d 66%),
    var(--ink);
}

.hero-art {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  height: min(50vw, 530px);
  min-height: 230px;
  overflow: hidden;
  opacity: .66;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 47%, transparent 97%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 0%, #000 47%, transparent 97%), linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 16, 13, .05) 0%, rgba(17, 16, 13, .24) 52%, rgba(17, 16, 13, .83) 100%),
    linear-gradient(90deg, rgba(17, 16, 13, .48), transparent 24% 76%, rgba(17, 16, 13, .48));
  content: "";
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(.74) contrast(.9) brightness(.76);
}

.content {
  position: static;
  grid-row: 1;
  width: 100%;
  text-align: center;
}

.brand {
  position: absolute;
  z-index: 1;
  top: clamp(28px, 5vh, 58px);
  left: 50%;
  width: min(100% - 48px, 580px);
  transform: translateX(-50%);
}

h1 {
  margin: 0;
  color: #fff9ee;
  font-family: Unbounded, Arial, sans-serif;
  font-size: clamp(1.75rem, 4.6vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: 1.12;
}

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

.tagline {
  margin: 12px 0 0;
  color: rgba(241, 233, 220, .77);
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 600;
}

.entry {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: block;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.qr-frame {
  position: relative;
  display: grid;
  width: var(--qr-size);
  aspect-ratio: 1;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #f5ede0;
  box-shadow: 0 0 0 7px rgba(247, 189, 74, .055), 0 18px 48px rgba(0, 0, 0, .37);
  transition: transform .22s ease, box-shadow .22s ease;
}

.entry:hover .qr-frame,
.entry:focus-visible .qr-frame {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 0 0 7px rgba(247, 189, 74, .12), 0 24px 58px rgba(0, 0, 0, .48);
}

.qr { display: block; width: 100%; height: 100%; }

.qr-mark {
  position: absolute;
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #f5ede0;
  border-radius: 13px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: -.08em;
}

.qr-corner {
  position: absolute;
  width: 23px;
  height: 23px;
  border-color: var(--yellow);
  border-style: solid;
  pointer-events: none;
}

.corner-one { top: -7px; left: -7px; border-width: 2px 0 0 2px; border-radius: 8px 0 0; }
.corner-two { right: -7px; bottom: -7px; border-width: 0 2px 2px 0; border-radius: 0 0 8px; }

.scan-copy {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 600;
}

.cta {
  position: absolute;
  z-index: 1;
  top: calc(50% + (var(--qr-size) / 2) + 55px);
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 330px);
  min-height: 58px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid #ffcf70;
  border-radius: 18px;
  background: var(--yellow);
  box-shadow: 0 7px 0 #b87917, 0 15px 32px rgba(0, 0, 0, .35);
  color: #20170b;
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  transform: translateX(-50%);
  transition: transform .16s ease, box-shadow .16s ease;
}

.cta:hover,
.cta:focus-visible { transform: translate(-50%, -2px); box-shadow: 0 9px 0 #b87917, 0 18px 36px rgba(0, 0, 0, .42); }
.cta:active { transform: translate(-50%, 5px); box-shadow: 0 2px 0 #b87917, 0 7px 16px rgba(0, 0, 0, .33); }

footer {
  z-index: 1;
  align-self: end;
  padding-top: 20px;
  color: rgba(241, 233, 220, .37);
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-align: center;
}

@media (max-width: 560px) {
  .page { padding: 17px 24px 14px; }
  .hero-art { height: 310px; min-height: 0; opacity: .69; -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 95%), linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 95%), linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
  .hero-art img { object-position: center top; }
  .brand { top: 28px; width: min(100% - 36px, 500px); }
  .page { --qr-size: min(62vw, 228px); }
  .cta { top: calc(50% + (var(--qr-size) / 2) + 55px); width: min(100% - 48px, 330px); }
  footer { font-size: .68rem; }
}

@media (max-height: 700px) and (min-width: 561px) {
  .brand { top: 24px; }
  .page { --qr-size: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
