/* crt.chainsolution.net — self-contained, no external resources */
:root {
  --paper: #edf0f3;
  --paper-2: #e2e7ec;
  --ink: #14212b;
  --ink-2: #3a4953;
  --mid: #5e6d79;
  --rule: #c7d0d8;
  --cancel: #c3301c;
  --release: #2e6b4e;
  --release-2: #d9eadf;
  --cancel-2: #f6ddd8;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 66ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15202a; --paper-2: #1d2a35; --ink: #e8edf1; --ink-2: #c3ccd4; --mid: #8c9aa6; --rule: #33434f;
    --release-2: #1f3a2d; --cancel-2: #4a2019; --cancel: #e2543f; --release: #5fae85;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--mid); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--cancel); outline-offset: 2px; }
code, pre { font-family: var(--mono); font-size: .92em; }
pre { background: var(--paper-2); padding: 1rem 1.1rem; overflow-x: auto; border-left: 3px solid var(--rule); margin: 1.2rem 0; line-height: 1.45; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 3.2rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; font-family: var(--sans); font-weight: 600; }
p, ul, ol, table { max-width: var(--measure); }
ul, ol { padding-left: 1.3rem; }
li { margin: .3rem 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; max-width: var(--measure); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0 1.4rem; }
th, td { text-align: left; padding: .5rem .7rem .5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-weight: 600; color: var(--ink-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 1rem; }

/* header */
.top { display: flex; align-items: baseline; gap: 1.6rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.top .brand { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }
.top .brand span { color: var(--mid); font-family: var(--sans); font-size: .85rem; margin-left: .6rem; }
.top nav { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--ink-2); }
.top nav a[aria-current] { color: var(--ink); border-bottom: 2px solid var(--ink); }
.top nav a:hover { color: var(--ink); }

/* layout: rail + content */
.page { display: grid; grid-template-columns: 1fr; gap: 0 3rem; padding: 2rem 1.4rem 5rem; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .page { grid-template-columns: 200px minmax(0, 1fr); } .page.wide { grid-template-columns: 1fr; } }
.rail { font-size: .9rem; color: var(--mid); }
@media (min-width: 900px) { .rail { position: sticky; top: 1.4rem; align-self: start; } }
.rail ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--rule); }
.rail li { margin: 0; }
.rail a { display: block; padding: .3rem .9rem; text-decoration: none; color: var(--mid); border-left: 2px solid transparent; margin-left: -1px; }
.rail a:hover { color: var(--ink); border-left-color: var(--ink); }
.rail .status { margin-top: 1.6rem; padding: .8rem .9rem; border: 1px solid var(--rule); font-size: .85rem; line-height: 1.45; }
.rail .status b { color: var(--ink); font-weight: 600; }

/* hero */
.hero { padding: 3.5rem 1.4rem 2.5rem; max-width: 1180px; margin: 0 auto; }
.hero h1 { max-width: 22ch; }
.hero .lede { font-size: 1.2rem; max-width: 56ch; color: var(--ink-2); margin: 1rem 0 0; }
.hero .cta { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn { display: inline-block; padding: .7rem 1.1rem; border: 1.5px solid var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; background: transparent; color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.cancel { border-color: var(--cancel); color: var(--cancel); }
.btn:hover { filter: brightness(1.08); }

/* lifecycle figure — the one bold element */
.life { margin: 2.6rem 0 0; max-width: 1180px; }
.life svg { width: 100%; height: auto; display: block; }
.life .t { font: 600 13px var(--sans); fill: var(--ink-2); }
.life .t.small { font-weight: 400; fill: var(--mid); font-size: 12px; }
.life .mono { font: 12px var(--mono); fill: var(--mid); }
.life .rail-line { stroke: var(--ink); stroke-width: 2; }
.life .rail-release { stroke: var(--release); stroke-width: 3; }
.life .rail-cancel { stroke: var(--cancel); stroke-width: 3; }
.life .tick { stroke: var(--ink); stroke-width: 2; }
.life .box { fill: var(--paper-2); stroke: var(--rule); }
.life .box-release { fill: var(--release-2); stroke: var(--release); }
.life .box-cancel { fill: var(--cancel-2); stroke: var(--cancel); }
.life .dot { fill: var(--ink); }
.life .heart { fill: none; stroke: var(--mid); stroke-width: 1.5; stroke-dasharray: 3 4; }
.life .cut { stroke: var(--cancel); stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) {
  .life .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.6s ease-out .3s forwards; }
  .life .cut { opacity: 0; animation: appear .3s ease-out 1.9s forwards; }
  .life .box-cancel, .life .cancel-label { opacity: 0; animation: appear .4s ease-out 2.1s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes appear { to { opacity: 1; } }
}
figcaption { font-size: .9rem; color: var(--mid); max-width: var(--measure); margin-top: .6rem; }

/* content blocks */
.cols { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.5rem 0; }
.cols h3 { margin-top: 0; }
.cols p { margin: .3rem 0 0; }
.note { border-left: 3px solid var(--cancel); padding: .2rem 0 .2rem 1rem; color: var(--ink-2); max-width: var(--measure); margin: 1.4rem 0; }
.note.green { border-left-color: var(--release); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; max-width: var(--measure); font-size: .97rem; }
.kv dt { color: var(--mid); } .kv dd { margin: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: .4rem; padding: .9rem 0; border-top: 1px solid var(--rule); margin: 0; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 1.5rem; color: var(--mid); line-height: 1; }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps b { font-weight: 600; }
footer { border-top: 1px solid var(--rule); padding: 1.4rem; font-size: .88rem; color: var(--mid); max-width: 1180px; margin: 0 auto; display: flex; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--mid); }
.small { font-size: .9rem; color: var(--mid); }
details { max-width: var(--measure); border-top: 1px solid var(--rule); padding: .7rem 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; }
summary::marker { color: var(--mid); }
details p { margin: .6rem 0 .2rem; }
