/* cryptopoints.co 1.0.0: "a folio on registry stone".
   Calm, exact, governed: one sheet per page on a stone ground, a garnet double margin rule as on ledger paper,
   Brygada 1918 for headings, Atkinson Hyperlegible Next for text, Atkinson Hyperlegible Mono for ledger figures only.
   No JavaScript. One motion: the conversion posted once in the home diagram (none under reduced motion). */

@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("/assets/fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Brygada 1918"; font-style: normal; font-display: swap; font-weight: 400 700;
  src: url("/assets/fonts/brygada-1918-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Brygada 1918"; font-style: italic; font-display: swap; font-weight: 400 700;
  src: url("/assets/fonts/brygada-1918-latin-wght-italic.woff2") format("woff2"); }

:root {
  --stone: #DCDCD6;      /* the registry table the sheet lies on */
  --sheet: #FCFCFA;      /* the folio */
  --ink: #1E2326;        /* graphite */
  --ink-2: #4E5559;      /* secondary text, 7.4:1 on the sheet */
  --rule: #C6C8C2;
  --rule-2: #E4E5E0;
  --garnet: #8C1D33;     /* the seal: status, links, the clearing-house */
  --garnet-tint: #F5E7EA;
  --steel: #3F5A6B;      /* the programmes' layer: settlement and custody */
  --steel-tint: #E6EDF1;
  --f-head: "Brygada 1918", "Iowan Old Style", Georgia, serif;
  --f-text: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, sans-serif;
  --f-fig: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --margin-x: 88px;      /* where the ledger margin rule sits inside the sheet */
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --stone: #111315; --sheet: #191C1F; --ink: #E7E7E2; --ink-2: #AFB4B2; --rule: #3A3F43; --rule-2: #272B2E;
    --garnet: #EE97A6; --garnet-tint: #3A2228; --steel: #9BBACB; --steel-tint: #1D282F;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--stone); color: var(--ink);
  font: 400 1.125rem/1.62 var(--f-text); font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--garnet); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--garnet); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--ink); color: var(--sheet);
  padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }

/* ---------- masthead, on the stone ---------- */
.masthead { padding: 22px 0 18px; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand .mark { color: var(--ink); flex: none; }
.mk-pt { fill: var(--garnet); }
.status-strip .mark { color: var(--garnet); }
.wordmark { font: 600 1.375rem/1 var(--f-head); letter-spacing: .005em; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding: 6px 0; display: inline-block;
  border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--garnet); font-weight: 600; }

/* ---------- the folio ---------- */
.folio {
  width: min(100% - 32px, 1200px); margin: 0 auto 56px; background-color: var(--sheet);
  box-shadow: 0 1px 0 var(--rule), 0 0 0 1px var(--rule-2);
  background-image:
    linear-gradient(to right, transparent calc(var(--margin-x) - 6px), var(--garnet) calc(var(--margin-x) - 6px),
      var(--garnet) calc(var(--margin-x) - 5px), transparent calc(var(--margin-x) - 5px),
      transparent calc(var(--margin-x) - 2px), var(--garnet) calc(var(--margin-x) - 2px),
      var(--garnet) calc(var(--margin-x) - 1px), transparent calc(var(--margin-x) - 1px));
  background-repeat: no-repeat;
}
.status-strip { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 32px 14px var(--margin-x);
  padding-left: calc(var(--margin-x) + 24px); border-bottom: 1px solid var(--rule-2);
  color: var(--garnet); font-weight: 600; font-size: .9375rem; }
.status-strip .seal { flex: none; }
.crumbs ol { list-style: none; margin: 0; padding: 18px 32px 0 calc(var(--margin-x) + 24px); display: flex; flex-wrap: wrap;
  gap: 4px 0; font-size: .9375rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.crumbs a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.sheet { padding: 40px 48px 56px calc(var(--margin-x) + 24px); }
.k-page .sheet { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 0 64px; }
.k-page .sheet > .page-head { grid-column: 1; grid-row: 1; }
.k-page .sheet > .prose { grid-column: 1; grid-row: 2; }
.k-page .sheet > .index { grid-column: 2; grid-row: 1 / span 2; }
.page-head { grid-column: 1; max-width: 46rem; margin-bottom: 8px; }

h1, h2, h3 { font-family: var(--f-head); color: var(--ink); text-wrap: balance; }
h1 { font-weight: 500; font-size: clamp(2.25rem, 1.55rem + 2.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.012em;
  margin: 0 0 .45em; }
h2 { font-weight: 600; font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); line-height: 1.18; margin: 2.2em 0 .6em;
  scroll-margin-top: 24px; }
h3 { font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 1.6em 0 .4em; }
.lede { font-size: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem); line-height: 1.5; color: var(--ink); max-width: 40em; margin: 0; }
.prose { max-width: 42rem; }
.prose > h2:first-child { margin-top: 1.4em; }
.prose p, .prose ul, .prose ol, .prose dl { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--ink-2); }
strong { font-weight: 650; }
cite { font-style: italic; }
time { font-variant-numeric: tabular-nums; }

