:root {
  --bg: #080809;
  --ivory: #EDE8DC;
  --muted: #8A8580;
  --bronze: #B9A178;
  --rule: rgba(237, 232, 220, 0.16);
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); }
html, body { width: 100%; background: var(--bg); color: var(--ivory); }
body {
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  position: relative;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
body::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none; z-index: 80;
  background: url("grain.png");
  opacity: 0.08;
  mix-blend-mode: overlay;
}

.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--gutter) 0;
}
.nav img { display: block; width: clamp(132px, 14vw, 176px); height: auto; }
.nav nav { display: flex; gap: 32px; }
.nav nav a {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 400;
}
.nav nav a:hover,
footer nav a:hover { color: var(--bronze); }
.nav nav a[aria-current="page"],
footer nav a[aria-current="page"] { color: var(--bronze); }

.kicker {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 400; color: var(--muted);
}

.doc {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 148px 0 96px;
  text-align: left;
  overflow-wrap: break-word;
}
.doc h1 {
  margin-top: 14px;
  font-family: Syne, Outfit, sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.doc-body {
  margin-top: 36px;
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  font-size: 17px;
  line-height: 1.55;
}
.doc-body p { margin-bottom: 16px; }
.doc-body h2 {
  margin: 36px 0 12px;
  font-family: Syne, Outfit, sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body a {
  border-bottom: 1px solid rgba(237, 232, 220, 0.4);
  padding-bottom: 1px;
}
.doc-body a:hover { border-bottom-color: var(--bronze); }
.doc-body ul,
.doc-body ol { margin: 0 0 16px 1.25em; }
.doc-body li { margin: 0.35em 0; }
.doc-body ul { list-style: disc; }
.doc-body ol { list-style: decimal; }
.doc-body li ul,
.doc-body li ol { margin-top: 0.35em; margin-bottom: 0.35em; }

footer {
  min-height: 120px;
  height: auto;
  padding: 28px var(--gutter);
  gap: 16px 32px;
  flex-wrap: wrap;
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
footer nav a { color: var(--ivory); }
