@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-vf-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url('fonts/newsreader-vf-i-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/jetbrainsmono-vf-latin.woff2') format('woff2');
}

:root {
  --void: #08080A;
  --rule: rgba(236, 229, 216, 0.09);
  --rule-2: rgba(236, 229, 216, 0.17);

  --bone: #EFE9DD;
  --bone-soft: #D6CFC2;
  --bone-2: #A49D90;
  --bone-3: #847D71;

  --brass: #C79A5B;
  --brass-lit: #E3BC85;
  --patina: #75A79A;

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell: 1160px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 420ms;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--void);
  color: var(--bone-soft);
  font-family: var(--serif);
  font-size: clamp(16.5px, 1.05vw, 18.5px);
  line-height: 1.7;
  font-optical-sizing: auto;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72rem 46rem at 6% -14%, rgba(199, 154, 91, 0.13), transparent 62%),
    radial-gradient(54rem 40rem at 102% 2%, rgba(117, 167, 154, 0.075), transparent 60%),
    radial-gradient(96rem 62rem at 50% 128%, rgba(236, 229, 216, 0.04), transparent 66%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.04;
  background-image: var(--grain);
  background-repeat: repeat;
}

.rails {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - var(--gutter) * 2), var(--shell));
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, var(--rule) 0 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  border-right: 1px solid var(--rule);
  opacity: 0.7;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

::selection {
  background: rgba(199, 154, 91, 0.3);
  color: var(--bone);
}

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 2px;
}

h1, h2 {
  margin: 0;
  font-weight: 500;
}

p { margin: 0 0 1em; }

.rail {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.94), rgba(8, 8, 10, 0.66));
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--rule);
}

.rail-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.62ch;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--bone);
  text-decoration: none;
  white-space: nowrap;
}

.mark .sfx {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-3);
  transition: color var(--dur) var(--ease);
}

.mark:hover .sfx { color: var(--brass); }

.rail-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--bone-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.rail-link:hover {
  color: var(--brass-lit);
  border-bottom-color: rgba(199, 154, 91, 0.5);
}

.hero { padding: clamp(52px, 8.5vw, 116px) 0 0; }

.wordmark {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  cursor: default;
  margin-bottom: clamp(30px, 4.4vw, 60px);
}

.wm-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  transition: opacity var(--dur) var(--ease);
}

.wm-half--a { color: var(--brass); }
.wm-half--b { color: var(--patina); }

.wm-glyphs {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 12.6vw, 190px);
  line-height: 0.9;
  letter-spacing: -0.028em;
  color: var(--bone);
  white-space: nowrap;
}

.wm-brace {
  position: relative;
  width: 100%;
  height: clamp(8px, 0.95vw, 15px);
  margin-top: clamp(11px, 1.3vw, 20px);
  border: 1px solid currentColor;
  border-top: 0;
  opacity: 0.5;
  transform-origin: 50% 0;
  transition: opacity var(--dur) var(--ease);
}

.wm-brace::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: clamp(7px, 0.85vw, 12px);
  background: currentColor;
}

.wm-label {
  margin-top: calc(clamp(7px, 0.85vw, 12px) + 9px);
  font-family: var(--mono);
  font-size: clamp(8.5px, 0.8vw, 11.5px);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule-bleed {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  border-top: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(26px, 3.4vw, 48px) 0 clamp(30px, 4vw, 56px);
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--bone);
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--brass-lit);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(17.5px, 1.35vw, 21px);
  line-height: 1.58;
  color: var(--bone-2);
  text-wrap: pretty;
}

.sections { counter-reset: sect; }

.sect {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(12px, 1.6vw, 18px);
  padding: clamp(32px, 4.4vw, 56px) 0;
  border-top: 1px solid var(--rule);
}

.sect-head {
  display: flex;
  align-items: baseline;
  gap: 1ch;
}

.sect-head::before {
  counter-increment: sect;
  content: counter(sect, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brass);
  opacity: 0.8;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.sect:hover .sect-head::before {
  opacity: 1;
  color: var(--brass-lit);
}

.sect h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.sect-body { max-width: 62ch; }
.sect-body > p:last-child { margin-bottom: 0; }
.sect-body p { color: var(--bone-soft); }

.mailto {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--bone);
  text-decoration: none;
  padding-bottom: 0.14em;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}

.mailto:hover {
  color: var(--brass-lit);
  background-size: 100% 1px;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  padding: clamp(22px, 2.8vw, 34px) 0 clamp(40px, 6vw, 76px);
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.6;
  color: var(--bone-3);
}

