:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #080808;
  color: #f5f3ef;
  font-optical-sizing: auto;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgb(111 0 15 / 13%), transparent 44%),
    #080808;
}

.landing {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(22px, 5vw, 72px) 25px;
  overflow: hidden;
}

.topline,
.footer {
  display: flex;
  width: min(100%, 1120px);
  align-items: center;
  color: #85827e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topline-location {
  margin-left: auto;
}

.email-link {
  color: inherit;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: none;
}

.email-link:hover,
.email-link:focus-visible {
  color: #f5f3ef;
}

.email-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

.announcement {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  padding: 22px 0 36px;
  text-align: center;
}

.logo-glitch {
  position: relative;
  width: min(68vw, 390px);
  margin-bottom: clamp(24px, 4vh, 40px);
  aspect-ratio: 1;
}

.logo-glitch__image,
.logo-glitch__layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.logo-glitch__image {
  object-fit: contain;
}

.logo-glitch__layer {
  background: url("./public/soberclub-logo.png") center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
  animation: glitch 5s infinite steps(1, end);
}

.logo-glitch__layer--red {
  filter: sepia(1) saturate(8) hue-rotate(310deg);
  animation-delay: 1.2s;
}

.logo-glitch__layer--white {
  filter: grayscale(1) brightness(1.7);
  animation-delay: 3.6s;
}

.eyebrow {
  margin: 0 0 15px;
  color: #ed192c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 58px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.coming-soon {
  margin: 19px 0 0;
  color: #a7a29c;
  font-size: clamp(14px, 1.8vw, 17px);
  letter-spacing: 0.12em;
}

.coming-soon span {
  color: #ed192c;
}

.instagram-link {
  margin-top: 26px;
  color: #85827e;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 180ms ease;
}

.instagram-link span {
  color: #f5f3ef;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  color: #ed192c;
}

.instagram-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.footer {
  justify-content: center;
  gap: 13px;
}

.footer-mark {
  color: #ed192c;
  font-size: 14px;
}

@keyframes glitch {
  0%,
  91%,
  93%,
  97%,
  100% {
    clip-path: inset(50%);
    opacity: 0;
    transform: translate(0);
  }

  92% {
    clip-path: inset(18% 0 68%);
    opacity: 0.75;
    transform: translate(5px, -2px);
  }

  94% {
    clip-path: inset(58% 0 22%);
    opacity: 0.65;
    transform: translate(-4px, 2px);
  }

  96% {
    clip-path: inset(38% 0 48%);
    opacity: 0.7;
    transform: translate(3px, 1px);
  }
}

@media (max-height: 700px) {
  .logo-glitch {
    width: min(48vh, 310px);
  }

  .announcement {
    padding-block: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-glitch__layer {
    animation: none;
    opacity: 0;
  }
}
