:root {
  color-scheme: dark;
  background: #060606;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

::selection {
  color: #060606;
  background: #00ff38;
}

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

body { overflow: hidden; background: #060606; }

.landing {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 54% 36%, #2a2a2a 0%, #101010 44%, #060606 100%);
}

.film,
.wash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film {
  z-index: -2;
  display: block;
  object-fit: cover;
  object-position: center;
  background: #101010;
  -webkit-touch-callout: none;
  user-select: none;
}

.wash {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / 18%), transparent 40%, rgb(0 0 0 / 26%));
}

.identity {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: min(470px, calc(100% - 48px));
  transform: translate(-50%, -50%);
  justify-items: center;
}

.logo {
  display: block;
  width: min(388px, 100%);
  height: auto;
  filter: drop-shadow(0 1px 16px rgb(0 0 0 / 16%));
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.statement {
  width: min(360px, 92%);
  margin: clamp(18px, 3vh, 28px) 0 0;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(13px, 1.12vw, 15px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 18px rgb(0 0 0 / 45%);
}

.book-trigger {
  margin-top: 8px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.book-title {
  display: block;
  width: 106px;
  height: auto;
  margin-top: clamp(18px, 2.5vh, 24px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.book-trigger span { margin-left: 0.28em; color: #00ff38; }

.book-trigger:hover,
.book-trigger:focus-visible { color: #00ff38; outline: none; }

mark {
  padding: 0 0.1em;
  color: #060606;
  background: #00ff38;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.footer {
  position: absolute;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: max(20px, env(safe-area-inset-left));
  text-align: center;
}

.footer a {
  color: rgb(255 255 255 / 78%);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.retailers {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  align-items: end;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  visibility: hidden;
  background: rgb(0 0 0 / 48%);
  opacity: 0;
  transition: opacity 220ms ease, visibility 220ms ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.retailers.is-open { visibility: visible; opacity: 1; }

.retailers-panel {
  width: min(840px, 100%);
  margin: 0 auto;
  padding: 20px;
  background: rgb(6 6 6 / 94%);
  border: 1px solid rgb(255 255 255 / 15%);
  transform: translateY(18px);
  transition: transform 220ms ease;
}

.retailers.is-open .retailers-panel { transform: translateY(0); }

.retailers-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.retailers-head p { margin: 0; color: rgb(255 255 255 / 56%); font-family: "SFMono-Regular", Consolas, monospace; font-size: 9px; letter-spacing: 0.12em; }
.close-retailers { width: 24px; height: 24px; padding: 0; border: 0; color: #fff; background: none; font: 25px/1 Arial, sans-serif; cursor: pointer; }

.retailer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }

.retailer-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 20px 30px;
  border: 1px solid rgb(112 208 255 / 58%);
  color: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.retailer-grid a span { color: #75cbff; font-size: 17px; }
.retailer-grid a:hover,
.retailer-grid a:focus-visible { color: #060606; background: #00ff38; border-color: #00ff38; outline: none; }
.retailer-grid a:hover span,
.retailer-grid a:focus-visible span { color: #060606; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .identity { width: min(376px, calc(100% - 40px)); }
  .logo { width: min(310px, 100%); }
  .statement { width: min(312px, 94%); font-size: 13px; line-height: 1.38; }
  .book-trigger { margin-top: 8px; }
  .book-title { width: 100px; margin-top: 18px; }
  .retailers { padding: 12px; }
  .retailers-panel { padding: 14px; }
  .retailer-grid { grid-template-columns: 1fr; gap: 10px; }
  .retailer-grid a { min-height: 58px; padding: 16px 18px; font-size: 12px; }
  .film { object-position: 52% center; }
}

@media (prefers-reduced-motion: reduce) {
  .film { display: none; }
  .landing { background: radial-gradient(circle at 55% 38%, #252525, #060606 68%); }
}
