@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --ink: #151514;
  --ink-2: #55534e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --ink: #f2f2f2;
    --ink-2: #a6a6a6;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  /* Fill the visible screen (dvh tracks mobile browser toolbars) and centre the block in it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(clamp(32px, 7vh, 72px), env(safe-area-inset-top))
    max(clamp(24px, 6vw, 72px), env(safe-area-inset-right))
    max(clamp(32px, 7vh, 72px), env(safe-area-inset-bottom))
    max(clamp(24px, 6vw, 72px), env(safe-area-inset-left));
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  /* One size drives everything: it follows the screen's width and height (whichever is
     tighter), so the whole statement fits and stays centred from phones to large displays. */
  font-size: clamp(1.0625rem, min(0.85rem + 0.55vw, 0.55rem + 1.5vh), 1.5rem);
  width: 100%;
  max-width: 31em;
}

.mark {
  display: block;
  width: 1.4em;
  height: auto;
  margin-bottom: 2em;
}

p {
  margin: 0;
  line-height: 1.52;
  letter-spacing: -0.016em;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

.lead {
  font-weight: 500;
}

p:not(.lead) {
  color: var(--ink-2);
}

.meta {
  margin-top: 2.25em;
  font-size: 0.72em;
  letter-spacing: -0.006em;
}

.nowrap {
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  main > :nth-child(2) {
    animation-delay: 0.06s;
  }
  main > :nth-child(3) {
    animation-delay: 0.12s;
  }
  main > :nth-child(4) {
    animation-delay: 0.18s;
  }
  main > :nth-child(5) {
    animation-delay: 0.24s;
  }
  main > :nth-child(6) {
    animation-delay: 0.3s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
