/* Tokens mirror ../src/global-styles.ts so this reads as the same product as /connect. */
:root {
  --event-opacity: 0.72;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f3ee;
  color: #26252a;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header and footer are full-bleed bands with edge padding — no centred container. */
header,
footer {
  padding: 20px 32px;
}

header {
  border-bottom: 1px solid #e3e1d9;
}

header img {
  display: block;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 64px 32px;
}

h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 520px;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.55;
}

.note {
  max-width: 580px;
  margin-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #6b6a70;
}

/* --- Week: seven day tracks, event blocks fading in on a staggered loop --- */

.week {
  display: flex;
  gap: clamp(6px, 1.4vw, 14px);
  width: 100%;
  max-width: 720px;
  height: 112px;
  margin: 28px 0 4px;
}

.day {
  position: relative;
  flex: 1;
  border-radius: 5px;
  background: #edebe3;
}

/* Two tones from the same aurora family the AI Studio homepage uses, so the 8x8 landing pages
   share a palette. Two rather than seven: a per-weekday gradient implied meaning that isn't there. */
.event.g {
  background: #4f8df0;
}
.event.m {
  background: #7a5cf0;
}

.event {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--top);
  height: var(--h);
  border-radius: 4px;
  opacity: 0;
  animation: settle 9s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.16s);
}

/* Blocks drop into place, hold for most of the cycle, then fade before it restarts. The long
   hold plus the per-block delay keeps the week from ever looking empty. */
@keyframes settle {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  6%,
  74% {
    opacity: var(--event-opacity);
    transform: translateY(0);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid #e3e1d9;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #6b6a70;
}

footer nav {
  display: flex;
  gap: 20px;
}
footer a {
  color: #26252a;
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a:hover {
  color: #000000;
}
footer a:focus-visible {
  outline: 2px solid #26252a;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .event {
    animation: none;
    opacity: var(--event-opacity);
  }
}
