@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(38px, 6vh, 70px);
}

* {
  box-sizing: border-box;
}

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

html[data-time="morning"] {
  background-color: #f1eee8;
}

html[data-time="afternoon"] {
  background-color: #e3e7e9;
}

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;
}

@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 68% 10%,
      rgba(73, 42, 132, 0.52) 0%,
      rgba(73, 42, 132, 0.2) 28%,
      rgba(73, 42, 132, 0) 50%
    ),
    radial-gradient(
      ellipse at 14% 58%,
      rgba(126, 87, 255, 0.46) 0%,
      rgba(126, 87, 255, 0.16) 20%,
      rgba(126, 87, 255, 0) 38%
    ),
    radial-gradient(
      ellipse at 86% 40%,
      rgba(56, 165, 238, 0.38) 0%,
      rgba(56, 165, 238, 0.1) 18%,
      rgba(56, 165, 238, 0) 32%
    ),
    radial-gradient(
      ellipse at 18% 68%,
      rgba(56, 165, 238, 0.34) 0%,
      rgba(56, 165, 238, 0.1) 22%,
      rgba(56, 165, 238, 0) 38%
    ),
    radial-gradient(
      ellipse at 52% 82%,
      rgba(54, 80, 176, 0.32) 0%,
      rgba(54, 80, 176, 0) 44%
    ),
    linear-gradient(180deg, #0b2048 0%, #172d63 48%, #102850 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: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.greeting {
  padding: clamp(60px, 10vh, 110px) 0 0;
  text-align: center;
}

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

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

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

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

.featured-card {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  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.78),
      rgba(255, 255, 255, 0.62)
    );
}

.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;
  }

  .wordmark {
    font-size: 25px;
  }

  .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 {
    aspect-ratio: 3 / 4;
    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;
  }

}
