/* TransparencyKit site. Official-record aesthetic: cool paper, blue-green ink,
   one verification green, amber only for third-country facts. */

@font-face { font-family: "Spectral"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/spectral-400i.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/spectral-500.woff2") format("woff2"); }
@font-face { font-family: "Spectral"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/spectral-600.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/plexmono-400.woff2") format("woff2"); }
@font-face { font-family: "Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/plexmono-500.woff2") format("woff2"); }

:root {
  --paper: #f5f7f6;
  --ink: #0f2a2e;
  --ink-soft: #4b6266;
  --glass: #dcebe7;
  --rule: #c9d8d4;
  --seal: #1e6b57;
  --amber: #a8620f;
  --bar: #0f2a2e;
  --code-bg: #e8f0ee;
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0d1f22;
    --ink: #e4eeeb;
    --ink-soft: #9fb5b1;
    --glass: #16343a;
    --rule: #24464c;
    --seal: #5fc4a5;
    --amber: #e3a04f;
    --bar: #e4eeeb;
    --code-bg: #12292d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

a { color: var(--seal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 2px; }

code, pre, kbd { font-family: var(--mono); font-size: 0.86em; font-variant-numeric: normal; }
:not(pre) > code { background: var(--code-bg); padding: 0.08em 0.32em; border-radius: 3px; overflow-wrap: anywhere; }
pre {
  background: var(--code-bg);
  border-left: 3px solid var(--seal);
  padding: 0.9rem 1.1rem;
  overflow-x: auto;
  line-height: 1.5;
  font-size: 0.85rem;
  margin: 1.2rem 0;
}
pre code { background: none; padding: 0; font-size: inherit; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.4rem 0.8rem; z-index: 10; }

/* ---------- Masthead ---------- */
.masthead {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.6rem 1rem;
  max-width: 72rem; margin: 0 auto; padding: 1.4rem 1.25rem 0;
}
.wordmark { font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.wordmark span { font-weight: 400; color: var(--ink-soft); }
.masthead nav { display: flex; gap: 1.4rem; font-size: 1rem; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover, .masthead nav a[aria-current="page"] { text-decoration: underline; }

/* ---------- Landing ---------- */
.landing main { overflow-x: clip; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

.hero { padding: 5.5rem 0 4.5rem; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 4rem; align-items: end; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 1.6rem;
  max-width: 12.5ch;
  text-wrap: balance;
}
.hero .lede { font-size: 1.25rem; line-height: 1.55; max-width: var(--measure); margin: 0 0 2rem; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; align-items: center; }
.button {
  display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none;
  padding: 0.7rem 1.3rem; border-radius: 3px; font-weight: 500; font-size: 1.05rem;
}
.button:hover { background: var(--seal); }
.install { margin-top: 1.6rem; font-size: 0.82rem; }
.install code { background: none; padding: 0; color: var(--ink-soft); word-break: break-all; }

/* The statement: one redaction bar lifts to reveal a signed fact. */
.statement {
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--glass);
  padding: 1.6rem 1.7rem 1.4rem;
  position: relative;
}
.statement .issuer { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.statement dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.55rem 1.2rem; font-size: 1.02rem; }
.statement dt { margin: 0; }
.statement dd { margin: 0; text-align: right; font-variant-numeric: lining-nums tabular-nums; font-weight: 600; }
.statement dd.third { color: var(--amber); }
.redacted { position: relative; display: inline-block; min-width: 2.2ch; }
.redacted::after {
  content: ""; position: absolute; inset: -0.08em -0.25em; background: var(--bar);
  transform-origin: right center;
  animation: lift 900ms cubic-bezier(.7,0,.2,1) 900ms forwards;
}
@keyframes lift { to { transform: scaleX(0); } }
.statement .seal {
  margin: 1.3rem 0 0; padding-top: 0.9rem; border-top: 1px dashed var(--rule);
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.6; color: var(--ink-soft); word-break: break-all;
}
.statement .seal strong { color: var(--seal); font-weight: 500; }
.statement .seal a { color: var(--seal); }
@media (prefers-reduced-motion: reduce) {
  .redacted::after { animation: none; transform: scaleX(0); }
}

.section { padding: 4rem 0; border-top: 1px solid var(--rule); }
.section > h2, .section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.15;
  margin: 0 0 0.8rem; max-width: 24ch;
}
.section-head p { max-width: var(--measure); color: var(--ink-soft); margin: 0 0 2.4rem; }

/* Outputs as a statute index: citation on the left, provision on the right. */
.index { list-style: none; margin: 0; padding: 0; }
.index li { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--rule); }
.index li:last-child { border-bottom: 1px solid var(--rule); }
.index cite { font-style: italic; color: var(--ink-soft); font-size: 1rem; }
.index h3 { margin: 0 0 0.3rem; font-size: 1.25rem; font-weight: 600; }
.index p { margin: 0; max-width: var(--measure); }

/* The workflow is a real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: block; font-size: 2.6rem; line-height: 1; font-weight: 500;
  color: var(--seal); margin-bottom: 0.8rem; font-variant-numeric: lining-nums;
}
.steps h3 { margin: 0 0 0.4rem; font-size: 1.25rem; font-weight: 600; }
.steps p { margin: 0 0 0.6rem; }
.steps pre { font-size: 0.76rem; margin: 0.6rem 0 0; }

/* Manifest chain diagram */
.chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 2rem 0 1rem; }
.sheet { border: 1px solid var(--rule); background: var(--paper); padding: 1rem 1.1rem; font-family: var(--mono); font-size: 0.74rem; line-height: 1.7; position: relative; }
.sheet + .sheet { border-left: none; }
.sheet b { display: block; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: 0.4rem; }
.sheet .k { color: var(--ink-soft); }
.sheet .link { color: var(--seal); }
.sheet + .sheet::before {
  content: ""; position: absolute; left: -0.45rem; top: 50%; width: 0.9rem; height: 0.9rem;
  background: var(--seal); border-radius: 50%; transform: translateY(-50%);
  box-shadow: 0 0 0 3px var(--paper);
}
.proof-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; max-width: 56rem; }
.proof-notes p { margin: 0; }

.facts { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 3rem; max-width: 60rem; }
.facts li { break-inside: avoid; padding: 0 0 1.1rem; }
.facts strong { font-weight: 600; }

.site-footer {
  max-width: 72rem; margin: 2rem auto 0; padding: 2rem 1.25rem 3rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.95rem; color: var(--ink-soft);
}
.site-footer a { color: var(--ink-soft); }

/* ---------- Docs ---------- */
.docs-shell { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 0; display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 3.5rem; }
.docs-nav { font-size: 1rem; position: sticky; top: 1.5rem; align-self: start; }
.docs-nav ol { list-style: none; margin: 0; padding: 0; }
.docs-nav > ol > li { margin: 0 0 0.35rem; }
.docs-nav a { color: var(--ink); text-decoration: none; display: block; padding: 0.15rem 0 0.15rem 0.8rem; border-left: 2px solid transparent; }
.docs-nav a:hover { text-decoration: underline; }
.docs-nav a[aria-current="page"] { border-left-color: var(--seal); font-weight: 600; }
.docs-nav ol ol { margin: 0.2rem 0 0.6rem; }
.docs-nav ol ol a { font-size: 0.9rem; color: var(--ink-soft); padding-left: 1.4rem; }
.docs-nav .source { margin-top: 1.4rem; font-size: 0.88rem; padding-left: 0.8rem; }
.docs-nav .source a { display: inline; padding: 0; border: 0; color: var(--ink-soft); text-decoration: underline; }

.prose { max-width: 44rem; padding-bottom: 3rem; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1.4rem; }
.prose h2 { font-size: 1.55rem; font-weight: 500; line-height: 1.25; margin: 2.6rem 0 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.prose h4 { font-size: 1.05rem; font-weight: 600; margin: 1.6rem 0 0.4rem; }
.prose h2 a.anchor, .prose h3 a.anchor { color: var(--rule); text-decoration: none; margin-left: 0.4rem; opacity: 0; }
.prose h2:hover a.anchor, .prose h3:hover a.anchor, .prose a.anchor:focus { opacity: 1; }
.prose p, .prose li { max-width: var(--measure); }
.prose li { margin: 0.25rem 0; }
.prose blockquote { margin: 1.4rem 0; padding: 0.2rem 0 0.2rem 1.2rem; border-left: 3px solid var(--rule); color: var(--ink-soft); }
.table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.45; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 600; border-bottom: 2px solid var(--ink); }
.prose td code, .prose th code { white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
.prose .edit { margin-top: 3rem; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0 3rem; }
  .index li { grid-template-columns: 1fr; gap: 0.3rem; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .chain { grid-template-columns: 1fr; }
  .sheet + .sheet { border-left: 1px solid var(--rule); border-top: none; }
  .sheet + .sheet::before { left: 50%; top: -0.45rem; transform: translateX(-50%); }
  .proof-notes { grid-template-columns: 1fr; }
  .facts { columns: 1; }
  .docs-shell { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.2rem; }
  .docs-nav { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 0.8rem; }
  .docs-nav > ol { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; }
  .docs-nav > ol > li { margin: 0; }
  .docs-nav a { padding: 0.15rem 0; border-left: 0; }
  .docs-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--seal); text-decoration-thickness: 2px; }
  .docs-nav ol ol, .docs-nav .source { display: none; }
  .wordmark span { display: none; }
  .prose td code, .prose th code { white-space: normal; }
  .masthead nav { gap: 1rem; }
}
