:root {
  --copper: #e97018;
  --text: #f8f5f1;
  --muted: rgba(248, 245, 241, 0.78);
  --focus: rgba(255, 174, 105, 0.9);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: #17130f;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #17130f;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.landing {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(32px, 5vh, 72px) 24px;
  background-color: #211b16;
  background-image: url("assets/hero-bg.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.landing__shade {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(38, 31, 25, 0.02) 0%,
      rgba(15, 12, 10, 0.2) 58%,
      rgba(8, 6, 5, 0.52) 100%
    ),
    linear-gradient(
      180deg,
      rgba(7, 6, 5, 0.08),
      transparent 24%,
      transparent 72%,
      rgba(9, 7, 5, 0.16)
    );
}

.portal {
  display: grid;
  width: min(84vw, 620px);
  justify-items: center;
  gap: clamp(40px, 6vh, 72px);
  animation: portal-in 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-intro {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: clamp(15px, 2.1vh, 22px);
}

.komventa-logo {
  display: block;
  width: min(100%, 590px);
  height: auto;
  filter:
    drop-shadow(0 2px 1px rgba(255, 255, 255, 0.05))
    drop-shadow(0 8px 12px rgba(0, 0, 0, 0.52));
}

.announcement {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.24em 0.5em;
  margin: 0;
  color: rgba(248, 245, 241, 0.72);
  font-size: clamp(0.84rem, 0.68rem + 0.28vw, 1rem);
  font-weight: 350;
  letter-spacing: 0.045em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.52);
}

.announcement span {
  white-space: nowrap;
}

.announcement__accent {
  color: rgba(242, 142, 68, 0.96);
}

.destinations {
  display: grid;
  width: min(100%, 520px);
  gap: clamp(38px, 5.5vh, 64px);
}

.destination {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2.5vh, 26px);
  border-radius: 12px;
  outline: none;
  opacity: 0.94;
  transition: opacity 220ms ease;
}

.destination__logo-wrap {
  display: grid;
  width: 100%;
  min-height: clamp(50px, 7vh, 74px);
  place-items: center;
}

.destination__logo {
  display: block;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 6px 9px rgba(0, 0, 0, 0.48));
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.destination__logo--alufol {
  height: clamp(54px, 7.2vh, 78px);
}

.destination__logo--ekominy {
  height: clamp(46px, 6.3vh, 68px);
}

.destination__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.25rem 0 0.42rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(233, 112, 24, 0.34);
  font-size: clamp(0.9rem, 0.55rem + 0.45vw, 1.08rem);
  font-weight: 400;
  letter-spacing: 0.018em;
  line-height: 1.3;
  transition:
    color 220ms ease,
    border-color 220ms ease;
}

.destination__arrow {
  color: rgba(233, 112, 24, 0.86);
  font-size: 1.28em;
  font-weight: 300;
  line-height: 1;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.destination:hover,
.destination:focus-visible {
  opacity: 1;
}

.destination:hover .destination__logo,
.destination:focus-visible .destination__logo {
  transform: translateY(-2px);
}

.destination:hover .destination__cta,
.destination:focus-visible .destination__cta {
  color: var(--text);
  border-color: rgba(233, 112, 24, 0.78);
}

.destination:hover .destination__arrow,
.destination:focus-visible .destination__arrow {
  transform: translateX(5px);
}

.destination:focus-visible {
  box-shadow: 0 0 0 2px var(--focus);
}

@keyframes portal-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .landing {
    overflow-y: auto;
    padding: max(42px, 6svh) 20px max(50px, 7svh);
    background-position: center;
  }

  .landing__shade {
    background:
      linear-gradient(
        90deg,
        rgba(8, 6, 5, 0.28),
        transparent 18% 82%,
        rgba(8, 6, 5, 0.32)
      ),
      radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(12, 9, 7, 0.34) 100%
      );
  }

  .portal {
    width: min(86vw, 460px);
    gap: clamp(34px, 5.2svh, 54px);
  }

  .komventa-logo {
    width: min(100%, 450px);
  }

  .brand-intro {
    gap: clamp(13px, 2svh, 18px);
  }

  .announcement {
    width: min(100%, 360px);
    font-size: clamp(0.8rem, 3.35vw, 0.94rem);
  }

  .destinations {
    width: min(100%, 390px);
    gap: clamp(36px, 5.2svh, 54px);
  }

  .destination {
    gap: clamp(15px, 2svh, 22px);
  }

  .destination__logo--alufol {
    height: clamp(50px, 6.6svh, 66px);
  }

  .destination__logo--ekominy {
    height: clamp(42px, 5.8svh, 58px);
  }

  .destination__cta {
    font-size: clamp(0.88rem, 3.7vw, 1rem);
  }
}

@media (max-height: 680px) and (min-width: 701px) {
  .landing {
    overflow-y: auto;
    padding-block: 28px;
  }

  .portal {
    gap: 26px;
  }

  .brand-intro {
    gap: 9px;
  }

  .destinations {
    gap: 28px;
  }

  .destination {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portal {
    animation: none;
  }

  .destination,
  .destination__logo,
  .destination__cta,
  .destination__arrow {
    transition: none;
  }
}