.foot a {
  color: var(--bone-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.foot a:hover {
  color: var(--brass-lit);
  border-bottom-color: rgba(199, 154, 91, 0.5);
}

.foot .sep {
  margin: 0 0.75ch;
  opacity: 0.4;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(30px, 4vw, 52px) 0 0;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.8ch;
  color: var(--bone-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.crumbs a:hover { color: var(--brass-lit); }

.crumbs .arw {
  display: inline-block;
  color: var(--brass);
  transition: transform var(--dur) var(--ease);
}

.crumbs a:hover .arw { transform: translateX(-4px); }

.doc {
  max-width: 780px;
  margin-inline: auto;
  padding: clamp(30px, 4.4vw, 60px) 0 clamp(56px, 8vw, 108px);
}

.doc-head {
  padding-bottom: clamp(20px, 2.6vw, 32px);
  margin-bottom: clamp(26px, 3.4vw, 46px);
  border-bottom: 1px solid var(--rule);
}

.doc h1 { font-size: clamp(30px, 4.2vw, 50px); }

.doc .muted {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-3);
}

.prose { counter-reset: clause; }
.prose p { color: var(--bone-soft); }
.prose > p:first-of-type { color: var(--bone-2); }

.prose h2 {
  position: relative;
  margin: clamp(34px, 3.6vw, 50px) 0 0.55em;
  padding-left: 38px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--bone);
}

.prose h2::before {
  counter-increment: clause;
  content: counter(clause, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.42em;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--brass);
  opacity: 0.75;
}

.prose a {
  color: var(--brass);
  text-decoration: none;
  border-bottom: 1px solid rgba(199, 154, 91, 0.35);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.prose a:hover {
  color: var(--brass-lit);
  border-bottom-color: currentColor;
}

.addr {
  margin-top: 1.6em;
  padding-left: 18px;
  border-left: 1px solid var(--rule-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--bone-2);
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: clamp(32px, 4.6vw, 76px);
    align-items: start;
  }

  .hero-grid .lede {
    padding-left: clamp(32px, 4.6vw, 76px);
    border-left: 1px solid var(--rule);
  }

  .sect {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: clamp(32px, 5vw, 84px);
  }
}

@media (min-width: 1040px) {
  .prose h2 { padding-left: 0; }
  .prose h2::before { left: -64px; }
}

@media (max-width: 899px) {
  .rails { display: none; }
}

@media (hover: hover) {
  .wordmark:hover .wm-half { opacity: 0.42; }
  .wordmark:hover .wm-half:hover { opacity: 1; }
  .wordmark:hover .wm-half:hover .wm-brace { opacity: 1; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes converge-r {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: none; }
}

@keyframes converge-l {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: none; }
}

@keyframes draw {
  from { opacity: 0; transform: scaleX(0.04); }
  to { opacity: 0.5; transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  .rail { animation: fade 600ms var(--ease) both; }
  .wm-half--a .wm-glyphs { animation: converge-r 940ms var(--ease) both 80ms; }
  .wm-half--b .wm-glyphs { animation: converge-l 940ms var(--ease) both 80ms; }
  .wm-brace { animation: draw 620ms var(--ease) backwards 540ms; }
  .wm-label { animation: rise 620ms var(--ease) both 680ms; }
  .rule-bleed { animation: fade 700ms var(--ease) both 620ms; }
  .hero-grid h1 { animation: rise 760ms var(--ease) both 760ms; }
  .hero-grid .lede { animation: rise 760ms var(--ease) both 850ms; }
  .sect:nth-of-type(1) { animation: rise 760ms var(--ease) both 930ms; }
  .sect:nth-of-type(2) { animation: rise 760ms var(--ease) both 1000ms; }
  .sect:nth-of-type(3) { animation: rise 760ms var(--ease) both 1070ms; }
  .foot { animation: fade 800ms var(--ease) both 1180ms; }
  .crumbs { animation: rise 620ms var(--ease) both 60ms; }
  .doc-head { animation: rise 720ms var(--ease) both 140ms; }
  .prose { animation: rise 760ms var(--ease) both 250ms; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #111; }
  body::before, body::after, .rails, .rail, .crumbs, .foot { display: none; }
  .shell { max-width: none; padding-inline: 0; }
  .doc { max-width: none; padding: 0; }
  .doc h1, .prose h2, .prose p { color: #111; }
  .doc .muted, .addr { color: #444; }
  .prose h2 { padding-left: 0; }
  .prose h2::before { position: static; margin-right: 10px; color: #666; }
  .prose a { color: #111; border-bottom: 0; }
  .addr { border-left-color: #bbb; }
}
