:root {
  --bg: #f6f3ec;
  --ink: #1d211b;
  --muted: #6d716a;

  --accent: #74804d;
  --accent-warm: #a88c59;

  --max-width: 1440px;
}


/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);

  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================
   PAGE
========================= */

.maintenance {
  position: relative;

  min-height: 100svh;
  width: 100%;

  overflow: hidden;

  display: grid;
  grid-template-rows: 1fr auto;

  isolation: isolate;
}


/* =========================
   BACKGROUND
========================= */

.background {
  position: absolute;

  inset: -2.5%;

  z-index: -3;

  background-image: url("assets/bg.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;

  transform: scale(1.025);

  will-change: transform;
}


/* gradient dla czytelności tekstu */

.veil {
  position: absolute;
  inset: 0;

  z-index: -2;

  pointer-events: none;

  background:

    linear-gradient(
      90deg,
      rgba(248, 246, 240, 0.97) 0%,
      rgba(248, 246, 240, 0.92) 20%,
      rgba(248, 246, 240, 0.68) 38%,
      rgba(248, 246, 240, 0.30) 54%,
      rgba(248, 246, 240, 0.05) 74%,
      rgba(248, 246, 240, 0) 100%
    ),

    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 45%,
      rgba(244, 241, 232, 0.08) 100%
    );
}


/* =========================
   COMMON WIDTH
========================= */

.hero,
.footer {
  width: min(
    calc(100% - 64px),
    var(--max-width)
  );

  margin-inline: auto;
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 0;

  display: flex;
  align-items: center;

  padding-top: clamp(70px, 10vh, 130px);
  padding-bottom: clamp(70px, 10vh, 130px);
}


.hero__content {
  width: min(680px, 50vw);
}


/* =========================
   KICKER
========================= */

.kicker {
  margin: 0 0 22px;

  color: var(--accent);

  font-size: 12px;
  font-weight: 700;

  line-height: 1.4;

  letter-spacing: 0.16em;

  text-transform: uppercase;
}


/* =========================
   HEADING
========================= */

h1 {
  margin: 0;

  max-width: 760px;

  font-family: "DM Sans", Arial, sans-serif;

  font-size: clamp(
    58px,
    6.4vw,
    100px
  );

  font-weight: 600;

  line-height: 0.96;

  letter-spacing: -0.055em;

  text-wrap: balance;
}


/* =========================
   LEAD
========================= */

.lead {
  margin: 30px 0 0;

  color: var(--accent-warm);

  font-size: clamp(
    22px,
    1.8vw,
    31px
  );

  font-weight: 500;

  line-height: 1.25;

  letter-spacing: -0.025em;
}


/* =========================
   COPY
========================= */

.copy {
  margin: 20px 0 0;

  max-width: 500px;

  color: var(--muted);

  font-size: clamp(
    16px,
    1.15vw,
    19px
  );

  font-weight: 400;

  line-height: 1.65;
}


/* =========================
   FOOTER
========================= */

.footer {
  min-height: 68px;

  display: flex;
  align-items: center;

  gap: 12px;

  color: #7f827c;

  font-size: 12px;
  font-weight: 400;
}


/* kropka pomiędzy elementami */

.footer__sep {
  width: 3px;
  height: 3px;

  border-radius: 50%;

  background: currentColor;

  opacity: 0.45;
}


/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

  .hero,
  .footer {
    width: min(
      calc(100% - 40px),
      var(--max-width)
    );
  }

  .background {
    inset: 0;

    transform: none;

    background-position: 66% center;
  }

  .veil {
    background:

      linear-gradient(
        90deg,
        rgba(248, 246, 240, 0.97) 0%,
        rgba(248, 246, 240, 0.92) 38%,
        rgba(248, 246, 240, 0.63) 63%,
        rgba(248, 246, 240, 0.17) 100%
      );
  }

  .hero__content {
    width: min(
      620px,
      68vw
    );
  }

  h1 {
    font-size: clamp(
      54px,
      9vw,
      86px
    );
  }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 720px) {

  .maintenance {
    min-height: 100svh;
  }


  .hero,
  .footer {
    width: calc(100% - 28px);
  }


  /* tło ustawione bardziej na produkt */

  .background {
    inset: 0;

    background-position: 70% center;

    filter: saturate(0.94);
  }


  /* tekst czytelny na mobilce */

  .veil {
    background:

      linear-gradient(
        180deg,
        rgba(248, 246, 240, 0.99) 0%,
        rgba(248, 246, 240, 0.95) 38%,
        rgba(248, 246, 240, 0.77) 58%,
        rgba(248, 246, 240, 0.27) 100%
      ),

      linear-gradient(
        90deg,
        rgba(248, 246, 240, 0.94) 0%,
        rgba(248, 246, 240, 0.50) 100%
      );
  }


  .hero {
    align-items: flex-start;

    padding-top: 72px;
    padding-bottom: 220px;
  }


  .hero__content {
    width: 100%;
  }


  .kicker {
    margin-bottom: 18px;

    font-size: 11px;

    letter-spacing: 0.14em;
  }


  h1 {
    max-width: 10ch;

    font-size: clamp(
      48px,
      14.5vw,
      72px
    );

    line-height: 0.98;
  }


  .lead {
    margin-top: 24px;

    font-size: 24px;
  }


  .copy {
    margin-top: 17px;

    max-width: 32ch;

    font-size: 16px;

    line-height: 1.55;
  }


  .footer {
    min-height: 62px;

    flex-wrap: wrap;

    row-gap: 3px;

    padding: 14px 0;
  }
}


/* =========================
   VERY SMALL MOBILE
========================= */

@media (max-width: 420px) {

  .hero {
    padding-top: 56px;
    padding-bottom: 190px;
  }


  h1 {
    font-size: clamp(
      44px,
      14vw,
      58px
    );
  }


  .lead {
    font-size: 21px;
  }

}


/* =========================
   REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

}