:root {
  --paper: #f5f2ed;
  --ink: #171318;
  --muted: #625b62;
  --purple: #72267d;
  --green: #82a821;
  --pink: #cf2d83;
  --orange: #e88b30;
  --blue: #3e8dc4;
  --line: rgba(23, 19, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 14%, rgba(62, 141, 196, 0.13), transparent 28rem),
    radial-gradient(circle at 14% 88%, rgba(232, 139, 48, 0.11), transparent 30rem),
    var(--paper);
  font-family: Manrope, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(23, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 19, 24, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  color: #fff;
  background: var(--purple);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.maintenance-page {
  width: min(1480px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 48px) clamp(22px, 6vw, 88px) 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.maintenance-header {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 150px;
  height: auto;
  display: block;
}

.maintenance-content {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: clamp(44px, 7vw, 112px);
  align-items: center;
  padding: clamp(38px, 6vh, 86px) 0;
}

.message {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  width: 64px;
  height: 6px;
  margin-right: 14px;
  display: inline-block;
  vertical-align: 0.12em;
  background: linear-gradient(90deg, var(--green) 0 20%, var(--pink) 20% 40%, var(--orange) 40% 60%, var(--blue) 60% 80%, var(--purple) 80%);
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  font-weight: 750;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

.introduction {
  max-width: 610px;
  margin: clamp(28px, 4vw, 48px) 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.65;
}

.status {
  width: fit-content;
  margin-top: 28px;
  padding: 11px 16px 11px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(114, 38, 125, 0.22);
  color: var(--purple);
  background: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  font-weight: 750;
}

.status-mark {
  width: 29px;
  height: 18px;
  display: inline-flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.status-mark i {
  width: 4px;
  height: 8px;
  display: block;
  background: currentColor;
  animation: working 1.15s ease-in-out infinite alternate;
}

.status-mark i:nth-child(2) {
  height: 15px;
  animation-delay: -0.38s;
}

.status-mark i:nth-child(3) {
  height: 11px;
  animation-delay: -0.72s;
}

.themes {
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  list-style: none;
}

.themes li {
  padding: 8px 11px;
  border-left: 3px solid var(--blue);
  color: #393239;
  background: rgba(255, 255, 255, 0.44);
  font-size: 0.83rem;
  font-weight: 700;
}

.themes li:nth-child(2) {
  border-color: var(--pink);
}

.themes li:nth-child(3) {
  border-color: var(--green);
}

.contact {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.contact a {
  display: inline-block;
  color: var(--ink);
  font-weight: 750;
  text-underline-offset: 4px;
}

.contact a:hover {
  color: var(--purple);
}

.contact a:focus-visible {
  outline: 3px solid rgba(62, 141, 196, 0.45);
  outline-offset: 4px;
}

.book-scene {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1.08;
  justify-self: center;
  display: grid;
  place-items: center;
  perspective: 1300px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(114, 38, 125, 0.15);
  border-radius: 50%;
}

.orbit-one {
  width: 88%;
  aspect-ratio: 1;
}

.orbit-two {
  width: 68%;
  aspect-ratio: 1;
  border-color: rgba(62, 141, 196, 0.18);
}

.book {
  position: relative;
  width: 88%;
  aspect-ratio: 1.45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: rotate(-5deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: breathe 5.5s ease-in-out infinite;
}

.book-shadow {
  position: absolute;
  inset: 13% 3% -3%;
  z-index: -1;
  background: rgba(23, 19, 24, 0.25);
  filter: blur(24px);
  transform: translateY(22px) scale(0.95);
}

.page {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 24, 0.09);
  background: #fff;
  box-shadow: 0 18px 38px rgba(23, 19, 24, 0.11);
}

.page-left {
  padding: 20% 13%;
  transform: rotateY(7deg);
  transform-origin: right center;
}

.page-left span {
  width: 76%;
  height: 3px;
  margin-bottom: 12%;
  display: block;
  background: rgba(23, 19, 24, 0.12);
}

.page-left span:nth-child(2) {
  width: 58%;
}

.page-left span:nth-child(3) {
  width: 82%;
}

.page-left span:nth-child(4) {
  width: 48%;
}

.page-right {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #f6f4f0);
  transform: rotateY(-7deg);
  transform-origin: left center;
}

.book-fold {
  position: absolute;
  top: 1%;
  bottom: 1%;
  left: 50%;
  width: 2px;
  z-index: 3;
  background: rgba(23, 19, 24, 0.14);
  box-shadow: -5px 0 12px rgba(23, 19, 24, 0.12), 5px 0 12px rgba(23, 19, 24, 0.08);
}

.sign-window {
  position: relative;
  width: 54%;
  aspect-ratio: 1;
  border: 2px solid rgba(114, 38, 125, 0.22);
  background: rgba(114, 38, 125, 0.06);
}

.sign-head {
  position: absolute;
  top: 15%;
  left: 42%;
  width: 18%;
  aspect-ratio: 1;
  border: 3px solid var(--purple);
  border-radius: 50%;
}

.sign-body {
  position: absolute;
  top: 38%;
  left: 30%;
  width: 42%;
  height: 38%;
  border: 3px solid var(--purple);
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
}

.sign-hand {
  position: absolute;
  top: 48%;
  width: 30%;
  height: 3px;
  background: var(--purple);
  transform-origin: center;
}

.sign-hand-left {
  left: 13%;
  transform: rotate(-28deg);
}

.sign-hand-right {
  right: 12%;
  transform: rotate(24deg);
}

.ray {
  position: absolute;
  width: 3px;
  height: 44px;
  right: 7%;
  top: 29%;
  border-radius: 2px;
  transform-origin: 50% 118px;
}

.ray-green { background: var(--green); transform: rotate(-38deg); }
.ray-pink { background: var(--pink); transform: rotate(-19deg); }
.ray-orange { background: var(--orange); transform: rotate(0deg); }
.ray-blue { background: var(--blue); transform: rotate(19deg); }
.ray-purple { background: var(--purple); transform: rotate(38deg); }

.maintenance-footer {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.maintenance-footer p {
  margin: 0;
}

@keyframes working {
  to { height: 17px; }
}

@keyframes breathe {
  0%, 100% { transform: rotate(-5deg) rotateX(5deg) translateY(0); }
  50% { transform: rotate(-4deg) rotateX(4deg) translateY(-9px); }
}

@media (max-width: 920px) {
  .maintenance-content {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .book-scene {
    width: min(100%, 560px);
    grid-row: 1;
  }

  .message {
    max-width: 720px;
  }

  h1 {
    font-size: clamp(3.2rem, 13vw, 6.4rem);
  }
}

@media (max-width: 560px) {
  .maintenance-page {
    padding: 18px 20px 22px;
  }

  .maintenance-header {
    min-height: 56px;
  }

  .brand-logo {
    width: 112px;
  }

  .maintenance-content {
    padding: 24px 0 34px;
  }

  .book-scene {
    width: 108%;
    margin-left: -4%;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.72rem;
  }

  .eyebrow span {
    width: 42px;
    margin-right: 9px;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
    line-height: 0.92;
  }

  .introduction {
    margin-top: 24px;
    font-size: 1rem;
  }

  .maintenance-footer {
    display: block;
    line-height: 1.8;
  }
}

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