@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-soft-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
}

:root {
  --sky: #0B1320;
  --sky-low: #131E30;
  --mist: #E6E2D8;
  --mist-dim: #B8B5AD;
  --slate: #8792A1;
  --line: #2A3648;
  --glow: #D99A5B;
  --glow-strength: 34%;
  --gutter: clamp(1.5rem, 8vw, 7rem);
  --glow-x: 30%;
  --spot-x: 30%;
  --spot-a: 0;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}
html[data-sky="dawn"]  { --glow: #E3B7A0; --glow-strength: 24%; }
html[data-sky="day"]   { --glow: #9DB4CE; --glow-strength: 14%; }
html[data-sky="dusk"]  { --glow: #D99A5B; --glow-strength: 34%; }
html[data-sky="night"] { --glow: #4A5A8C; --glow-strength: 12%; }

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

html {
  background: var(--sky);
  color: var(--mist);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--mono);
  background: linear-gradient(to bottom, var(--sky) 0%, var(--sky-low) 62%, var(--sky) 100%);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  display: grid;
  grid-template-rows: minmax(62vh, auto) 1fr;
  grid-template-rows: minmax(62svh, auto) 1fr;
}

.above {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem var(--gutter) clamp(1.5rem, 3.5vh, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.above::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(14rem, 44vmin, 26rem);
  transform: translateY(50%);
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 34% 10% at var(--glow-x) 50%,
      color-mix(in srgb, var(--glow) var(--glow-strength), transparent),
      transparent 70%),
    radial-gradient(ellipse 70% 44% at var(--glow-x) 50%,
      color-mix(in srgb, var(--glow) calc(var(--glow-strength) / 2.2), transparent),
      transparent 72%);
}

.above::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  pointer-events: none;
  opacity: var(--spot-a);
  background: radial-gradient(ellipse 11rem 1.5px at var(--spot-x) 50%,
    color-mix(in srgb, var(--glow) 70%, var(--mist)),
    color-mix(in srgb, var(--glow) 40%, transparent) 40%,
    transparent 100%);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 330;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mist);
  text-wrap: balance;
}

.descriptor {
  margin: clamp(0.9rem, 2vh, 1.4rem) 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  color: var(--mist-dim);
  max-width: 34ch;
  text-wrap: balance;
}


.return {
  color: var(--mist-dim);
  text-decoration: none;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
  border-radius: 2px;
}
.return:hover, .return:focus-visible {
  text-decoration: underline;
}
.return:focus-visible {
  outline: 1px solid var(--mist);
  outline-offset: 4px;
}

.return {
  display: inline-block;
  margin: clamp(1.5rem, 3.5vh, 2.5rem) var(--gutter) 2rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

footer {
  padding: 1.5rem var(--gutter) 1.75rem;
  font-size: 0.6875rem;
  line-height: 1.8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}
footer p { margin: 0; max-width: 72ch; }

.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform, color; transform-origin: 50% 70%; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

main, footer {
  animation: reveal 1.2s ease-out both;
}
@keyframes reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  main, footer { animation: none; }
}

.wordmark--404 {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  max-width: 14ch;
}
