/* Base reset and shared primitives. Page styles live in home.css,
   tokens in tokens.css. */

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

* {
  margin: 0;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--paper);
  background-image: url("/assets/paper_texture-a339db4b.jpg");
  background-size: 1440px auto;
  background-blend-mode: multiply;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

address {
  font-style: normal;
}

:focus-visible {
  outline: var(--focus-ring-width) solid var(--ink);
  outline-offset: var(--focus-ring-offset);
  border-radius: 1px;
}

.site-footer :focus-visible,
.testimonial :focus-visible {
  outline-color: var(--paper-on-dark);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-300%);
}

.skip-link:focus {
  transform: none;
}

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

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  font-weight: 700;
  font-size: var(--text-base);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 6px;
}

.button--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .button {
    transition: background-color 160ms ease, color 160ms ease;
  }
}

.button--primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.button--ghost:hover {
  background: var(--accent);
  color: var(--ink);
  border-color: transparent;
}
