@font-face {
  font-family: "Inter";
  src: url("/media/brand/InterVariable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fbfaf7;
  --graphite: #171b1f;
  --muted: #646b70;
  --cobalt: #3157c8;
  --orange: #b86533;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--graphite);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(251, 250, 247, 1) 0%,
      rgba(251, 250, 247, 0.98) 39%,
      rgba(251, 250, 247, 0.9) 54%,
      rgba(251, 250, 247, 0.36) 73%,
      rgba(23, 27, 31, 0.08) 100%
    ),
    url("/media/home/interactive-teacher-desk-v2-phone.png") 67% center / cover no-repeat;
  content: "";
  transform: scale(1.018);
  animation: scene-settle 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(28px, 5vw, 76px);
}

.maintenance__content {
  width: min(680px, 56vw);
  animation: content-arrive 700ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.maintenance__brand {
  display: block;
  width: clamp(220px, 31vw, 420px);
  height: auto;
  margin: 0 0 clamp(54px, 10vh, 112px);
}

.maintenance__message {
  max-width: 650px;
  border-left: 5px solid var(--cobalt);
  padding-left: clamp(22px, 3vw, 40px);
}

.maintenance__status {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.1rem, 7.2vw, 7.3rem);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.maintenance__note {
  max-width: 44ch;
  margin: clamp(24px, 4vh, 42px) 0 0;
  color: var(--muted);
  font-family: Charter, Georgia, serif;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  line-height: 1.55;
}

@keyframes scene-settle {
  from {
    opacity: 0;
    transform: scale(1.045);
  }
  to {
    opacity: 1;
    transform: scale(1.018);
  }
}

@keyframes content-arrive {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  body::before {
    background:
      linear-gradient(
        180deg,
        rgba(251, 250, 247, 1) 0%,
        rgba(251, 250, 247, 0.98) 57%,
        rgba(251, 250, 247, 0.78) 76%,
        rgba(251, 250, 247, 0.3) 100%
      ),
      url("/media/home/interactive-teacher-desk-v2-phone.png") 66% center / cover no-repeat;
  }

  .maintenance {
    align-items: start;
    padding: 26px 24px 12vh;
  }

  .maintenance__content {
    width: 100%;
  }

  .maintenance__brand {
    width: min(250px, 68vw);
    margin-bottom: clamp(72px, 16vh, 138px);
  }

  .maintenance__message {
    padding-left: 20px;
  }

  h1 {
    max-width: 8ch;
    font-size: clamp(3.2rem, 16vw, 5.4rem);
  }

  .maintenance__note {
    color: #41484d;
    font-size: 1.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  .maintenance__content {
    animation: none;
  }
}
