:root {
  --forest: #2F3A34;
  --terracotta: #CB744A;
  --paper: #F7F4F1;
  --muted: #6F746F;
  --line: #D8D2CC;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--forest);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.maintenance {
  flex: 1 0 auto;
  width: 100%;
  display: grid;
  place-items: center;
  padding:
    clamp(42px, 8vh, 86px)
    max(20px, env(safe-area-inset-right))
    clamp(34px, 6vh, 62px)
    max(20px, env(safe-area-inset-left));
}

.maintenance__content {
  width: min(100%, 760px);
  margin-inline: auto;
  text-align: center;
}

.logo {
  display: block;
  width: clamp(280px, 43vw, 500px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.brand-line {
  margin: clamp(18px, 2.7vh, 28px) 0 0;
  color: var(--terracotta);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(17px, 1.65vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.accent-line {
  display: block;
  width: 42px;
  height: 1px;
  margin: clamp(27px, 4vh, 38px) auto clamp(25px, 3.7vh, 35px);
  background: var(--terracotta);
}

h1 {
  margin: 0;
  color: var(--forest);
  font-family: "Lora", Georgia, serif;
  font-size: clamp(30px, 3.7vw, 44px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.intro {
  max-width: 660px;
  margin: clamp(19px, 2.7vh, 25px) auto 0;
  color: var(--muted);
  font-size: clamp(14.5px, 1.25vw, 16.5px);
  font-weight: 400;
  line-height: 1.78;
  text-wrap: pretty;
}

.contact-copy {
  margin: clamp(25px, 3.6vh, 34px) auto 0;
  color: var(--muted);
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.65;
}

.contact {
  display: inline-block;
  margin-top: 3px;
  color: var(--forest);
  font-size: clamp(13.5px, 1vw, 14.5px);
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
  transition: color 160ms ease;
  overflow-wrap: anywhere;
}

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

.contact:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 5px;
}

.footer {
  flex: 0 0 auto;
  width: min(calc(100% - 56px), 1180px);
  margin: 0 auto;
  padding: 20px 0 max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: #858985;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.footer__separator {
  display: inline-block;
  margin-inline: 0.45em;
  color: #A7A39E;
}

@media (max-width: 640px) {
  .maintenance {
    place-items: center;
    padding-top: max(38px, env(safe-area-inset-top));
    padding-bottom: 32px;
  }

  .maintenance__content {
    width: min(100%, 500px);
  }

  .logo {
    width: min(88vw, 380px);
  }

  .brand-line {
    max-width: 360px;
    margin-inline: auto;
  }

  .intro {
    max-width: 520px;
    line-height: 1.72;
  }

  .footer {
    width: calc(100% - 40px);
    padding-top: 17px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .maintenance {
    padding-inline: 18px;
  }

  .logo {
    width: min(90vw, 330px);
  }

  .brand-line {
    font-size: 16px;
  }

  h1 {
    font-size: 29px;
  }

  .intro {
    font-size: 14px;
  }
}

@media (max-height: 720px) and (min-width: 641px) {
  .maintenance {
    padding-top: 38px;
    padding-bottom: 30px;
  }

  .logo {
    width: clamp(270px, 36vw, 430px);
  }

  .brand-line {
    margin-top: 17px;
  }

  .accent-line {
    margin-top: 24px;
    margin-bottom: 23px;
  }

  .intro {
    margin-top: 17px;
  }

  .contact-copy {
    margin-top: 22px;
  }
}
