@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;800&display=swap");

:root {
  --background: #dfe5ea;
  --text-primary: #111318;
  --text-secondary: #353a43;
  --font-primary: "Manrope", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --font-regular: 400;
  --font-demi: 600;
  --content-gap: clamp(16px, 3vh, 24px);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--background);
}

html[data-time="morning"] {
  background: linear-gradient(180deg, #f1eee8 0%, #f7dfbd 100%);
}

html[data-time="afternoon"] {
  background: linear-gradient(180deg, #e3e7e9 0%, #e7e9ff 100%);
}

html[data-time="evening"] {
  background-color: #c5d5e3;
}

html[data-time="night"] {
  background-color: #0b2048;
}

body {
  position: relative;
  min-height: 100dvh;
  margin: 0;
  color: var(--text-primary);
  background: #dfe5ea;
  background-attachment: fixed;
  font-family: var(--font-primary);
  font-weight: var(--font-regular);
  background-position: 0% 0%;
  background-size: 115% 115%;
  animation: ambient-light 18s ease-in-out infinite alternate;
  transition: background 800ms ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.home-shell {
  position: relative;
  z-index: 1;
}

.cloud-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.cloud-a {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0) 75%
  );
  filter: blur(6px);
  animation: cloud-drift linear infinite;
}

.cloud-a.a1 {
  top: 0%;
  left: -30%;
  width: 42vw;
  height: 16vw;
  opacity: 0.8;
  animation-duration: 30s;
  animation-delay: -8s;
}

.cloud-a.a2 {
  top: 9%;
  left: -40%;
  width: 30vw;
  height: 12vw;
  opacity: 0.55;
  animation-duration: 42s;
  animation-delay: -12s;
}

.cloud-a.a3 {
  top: 17%;
  left: -25%;
  width: 45vw;
  height: 16vw;
  opacity: 0.4;
  animation-duration: 55s;
  animation-delay: -25s;
}

body[data-time="night"] .cloud-a {
  background: radial-gradient(
    ellipse at center,
    rgba(190, 200, 225, 0.5) 0%,
    rgba(190, 200, 225, 0.2) 45%,
    rgba(190, 200, 225, 0) 75%
  );
}

body[data-time="night"] .cloud-a.a1 {
  opacity: 0.45;
}

body[data-time="night"] .cloud-a.a2 {
  opacity: 0.3;
}

body[data-time="night"] .cloud-a.a3 {
  opacity: 0.22;
}

@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(160vw);
  }
}

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

@keyframes ambient-light {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 55% 28%;
  }

  100% {
    background-position: 100% 62%;
  }
}

