:root{
  --bg: #faced7;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);
  --accent: whitesmoke;
  --accent2: #22d3ee;
  --line: rgba(255,255,255,.12);
  --max: 1100px;
}

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

html, body { height: 100%; scroll-behavior: smooth; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-size: 1.25rem;
}

.note {
  display:none;
}

h2 {
  font-family: "Birthstone", cursive;
  font-size: 5rem;
}

.top{
  padding: 56px 20px 18px;
  text-align: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items:center;
  justify-content: center;
}
.top h1{
  margin: 0 0 8px;
  letter-spacing: .5px;
  font-family: "Birthstone", cursive;
  font-size: 5rem;
}
.top p{
  margin: 0;
  color: var(--muted);
}

.top a {
  text-decoration: none;
}

.top img {
  width:75px; 
}

#start {
  text-align: center;
  margin-bottom:5px;
}

.timeline{
  width: min(var(--max), 92vw);
  margin: 0 auto;
  position: relative;
  padding: 30px 0 150px;
}


.line{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.line__progress{
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-radius: 999px;
}


.month{
  position: relative;
  display: grid;
  grid-template-rows:auto;
  grid-template-columns: repeat(3 , 1fr);
}

.month img {
  width:100%;
}


.left {
  grid-column: 1;
}

.right {
  grid-column: 3;
}

.left , .right {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0% cover 20%;

}

.month img {
  border-radius: 10px;
  margin-block:1rem;
}

.month p {
  text-align: center;
}



@keyframes appear {
  from {
    opacity: 0;
    scale:0;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

.month::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 0;                
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 5px rgba(255,255,255,.06);

  z-index: 2;
}

.month.is-reached::before{
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  border-color: rgba(255,255,255,.35);
  box-shadow:
    0 0 0 6px rgba(255,255,255,.14),
    0 0 22px rgba(34,211,238,.45);
}

.month.is-current::before{
  box-shadow:
    0 0 0 7px rgba(255,255,255,.18),
    0 0 30px rgba(34,211,238,.60);
  transform: translate(-50%, -50%) scale(1.05);
}



@media (max-width: 860px){

  .line{
    left: 17px;
    transform: none;
  }

  .month{
    display: block;
    width:100%;
    max-width:600px;
    margin-inline:auto;
    padding: 34px 0 34px 34px;
  }
  
  .month::before{
    left: 20px;
    transform: translate(-50%, -50%);
  }


  .month img {
    max-width: 600px;
  }

  #start {
    text-align: left;
    margin-left:15px;
  }

  .solo-p {
    display: none;
  }
}



.footer{
  padding: 28px 20px 50px;
  text-align: center;
  color: var(--muted);
}

svg {
  stroke:white;
  fill:white;
  margin-top: 1rem;

}
