@import url("https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap");
/* Twenty One Million (twentyonemillion.online): a broadsheet for the timechain, kept in cold storage.
   Ice-blue on graphite, 0 radius, no shadows, 1px hairlines, chained blocks.
   Loaded only on this title's pages. Every class and keyframe is prefixed twentyonemillion-. */

#site-root[data-site="twentyonemillion"] { --t21-ice: #8fd0ff; --t21-hair: #2a2d31; }
#site-root[data-site="twentyonemillion"] ::selection { background: #8fd0ff; color: #0d0e10; }
#site-root[data-site="twentyonemillion"] a:focus-visible,
#site-root[data-site="twentyonemillion"] button:focus-visible { outline: 1px dotted #8fd0ff; outline-offset: 3px; }

/* Headlines: Noto Serif Display's hairlines (the bars of F and E) vanish below ~30px, light on graphite: "Fire" read
   "Γire". The text cut, Noto Serif, sets every headline and the logo; the Display cut only the big ones (marked). */
#site-root[data-site="twentyonemillion"] .font-head { font-family: "Noto Serif", Georgia, serif; }
#site-root[data-site="twentyonemillion"] .font-head.twentyonemillion-display { font-family: "Noto Serif Display", "Noto Serif", Georgia, serif; }

/* Trim the line box to cap height so the cap rule touches the letters. */
@supports (text-box: trim-both cap alphabetic) {
  .twentyonemillion-trim { text-box: trim-both cap alphabetic; }
}

