:root {
  --purple-deep: #2e173a;
  --purple-dark: #40294e;
  --purple-burnt: #5b4964;
  --lilac-dark: #806e85;
  --lavender-aged: #a898aa;
  --paper-lavender: #bab1ba;
  --light-gray: #dbdadb;
  --highlight: #f7f5f6;
  --ink: #111014;
  --background: var(--ink);
  --surface: var(--purple-deep);
  --paper: var(--highlight);
  --muted: var(--lavender-aged);
  --outline: rgba(186, 177, 186, 0.24);
  --accent: var(--paper-lavender);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--paper);
  font-family: "Hanken Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(17, 16, 20, 0.97) 0%,
      rgba(46, 23, 58, 0.86) 42%,
      rgba(64, 41, 78, 0.52) 72%,
      rgba(17, 16, 20, 0.7) 100%
    ),
    linear-gradient(to top, rgba(17, 16, 20, 0.94), transparent 52%),
    url("./assets/botanical-background.png") center / cover no-repeat;
  animation: background-reveal 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.maintenance {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: 30px clamp(24px, 5vw, 72px) 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-family: "Bodoni Moda", serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  animation: fade-down 0.9s 0.1s both;
}

.star {
  position: relative;
  width: 10px;
  height: 10px;
}

.star::before,
.star::after {
  content: "";
  position: absolute;
  background: var(--paper-lavender);
}

.star::before {
  top: 0;
  left: 4.5px;
  width: 1px;
  height: 10px;
}

.star::after {
  top: 4.5px;
  left: 0;
  width: 10px;
  height: 1px;
}

.coordinates {
  position: absolute;
  top: 34px;
  right: clamp(24px, 5vw, 72px);
  display: flex;
  gap: 36px;
  color: rgba(186, 177, 186, 0.62);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  animation: fade-down 0.9s 0.2s both;
}

.message {
  align-self: center;
  width: min(760px, 100%);
  min-width: 0;
  padding: clamp(54px, 8vh, 96px) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--paper-lavender);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.5;
  animation: reveal-up 0.9s 0.25s both;
}

.eyebrow span {
  flex: 0 0 22px;
  height: 1px;
  background: var(--paper-lavender);
}

h1 {
  max-width: 720px;
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(58px, 9vw, 128px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-wrap: balance;
  animation: reveal-up 1.1s 0.35s both;
}

h1 em {
  display: block;
  color: var(--light-gray);
  font-weight: 400;
}

.description {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 300;
  line-height: 1.7;
  animation: reveal-up 1s 0.48s both;
}

.progress {
  width: min(420px, 100%);
  height: 1px;
  margin: 36px 0 30px;
  overflow: hidden;
  background: var(--outline);
  animation: fade-in 0.8s 0.7s both;
}

.progress span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--light-gray),
    var(--lilac-dark),
    rgba(128, 110, 133, 0.16)
  );
  transform-origin: left;
  animation: progress 3.6s 0.8s ease-in-out infinite alternate;
}

.instagram {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px;
  border: 1px solid var(--light-gray);
  background: var(--paper-lavender);
  color: var(--purple-deep);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow:
    0 14px 36px rgba(46, 23, 58, 0.42),
    0 0 0 0 rgba(219, 218, 219, 0);
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  animation: reveal-up 0.9s 0.65s both;
}

.instagram:hover,
.instagram:focus-visible {
  border-color: var(--highlight);
  background: var(--highlight);
  outline: none;
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow:
    0 18px 44px rgba(46, 23, 58, 0.52),
    0 0 0 4px rgba(186, 177, 186, 0.14);
}

.instagram-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.arrow {
  margin-left: 5px;
  font-size: 14px;
}

footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid rgba(186, 177, 186, 0.18);
  color: rgba(186, 177, 186, 0.58);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.2em;
  animation: fade-in 1s 0.85s both;
}

@keyframes background-reveal {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes progress {
  from {
    transform: scaleX(0.18);
  }
  to {
    transform: scaleX(1);
  }
}

@media (max-width: 720px) {
  body::before {
    background:
      linear-gradient(
        to bottom,
        rgba(17, 16, 20, 0.18) 0%,
        rgba(46, 23, 58, 0.28) 34%,
        rgba(46, 23, 58, 0.74) 67%,
        rgba(17, 16, 20, 0.98) 100%
      ),
      linear-gradient(
        90deg,
        rgba(46, 23, 58, 0.58) 0%,
        rgba(64, 41, 78, 0.08) 48%,
        rgba(17, 16, 20, 0.16) 100%
      ),
      url("./assets/botanical-background.png") 76% center / auto 108% no-repeat;
  }

  .maintenance {
    padding: 24px 20px 22px;
  }

  .coordinates {
    display: none;
  }

  .message {
    width: 100%;
    min-width: 0;
    padding: 70px 0 44px;
  }

  .eyebrow {
    align-items: flex-start;
    font-size: 8px;
  }

  .eyebrow span {
    margin-top: 6px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 74px);
    line-height: 0.94;
    max-width: 100%;
  }

  h1 em {
    display: block;
    font-size: 0.88em;
  }

  .description {
    margin-top: 26px;
    font-size: 15px;
  }

  .progress {
    margin: 28px 0 26px;
  }

  .instagram {
    width: 100%;
    justify-content: center;
    min-height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
