/* Tokens ------------------------------------------------------------ */
:root {
  --ink: #241c32;
  --ink-key: #111111;
  --muted: #655d73;
  --accent: #d96c9c;
  --accent-deep: #a8406f;
  --paper: #ffffff;
  --tint-pink: #fff7fb;
  --tint-lilac: #f1f0ff;
  --rule: rgba(36, 28, 50, 0.16);
  --plum: #2f2542;
  --gold: #ffdfa0;
  --gold-ink: #8b4d20;

  --font-display: "Satoshi", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --gutter: 24px;
  --section-space: clamp(4.5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (min-width: 600px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 48px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

canvas, svg {
  display: block;
}

:focus-visible {
  outline: 3px solid var(--ink-key);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Utilities --------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--ink-key);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0.5rem);
  outline-color: var(--accent);
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 160ms ease;
}

.text-link:hover {
  text-decoration-color: var(--accent);
}

/* Scroll reveal ----------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
