:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  --paper: #f2f0ed;
  color: var(--paper);
  background: #101010;
}
* { box-sizing: border-box; }
body { margin: 0; }
.mockup {
  position: relative;
  isolation: isolate;
  min-height: 560px;
  height: 100vh;
  height: 100svh;
  background:
    linear-gradient(to bottom, #09090b80, transparent 9%, transparent 91%, #09090b80),
    #101010 url("desktop-paper.webp") center / 100% 100% no-repeat;
  text-align: center;
}
.mobile-paper { display: none; }
.brand, .actions, .site-footer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.brand { top: 10.8%; width: min(90%, 590px); }
.brand img { display: block; height: clamp(122px, 25svh, 320px); width: auto; margin: auto; }
.brand h1 { margin: clamp(8px, 1.7svh, 19px) 0 0; }
.brand h1 img { width: clamp(170px, 22vw, 440px); height: auto; }
.tagline { margin: .48em 0 0; font-size: clamp(.71rem, 1.7svh, 1.02rem); letter-spacing: .2em; }
.actions {
  top: 50.8%;
  width: min(76.5vw, 300px);
  display: grid;
  container-type: inline-size;
  gap: 13px;
}
.site-footer { top: 83%; width: max-content; }
.origin { margin: 0 0 2px; font-size: clamp(.72rem, 1.8svh, 1rem); font-style: italic; letter-spacing: .15em; }
.socials { display: flex; justify-content: center; gap: 5px; }
.socials a { color: white; display: grid; place-items: center; width: 44px; height: 44px; }
.socials a:hover { opacity: .72; }
.socials svg { width: 24px; height: 24px; }
button:focus-visible, a:focus-visible { outline: 2px solid white; outline-offset: 3px; }
@media (max-width: 650px), (orientation: portrait) {
  :root {
    background: #0a0a0a;
    overscroll-behavior-y: none;
  }
  .mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: clamp(32px, 12svh, 120px) 0 clamp(24px, 6svh, 60px);
    padding-block-start: max(clamp(32px, 12svh, 120px), calc(env(safe-area-inset-top) + 14px));
    padding-block-end: max(clamp(24px, 6svh, 60px), calc(env(safe-area-inset-bottom) + 12px));
    background: transparent;
  }
  .mobile-paper {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: fill;
    -webkit-mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 55%) 24px, black 56px, black calc(100% - 56px), rgb(0 0 0 / 55%) calc(100% - 24px), transparent);
    mask-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 55%) 24px, black 56px, black calc(100% - 56px), rgb(0 0 0 / 55%) calc(100% - 24px), transparent);
    pointer-events: none;
  }
  .brand, .actions, .site-footer {
    position: static;
    transform: none;
  }
  .brand img { height: clamp(108px, 24svh, 270px); max-width: 65vw; object-fit: contain; }
  .brand h1 { margin-top: clamp(13px, 2.4svh, 24px); }
  .brand h1 img { width: clamp(150px, 51vw, 340px); }
  .tagline { font-size: clamp(.68rem, 2.65vw, .96rem); letter-spacing: .15em; }
  .actions { margin-block-start: clamp(23px, 5.4svh, 56px); }
  .site-footer { margin-block-start: auto; padding-block-start: clamp(26px, 5svh, 54px); }
}
@media (min-width: 651px) and (orientation: landscape) and (max-height: 610px) {
  .brand > img { height: 140px; }
  .site-footer { top: 85%; }
}
.glass-dialog {
  width: min(490px, calc(100% - 32px));
  max-height: calc(100% - max(32px, env(safe-area-inset-top) + env(safe-area-inset-bottom)));
  padding: clamp(22px, 6vw, 34px) clamp(18px, 5vw, 34px) clamp(24px, 6vw, 36px);
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 4% 0%, #347cb633, transparent 36%) padding-box,
    radial-gradient(ellipse at 100% 100%, #209fff26, transparent 37%) padding-box,
    linear-gradient(150deg, #151b22e8, #0b0e13ed 58%, #101820df) padding-box,
    url("paper-grain.webp") center / 350px padding-box,
    linear-gradient(140deg, #abe3ff, #61717c 26%, #545760 76%, #8bd6ff) border-box;
  color: var(--paper);
  text-align: center;
  box-shadow: 0 14px 54px #000b, -3px -3px 18px #48b8ff2d, 3px 3px 17px #48b8ff22;
}
.glass-dialog::backdrop {
  background: #070c14bb;
  backdrop-filter: blur(2px);
}
.glass-dialog-logo { display: block; width: 76px; height: auto; margin: 0 auto 12px; }
.glass-dialog h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 6.1vw, 2.4rem);
  font-style: italic;
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}
.glass-dialog p {
  max-width: 39ch;
  margin: 0 auto 25px;
  color: #d1d5da;
  line-height: 1.52;
}
.glass-dialog-action { width: min(100%, 340px); margin: auto; container-type: inline-size; }
.glass-dialog-action .glass-button { font-size: clamp(10px, 4cqw, 15px); }
.glass-dialog .close {
  position: absolute;
  inset: 8px 8px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.glass-dialog .close:hover { background: #ffffff14; }
.cross { width: .62em; height: .85em; vertical-align: -.03em; }


.wordmark {
  position: relative;
  display: block;
  width: fit-content;
  margin-inline: auto;
}
.wordmark-fire { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .wordmark-fire {
    --wordmark-mask: url("title-desktop.webp");
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    background: url("title-fire.svg?v=blue") center / 100% 100% no-repeat;
    -webkit-mask: var(--wordmark-mask) center / 100% 100% no-repeat;
    mask: var(--wordmark-mask) center / 100% 100% no-repeat;
  }
}
@media (max-width: 650px), (orientation: portrait) {
  .wordmark-fire { --wordmark-mask: url("title-mobile.webp"); }
}

@media (prefers-reduced-motion: no-preference) {
  .mockup::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
      radial-gradient(ellipse closest-side, #287eff36, #1457bb19 54%, transparent),
      radial-gradient(ellipse closest-side, #58bfff21, transparent);
    background-repeat: no-repeat;
    background-size: 78% 73%, 66% 64%;
    mix-blend-mode: screen;
    animation: paper-light 15s ease-in-out infinite alternate;
  }
}
@keyframes paper-light {
  0% { background-position: 0% 5%, 100% 85%; opacity: .65; }
  52% { background-position: 77% 37%, 19% 100%; opacity: 1; }
  100% { background-position: 100% 84%, 8% 12%; opacity: .79; }
}
