/* Fonts, colors, button and wavy-border styles carried over from the previous viruvalge.ee theme. */

@font-face {
  font-family: Massimo;
  src: url(fonts/Massimo-Light.woff2) format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Massimo;
  src: url(fonts/Massimo-Semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: MyriadPro;
  src: url(fonts/MyriadPro-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: MyriadPro;
  src: url(fonts/MyriadPro-Semibold.woff2) format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: MyriadPro;
  src: url(fonts/MyriadPro-Bold.woff2) format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.4;
  font-family: MyriadPro, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  color: #002169;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: #0d2416;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 3rem clamp(1.25rem, 8vw, 9rem);
}

.page__bg,
.page__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page__bg img {
  object-fit: cover;
  object-position: center;
}

.card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 5px;
  background-image: url(sakk-valge.svg);
  background-repeat: repeat-x;
  background-size: auto 100%;
}

.card::before {
  top: -3px;
  transform: rotate(180deg);
}

.card::after {
  bottom: -3px;
}

.card__logo {
  width: clamp(150px, 40vw, 190px);
  height: auto;
}

.card__actions {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 0.875rem;
}

.btn {
  border: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0.75em 1.875em;
  background-color: #002169;
  color: #fff;
  transition: background-color 0.2s;
}

.btn:hover {
  background-color: #334d87;
}

.btn:focus-visible {
  outline: 2px solid #9b7a4c;
  outline-offset: 2px;
}

.page__warning {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0.75rem 1.25rem 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

@media (max-aspect-ratio: 29/20) {
  .page__warning {
    display: block;
  }
}

/* Single soft entrance on the card; the still photo stays still on purpose */
@media (prefers-reduced-motion: no-preference) {
  @keyframes card-in {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  .card {
    animation: card-in 0.6s ease-out 0.1s both;
  }
}

@media (max-width: 640px) {
  .page {
    justify-content: center;
    padding: 2rem 1.25rem 4.5rem;
  }

  .card {
    padding: 2.25rem 1.5rem;
  }
}
