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

html {
  background: var(--ink-deep);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 50% -10rem, rgb(179 138 74 / 0.08), transparent 34rem),
    var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizelegibility;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 430;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.4rem;
  font-size: clamp(3rem, 7vw, 6.7rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

h2 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 4.6vw, 4.7rem);
  letter-spacing: -0.038em;
  line-height: 1;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

p {
  max-width: 58ch;
  margin-bottom: 1.3rem;
  color: var(--cream-soft);
}

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

:focus-visible {
  border-radius: 1px;
  outline: 0;
  box-shadow: var(--focus);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--stone {
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 78% 12%, rgb(179 138 74 / 0.08), transparent 23rem),
    var(--stone);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  min-height: 44px;
  padding: 0.7rem 1rem;
  translate: 0 -150%;
  background: var(--cream);
  color: var(--ink);
  font-weight: 700;
}

.skip-link:focus {
  translate: 0;
}

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

.page-label {
  margin-bottom: 1.25rem;
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
