html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  background:
    radial-gradient(circle at 0 0, #f1cca124, #0000 34%),
    radial-gradient(circle at 100% 100%, #f1cca11f, #0000 30%),
    #3a433e;
}

.home {
  box-sizing: border-box;
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(0, 0.92fr) auto minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(0.35rem, 1.8vh, 1rem);
  padding: clamp(2.9rem, 8.5vh, 4.8rem) clamp(1.35rem, 5vw, 2rem) clamp(1.8rem, 5vh, 2.6rem);
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  color: #f1cca1;
  cursor: pointer;
  background: #3a433e;
}

.home:focus-visible {
  outline: 3px solid #f1cca1;
  outline-offset: -6px;
}

.brand-area {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: clamp(0.45rem, 2.2vh, 1.15rem);
}

.logo-area {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-image {
  width: clamp(9.6rem, 56vw, 15.6rem);
  height: auto;
}

.greeting-area {
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(0.15rem, 1vh, 0.45rem);
  padding-bottom: clamp(0.15rem, 1vh, 0.45rem);
}

.greeting {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 4.2vw, 1.4rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f1cca1;
}

.monogram-area {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: clamp(0.45rem, 2.2vh, 1.15rem);
}

.monogram-svg {
  width: clamp(7.3rem, 39vw, 11.2rem);
  max-height: min(34vh, 13.8rem);
  height: auto;
  transform: translateX(0.2rem);
}

.monogram-fill {
  fill: #f2cda2;
}

.monogram-trace {
  fill: none;
  stroke: rgba(248, 223, 191, 0.94);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
}

.monogram-path-long {
  stroke-dasharray: 980;
  stroke-dashoffset: 980;
}

.monogram-path-short {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
}

.monogram-animated .monogram-base {
  animation: monogram-breath 5s ease-in-out infinite;
}

.monogram-animated .monogram-path-long {
  animation: monogram-trace-long 5s ease-in-out infinite;
}

.monogram-animated .monogram-path-short {
  animation: monogram-trace-short 5.8s ease-in-out infinite;
}

@keyframes monogram-breath {
  0%,
  100% {
    opacity: 0.28;
  }

  45% {
    opacity: 0.62;
  }
}

@keyframes monogram-trace-long {
  0%,
  8% {
    opacity: 0;
    stroke-dashoffset: 980;
  }

  28%,
  44% {
    opacity: 1;
    stroke-dashoffset: 0;
  }

  72% {
    opacity: 0.58;
    stroke-dashoffset: -980;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: -980;
  }
}

@keyframes monogram-trace-short {
  0%,
  18% {
    opacity: 0;
    stroke-dashoffset: 460;
  }

  42%,
  54% {
    opacity: 0.92;
    stroke-dashoffset: 0;
  }

  78% {
    opacity: 0.46;
    stroke-dashoffset: -460;
  }

  100% {
    opacity: 0;
    stroke-dashoffset: -460;
  }
}

@media (min-width: 640px) {
  body {
    padding: 1.25rem;
    box-sizing: border-box;
    align-items: center;
  }

  .home {
    width: min(100%, 393px);
    min-height: 0;
    max-height: 852px;
    height: min(852px, calc(100vh - 2.5rem));
    padding-top: clamp(3.1rem, 8vh, 4.4rem);
    padding-bottom: clamp(1.9rem, 4.7vh, 2.7rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  }

  .logo-image {
    width: clamp(10rem, 52vw, 15.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .monogram-animated .monogram-base,
  .monogram-animated .monogram-path-long,
  .monogram-animated .monogram-path-short {
    animation: none;
  }

  .monogram-animated .monogram-trace {
    opacity: 0.24;
    stroke-dashoffset: 0;
  }
}