/* the in-page index: a register of this page's entries */
.index { position: sticky; top: 24px; align-self: start; margin-top: 8px; padding-left: 20px; border-left: 1px solid var(--rule); }
.index p { margin: 0 0 10px; font: 600 .9375rem/1.3 var(--f-head); color: var(--ink-2); }
.index ol { list-style: none; margin: 0; padding: 0; counter-reset: ix; }
.index li { margin: 0; font-size: .9375rem; line-height: 1.35; }
.index a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.index a:hover { color: var(--garnet); text-decoration: underline; }

/* examples, key lines, lessons */
.example { border-left: 3px solid var(--steel); background: var(--steel-tint); padding: 14px 18px; }
.ex-label, .l-label { font-weight: 650; }
.keyline { font: 500 1.375rem/1.4 var(--f-head); color: var(--garnet); margin: 1.4em 0 !important; max-width: 36rem; }
.lesson { padding-left: 18px; border-left: 3px solid var(--garnet); }

/* home */
.k-home .sheet { padding-top: 48px; }
.stamp { display: inline-block; margin: 0 0 36px; padding: 16px 22px; border: 2px solid var(--garnet);
  outline: 1px solid var(--garnet); outline-offset: 3px; color: var(--garnet);
  font: 650 clamp(1.25rem, 1.05rem + .9vw, 1.75rem)/1.3 var(--f-text); letter-spacing: -.005em; max-width: 100%; }
.k-home h1 { max-width: 15em; }
.k-home .home-top { max-width: 52rem; }
.k-home .home-rest { max-width: 46rem; }
.rules { list-style: none; padding: 0 !important; margin: 0 0 1.2em !important; counter-reset: rule; }
.rules > li { counter-increment: rule; position: relative; padding: 18px 0 6px 64px; border-top: 1px solid var(--rule-2); margin: 0 !important; }
.rules > li::before { content: counter(rule); position: absolute; left: 0; top: 14px; width: 40px; height: 40px;
  border: 1.5px solid var(--garnet); color: var(--garnet); display: grid; place-items: center;
  font: 600 1.25rem/1 var(--f-head); }
.rules h3 { margin: 0 0 .3em; }
.register { margin: 0; border-top: 1px solid var(--rule); }
.register > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--rule-2); }
.register dt { font: 600 1.125rem/1.4 var(--f-head); }
.register dd { margin: 0; color: var(--ink-2); }

