:root {
  color-scheme: dark;
  --ink: #f3eff8;
  --muted: #b4adbd;
  --dim: #9a92a4;
  --bg: #100e13;
  --surface: #17141b;
  --surface-raised: #1d1922;
  --line: #342d3d;
  --purple: #c2a5ff;
  --purple-soft: #a58dca;
  --purple-wash: #241d2d;
  --warning: #f0bd9d;
  --page: 1160px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); line-height: 1.65; }
a { color: inherit; text-decoration-color: var(--purple-soft); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; }
::selection { color: #120f17; background: var(--purple); }

.skip-link {
  position: absolute; z-index: 20; top: .75rem; left: .75rem; transform: translateY(-160%);
  padding: .65rem .9rem; color: var(--bg); background: var(--purple); font-weight: 700;
}
.skip-link:focus { transform: none; }
.shell { width: min(var(--page), calc(100% - 3rem)); margin-inline: auto; }
.topline { border-bottom: 1px solid var(--line); color: var(--muted); font: 600 .7rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.topline-inner { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; }
.topline b { color: var(--purple); font-weight: 700; }

.site-header { border-bottom: 1px solid var(--line); background: #100e13; }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; width: 37px; height: 37px; flex: none; place-items: center; border: 1px solid var(--purple-soft); color: var(--purple); font: 700 .8rem/1 ui-monospace, monospace; letter-spacing: -.05em; }
.brand-name { display: grid; font-size: .96rem; font-weight: 750; letter-spacing: -.035em; line-height: 1.15; }
.brand-name small { margin-top: .2rem; color: var(--dim); font: 600 .7rem/1 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { padding: .55rem .68rem; border: 1px solid transparent; color: var(--muted); font-size: .79rem; font-weight: 620; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: var(--line); color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"]::before { content: "/ "; color: var(--purple); font-family: ui-monospace, monospace; }
.nav-toggle { display: none; border: 1px solid var(--line); padding: .55rem .75rem; color: var(--ink); background: var(--surface); cursor: pointer; }

main { min-height: 65vh; }
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .7fr); gap: 3.5rem; align-items: end; padding: clamp(3rem, 8vw, 6.5rem) 0 3.2rem; }
.eyebrow, .kicker { color: var(--purple); font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, .display { margin: .75rem 0 1.1rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(3.1rem, 7.3vw, 6.4rem); font-weight: 500; letter-spacing: -.035em; line-height: .99; }
h1 em, .display em { color: var(--purple); font-weight: 500; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: clamp(1.04rem, 1.65vw, 1.22rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; gap: .55rem; padding: .7rem 1rem; border: 1px solid var(--purple); color: #17121e; background: var(--purple); font-size: .82rem; font-weight: 780; text-decoration: none; }
.button:hover { border-color: #dacbff; color: #17121e; background: #dacbff; }
.button-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.button-secondary:hover { border-color: var(--purple-soft); color: var(--ink); background: var(--purple-wash); }

.docket { position: relative; border: 1px solid var(--line); padding: 1.25rem; background: var(--surface); }
.docket::before { position: absolute; top: -1px; left: -1px; width: 42px; height: 3px; background: var(--purple); content: ""; }
.docket-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); color: var(--dim); font: 650 .7rem/1.3 ui-monospace, monospace; letter-spacing: .11em; text-transform: uppercase; }
.docket-body { padding: 1rem 0 .6rem; }
.docket-label { margin-bottom: .25rem; color: var(--dim); font: 650 .7rem/1.3 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.docket-value { margin-bottom: .95rem; color: var(--ink); font: 700 1.04rem/1.35 ui-monospace, monospace; overflow-wrap: anywhere; }
.docket-value:last-child { margin-bottom: .1rem; }
.docket-value span { color: var(--purple); }
.docket-note { margin: .6rem 0 0; color: var(--muted); font-size: .78rem; }

.section { padding: 3.4rem 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.45rem; }
.section-heading h2 { margin: .2rem 0 0; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; }
.section-heading p { max-width: 460px; margin: 0; color: var(--muted); font-size: .9rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.map-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); padding: 1.2rem; background: var(--surface); }
.card:hover { border-color: #5a4a70; }
.card-number { display: block; margin-bottom: 1.25rem; color: var(--purple); font: 700 .7rem/1 ui-monospace, monospace; }
.card h3 { margin-bottom: .5rem; font-size: 1.02rem; letter-spacing: -.02em; }
.card p { margin-bottom: .8rem; color: var(--muted); font-size: .86rem; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .15rem; color: var(--purple); font-size: .82rem; font-weight: 700; text-decoration: none; }
.card-link::after { content: "↗"; font-family: ui-monospace, monospace; }
.card-link:hover { text-decoration: underline; }
.pathway { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.path-step { padding: 1.25rem; }
.path-step + .path-step { border-left: 1px solid var(--line); }
.path-step span { color: var(--purple); font: 700 .7rem/1 ui-monospace, monospace; }
.path-step h3 { margin: .75rem 0 .45rem; font-size: .98rem; }
.path-step p { margin: 0; color: var(--muted); font-size: .85rem; }

.page-head { padding: clamp(2.75rem, 7vw, 5rem) 0 2.2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 900px; margin: .65rem 0 .8rem; font-size: clamp(2.8rem, 6vw, 5.4rem); }
.page-head p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.05rem; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 275px; gap: 3rem; padding: 2.5rem 0 4.5rem; }
.content { min-width: 0; }
.content section + section { margin-top: 2.8rem; padding-top: 2.4rem; border-top: 1px solid var(--line); }
.content h2 { margin-bottom: .8rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 2.55rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.content h3 { margin: 1.45rem 0 .4rem; font-size: 1.06rem; }
.content p, .content li { color: var(--muted); }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { display: grid; gap: .55rem; padding-left: 1.25rem; }
.content li::marker { color: var(--purple-soft); }
.aside { align-self: start; position: sticky; top: 1rem; border: 1px solid var(--line); padding: 1.1rem; background: var(--surface); }
.aside h2 { margin: .3rem 0 .75rem; font: 700 .77rem/1.4 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.aside ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.aside li { border-top: 1px solid var(--line); padding-top: .55rem; color: var(--muted); font-size: .82rem; }
.aside a { color: var(--ink); text-decoration-color: var(--purple-soft); }
.note { border-left: 2px solid var(--purple); padding: .8rem 1rem; background: var(--purple-wash); color: var(--ink); }
.note p:last-child { margin-bottom: 0; }
.warning-note { border-left-color: var(--warning); background: #241a19; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.detail { border: 1px solid var(--line); padding: 1.3rem; background: var(--surface); }
.detail h2, .detail h3 { margin: .4rem 0 .65rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.8rem; font-weight: 500; letter-spacing: -.035em; }
.detail p, .detail li { color: var(--muted); font-size: .9rem; }
.detail ul, .detail ol { display: grid; gap: .48rem; padding-left: 1.2rem; }
.mono-list { display: grid; gap: .5rem; margin: 1rem 0; padding: 0; list-style: none; }
.mono-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; border-bottom: 1px solid var(--line); padding: .5rem 0; font-size: .83rem; }
code, .code-chip { color: #e8dbff; font: 600 .88em/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
code { overflow-wrap: anywhere; }
.code-chip { display: inline-block; border: 1px solid var(--line); padding: .12rem .4rem; background: #120f16; }
.external-list { display: grid; gap: .8rem; }
.resource-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding: .8rem 0; }
.resource-row strong { font-size: .88rem; }
.resource-row span { color: var(--muted); font-size: .83rem; }
.resource-row a { color: var(--purple); font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.status-callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; border: 1px solid var(--line); padding: clamp(1.25rem, 4vw, 2.3rem); background: var(--surface); }
.status-callout h2 { margin: .35rem 0 .55rem; font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.045em; }
.status-callout p { max-width: 620px; margin: 0; color: var(--muted); }
.status-mark { display: grid; width: 88px; height: 88px; place-items: center; border: 1px solid var(--purple-soft); border-radius: 50%; color: var(--purple); font: 700 .7rem/1.4 ui-monospace, monospace; text-align: center; }
.price { color: var(--purple) !important; font: 700 clamp(1.5rem, 3vw, 2rem)/1.15 ui-monospace, monospace !important; letter-spacing: -.05em; }
.small { color: var(--dim); font-size: .76rem !important; }
.footer { border-top: 1px solid var(--line); background: #0d0b10; }
.footer-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; padding: 2.2rem 0; }
.footer-copy { max-width: 410px; margin: .8rem 0 0; color: var(--dim); font-size: .79rem; }
.footer-links { display: flex; flex-wrap: wrap; align-content: start; gap: .55rem 1.15rem; }
.footer-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding: .9rem 0; color: var(--dim); font: 600 .7rem/1.4 ui-monospace, monospace; letter-spacing: .04em; }
.creator-credit { color: var(--dim); font: 600 .7rem/1.4 ui-monospace, monospace; letter-spacing: .04em; text-align: right; }
.evidence-figure { width: 100%; min-width: 0; max-width: 797px; margin: 1.4rem 0 0; }
.evidence-figure img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.evidence-figure figcaption { margin-top: .6rem; color: var(--dim); font-size: .78rem; }

@media (max-width: 900px) {
  .header-inner { gap: 1rem; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: .5rem; font-size: .73rem; }
  .hero { gap: 2rem; }
  .page-grid { grid-template-columns: minmax(0, 1fr) 230px; gap: 1.8rem; }
}
@media (max-width: 760px) {
  .shell { width: min(var(--page), calc(100% - 2rem)); }
  .topline-inner { font-size: .7rem; letter-spacing: .04em; }
  .header-inner { min-height: 68px; flex-wrap: wrap; padding: .55rem 0; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .site-nav { display: none; width: 100%; flex-basis: 100%; align-items: stretch; flex-direction: column; border-top: 1px solid var(--line); padding: .5rem 0 .2rem; }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav a { padding: .7rem .65rem; font-size: .86rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-top: 3rem; }
  h1, .display { font-size: clamp(3.1rem, 14vw, 5.3rem); }
  .docket { max-width: 540px; }
  .grid { grid-template-columns: 1fr; }
  .pathway { grid-template-columns: 1fr; }
  .path-step + .path-step { border-top: 1px solid var(--line); border-left: 0; }
  .section { padding: 2.6rem 0; }
  .section-heading { display: block; }
  .section-heading p { margin-top: .7rem; }
  .page-head { padding-top: 2.8rem; }
  .page-head h1 { font-size: clamp(2.65rem, 12vw, 4.7rem); }
  .page-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 1.6rem; }
  .aside { position: static; order: -1; }
  .split { grid-template-columns: 1fr; }
  .status-callout { grid-template-columns: 1fr; }
  .status-mark { width: 70px; height: 70px; }
  .resource-row { grid-template-columns: 1fr auto; gap: .25rem .8rem; }
  .resource-row span { grid-column: 1 / -1; grid-row: 2; }
  .footer-main { grid-template-columns: 1fr; gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
