@font-face {
  font-family: "Rock Salt";
  src: url("../fonts/rock-salt.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Changa One";
  src: url("../fonts/changa-one.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  color: #f0f5f1;
  background: #0b1110;
  font-family: "Changa One", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }

#particles {
  position: fixed;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, transparent 6%, #0002 29%, #000 68%);
}

body {
  background:
    radial-gradient(ellipse at 50% 45%, #13251e 0%, transparent 58%),
    radial-gradient(ellipse at 12% 105%, #101d19 0%, transparent 53%),
    #0b1110;
}

.landing {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(1.25rem, 6vw, 4rem);
}

.intro {
  display: grid;
  justify-items: center;
  gap: clamp(1.25rem, 3.2vw, 2rem);
  width: 100%;
  margin-bottom: 4svh;
  text-align: center;
}

h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.26em;
  max-width: 100%;
  margin: 0;
  color: #f0f5f1;
  font-family: "Rock Salt", cursive;
  font-size: clamp(1.75rem, 5.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.4;
}

h1 span { white-space: nowrap; }

h1 .ampersand {
  color: #8fb9a4;
  font-size: 0.7em;
}

@media (max-width: 700px) {
  h1 {
    display: grid;
    justify-items: center;
    row-gap: 0.16em;
    font-size: clamp(1.65rem, 8.3vw, 2.9rem);
  }
}

.notes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: min(100%, 30rem);
  color: #a6b9ad;
  font-size: clamp(1rem, 2vw, 1.24rem);
  letter-spacing: 0.015em;
  line-height: 1.5;
}

.note {
  grid-area: 1 / 1;
  visibility: hidden;
  margin: 0;
  opacity: 0;
  text-wrap: balance;
}

.note.is-current {
  visibility: visible;
  opacity: 1;
  transition: opacity 260ms ease;
}

.notes.is-fading .note.is-current { opacity: 0; }

.notes:focus-visible {
  outline: 1px solid #84ad99;
  outline-offset: 0.5rem;
  border-radius: 0.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .note.is-current { transition: none; }
}
