@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 380;
  font-display: swap;
  src: url("fonts/fraunces-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/outfit.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Payne's gray. A painter's blue-black, cooler than charcoal and short of pure black. */
  --bg: #141517;
  --ivory: #efeae2;
  --quiet: #b4bac2;
  --accent: #ff5757;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

.surface {
  position: fixed;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 48% 42%, #23262c 0%, transparent 68%),
    radial-gradient(ellipse 55% 50% at 12% 88%, #0c0e12 0%, transparent 62%),
    radial-gradient(ellipse 48% 42% at 92% 8%, #1c212b 0%, transparent 60%),
    #141517;
}

@media (prefers-reduced-motion: no-preference) {
  .surface {
    animation: drift 72s ease-in-out infinite alternate;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(-3.5%, -2.5%, 0) scale(1.06);
  }
}

main {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    calc(2.75rem + env(safe-area-inset-top))
    1.5rem
    calc(4.25rem + env(safe-area-inset-bottom));
  text-align: center;
}

h1 {
  margin: 0;
  font-weight: inherit;
  line-height: 0;
}

.logo {
  width: auto;
  height: auto;
  max-width: min(86vw, 32rem);
  max-height: 30vh;
}

blockquote {
  margin: clamp(2.1rem, 5vh, 3rem) 0 0;
  padding: 0;
  border: 0;
  max-width: min(34rem, 100%);
}

blockquote p {
  margin: 0;
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.22rem, 2.4vw, 1.48rem);
  line-height: 1.38;
  letter-spacing: -0.018em;
  text-wrap: balance;
  color: var(--ivory);
}

.signal {
  margin: clamp(2rem, 4.5vh, 2.75rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.signal-word {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--quiet);
}

.weeks {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 0.5rem;
}

.weeks span {
  display: block;
  width: 1.05rem;
  height: 1px;
  background: var(--quiet);
}

.weeks span.is-now {
  height: 0.49rem;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  main {
    animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 420px) {
  .weeks {
    gap: 0.4rem;
  }

  .weeks span {
    width: 0.82rem;
  }

  .weeks span.is-now {
    height: 0.38rem;
  }
}

@media (forced-colors: active) {
  .surface {
    display: none;
  }

  .weeks span.is-now {
    background: CanvasText;
  }
}
