@font-face {
  font-family: Archivo;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/archivo-latin-var.woff2") format("woff2");
}

:root {
  --paper: #12100e;
  --ink: #f6f2ec;
  --muted: #b3aa9d;
  --ember: #ff8a4c;
  --rule: #2a2622;
  --step: clamp(1rem, 0.6rem + 1.6vw, 1.5rem);
  --inset: clamp(1.5rem, 0.5rem + 5.2vw, 6rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: calc(var(--step) * 4);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem) var(--inset);
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-synthesis-weight: none;
  line-height: 1.5;
}

main {
  margin: auto 0;
  max-width: 34ch;
}

h1 {
  margin: 0;
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 5.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.032em;
}

.line {
  margin: calc(var(--step) * 1.1) 0 0;
  max-width: 21ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink);
}

.note {
  margin: calc(var(--step) * 0.5) 0 0;
  max-width: 30ch;
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  color: var(--muted);
}

footer {
  padding-top: var(--step);
  border-top: 1px solid var(--rule);
}

.mark {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--muted);
}

::selection {
  background: var(--ember);
  color: #1a1005;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: 2px;
}

html {
  scrollbar-color: var(--rule) var(--paper);
  caret-color: var(--ember);
}

@media (prefers-reduced-motion: no-preference) {
  main > * {
    animation: rise 620ms cubic-bezier(0.2, 0.7, 0.25, 1) backwards;
  }
  main > *:nth-child(2) { animation-delay: 70ms; }
  main > *:nth-child(3) { animation-delay: 130ms; }
}

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