body[data-time="morning"] {
  background:
    radial-gradient(
      ellipse at 8% 42%,
      rgba(255, 222, 166, 0.95) 0%,
      rgba(255, 222, 166, 0.38) 31%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 88% 18%,
      rgba(174, 218, 239, 0.9) 0%,
      rgba(174, 218, 239, 0.35) 34%,
      transparent 62%
    ),
    linear-gradient(160deg, #f1eee8 0%, #d4e4e8 42%, #f7dfbd 100%);
  background-attachment: fixed;
}

body[data-time="afternoon"] {
  background:
    radial-gradient(
      ellipse at 5% 62%,
      rgba(255, 238, 182, 0.94) 0%,
      rgba(255, 238, 182, 0.45) 18%,
      rgba(255, 238, 182, 0) 42%
    ),
    radial-gradient(
      ellipse at 93% 36%,
      rgba(73, 143, 211, 0.92) 0%,
      rgba(73, 143, 211, 0.58) 28%,
      rgba(73, 143, 211, 0) 57%
    ),
    radial-gradient(
      ellipse at 76% 100%,
      rgba(220, 225, 255, 0.98) 0%,
      rgba(220, 225, 255, 0.7) 34%,
      rgba(220, 225, 255, 0) 66%
    ),
    linear-gradient(
      160deg,
      #e3e7e9 0%,
      #bfd2e3 20%,
      #78addb 42%,
      #9dbbce 63%,
      #e7e9ff 100%
    );
  background-attachment: fixed;
}

body[data-time="evening"] {
  background:
    radial-gradient(
      ellipse at 12% 70%,
      rgba(255, 188, 139, 0.9) 0%,
      rgba(255, 188, 139, 0.35) 32%,
      transparent 61%
    ),
    radial-gradient(
      ellipse at 88% 35%,
      rgba(133, 113, 203, 0.78) 0%,
      rgba(133, 113, 203, 0.36) 37%,
      transparent 65%
    ),
    linear-gradient(160deg, #c5d5e3 0%, #8faaca 38%, #d8a3aa 72%, #f0cbb0 100%);
  background-attachment: fixed;
}

body[data-time="night"] {
  color: #f7f8ff;
  background:
    radial-gradient(
      ellipse at 78% 8%,
      rgba(255, 92, 158, 0.4) 0%,
      rgba(255, 92, 158, 0.15) 24%,
      rgba(255, 92, 158, 0) 46%
    ),
    radial-gradient(
      ellipse at 10% 46%,
      rgba(255, 92, 158, 0.2) 0%,
      rgba(255, 92, 158, 0.07) 22%,
      rgba(255, 92, 158, 0) 40%
    ),
    radial-gradient(
      ellipse at 20% 20%,
      rgba(73, 42, 132, 0.55) 0%,
      rgba(73, 42, 132, 0.22) 30%,
      rgba(73, 42, 132, 0) 52%
    ),
    radial-gradient(
      ellipse at 8% 60%,
      rgba(126, 87, 255, 0.5) 0%,
      rgba(126, 87, 255, 0.18) 22%,
      rgba(126, 87, 255, 0) 40%
    ),
    radial-gradient(
      ellipse at 88% 42%,
      rgba(60, 150, 150, 0.24) 0%,
      rgba(60, 150, 150, 0.08) 20%,
      rgba(60, 150, 150, 0) 36%
    ),
    radial-gradient(
      ellipse at 22% 82%,
      rgba(56, 165, 238, 0.36) 0%,
      rgba(56, 165, 238, 0.12) 24%,
      rgba(56, 165, 238, 0) 40%
    ),
    radial-gradient(
      ellipse at 80% 78%,
      rgba(56, 165, 238, 0.3) 0%,
      rgba(56, 165, 238, 0.1) 24%,
      rgba(56, 165, 238, 0) 40%
    ),
    radial-gradient(
      ellipse at 60% 90%,
      rgba(255, 150, 90, 0.22) 0%,
      rgba(255, 150, 90, 0) 40%
    ),
    linear-gradient(180deg, #060f2c 0%, #121c46 46%, #0a1a38 100%);
  background-attachment: fixed;
}

body[data-time="night"] .greeting p,
body[data-time="night"] .copyright {
  color: rgba(215, 220, 234, 0.82);
}

body[data-time="night"] .wordmark {
  color: #fff;
}

body[data-time="night"] .tagline {
  color: #fff;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
  font-weight: var(--font-demi);
}

.home-shell {
  display: flex;
  width: min(100%, 1120px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px clamp(20px, 5vw, 72px) 24px;
  flex-direction: column;
}

.site-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.wordmark {
  color: #000;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.greeting {
  padding: 36px 0 0;
  text-align: center;
}

.greeting h1 {
  max-width: 100%;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: clamp(58px, 10vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.greeting h1 span + span::before {
  content: " ";
}

body[data-time="morning"] .greeting h1 {
  color: rgba(255, 255, 255, 0.75);
}

.greeting p {
  margin: 36px 0 0;
  color: var(--text-secondary);
  font-size: clamp(17px, 2vw, 22px);
}

.featured {
  width: min(100%, 600px);
  margin: var(--content-gap) auto 0;
  min-width: 0;
}

.featured-card {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.23);
  box-shadow: 0 28px 70px rgba(50, 74, 111, 0.18);
  backdrop-filter: blur(18px);
}

.featured-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent),
    rgba(61, 111, 160, 0.24);
  place-items: stretch;
}

body[data-time="night"] .featured-card__placeholder {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.7),
      rgba(215, 220, 240, 0.55)
    );
}

body[data-time="morning"] .featured-card__placeholder {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent),
    rgba(255, 255, 255, 0.08);
}

.featured-card__placeholder iframe {
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 100%;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.site-footer {
  margin: var(--content-gap) 0 0;
  padding-top: 0;
  text-align: center;
}

.tagline {
  margin: 0;
  color: #000;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: var(--font-demi);
  letter-spacing: 0.01em;
}

.copyright {
  display: flex;
  margin: 12px 0 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  color: rgba(17, 19, 24, 0.65);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
    transition: none;
  }
}

@media (max-width: 640px) {
  :root {
    --content-gap: clamp(18px, 3svh, 28px);
  }

  .home-shell {
    min-height: 100dvh;
    padding:
      calc(20px + env(safe-area-inset-top))
      calc(30px + env(safe-area-inset-right))
      calc(12px + env(safe-area-inset-bottom))
      calc(30px + env(safe-area-inset-left));
  }

  body[data-time] {
    min-height: 100dvh;
    background-attachment: scroll;
  }


  .greeting {
    padding-top: clamp(28px, 5svh, 44px);
  }

  .greeting h1 {
    font-size: clamp(68px, 18vw, 84px);
    font-weight: var(--font-demi);
    line-height: 0.9;
  }

  .greeting h1 span {
    display: block;
  }

  .greeting h1 span + span::before {
    content: "";
  }

  .greeting p {
    margin-top: 36px;
  }

  .featured {
    width: 100%;
  }

  .featured-card {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0;
    border-radius: 26px;
  }

  .featured-card__placeholder {
    padding: 14px;
  }

  .featured-card__placeholder iframe {
    border-radius: 16px;
  }

  .copyright {
    margin-top: 8px;
    gap: 6px;
    font-size: 9px;
    line-height: 1.35;
  }

}
