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

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

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: var(--brass);
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--max));
  margin-inline: auto;
}

/* Typography helpers */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.display {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 0.95;
}

.lead {
  font-size: var(--text-lg);
  color: var(--paper-muted);
  max-width: 36ch;
  font-weight: 300;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.35rem;
  transition: color 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}

.cta::after {
  content: "→";
  color: var(--brass);
  transition: transform 0.4s var(--ease-out);
}

.cta:hover {
  color: var(--brass-soft);
  border-color: var(--brass-soft);
}

.cta:hover::after {
  transform: translateX(4px);
}

/* Page transition veil */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
}

/* Lazy images */
img[loading="lazy"] {
  background: var(--ink-soft);
}
