/* Shared by every page. */

/* The sky colors are set by theme.js from the visitor's sun; registered so they can animate. */
@property --sky-top { syntax: "<color>"; inherits: true; initial-value: #F5F3EE; }
@property --sky-bottom { syntax: "<color>"; inherits: true; initial-value: #F5F3EE; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #121212; }
:root {
  --sky-top: #F5F3EE;
  --sky-bottom: #F5F3EE;
  --ink: #121212;
}
/* theme.js eases the sky itself; only the ink, which flips at dusk and dawn, eases here. */
.settled { transition: --ink 3s ease; }

/* Crossfade between pages where the browser supports it. */
@view-transition { navigation: auto; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { background: var(--sky-bottom); }
/* The sky stays put while a page scrolls. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}
body {
  color: var(--ink);
  font: 500 12px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
h1, p, ol { margin: 0; padding: 0; font: inherit; }
a { color: inherit; text-decoration: none; }
.link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 14px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 1s ease 0.45s, transform 1s cubic-bezier(.2,.7,.2,1) 0.45s;
}
.ready footer { opacity: 1; transform: none; }
footer p { opacity: 0.55; }
footer a { pointer-events: auto; }

@media (prefers-reduced-motion: reduce) {
  footer { transition: none; }
}
