:root {
  color-scheme: light dark;

  --paper: oklch(95.8% 0.022 88);
  --ink: oklch(24% 0.032 48);
  --muted: oklch(46% 0.028 52);
  --four: oklch(56% 0.165 38);
  --orbit: oklch(24% 0.032 48 / 0.14);
  --river: oklch(24% 0.032 48 / 0.08);
  --status: oklch(24% 0.032 48 / 0.7);

  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-ui: "Figtree", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --space: 1.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(18% 0.02 55);
    --ink: oklch(93% 0.02 88);
    --muted: oklch(72% 0.03 80);
    --four: oklch(72% 0.16 38);
    --orbit: oklch(93% 0.02 88 / 0.16);
    --river: oklch(93% 0.02 88 / 0.08);
    --status: oklch(93% 0.02 88 / 0.7);
  }
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.page {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  padding-bottom: 0;
  overflow: hidden;
}

.wordmark {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 6vh, 4.5rem);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.1em 0.3em;
}

.glyph {
  position: relative;
  display: grid;
  place-items: center;
  font-size: clamp(7.5rem, 28vw, 16rem);
  padding: 0.08em;
}

.orbit {
  position: absolute;
  width: 1.06em;
  height: 1.06em;
  color: var(--orbit);
  pointer-events: none;
}

.orbit circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.35;
  stroke-linecap: round;
  stroke-dasharray: 42 250;
  transform-origin: 50% 50%;
  animation: orbit-in 900ms var(--ease-out) both;
}

.pi-btn {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1em;
  font-weight: 300;
  line-height: 0.85;
  cursor: pointer;
}

.pi-btn:focus-visible {
  outline: 2px solid var(--four);
  outline-offset: 0.08em;
}

.aside {
  margin: 0;
  padding-bottom: 0.22em;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  animation: rise 700ms 80ms var(--ease-out) both;
}

.four {
  color: var(--four);
  font-weight: 600;
}

.approx {
  margin: 1.25rem 0 0;
  max-width: 12ch;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  animation: rise 700ms 160ms var(--ease-out) both;
}

.status {
  min-height: 1.5rem;
  margin: 0 0 0.75rem;
  color: var(--status);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
}

.river {
  margin: 0 calc(clamp(1.25rem, 4vw, 3rem) * -1);
  padding: 0 clamp(1.25rem, 4vw, 3rem) 1.5rem;
  color: var(--river);
  font-family: var(--font-display);
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: 0.22em;
  word-break: break-all;
  max-height: 4.2em;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, black, transparent);
}

@keyframes orbit-in {
  from {
    opacity: 0;
    transform: rotate(-18deg);
  }
  to {
    opacity: 1;
    transform: rotate(0deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .pi-btn {
    transition: transform 280ms var(--ease-out);
  }

  .pi-btn:hover {
    transform: rotate(-6deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit circle,
  .aside,
  .approx,
  .pi-btn {
    animation: none;
    transition: none;
  }
}

@media (min-width: 720px) {
  .glyph {
    font-size: clamp(8rem, 22vw, 16rem);
  }
}