/* the signature: one conversion through the clearing-house */
.conversion { margin: 44px 0 8px; }
.conversion figcaption { max-width: 46rem; margin-top: 14px; color: var(--ink-2); font-size: 1rem; }
.cx { display: block; width: 100%; height: auto; }
.cx-v { display: none; margin-inline: auto; max-width: 420px; }
.cx text { fill: var(--ink); font-family: var(--f-text); }
.cx .t-h { font: 600 21px var(--f-head); }
.cx .t-s { font-size: 15px; }
.cx .t-xs { font-size: 14px; fill: var(--ink-2); }
.cx .t-fig { font-family: var(--f-fig); font-size: 15px; font-variant-numeric: tabular-nums; }
.cx .t-col { font-size: 14px; font-weight: 650; fill: var(--ink-2); }
.cx .before { opacity: 0; }
.cx .ledger { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.cx .row-line { stroke: var(--rule); stroke-width: 1; }
.cx .row-me { fill: var(--garnet-tint); }
.cx .me text, .cx .t-me { fill: var(--garnet); font-weight: 650; }
.cx .ch-o { fill: var(--sheet); stroke: var(--garnet); stroke-width: 2.25; }
.cx .ch-i { fill: none; stroke: var(--garnet); stroke-width: 1; }
.cx .ch-rate { fill: var(--garnet-tint); }
.cx .t-rate { font-family: var(--f-fig); font-size: 22px; font-weight: 650; fill: var(--garnet); }
.cx .t-ch { fill: var(--garnet); }
.cx .lane { stroke: var(--ink-2); stroke-width: 1.5; fill: none; }
.cx .chev { stroke: var(--ink-2); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cx .pt { fill: var(--ink); }
.cx .settle { stroke: var(--steel); stroke-width: 2; fill: none; }
.cx .settle-node { fill: var(--steel); }
.cx .t-steel { fill: var(--steel); }
.cx .cust { fill: var(--steel-tint); stroke: var(--steel); stroke-width: 1.5; }
.cx .secure { stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 5 5; fill: none; }

@media (prefers-reduced-motion: no-preference) {
  .cx .pa { animation: cx-arrive 1.1s cubic-bezier(.3, .7, .2, 1) both; }
  .cx .pb { animation: cx-arrive 1.1s cubic-bezier(.3, .7, .2, 1) both; }
  .cx .before { animation: cx-out .6s ease-out 3.5s both; }
  .cx .after { animation: cx-fade .6s ease-out 3.5s both; }
  .cx .ch-rate { animation: cx-rate 1.2s ease-out 1.6s both; }
  .cx .settle-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: cx-draw 1.2s ease-in-out 3.7s forwards; }
}
@keyframes cx-arrive { from { transform: translate(var(--dx, 0px), var(--dy, 0px)); opacity: 0; } 25% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes cx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cx-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cx-rate { 0% { fill: var(--garnet-tint); } 40% { fill: var(--garnet); } 100% { fill: var(--garnet-tint); } }
@keyframes cx-draw { to { stroke-dashoffset: 0; } }

/* tables: the register's own ruling */
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.5; }
caption { text-align: left; font: 600 1.0625rem/1.4 var(--f-head); padding-bottom: 10px; color: var(--ink); }
th, td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--rule-2); }
thead th { font-weight: 650; font-size: .9375rem; color: var(--ink-2); border-bottom: 1.5px solid var(--ink); }
tbody th { font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; white-space: nowrap; }
tfoot th, tfoot td { border-top: 1.5px solid var(--ink); border-bottom: 0; font-weight: 650; }
.num { text-align: right; font-family: var(--f-fig); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 14px; }
th.num { font-family: var(--f-text); }
.net { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 14px; }
.fig { font-family: var(--f-fig); font-variant-numeric: tabular-nums; }
.roles tbody th { white-space: normal; width: 8.5rem; }
.roles td:nth-child(2) { color: var(--ink-2); width: 40%; }
.roles tr:target { background: var(--garnet-tint); }
.prose .table-wrap { margin-right: 0; }
.dates td:first-child { white-space: nowrap; font-family: var(--f-fig); font-size: .9375rem; }
.contrast td:first-child { color: var(--ink-2); width: 50%; }
.netting { max-width: 34rem; }

/* the record */
.filings { list-style: none; padding: 0 !important; margin: 0; }
.filing { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 28px; padding: 22px 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.f-date { margin: 4px 0 0 !important; font: 600 1rem/1.3 var(--f-fig); color: var(--garnet); }
.filing h3 { margin: 0 0 .5em; }
.f-num { display: block; font: 650 .9375rem/1.4 var(--f-fig); color: var(--ink-2); margin-bottom: 4px; letter-spacing: .01em; }
.f-title { font-style: normal; }
.f-dates { font-size: 1rem; color: var(--ink-2); }
.f-thread { font-size: 1rem; }
.nots { list-style: none; padding: 0 !important; border-top: 1px solid var(--rule); }
.nots li { padding: 9px 0 9px 30px; border-bottom: 1px solid var(--rule-2); margin: 0 !important; position: relative; }
.nots li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 2px; background: var(--garnet); }
.steps { counter-reset: st; list-style: none; padding: 0 !important; }
.steps li { counter-increment: st; position: relative; padding: 4px 0 4px 44px; margin: .5em 0 !important; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 4px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink-2); display: grid; place-items: center; font: 600 .875rem/1 var(--f-fig); color: var(--ink-2); }
.status-plain { font-weight: 650; color: var(--garnet); }
.nf-list { columns: 2; }

