:root {
  color-scheme: dark;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: #101828;
  color: #fbfaf6;
}

* { box-sizing: border-box; }

body {
  --accent: #ffd580;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0 clamp(22px, 6vw, 104px);
  overflow: clip;
  background: #151d30 url("cover.webp") 70% 47% / cover no-repeat;
}

body::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #090d17 0%, #0b111de8 27%, #0d152176 59%, #0b111d12 88%),
    linear-gradient(0deg, #090d17bb, transparent 24% 76%, #090d17b8);
  content: "";
}

body:has([data-state="pending"]) { --accent: #cad8ff; }
body:has([data-state="m"]) { --accent: #ffd884; }
body:has([data-state="u"]) { --accent: #e3cef2; }

.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: clamp(72px, 10vw, 94px);
  border-bottom: 1px solid #ffffff30;
}

.brand {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  flex: 0 0 auto;
}

.brand::before {
  width: 40px;
  height: 40px;
  background: url("logo.webp") center / contain no-repeat;
  content: "";
}

.app-link, .primary, .shop-home {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: inherit;
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
}

.app-link {
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: #111;
}

.app-link:hover { background: #e9ecf5; }

main {
  display: flex;
  min-width: 0;
  width: min(100%, 720px);
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(50px, 9vh, 110px) 0;
}

main[data-state="missing"] { width: min(100%, 880px); }

main small {
  display: block;
  margin-bottom: clamp(15px, 4vh, 28px);
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

main small::before {
  display: inline-block;
  width: 20px;
  height: 2px;
  margin: 0 11px .28em 0;
  background: currentColor;
  content: "";
}

h1 {
  max-width: 12ch;
  margin: 0;
  color: #fffdf7;
  font-size: clamp(2.8rem, 7.4vw, 7rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.068em;
  overflow-wrap: break-word;
}

h1 span { display: block; color: var(--accent); }
[data-state="missing"] h1 { max-width: 100%; font-size: clamp(3.1rem, 9.1vw, 8.2rem); }

p {
  max-width: 43ch;
  margin: clamp(18px, 3.7vh, 27px) 0 0;
  color: #e9ecf5;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: clamp(18px, 4vh, 32px);
}

.primary {
  padding: 11px 17px;
  border-radius: 8px;
  background: var(--accent);
  color: #151719;
}

.primary:hover { background: #ffe5aa; }
.shop-home { text-decoration: underline; text-underline-offset: 3px; }

.shop-home[hidden] { display: none; }
a:focus-visible { outline: 2px solid #ffffff; outline-offset: 4px; }

@media (max-width: 620px) {
  body { background-position: 70% 30%; }
  body::before {
    background:
      linear-gradient(0deg, #090d17 4%, #090d17eb 43%, #10172668 76%, #0b111d6b),
      linear-gradient(90deg, #0b111d8f, transparent);
  }
  main { justify-content: flex-end; padding: 72px 0 34px; }
  [data-state="missing"] h1 { font-size: clamp(2.75rem, 10.9vw, 4.2rem); }
}
