/* Base: reset, typography, links, buttons, focus, utilities. */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* keep anchored headings clear of the sticky header */
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-3); }
h2 { font-family: var(--font-serif); font-weight: 600; font-size: var(--step-2); }

p { margin: 0; }

a { color: var(--jade); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  line-height: 1.2;
}

.btn--primary {
  background: var(--jade);
  color: var(--jade-ink);
}

.btn--primary:hover { background: #6fe0b6; }

/* Secondary button: outlined, for the audits so they don't compete with the fixes. */
.btn--quiet {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--violet);
  min-height: 2.75rem;
  padding: 0.6rem 1.2rem;
  font-size: var(--step--1);
}

.btn--quiet:hover { background: rgb(167 150 255 / 0.12); }

.text-link {
  font-weight: 600;
  padding-block: 0.5rem; /* comfortable tap target */
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jade);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  border-radius: 8px;
}

.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