/* ---------- links: no underline at rest, dotted on focus, solid on hover ---------- */
.twentyonemillion-h { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: .18em; transition: text-decoration-color .15s; }
.group:focus-visible .twentyonemillion-h { text-decoration-style: dotted; text-decoration-color: #8fd0ff; }
.group:hover .twentyonemillion-h { text-decoration-style: solid; text-decoration-color: #8fd0ff; }
.twentyonemillion-a { color: #8fd0ff; text-decoration: none; }
.twentyonemillion-a:focus-visible { text-decoration: underline dotted 1px; text-underline-offset: 3px; }
.twentyonemillion-a:hover { text-decoration: underline solid 1px; text-underline-offset: 3px; }

/* ---------- images: hard-edged, desaturated 15%, ice-blue duotone on hover ---------- */
.twentyonemillion-img { position: relative; overflow: hidden; background: #16181b; }
.twentyonemillion-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .35s ease; }
.twentyonemillion-img::before, .twentyonemillion-img::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.twentyonemillion-img::before { background: #12161c; mix-blend-mode: lighten; z-index: 1; }
.twentyonemillion-img::after { background: #8fd0ff; mix-blend-mode: multiply; z-index: 2; }
.group:hover .twentyonemillion-img img, .twentyonemillion-img:hover img { filter: grayscale(1) contrast(1.08); }
.group:hover .twentyonemillion-img::before, .group:hover .twentyonemillion-img::after,
.twentyonemillion-img:hover::before, .twentyonemillion-img:hover::after { opacity: 1; }
/* No photo: a field of chained blocks instead of an empty box. */
.twentyonemillion-noimg {
  background:
    linear-gradient(#2a2d31, #2a2d31) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 14px, #2a2d31 14px 15px, transparent 15px 28px),
    #16181b;
}

/* ---------- buttons: sharp, outlined small caps, fill ice-blue from the left ---------- */
.twentyonemillion-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 44px; padding: 0 1.1rem;
  border: 1px solid #8fd0ff; color: #8fd0ff; font-variant-caps: all-small-caps; letter-spacing: .08em; font-weight: 600; font-size: 17px;
  background: linear-gradient(#8fd0ff, #8fd0ff) 0 0 / 0% 100% no-repeat; transition: background-size .45s cubic-bezier(.3,.7,.2,1), color .2s .1s;
}
.twentyonemillion-btn:hover, .twentyonemillion-btn:focus-visible { background-size: 100% 100%; color: #0d0e10; }

/* ---------- rules ---------- */
/* Double rule under section heads: a hairline over a 3px bar. */
.twentyonemillion-dbl { position: relative; padding-bottom: 9px; }
.twentyonemillion-dbl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-top: 1px solid #eeebe3; border-bottom: 3px solid #eeebe3; }
/* Column rules for the dense text grid. */
.twentyonemillion-cols { column-rule: 1px solid #2a2d31; }
/* Divider: 21 tiny squares, the last one hollow. */
.twentyonemillion-21 { display: flex; gap: 3px; }
.twentyonemillion-21 i { width: 5px; height: 5px; background: #a19d93; }
.twentyonemillion-21 i:last-child { background: transparent; box-shadow: inset 0 0 0 1px #a19d93; }

/* ---------- chained blocks ---------- */
.twentyonemillion-link-v { position: relative; }
.twentyonemillion-link-v + .twentyonemillion-link-v::before { content: ''; position: absolute; left: 50%; top: -7px; height: 6px; width: 1px; background: #2a2d31; }
.twentyonemillion-link-h { position: relative; }
.twentyonemillion-link-h + .twentyonemillion-link-h::before { content: ''; position: absolute; top: 50%; left: -7px; width: 6px; height: 1px; background: #a19d93; }
.twentyonemillion-chainline { background: linear-gradient(#2a2d31, #2a2d31) 50% 0 / 1px 100% no-repeat; }

/* Scroll rows: left gutter, visible edge fade, no scrollbar. */
.twentyonemillion-row { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.twentyonemillion-row::-webkit-scrollbar { display: none; }

/* ---------- live pulse: a block fills, the chain shifts, a new block arrives ---------- */
.twentyonemillion-pulse-fill { transform-origin: 50% 100%; transform: scaleY(0); animation: twentyonemillion-fill 2s linear infinite; }
.twentyonemillion-pulse-track { animation: twentyonemillion-shift 2s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes twentyonemillion-fill { 0% { transform: scaleY(0); } 60%, 100% { transform: scaleY(1); } }
@keyframes twentyonemillion-shift { 0%, 72% { transform: translateX(0); } 100% { transform: translateX(-14px); } }

/* ---------- menu ---------- */
.twentyonemillion-sheet { animation: twentyonemillion-in .28s cubic-bezier(.2,.8,.2,1); }
@keyframes twentyonemillion-in { from { transform: translateY(-12px); } to { transform: none; } }

/* ---------- article prose ---------- */
.twentyonemillion-prose { font-size: 17.5px; line-height: 1.72; }
@media (min-width: 768px) { .twentyonemillion-prose { font-size: 18.5px; line-height: 1.7; } }
.twentyonemillion-prose > * + * { margin-top: 1.15em; }
.twentyonemillion-prose h2 {
  font-family: var(--font-head), Georgia, serif; font-weight: 600; font-size: 1.55em; line-height: 1.15; margin-top: 2.1em; scroll-margin-top: 6rem;
  padding-top: .7em; border-top: 1px solid #2a2d31;
}
.twentyonemillion-prose h3 { font-family: var(--f-mono), ui-monospace, monospace; font-size: .78em; text-transform: uppercase; letter-spacing: .08em; color: #8fd0ff; margin-top: 2em; }
.twentyonemillion-prose a { color: #8fd0ff; text-decoration: none; }
.twentyonemillion-prose a:focus-visible { text-decoration: underline dotted 1px; text-underline-offset: 3px; }
.twentyonemillion-prose a:hover { text-decoration: underline solid 1px; text-underline-offset: 3px; }
.twentyonemillion-prose strong { font-weight: 700; color: #fff; }
.twentyonemillion-prose em { font-style: italic; }
.twentyonemillion-prose code { font-family: var(--f-mono), ui-monospace, monospace; font-size: .8em; padding: .1em .35em; border: 1px solid #2a2d31; background: #16181b; }
/* First paragraph: ice-blue mono block stamp, first line in small caps. No drop cap. */
.twentyonemillion-prose .twentyonemillion-lede::first-line { font-variant-caps: all-small-caps; letter-spacing: .05em; font-weight: 600; }
.twentyonemillion-stamp { font-family: var(--f-mono), ui-monospace, monospace; font-size: .74em; font-weight: 500; color: #8fd0ff; letter-spacing: 0; margin-right: .35em; font-variant-caps: normal; }
/* Pull quotes: left-aligned italic serif with a 3px ice bar; a trailing line reads as the speaker, in mono. */
.twentyonemillion-prose blockquote { margin: 2em 0; padding: .1em 0 .1em 1.1em; border-left: 3px solid #8fd0ff; font-family: var(--font-head), Georgia, serif; font-style: italic; font-size: 24px; line-height: 1.32; color: #fff; }
@media (min-width: 768px) { .twentyonemillion-prose blockquote { font-size: 28px; } }
.twentyonemillion-prose blockquote > * + * { margin-top: .6em; }
.twentyonemillion-prose blockquote p:last-child:not(:first-child) { font-family: var(--f-mono), ui-monospace, monospace; font-style: normal; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #a19d93; }
/* ₿ bullets; zero-padded mono numbers. */
.twentyonemillion-prose ul { list-style: none; padding-left: 1.6em; }
.twentyonemillion-prose ul > li { position: relative; }
.twentyonemillion-prose ul > li::before {
  content: ''; position: absolute; left: -1.45em; top: .42em; width: .55em; height: .78em; background: #8fd0ff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2.5 2.3v9.4M2.5 2.3h3.4a2.2 2.2 0 0 1 0 4.4H2.5M2.5 6.7h3.9a2.5 2.5 0 0 1 0 5H2.5M4.2 .7v1.4M6.2 .7v1.4M4.2 11.9v1.4M6.2 11.9v1.4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2.5 2.3v9.4M2.5 2.3h3.4a2.2 2.2 0 0 1 0 4.4H2.5M2.5 6.7h3.9a2.5 2.5 0 0 1 0 5H2.5M4.2 .7v1.4M6.2 .7v1.4M4.2 11.9v1.4M6.2 11.9v1.4' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.twentyonemillion-prose ol { list-style: none; padding-left: 2.3em; counter-reset: t21; }
.twentyonemillion-prose ol > li { position: relative; counter-increment: t21; }
.twentyonemillion-prose ol > li::before { content: counter(t21, decimal-leading-zero); position: absolute; left: -2.3em; top: .3em; font-family: var(--f-mono), ui-monospace, monospace; font-size: .7em; color: #8fd0ff; }
.twentyonemillion-prose li + li { margin-top: .45em; }
.twentyonemillion-prose hr { border: 0; height: 5px; width: 165px; margin: 2.4em 0; background: repeating-linear-gradient(90deg, #a19d93 0 5px, transparent 5px 8px); }
.twentyonemillion-prose img { width: 100%; height: auto; filter: saturate(.85); }
.twentyonemillion-prose table { width: 100%; border-collapse: collapse; font-size: .85em; }
.twentyonemillion-prose th, .twentyonemillion-prose td { border-bottom: 1px solid #2a2d31; padding: .5em .4em; text-align: left; }
.twentyonemillion-prose th { font-family: var(--f-mono), ui-monospace, monospace; font-size: .75em; text-transform: uppercase; letter-spacing: .06em; color: #a19d93; }

/* ---------- terminal prompt input ---------- */
.twentyonemillion-caret { animation: twentyonemillion-caret 1.1s steps(1) infinite; }
@keyframes twentyonemillion-caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .twentyonemillion-pulse-fill { animation: none; transform: scaleY(1); }
  .twentyonemillion-pulse-track, .twentyonemillion-sheet, .twentyonemillion-caret { animation: none; }
  .twentyonemillion-btn, .twentyonemillion-img img, .twentyonemillion-img::before, .twentyonemillion-img::after { transition: none; }
}

/* Shared share buttons, squared to the paper's 0 radius. */
.twentyonemillion-share a, .twentyonemillion-share button { border-radius: 0 !important; width: 44px; height: 44px; }
.twentyonemillion-share a:hover, .twentyonemillion-share button:hover { border-color: #8fd0ff; color: #8fd0ff; }
