* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navh) + 16px);
  font-size: 18px;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: var(--paper) url("../assets/generated/parchment-map-background.webp") center / cover no-repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 7% 16%, rgba(111, 174, 183, 0.2), transparent 22rem),
    radial-gradient(circle at 94% 32%, rgba(230, 96, 54, 0.15), transparent 24rem),
    linear-gradient(180deg, rgba(7, 19, 25, 0.22), rgba(251, 244, 232, 0.72) 38%, rgba(251, 244, 232, 0.88) 74%),
    linear-gradient(90deg, rgba(7, 19, 25, 0.14), transparent 32%, rgba(201, 163, 92, 0.12));
  pointer-events: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

section[id],
header[id] {
  scroll-margin-top: calc(var(--navh) + 16px);
}

.section-anchor {
  display: block;
  height: 0;
  scroll-margin-top: 0;
  visibility: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: 0;
}

p {
  margin: 0;
}

figure,
blockquote {
  margin: 0;
}

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

.skip {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 200;
  border-radius: 0 0 var(--radius) 0;
  background: var(--teal);
  color: var(--void);
  padding: 0.75rem 1rem;
  font-weight: 800;
}

.skip:focus {
  left: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  font-family: var(--mono);
  font-size: max(0.9rem, 16px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  background: currentColor;
}

.lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.55;
  max-width: 58ch;
}

.dark .lead {
  color: rgba(248, 237, 218, 0.78);
}

.h-section {
  max-width: 18ch;
  color: inherit;
  font-size: 2.65rem;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.band {
  padding: 5.5rem 0;
}

.paper-band {
  background:
    radial-gradient(circle at 0 0, rgba(111, 174, 183, 0.12), transparent 22rem),
    radial-gradient(circle at 100% 100%, rgba(230, 96, 54, 0.1), transparent 20rem),
    linear-gradient(180deg, rgba(251, 244, 232, 0.92), rgba(239, 224, 199, 0.9)),
    url("../assets/generated/parchment-map-background.webp") center / cover no-repeat,
    var(--paper);
}

.dark {
  background:
    linear-gradient(180deg, rgba(17, 16, 12, 0.96), rgba(7, 19, 25, 0.98)),
    var(--night);
  color: var(--cream);
}

.asset-note {
  font-family: var(--mono);
  font-size: max(0.9rem, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