/* citations (CITATIONS.md v0.2) */
sup.cite { line-height: 0; font-size: .68em; vertical-align: super; white-space: nowrap; }
sup.cite a { font-family: var(--f-fig); font-weight: 650; color: var(--garnet); text-decoration: none; padding: 0 .05em; }
sup.cite a:hover { text-decoration: underline; }
sup.cite a:target { background: var(--garnet-tint); outline: 2px solid var(--garnet); }
.refs-area { padding: 8px 48px 48px calc(var(--margin-x) + 24px); }
.references, .further-reading { max-width: 52rem; border-top: 1.5px solid var(--ink); padding-top: 4px; margin-top: 12px; }
.references h2, .further-reading h2 { font-size: 1.375rem; margin: .9em 0 .3em; }
.ref-intro { font-size: .9375rem; color: var(--ink-2); margin: 0 0 .8em; }
.references ol, .further-reading ul { margin: 0; padding-left: 2.2em; font-size: .9375rem; line-height: 1.55; }
.references li, .further-reading li { margin: 0 0 .55em; padding: 2px 6px; border-radius: 2px; overflow-wrap: anywhere; }
.references li::marker { font-family: var(--f-fig); color: var(--ink-2); }
.references li:target { background: var(--garnet-tint); }
.ref-back { margin-right: 4px; }
.ref-back a, a.ref-back { text-decoration: none; font-weight: 650; }
.ref-site, .ref-note { color: var(--ink-2); }

/* pager */
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 0 48px 40px calc(var(--margin-x) + 24px); flex-wrap: wrap; }
.pager a { display: block; text-decoration: none; padding: 12px 0; min-width: 12rem; }
.pager .pg-l { display: block; font-size: .875rem; color: var(--ink-2); }
.pager .pg-t { display: block; font: 600 1.1875rem/1.3 var(--f-head); color: var(--garnet); }
.pager .pg-next { text-align: right; margin-left: auto; }

/* footer, on the stone */
.site-foot { padding: 8px 0 48px; font-size: .9375rem; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 48px; border-top: 1px solid var(--rule); padding-top: 28px; }
.foot p { margin: 0 0 .6em; }
.foot .brand { margin-bottom: 12px; }
.foot-status { color: var(--garnet); font-weight: 650; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.foot-nav li { margin: 0 0 .5em; break-inside: avoid; }
.site-foot a { color: var(--ink); }
.fine { font-size: .875rem; }

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .k-page .sheet { display: block; }
  .index { display: none; }
}
@media (max-width: 1023px) {
  .cx-h { display: none; }
  .cx-v { display: block; }
}
@media (max-width: 860px) {
  :root { --margin-x: 40px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --margin-x: 22px; }
  body { font-size: 1.0625rem; }
  .folio, .wrap { width: calc(100% - 16px); }
  .masthead .wrap { width: calc(100% - 32px); }
  .sheet, .k-home .sheet { padding: 28px 18px 40px calc(var(--margin-x) + 16px); }
  .status-strip { padding: 12px 16px 12px calc(var(--margin-x) + 16px); font-size: .875rem; align-items: flex-start; }
  .crumbs ol { padding: 16px 16px 0 calc(var(--margin-x) + 16px); }
  .refs-area { padding: 0 18px 36px calc(var(--margin-x) + 16px); }
  .pager { padding: 0 18px 28px calc(var(--margin-x) + 16px); }
  .nav ul { gap: 2px 18px; }
  .nav a { font-size: .9375rem; padding: 4px 0; }
  .stamp { padding: 12px 14px; margin-bottom: 28px; }
  .register > div { grid-template-columns: 1fr; }
  .filing { grid-template-columns: 1fr; }
  .f-date { margin-bottom: 6px !important; }
  .rules > li { padding-left: 52px; }
  .rules > li::before { width: 34px; height: 34px; font-size: 1.0625rem; }
  .foot { grid-template-columns: 1fr; }
  .nf-list { columns: 1; }
  th, td { padding-right: 10px; }
  .roles, .roles thead, .roles tbody, .roles tr, .roles th, .roles td { display: block; width: auto !important; }
  .roles thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .roles tr { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .roles th, .roles td { border: 0; padding: 2px 0; white-space: normal; }
  .roles td:nth-child(2)::before { content: "In the 2002 filings: "; font-weight: 650; color: var(--ink); }
  .roles td:nth-child(3)::before { content: "In this model: "; font-weight: 650; color: var(--ink); }
}
@media print {
  body { background: #fff; }
  .masthead .nav, .index, .pager, .skip { display: none; }
  .folio { box-shadow: none; width: 100%; }
}
