@font-face {
  font-family: "Great Vibes";
  src: url("fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --teal: #1f6763;
  --teal-shadow: #14413e;
  --aqua: #6fcfc9;
  --aqua-pale: #d8f2f1;
  --sage: #c3cfc0;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--teal);
  color: var(--aqua-pale);
  font-family: "Public Sans", Arial, sans-serif;
}

.cover {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background-color: var(--teal);
  background-image:
    radial-gradient(circle at 50% 42%, #2b7772 0, transparent 56%),
    repeating-linear-gradient(35deg, #ffffff08 0 1px, #00000008 1px 3px);
}

.cover-frame {
  position: fixed;
  inset: clamp(0.75rem, 2.5vw, 2rem);
  display: grid;
  padding: clamp(2rem, 6vw, 5rem);
  place-items: center;
  border: 3px double var(--teal-shadow);
  outline: 1px solid #d8f2f14d;
  outline-offset: -5px;
  box-shadow:
    inset 1px 1px 0 #d8f2f166,
    1px 1px 0 #d8f2f152,
    inset 0 0 5rem #14413e24;
}

.cover-frame::before {
  position: absolute;
  inset: 0;
  background: url("img/kb-frame-corners.svg") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.title-card {
  position: relative;
  z-index: 1;
  width: min(100%, 60rem);
  text-align: center;
}

.bow {
  display: block;
  width: clamp(5.5rem, 11vw, 8.5rem);
  height: auto;
  margin: 0 auto clamp(0.25rem, 1.3vh, 0.8rem);
  filter: drop-shadow(1px 1px 0 #d8f2f126);
}

h1 {
  margin: 0;
  color: var(--aqua);
  font: 400 clamp(3.5rem, 9vw, 7.5rem) / 1 "Great Vibes", cursive;
  text-shadow: 0.035em 0.035em 0 var(--teal-shadow);
  transform: translateX(-0.08em);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .wordmark-line {
    background-image: linear-gradient(105deg, var(--aqua) 0 40%, #eefdfc 48%, var(--aqua-pale) 52%, var(--aqua) 60% 100%);
    background-position: 100% 50%;
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: foil-shimmer 2.4s ease-out 0.35s 1 both;
  }
}

.promise,
.status,
.established {
  text-transform: uppercase;
}

.promise {
  margin: clamp(1rem, 2.3vh, 1.6rem) 0 0;
  color: var(--aqua-pale);
  font-size: clamp(0.7rem, 1.15vw, 0.88rem);
  font-weight: 600;
  letter-spacing: clamp(0.14em, 0.45vw, 0.3em);
  line-height: 1.7;
}

.status,
.established {
  color: var(--aqua-pale);
  font-size: clamp(0.62rem, 0.9vw, 0.75rem);
  letter-spacing: clamp(0.12em, 0.35vw, 0.22em);
  line-height: 1.7;
}

.status {
  margin: clamp(1.7rem, 3.8vh, 2.6rem) 0 0;
  opacity: 0.88;
}

.status span {
  padding-inline: 0.35em;
  color: var(--aqua);
}

.established {
  margin: clamp(0.45rem, 1vh, 0.7rem) 0 0;
  font-weight: 600;
  opacity: 0.88;
}

@keyframes foil-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

@media (max-width: 520px) {
  .wordmark-line {
    display: block;
    width: max-content;
    margin-inline: auto;
  }

  .wordmark-first {
    transform: translateX(0.5px);
  }

  .wordmark-second {
    transform: translateX(-1.5px);
  }
}

@media (max-width: 420px) {
  .cover-frame {
    padding-inline: 1.35rem;
  }

  .promise {
    max-width: 15rem;
    margin-inline: auto;
  }

  .status span {
    display: block;
    height: 0.3rem;
    overflow: hidden;
    color: transparent;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .cover-frame {
    padding-block: 1rem;
  }

  .bow {
    width: 4.5rem;
  }

  h1 {
    font-size: clamp(3rem, 11vh, 4.25rem);
  }

  .promise {
    margin-top: 0.4rem;
  }

  .status {
    margin-top: 0.7rem;
  }

  .established {
    margin-top: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wordmark-line {
    animation: none;
    background-position: 50% 50%;
  }
}
