@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/instrument-serif-400-italic.woff2") format("woff2");
}

:root {
  --ink: #090a0c;
  --ivory: #f6f1e8;
  --lead: #f3eee6;
  --quiet: #e4dccf;
  --gold: #e4c48a;
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --edge: max(0.9rem, env(safe-area-inset-top));
}

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

html {
  background: var(--ink);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection {
  background: var(--gold);
  color: #16130f;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform, opacity;
}

.blob-gold {
  width: 68vw;
  height: 52vw;
  min-width: 340px;
  min-height: 260px;
  left: -18vw;
  top: -20vw;
  background: radial-gradient(
    ellipse at 42% 42%,
    rgba(255, 232, 176, 1) 0%,
    rgba(236, 188, 102, 0.82) 34%,
    rgba(188, 132, 68, 0.28) 62%,
    rgba(188, 132, 68, 0) 78%
  );
  animation: drift-a 20s ease-in-out infinite;
}

.blob-wine {
  width: 62vw;
  height: 54vw;
  min-width: 320px;
  min-height: 270px;
  right: -18vw;
  bottom: -22vw;
  background: radial-gradient(
    ellipse at 48% 48%,
    rgba(232, 112, 148, 1) 0%,
    rgba(176, 64, 98, 0.78) 38%,
    rgba(96, 30, 52, 0.3) 64%,
    rgba(96, 30, 52, 0) 80%
  );
  animation: drift-b 26s ease-in-out infinite;
  animation-delay: -9s;
}

.blob-tide {
  width: 52vw;
  height: 42vw;
  min-width: 260px;
  min-height: 220px;
  right: -10vw;
  top: -16vw;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(168, 228, 236, 1) 0%,
    rgba(110, 178, 188, 0.78) 36%,
    rgba(48, 96, 108, 0.28) 64%,
    rgba(48, 96, 108, 0) 80%
  );
  animation: drift-c 16s ease-in-out infinite;
  animation-delay: -4s;
}

@keyframes drift-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.38;
  }
  50% {
    transform: translate3d(8vw, 6vh, 0) scale(1.16);
    opacity: 1;
  }
}

@keyframes drift-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.04);
    opacity: 0.32;
  }
  50% {
    transform: translate3d(-7vw, -5vh, 0) scale(0.96);
    opacity: 1;
  }
}

@keyframes drift-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate3d(-6vw, 8vh, 0) scale(1.18);
    opacity: 1;
  }
}

.vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 58% 46% at 50% 46%,
      rgba(9, 10, 12, 0.7) 0%,
      rgba(9, 10, 12, 0.26) 48%,
      rgba(9, 10, 12, 0.08) 66%,
      rgba(9, 10, 12, 0.52) 100%
    ),
    linear-gradient(to top, rgba(9, 10, 12, 0.72), rgba(9, 10, 12, 0) 24%),
    linear-gradient(to bottom, rgba(9, 10, 12, 0.42), rgba(9, 10, 12, 0) 18%);
}

.mark {
  position: fixed;
  z-index: 3;
  top: max(1.55rem, calc(env(safe-area-inset-top) + 0.7rem));
  left: max(1.7rem, calc(env(safe-area-inset-left) + 0.85rem));
  width: 17px;
  height: 20px;
  color: var(--ivory);
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.5rem 1.5rem 5.75rem;
}

main::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(760px, 92vw);
  height: min(420px, 54vh);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(246, 241, 232, 0.06), rgba(246, 241, 232, 0) 68%);
  pointer-events: none;
}

h1 {
  margin: 0;
  padding-inline: 0.06em;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  /* Room for the italic descender, so the rule sits clear of the y. */
  padding-bottom: 0.18em;
}

.rule {
  width: 2.5rem;
  height: 1px;
  margin: 0.35rem auto clamp(1.2rem, 2.4vh, 1.7rem);
  background: var(--gold);
}

.lead {
  margin: 0;
  max-width: 18em;
  font-size: clamp(1.2rem, 2.3vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: var(--lead);
  text-wrap: balance;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: clamp(1.45rem, 3.2vh, 2.15rem) 0 0;
  padding-left: 0.28em;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--quiet);
}

.dot {
  width: 0.42rem;
  height: 0.42rem;
  margin-left: -0.28em;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(228, 196, 138, 0.55);
  animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 196, 138, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(228, 196, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 196, 138, 0); }
}

footer {
  position: fixed;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding:
    0
    max(1.7rem, calc(env(safe-area-inset-right) + 0.85rem))
    max(1.2rem, calc(env(safe-area-inset-bottom) + 0.55rem))
    max(1.7rem, calc(env(safe-area-inset-left) + 0.85rem));
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--quiet);
}

.year {
  letter-spacing: 0.18em;
}

@media (max-width: 720px) {
  .blob {
    filter: blur(52px);
  }

  .mark {
    width: 15px;
    height: 18px;
  }

  footer {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }
}

@media (max-height: 560px) {
  main {
    padding-block: 3.4rem;
  }

  h1 {
    font-size: clamp(3.5rem, 18vh, 6.5rem);
  }

  .lead {
    font-size: 1.1rem;
  }

  .status {
    margin-top: 1rem;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(3.6rem, 22vw, 5rem);
  }

  .status {
    letter-spacing: 0.18em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blob,
  .dot {
    animation: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ivory: #fffaf3;
    --lead: #fffaf3;
    --quiet: #f6f1e8;
  }

  .blob {
    opacity: 0.45;
  }
}
