/* garrettdillman.com — page styles. */

html, body { margin: 0; height: 100%; background: #000; }

/* The window the song scrolls through. */
.stage {
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: #fff;
  font: 600 clamp(20px, 4.5vw, 38px)/1.3 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  text-align: center;
}

/* scripts.js slides the whole list up so the focus line sits in the middle. */
.song {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transition: transform 1.2s ease-in-out;
}

.song li {
  padding: 0.45em 0;
  opacity: 0;                      /* 3+ lines away: invisible */
  transform: scale(0.92);
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.song li.d0 { opacity: 1;    transform: scale(1); }   /* the focus line */
.song li.d1 { opacity: 0.45; }                        /* one before / one after */
.song li.d2 { opacity: 0.15; }                        /* two before / two after */

/* The timer is data for the script, not something to show. */
.song .timer { display: none; }
