/**
 * Global reset and typographic defaults. No components or page layout.
 * Depends on: tokens.css
 */
* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}

/* Keyboard focus: visible ring on interactive elements (see tokens --focus-ring) */
:where(a, button, summary):focus-visible {
  outline: var(--focus-ring);
  outline-offset: 2px;
}

:where(a, button, summary):focus:not(:focus-visible) {
  outline: none;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--color-ink);
  background: linear-gradient(180deg, #fbf7f1 0%, var(--color-sand) 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 500;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-ink-a14);
  background: var(--color-surface);
  color: var(--color-ink);
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p,
ul,
ol,
dl {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-heading);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

p {
  max-width: var(--measure-narrow);
  color: var(--color-ink-soft);
  line-height: 1.7;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

summary {
  cursor: pointer;
}