/* ============================================================================
Base elements, layout, chrome, and components.
Built out of the objects in chrome.css. Nothing here rounds a corner,
blurs a background, or casts a shadow — see the form-language note at
the top of tokens.css for why.
========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
color-scheme: light;
scroll-behavior: smooth;
scroll-padding-top: 82px;
-webkit-text-size-adjust: 100%;
}
:root[data-theme='dark'] { color-scheme: dark; }
body {
font-family: var(--font-body);
/* DM Mono stops at 500 and the headings ask for 600–800: draw them at
the face's real weight rather than a smeared synthetic bold. */
font-synthesis-weight: none;
font-size: var(--step-0);
line-height: 1.6;
color: var(--fg);
background: var(--bg);
min-height: 100vh;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
overflow-x: hidden;
}
::selection { background: var(--selection); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
h1, h2, h3, h4 {
font-family: var(--font-display);
font-weight: 700;
line-height: 1.06;
letter-spacing: -0.02em;
}
/* Square, like everything else — a rounded focus ring on a square page
reads as a rendering artefact rather than as focus. */
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
/* Page content sits above the grain film. */
main, .site-header, .site-footer { position: relative; z-index: 2; }
/* Script adds these hooks only after the content is ready, which prevents a
failed bundle from leaving the archive invisible. The tiny lateral drift
keeps the entrance in the site's terminal/register language rather than a
generic card float. */
@media (prefers-reduced-motion: no-preference) {
/* The daemon-sec entrance: about a second on a curve that spends most
of its travel in the last fifth. */
.scroll-reveal {
opacity: 0;
transform: translate3d(0, 28px, 0);
transition:
opacity var(--dur-reveal) var(--ease-out-expo) var(--reveal-delay, 0ms),
transform var(--dur-reveal) var(--ease-out-expo) var(--reveal-delay, 0ms);
will-change: opacity, transform;
}
.scroll-reveal.is-revealed {
opacity: 1;
transform: translate3d(0, 0, 0);
will-change: auto;
}
}
.scroll-progress {
position: fixed;
z-index: 90;
inset: 0 0 auto;
height: 2px;
pointer-events: none;
background: linear-gradient(90deg, var(--pine), var(--iris), var(--love));
transform: scaleX(var(--scroll-progress, 0));
transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
.scroll-progress { transition: transform 90ms linear; }
}
/* ---- Layout -------------------------------------------------------------- */
.wrap {
width: 100%;
max-width: var(--maxw);
margin-inline: auto;
padding-inline: clamp(1.15rem, 3.2vw, 2.75rem);
}
/* Full-bleed: a band breaks the measure and runs edge to edge, but its
*contents* return to it. This is the page's basic rhythm — paper on the
measure, bands across the whole width. */
.bleed { width: 100%; }
.stack > * + * { margin-top: var(--gap, 1rem); }
.accent-text { color: var(--accent); }
/* ---- Masthead ------------------------------------------------------------ */
/* Opaque, not frosted: the bar has to hold its own value against whatever
scrolls under it, and on this page that is as often a dark band as it is
cream. A translucent bar over a passing band inverts mid-scroll. */
.site-header {
position: sticky;
top: 0;
z-index: 60;
border-bottom: 1px solid var(--fg);
background: var(--base);
}
/* The `.segbar` object (chrome.css) draws a `border-block`; the header sits
flush with the viewport top, where that top hairline reads as a stray line
above the bar — keep the bottom rule only. */
.site-header.segbar { border-top: none; }
/* No gaps inside the bar: the brand/nav split is carried by the auto margin
on `.mast-nav`, and the segments within each cluster sit flush so the
hairlines `.seg + .seg` draws are the only dividers — tmux, not a row of
boxed buttons. */
.site-header .wrap {
display: flex;
align-items: stretch;
gap: 0;
min-height: 58px;
}
/* The wordmark segment of the status bar. Noto Sans Display — heavy,
compressed, uppercase, tracked tight — is the daemon-sec signature face;
the masthead brand is its smallest application. Same `.brand` hook as
before, so the footer lockup picks the face up too. */
.brand {
font-family: var(--font-wordmark);
font-weight: 850;
font-stretch: 70%;
text-transform: uppercase;
font-size: 1.18rem;
letter-spacing: 0.01em;
display: inline-flex;
align-items: center;
gap: 0.06rem;
white-space: nowrap;
color: var(--fg);
}
.brand .slash { color: var(--accent); }
.brand .blink { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
.brand .blink { animation: dmn-blink 1.15s steps(1) infinite; }
}
/* On the masthead the brand is the accent-filled left segment
(`.seg--accent`), so its ink flips to the base and the glyph garnish
follows — accent slashes on an accent ground would be invisible. The
footer lockup keeps the un-filled treatment above. Scoped rather than
changed in place because `.brand` is shared with the footer. */
.site-header .brand { color: var(--base); }
.site-header .brand .slash,
.site-header .brand .blink { color: color-mix(in oklab, var(--base) 78%, transparent); }
/* The numbered nav. The entries are `.seg`s, so the DM Mono
furniture type, the full-height flex and the hairline dividers all come
from chrome.css; what is left here is the colour logic. Each entry owns a
hue and its index wears it, so the bar reads as the colour legend the
rest of the site keys back to rather than as five grey words. The index
keeps its space at rest — revealing it on hover would reflow the whole
bar every time the pointer crossed an item. */
.mast-nav {
display: flex;
align-items: stretch;
margin-left: auto;
}
.mast-nav a {
color: var(--fg-dim);
transition: color 200ms ease, background-color 220ms ease;
}
.mast-nav a:hover { color: var(--fg); background: var(--wash-strong); }
.mast-nav a[aria-current='page'] { color: var(--fg); }
.mast-nav .n {
font-size: var(--step-micro);
color: var(--fg-faint);
transition: color 200ms ease;
}
.mast-nav a:hover .n,
.mast-nav a[aria-current='page'] .n { color: var(--acc); }
@media (max-width: 900px) { .mast-nav .lbl { display: none; } }
@media (max-width: 640px) { .mast-nav { display: none; } }
.icon-btn.mobile-nav-trigger { display: none; }
.mobile-nav-glyph {
display: grid;
gap: 4px;
width: 16px;
}
.mobile-nav-glyph i {
display: block;
width: 100%;
height: 1px;
background: currentColor;
transform-origin: center;
transition: transform 180ms ease, opacity 140ms ease;
}
.mobile-nav-trigger[aria-expanded='true'] .mobile-nav-glyph i:first-child {
transform: translateY(5px) rotate(45deg);
}
.mobile-nav-trigger[aria-expanded='true'] .mobile-nav-glyph i:nth-child(2) { opacity: 0; }
.mobile-nav-trigger[aria-expanded='true'] .mobile-nav-glyph i:last-child {
transform: translateY(-5px) rotate(-45deg);
}
.mobile-nav { display: none; }
@media (max-width: 640px) {
.icon-btn.mobile-nav-trigger { display: grid; }
.mobile-nav:not([hidden]) {
position: absolute;
top: 100%;
left: 0;
right: 0;
display: grid;
background: var(--base);
border-bottom: 1px solid var(--fg);
}
.mobile-nav a {
position: relative;
display: grid;
grid-template-columns: 2.25rem 1fr;
align-items: center;
gap: 0.8rem;
min-height: 48px;
padding: 0.65rem clamp(1.15rem, 3.2vw, 2.75rem);
border-bottom: 1px solid var(--rule);
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: var(--track-micro);
text-transform: uppercase;
color: var(--fg-dim);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: 3px;
background: var(--acc);
transform: scaleY(0);
transform-origin: 50% 100%;
transition: transform 180ms var(--ease-in);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current='page'] {
color: var(--fg);
background: color-mix(in oklab, var(--acc) 9%, transparent);
}
.mobile-nav a:hover::before,
.mobile-nav a[aria-current='page']::before { transform: scaleY(1); }
.mobile-nav .n { color: var(--acc); }
}
/* The action cluster runs the full height of the bar, flush against the
nav, so its own border-left is the divider between the two clusters and
`.seg + .seg` draws the rest. */
.mast-actions {
display: flex;
align-items: stretch;
border-left: 1px solid var(--rule);
}
/* The base `.icon-btn` is a small boxed control — the search modal's close
button still uses it as one. In the segbar the same buttons are segments,
so the box comes off and they stretch to the bar's full height; the
scoped rules below carry that without touching the modal. */
.icon-btn {
width: 34px; height: 34px;
display: grid; place-items: center;
border: 1px solid var(--rule);
color: var(--fg-dim);
transition: color 200ms ease, border-color 220ms ease, background-color 240ms ease;
}
.icon-btn:hover { color: var(--base); background: var(--fg); border-color: var(--fg); }
.icon-btn svg { width: 17px; height: 17px; }
.mast-actions .icon-btn {
width: auto; height: auto;
padding-inline: 0.8rem;
border: 0;
}
.mast-actions .icon-btn:hover { color: var(--fg); background: var(--wash-strong); }
/* `border: 0` above ties `.seg + .seg` in specificity and would eat the
dividers between the action segments, so they are re-asserted here. */
.mast-actions .seg + .seg { border-inline-start: 1px solid var(--rule); }
/* The search segment. `.seg` carries the DM Mono furniture type and
the full-height flex; this block is only the state colours and the kbd. */
.search-trigger {
color: var(--fg-dim);
transition: color 200ms ease, background-color 220ms ease;
}
.search-trigger:hover { color: var(--fg); background: var(--wash-strong); }
.search-trigger kbd {
font-family: var(--font-term); font-size: var(--step-micro);
padding: 0.08rem 0.32rem;
border: 1px solid var(--rule); color: var(--fg-faint);
}
.search-trigger .st-label { display: none; }
@media (min-width: 560px) { .search-trigger .st-label { display: inline; } }
@media (max-width: 420px) {
.site-header .wrap { padding-inline: 0.65rem; }
.brand { font-size: 0.93rem; }
.mast-actions .icon-btn { padding-inline: 0.55rem; }
.search-trigger { padding-inline: 0.55rem; }
.search-trigger kbd { display: none; }
}
/* ---- Nav rail (desktop) -------------------------------------------------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 960px) {
.layout.has-rail { grid-template-columns: var(--rail) minmax(0, 1fr); }
}
.rail { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; display: none; }
@media (min-width: 960px) { .rail { display: block; } }
.rail h4 {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-wide);
text-transform: uppercase; color: var(--fg-faint);
margin: 1.3rem 0 0.6rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--rule);
}
.rail a {
display: flex; align-items: center; gap: 0.5rem;
padding: 0.34rem 0 0.34rem 0.7rem;
color: var(--fg-dim); font-size: 0.88rem;
border-left: 2px solid var(--rule);
transition: color 180ms ease, border-color 180ms ease, padding-left 260ms var(--ease-in);
}
.rail a:hover { color: var(--fg); border-left-color: var(--fg); padding-left: 1rem; }
.rail a[aria-current='page'] { color: var(--accent); border-left-color: var(--accent); }
.rail .rail-tag { font-family: var(--font-mono); font-size: var(--step-micro); color: var(--fg-faint); margin-left: auto; }
/* ---- Badges + tags ------------------------------------------------------- */
.badge {
display: inline-flex; align-items: center; gap: 0.35rem;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro);
padding: 0.22rem 0.5rem;
border: 1px solid var(--rule); color: var(--fg-dim);
text-transform: uppercase;
}
.badge svg { width: 12px; height: 12px; }
.badge--beginner { color: var(--foam); border-color: color-mix(in oklab, var(--foam) 50%, transparent); }
.badge--intermediate { color: var(--gold); border-color: color-mix(in oklab, var(--gold) 50%, transparent); }
.badge--advanced { color: var(--love); border-color: color-mix(in oklab, var(--love) 50%, transparent); }
.tag-pill {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro);
text-transform: uppercase;
padding: 0.24rem 0.55rem;
border: 1px solid var(--rule); color: var(--fg-dim);
transition: color 180ms ease, border-color 180ms ease, background-color 220ms ease;
}
.tag-pill:hover { color: var(--base); background: var(--fg); border-color: var(--fg); }
.tags-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
/* ---- Domain plates ------------------------------------------------------- */
/* The twelve domains, as tiles. A tile is a slab with its hue on the top
edge and nowhere else: twelve fully-coloured cards would be a paint
chart, and the point of the colour is to key the domain, not to fill
the grid. */
.grid-plates {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
gap: 1px;
background: var(--rule);
border: 1px solid var(--rule);
}
/* One-pixel gaps over an ink ground rather than real gutters: the grid
draws its own rules, so the twelve tiles read as one ruled table
instead of as twelve floating objects. */
.plate-tile {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1.15rem 1.2rem 1.25rem;
background: var(--base);
border-top: 2px solid var(--acc);
transition: background-color 240ms ease;
}
.plate-tile:hover { background: var(--wash-strong); }
.plate-tile__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.6rem;
}
.plate-tile__tag {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-wide); text-transform: uppercase;
color: var(--acc);
}
.plate-tile__n {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); color: var(--fg-faint);
}
.plate-tile__title {
font-family: var(--font-display);
font-size: 1.32rem;
font-weight: 700;
font-stretch: 84%;
letter-spacing: -0.03em;
line-height: 0.98;
text-transform: uppercase;
color: var(--fg);
}
.plate-tile__blurb { color: var(--fg-dim); font-size: 0.875rem; line-height: 1.5; }
.plate-tile__meta {
margin-top: auto;
padding-top: 0.7rem;
display: flex; align-items: center; justify-content: space-between;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-faint);
}
.plate-tile__arrow { color: var(--acc); transition: transform 250ms var(--ease); }
.plate-tile:hover .plate-tile__arrow { transform: translateX(4px); }
/* ---- Record rows --------------------------------------------------------- */
/* The archive's core object: number, kind mark, title, meta — one line,
not a card. A title set as a display heading gives every entry the
weight of a section and makes a list of fifty unscannable; the point of
an index is the shape of the whole list, and that only reads if a row
is a row. */
.index { border-top: 1px solid var(--rule); }
.record {
display: block;
border-bottom: 1px solid var(--rule);
padding: 1.05rem clamp(0.6rem, 1.6vw, 1.3rem);
color: var(--fg);
}
.record:hover { color: var(--base); }
/* Every cell placed explicitly rather than left to auto-flow. Narrow, the
row is two lines — number, title and chevron across the top, kind
underneath — and at md it collapses to the single line the index is
really for. Auto-placement cannot express both: the title has to take
the full middle on mobile, and the moment it does the chevron is pushed
onto a line of its own. */
.record__grid {
display: grid;
grid-template-columns: 30px minmax(0, 1fr) auto;
align-items: center;
column-gap: 1.05rem;
row-gap: 0.35rem;
}
@media (min-width: 768px) {
.record__grid { grid-template-columns: 42px 112px minmax(0, 1fr) 108px 18px; row-gap: 0; }
}
.record__n {
grid-column: 1; grid-row: 1;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--accent);
}
.record:hover .record__n { color: color-mix(in srgb, var(--color-plate-ink) 78%, transparent); }
.record__kind {
grid-column: 2; grid-row: 2;
display: flex; align-items: center; gap: 0.45rem;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--acc, var(--fg-faint));
}
@media (min-width: 768px) { .record__kind { grid-row: 1; } }
/* On the hover ink the dawn accents sit at roughly 1:1, so every one of
them takes a cream weight rather than keeping a hue nobody could read.
/78 is the floor for the meta layer — cream on ink clears AA at /74 and
these are 10px, so they get a little over the line rather than sitting
on it. */
.record:hover .record__kind,
.record:hover .record__meta { color: color-mix(in srgb, var(--color-plate-ink) 78%, transparent); }
.record__kind svg { width: 12px; height: 12px; }
.record__title {
grid-column: 2; grid-row: 1;
font-family: var(--font-display);
font-size: 1.02rem;
font-weight: 600;
letter-spacing: -0.015em;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (min-width: 768px) { .record__title { grid-column: 3; } }
.record__meta {
display: none;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-faint);
}
@media (min-width: 768px) { .record__meta { display: block; grid-column: 4; grid-row: 1; } }
.record__arrow {
grid-column: 3; grid-row: 1;
color: var(--fg-faint);
transition: transform 250ms var(--ease);
}
@media (min-width: 768px) { .record__arrow { grid-column: 5; } }
.record:hover .record__arrow { color: color-mix(in srgb, var(--color-plate-ink) 78%, transparent); transform: translateX(3px); }
.record__arrow svg { width: 15px; height: 15px; }
/* ---- Hero ---------------------------------------------------------------- */
/* The lockup over the ledger. Full-bleed cream with an ink rule under it,
which is the page's hardest value break and the reason the marquee
below needs no top edge of its own. */
.hero {
position: relative;
overflow: hidden;
border-bottom: 1px solid var(--fg);
background: var(--surface);
}
.hero__inner { padding-top: clamp(1.6rem, 3.4vw, 2.6rem); }
/* Sized in `cqw` against the text column rather than in `vw` against the
window, so the lockup fills the space it actually has. In `vw` it is
sized against a viewport the column stops tracking at `--maxw`, and past
that width the type and the rule under it drift out of line with the
rest of the page. */
.hero__lockup { container-type: inline-size; }
.hero__line { height: 18.1cqw; }
.hero__word {
font-family: var(--font-lockup);
font-size: 21cqw;
line-height: 0.86;
font-weight: 600;
letter-spacing: 0.012em;
color: var(--fg);
}
@media (prefers-reduced-motion: no-preference) {
/* The line keeps settling after the letters have landed: the glyphs
finish at 780ms, the tracking at 1500ms. */
.hero__word { animation: dmn-track-in 1500ms var(--ease-in) both; }
.hero__glyph { animation: dmn-up 780ms var(--ease-in) both; }
}
.hero__glyph {
display: inline-block;
transition: color 220ms ease;
}
/* Six letters, six accents, taken under the pointer rather than worn at
rest — the lockup teaches the key the rest of the site is coloured by,
but only to someone who goes looking. */
.hero__glyph:nth-child(1):hover { color: var(--pine); }
.hero__glyph:nth-child(2):hover { color: var(--iris); }
.hero__glyph:nth-child(3):hover { color: var(--love); }
.hero__glyph:nth-child(4):hover { color: var(--rose); }
.hero__glyph:nth-child(5):hover { color: var(--gold); }
.hero__glyph:nth-child(6):hover { color: var(--foam); }
/* Ink rule. Timed to land as the last glyph settles — six glyphs at 54ms
plus the tail of the 780ms keyframe. Width in `cqw` for the same reason
the lockup is: a viewport-relative rule outgrows the column. */
.hero__rule {
display: block;
height: 3px;
width: 64cqw;
margin-top: 0.6cqw;
transform-origin: 0 50%;
background: var(--pine);
}
@media (prefers-reduced-motion: no-preference) {
.hero__rule { animation: dmn-draw 720ms var(--ease-in) 780ms both; }
}
.hero__subline { height: 7cqw; margin-top: 0.9cqw; }
.hero__sub {
font-family: var(--font-display);
font-size: 5.5cqw;
line-height: 0.82;
font-weight: 700;
font-stretch: 62%;
letter-spacing: 0.045em;
text-transform: uppercase;
color: var(--fg);
transform: scaleY(1.5);
}
/* One gesture rather than letter by letter: it is a subtitle, and two
per-glyph runs in a row read as an effect rather than as an entrance. */
.hero__sub > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
.hero__sub > span { animation: dmn-wipe-in 860ms cubic-bezier(0.22, 0.61, 0.36, 1) 380ms both; }
}
.hero__ledger {
margin-top: clamp(1.4rem, 3vw, 2.4rem);
padding-bottom: clamp(2rem, 4vw, 3rem);
}
.hero__card {
display: grid;
gap: 1.6rem 2.6rem;
border: 1px solid var(--fg);
background: var(--base);
padding: clamp(1.3rem, 2.4vw, 1.9rem);
}
@media (min-width: 720px) { .hero__card { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.hero__eyebrow {
font-family: var(--font-mono); font-size: 10.5px;
letter-spacing: 0.2em; text-transform: uppercase; color: var(--pine);
}
.hero__h2 {
margin-top: 0.85rem;
font-family: var(--font-display);
font-size: clamp(1.6rem, 2.5vw, 2.4rem);
line-height: 0.94;
font-weight: 700;
font-stretch: 84%;
letter-spacing: -0.03em;
text-transform: uppercase;
}
.hero__blurb { margin-top: 0.9rem; max-width: 46ch; color: var(--fg); font-size: 0.95rem; line-height: 1.5; }
.hero__actions { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero__stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
gap: 1rem 1.3rem;
align-content: start;
border-top: 1px solid var(--fg);
padding-top: 1.1rem;
font-family: var(--font-mono);
font-size: 11px;
line-height: 1.6;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.hero__stat b { font-weight: 400; }
.hero__stat--iris b { color: var(--iris); }
.hero__stat--love b { color: var(--love); }
.hero__stat--gold b { color: var(--gold); }
/* The shell readout beside the card. Borderless on purpose: the card is
the printed spec, this is the terminal output next to it, so the two
read as different registers rather than as two boxes. */
.whoami { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; max-width: 58ch; }
.whoami__cmd { display: flex; align-items: center; gap: 0.5rem; color: var(--fg-faint); flex-wrap: wrap; }
.whoami__cmd .u { color: var(--pine); }
.whoami__cmd .c { color: var(--fg); }
.whoami__caret {
display: inline-block; width: 0.5em; height: 1.05em;
background: color-mix(in oklab, var(--fg) 80%, transparent);
transform: translateY(0.12em);
}
@media (prefers-reduced-motion: no-preference) {
.whoami__caret { animation: dmn-blink 1.1s steps(1, end) infinite; }
}
.whoami__rows {
margin-top: 0.9rem;
padding-top: 0.9rem;
border-top: 1px solid var(--rule-faint);
display: grid;
grid-template-columns: 4.2rem 1fr;
gap: 0.45rem 1.2rem;
color: var(--fg-dim);
}
.whoami__rows dt { color: var(--fg-faint); }
.whoami__rows dd { display: flex; align-items: center; gap: 0.5rem; }
/* ---- Marquee band -------------------------------------------------------- */
/* The index grammar run sideways. The band is a ground, not an accent —
see the `--band` note in tokens.css.
The bottom edge is the one at risk: it meets the page's next section at
too close a value to carry itself, which is why the ink rule below is
load-bearing rather than decorative. Do not drop it. */
.marquee {
position: relative;
overflow: hidden;
background: var(--band);
/* Ink, written out rather than taken from `--fg`: the band pins the
night palette for its contents, which would flip this rule to a light
one. The edge below meets the cream page and the black tabs meet the
section under them, and in both cases it is a *dark* rule that keeps
the seam from bleeding. */
border-bottom: 1px solid var(--color-dawn-ink);
--marquee-fg: var(--color-plate-ink);
/* /78, not /62. Cream on this band clears AA at /74, and these are the
smallest words on the page *and* the only ones in motion, so they get
a little over the line rather than sitting on it. At /62 the index
numbers and sheet counts were legible in a still frame and mush while
the band was moving. */
--marquee-dim: color-mix(in srgb, var(--color-plate-ink) 78%, transparent);
/* Pine, lifted for this band only.
Every other night accent clears its floor on `--band`: iris 4.75,
foam 5.83, gold 6.06, rose 5.88, love 3.42 — all at or above the 3:1
large-text floor the display titles need. Published night pine
(#3e8fb0) lands at 2.73 and is the one that fails, because it is the
accent nearest the ground in both hue and value.
#6fb3d0 is the same hue walked up until it clears with headroom
(4.28:1) while staying visibly pine rather than sliding into foam,
which sits beside it in the rotation and would collapse two domains
onto one colour. */
--pine: var(--band-pine);
}
.marquee__track {
display: flex;
width: max-content;
will-change: transform;
}
/* Two identical runs translated as one unit to -50%, which lands the
second exactly where the first started — the reset is invisible. */
.marquee__run {
display: flex;
flex: none;
align-items: center;
}
.marquee__item {
display: flex;
align-items: baseline;
gap: 0.7rem;
padding: 0.95rem clamp(1.1rem, 2.4vw, 2rem);
white-space: nowrap;
font-family: var(--font-mono);
/* 11px, not the 10px `--step-micro` every other label on the site uses.
This is the one place the furniture type is in motion, and a word
sliding past at 70px/s needs the extra pixel that a static eyebrow
does not. */
font-size: 11px;
letter-spacing: var(--track-micro);
text-transform: uppercase;
color: var(--marquee-fg);
}
.marquee__n { color: var(--marquee-dim); }
/* The kind *word* stays cream and only its icon takes the hue. Colouring
both put three competing colours in every entry, which is what made the
band read as noise rather than as an index. */
.marquee__kind { color: var(--marquee-fg); display: inline-flex; align-items: center; gap: 0.4rem; }
.marquee__kind svg { width: 11px; height: 11px; color: var(--acc); }
/* The credential in display type, the qualifier trailing in the date slot
— record-row grammar, horizontally. */
.marquee__title {
font-family: var(--font-display);
font-size: 1.06rem;
font-weight: 700;
font-stretch: 84%;
letter-spacing: -0.02em;
text-transform: uppercase;
color: var(--acc);
}
.marquee__qual { color: var(--marquee-dim); }
@media (max-width: 720px) { .marquee__qual { display: none; } }
/* The band's own tab — `^:` survives in exactly one place. It is the
banner's self-naming mark, and the band names itself once; repeated on
every record it was furniture. The tab counts its records, because every
index on this site counts itself. */
.marquee__tab {
position: absolute;
top: 0; bottom: 0;
z-index: 2;
display: flex;
align-items: center;
gap: 0.5rem;
padding-inline: clamp(0.9rem, 2.2vw, 1.5rem);
/* The tabs are their own ground: Rosé Pine's black, which is the page's
furniture ink rather than another colour competing with the band. The
band pins the night palette (`.plate`), so `--base` is that black in
both modes. */
background: var(--base);
color: var(--color-plate-ink);
font-family: var(--font-mono);
font-size: var(--step-micro);
letter-spacing: var(--track-wide);
text-transform: uppercase;
}
.marquee__tab--l { left: 0; }
.marquee__tab--r { right: 0; }
@media (max-width: 640px) { .marquee__tab--r { display: none; } }
.marquee__tab .dot { color: var(--color-night-foam); }
/* ---- Section banner ------------------------------------------------------ */
/* The left scrim softens the hero field beneath the heading. */
.banner {
position: relative;
overflow: hidden;
background: var(--plate);
border-bottom: 1px solid var(--fg);
}
.banner__scrim {
position: absolute;
top: 0; bottom: 0; left: 0;
width: 68%;
pointer-events: none;
background: linear-gradient(
90deg,
rgb(var(--plate-scrim) / 0.95) 0%,
rgb(var(--plate-scrim) / 0.86) 52%,
rgb(var(--plate-scrim) / 0) 100%
);
}
.banner__body {
position: relative;
z-index: 2;
display: grid;
gap: 1.8rem 2.6rem;
align-items: end;
padding-block: clamp(1.5rem, 3.2vw, 2.2rem);
}
@media (min-width: 900px) { .banner__body { grid-template-columns: minmax(0, 1fr) 280px; } }
.banner__title {
margin-top: 0.85rem;
font-family: var(--font-display);
font-size: clamp(1.9rem, 4.2vw, 3.2rem);
line-height: 0.92;
font-weight: 700;
font-stretch: 82%;
letter-spacing: -0.035em;
text-transform: uppercase;
color: var(--fg);
}
.banner__blurb { margin-top: 0.85rem; max-width: 58ch; color: var(--fg-dim); font-size: 0.95rem; line-height: 1.55; }
.banner__ledger {
display: grid;
gap: 0.55rem;
font-family: var(--font-mono);
font-size: 11px;
letter-spacing: var(--track-micro);
text-transform: uppercase;
}
.banner__row {
display: flex; align-items: baseline; justify-content: space-between;
gap: 1rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--rule);
color: var(--fg-faint);
}
.banner__row b { font-weight: 400; color: var(--fg); }
.banner__row--acc b { color: var(--acc, var(--accent)); }
/* ---- Section headers ----------------------------------------------------- */
.section { margin-top: clamp(2.4rem, 5.5vw, 4rem); }
.section:last-child { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head {
display: flex; align-items: flex-end; justify-content: space-between;
gap: 1rem; margin-bottom: 1.2rem;
}
.section-head h2 {
margin-top: 0.6rem;
font-family: var(--font-display);
font-size: clamp(1.5rem, 2.8vw, 2.2rem);
font-weight: 700;
font-stretch: 84%;
letter-spacing: -0.03em;
line-height: 0.94;
text-transform: uppercase;
}
/* ---- Payloads call-to-action band ---------------------------------------- */
.cta-band {
--cta-ground: var(--band-ledger);
display: block;
background: var(--cta-ground);
border-block: 1px solid var(--fg);
color: var(--color-plate-ink);
}
.cta-band--internal { --cta-ground: var(--band-internal); }
.cta-band__body {
display: flex; align-items: center; justify-content: space-between;
gap: 1.6rem; flex-wrap: wrap;
padding-block: clamp(1.5rem, 3.2vw, 2.3rem);
}
.cta-band__eyebrow {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-wide); text-transform: uppercase;
color: color-mix(in srgb, var(--color-plate-ink) 72%, transparent);
}
.cta-band h2 {
margin-top: 0.6rem;
font-family: var(--font-display);
font-size: clamp(1.7rem, 3.4vw, 2.6rem);
font-weight: 700; font-stretch: 82%;
letter-spacing: -0.035em; line-height: 0.94;
text-transform: uppercase;
color: var(--color-plate-ink);
}
.cta-band p { margin-top: 0.7rem; max-width: 54ch; color: color-mix(in srgb, var(--color-plate-ink) 85%, transparent); font-size: 0.93rem; line-height: 1.55; }
.cta-band .btn {
background: transparent; color: var(--color-plate-ink);
border-color: color-mix(in srgb, var(--color-plate-ink) 50%, transparent);
flex: none;
}
.cta-band:hover .btn { background: var(--color-plate-ink); color: var(--cta-ground); border-color: var(--color-plate-ink); }
/* ---- Sheet page ---------------------------------------------------------- */
/* Same measure as the body below it, so the title, the rule under the
eyebrow and the prose all start and end on the same two lines. */
.sheet-head { margin-top: 1.6rem; max-width: 1080px; }
/* A head that is not a plate (the HackTricks section index) is a strip of
the page's own ground, so its contour field has no edge to stop at: it
fades out toward both ends and sits back a step from the type. */
.sheet-head:not(.plate) > .contour-field {
/* Two fades, intersected: toward both ends and toward top and bottom,
so no edge of the canvas is ever a visible line on the page. */
-webkit-mask-image:
linear-gradient(90deg, transparent 0%, #000 34%, #000 72%, transparent 100%),
linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
-webkit-mask-composite: source-in;
mask-image:
linear-gradient(90deg, transparent 0%, #000 34%, #000 72%, transparent 100%),
linear-gradient(180deg, transparent 0%, #000 38%, #000 62%, transparent 100%);
mask-composite: intersect;
}
.sheet-head:not(.plate) > .contour-field.is-live { opacity: 0.75; }
.sheet-head.plate {
max-width: none;
margin-top: 0;
margin-left: calc(-1 * clamp(1.15rem, 3.2vw, 2.75rem));
margin-right: calc(-1 * clamp(1.15rem, 3.2vw, 2.75rem));
padding: 3rem clamp(1.15rem, 3.2vw, 2.75rem) 2.5rem;
min-height: 10rem;
border-top: 1px solid var(--rule);
/* The band's own ground: the plate's `--base`, the token the contour field
paints its ground with. The canvas is opaque and covers it, but the
canvas fades in over its first seconds and is removed altogether when
WebGL is unavailable — and without a ground of its own the band was the
page showing through, which on the cream page is light type on cream. */
background: var(--base);
}
/* The scrim the section banners lay over the same field (`.banner__scrim`):
the plate's own ground, near-solid under the left where the title block
sits and gone by two-thirds across, so the lines run at full strength in
the open right of the band and only as a trace behind the copy. The
clearings already keep the lines off the type itself; this is what makes
a document header and a shelf banner the same object. `--base` here is
the plate's, the very token the field paints its ground with, so the
scrim has no edge and follows the palette with it. */
.sheet-head.plate::before {
content: '';
position: absolute;
inset: 0 auto 0 0;
width: 68%;
z-index: 0;
background: linear-gradient(
90deg,
color-mix(in srgb, var(--base) 95%, transparent) 0%,
color-mix(in srgb, var(--base) 86%, transparent) 52%,
transparent 100%
);
pointer-events: none;
}
/* The CRT film, at the banners' weight. At full strength its dark rows cut
a one-pixel contour line into dashes. It is a still film, as is the grain
beside it: nothing moves over the field but the field. */
.sheet-head.plate > .scanlines { opacity: 0.45; }
.sheet-head.plate .sheet-title,
.sheet-head.plate .sheet-desc,
.sheet-head.plate .sheet-meta,
.sheet-head.plate .tags-row,
.sheet-head.plate .eyebrow { position: relative; z-index: 2; }
/* The contour field's clearings (ContourField.astro, `data-contour-clear`).
The field draws no line inside a marked box, so each box hugs its words:
left full-width, as these blocks naturally are, a head with a six-word
title would clear the whole band and there would be no field left to see.
`fit-content` changes the box, not the layout — the type wraps exactly
where it did, and the wrappers' margins collapse through as before. */
.sheet-head__block { width: fit-content; max-width: 100%; }
/* The eyebrow's words, apart from its rule: the rule keeps running to the
edge of the head and the lines may cross it; the words get the clearing.
Inline-flex with the eyebrow's own gap, so the lockup spaces as it did. */
.eyebrow__text { display: inline-flex; align-items: center; gap: inherit; }
.breadcrumb {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-faint);
display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.45; }
.sheet-title {
margin-top: 0.9rem;
font-family: var(--font-display);
font-size: clamp(1.9rem, 4vw, 3rem);
font-weight: 700; font-stretch: 84%;
letter-spacing: -0.035em; line-height: 0.94;
text-transform: uppercase;
}
.sheet-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1rem; }
.sheet-desc { color: var(--fg-dim); font-size: var(--step-1); margin-top: 1rem; max-width: 70ch; }
/* The article and its contents rail. The grid runs the full archive measure
(`--maxw`): the rail sits at the right edge and the article takes the rest.
Running text keeps a reading measure of its own inside that column (see
`.prose` in prose.css), but tables and terminal listings — the things a
cheatsheet is mostly made of, and the things that wrap worst — get all of
it. Capping the whole grid at a reading measure instead left the right
fifth of a wide window empty while a three-column table wrapped. */
.sheet-layout {
display: grid; grid-template-columns: minmax(0, 1fr);
gap: 2.5rem; margin-top: 2.2rem;
}
@media (min-width: 1040px) {
.sheet-layout { grid-template-columns: minmax(0, 1fr) 248px; gap: clamp(2.5rem, 4.2vw, 4.75rem); }
}
/* ---- Contents rail (Toc.astro) ------------------------------------------ */
/* A slab in the page's own palette, in both modes. Under 1040px it has
nowhere to sit, so it becomes a disclosure ahead of the article instead of
disappearing; `order` moves it without moving the markup, which keeps the
sticky rail and the disclosure the same node. */
.toc {
align-self: start; order: -1;
margin-bottom: 0.4rem;
border: 1px solid var(--rule);
background: var(--surface);
}
.toc > summary {
display: flex; align-items: center; gap: 0.6rem;
padding: 0.8rem 0.95rem;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-dim); cursor: pointer; list-style: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc__count { margin-left: auto; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
/* Square +/- rather than a triangle: the contract rules out rounded UA chrome. */
.toc > summary::after { content: '+'; font-size: 13px; line-height: 1; color: var(--accent); }
.toc[open] > summary::after { content: '−'; }
.toc[open] > summary { border-bottom: 1px solid var(--rule); }
.toc > summary:hover { color: var(--fg); }
.toc > nav { max-height: 45vh; overflow-y: auto; padding: 0.5rem 0; }
@media (min-width: 1040px) {
/* The rail scrolls on its own when a sheet has more sections than the
window has height; app.ts keeps the section being read in view. */
.toc {
order: 0; position: sticky; top: 84px; margin-bottom: 0;
max-height: calc(100vh - 84px - 1.5rem);
overflow-y: auto; overscroll-behavior: contain;
scrollbar-width: thin; scrollbar-color: var(--rule-hi) transparent;
}
/* The rail is never collapsible, so the marker goes and the panel stays
open even if a narrow-viewport reader closed it before resizing. Its
heading stays put while the list scrolls under it. */
.toc > summary {
position: sticky; top: 0; z-index: 1;
background: var(--surface);
border-bottom: 1px solid var(--rule);
cursor: default; pointer-events: none;
}
.toc > summary::after { content: none; }
.toc > nav { display: block; max-height: none; overflow-y: visible; }
}
.toc a {
display: flex; gap: 0.55rem;
padding: 0.3rem 0.95rem 0.3rem calc(0.95rem - 2px);
border-left: 2px solid transparent;
font-size: 0.8rem; line-height: 1.4;
color: var(--fg-dim);
transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}
.toc a.lvl-2 { color: var(--fg); margin-top: 0.15rem; }
.toc a.lvl-3 { padding-left: calc(0.95rem - 2px + 0.8rem); font-size: 0.76rem; color: var(--fg-faint); }
.toc__n { flex: none; width: 1.7em; color: var(--accent); font-size: var(--step-micro); letter-spacing: 0.1em; line-height: 1.75; }
/* Sub-entries hang under the section's title, not under its number. */
.toc--numbered a.lvl-3 { padding-left: calc(0.95rem - 2px + 1.7em * 0.78 + 0.55rem); }
.toc a:hover { color: var(--accent); background: var(--wash); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); background: var(--wash); }
.prevnext { display: grid; gap: 1px; margin-top: 3rem; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 620px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a { padding: 1.1rem 1.2rem; background: var(--base); transition: background-color 240ms ease; }
.prevnext a:hover { background: var(--wash-strong); }
.prevnext .dir {
font-family: var(--font-mono); font-size: var(--step-micro);
color: var(--fg-faint); letter-spacing: var(--track-wide); text-transform: uppercase;
}
.prevnext .nx { text-align: right; }
.prevnext strong {
display: block; margin-top: 0.4rem; color: var(--fg);
font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em;
}
/* ---- Footer -------------------------------------------------------------- */
/* A dark band closing the cream page — the same object as the marquee and
the banners, in its last position. */
.site-footer {
position: relative;
overflow: hidden;
margin-top: clamp(3rem, 7vw, 5.5rem);
border-top: 1px solid var(--fg);
padding-block: clamp(2rem, 4vw, 3rem);
background: var(--base);
color: var(--fg-dim);
}
.site-footer .wrap {
display: grid; gap: 1.6rem 2.5rem;
align-items: start;
}
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) auto; } }
.site-footer a:hover { color: var(--accent); }
.footer-note { font-size: 0.86rem; max-width: 56ch; line-height: 1.55; margin-top: 0.8rem; }
.footer-mono {
display: block;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
line-height: 1.9;
}
@media (min-width: 760px) { .footer-col { text-align: right; } }
/* ---- PDF embed ----------------------------------------------------------- */
.pdf-frame { width: 100%; height: min(80vh, 900px); border: 1px solid var(--rule); background: var(--code-bg); }
/* ---- Empty / utility ----------------------------------------------------- */
.muted { color: var(--fg-faint); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* ---- Category chips ------------------------------------------------------ */
.cat-nav { display: flex; flex-wrap: wrap; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.cat-chip {
display: inline-flex; align-items: center; gap: 0.45rem;
padding: 0.5rem 0.8rem;
background: var(--base);
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-dim);
transition: background-color 220ms ease, color 200ms ease;
}
.cat-chip:hover { background: var(--wash-strong); color: var(--fg); }
.cat-chip__tag { color: var(--acc); }
.cat-chip[aria-current='page'] { background: var(--acc); color: var(--base); }
.cat-chip[aria-current='page'] .cat-chip__tag { color: var(--base); }
/* ---- PayloadsAllTheThings attribution ------------------------------------ */
.patt-credit {
display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
margin: 0.2rem 0 1.8rem;
padding: 0.7rem 0.9rem;
border: 1px solid var(--rule);
border-left: 2px solid var(--iris);
background: var(--wash);
font-size: 0.86rem;
}
.patt-badge {
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--iris);
border: 1px solid color-mix(in oklab, var(--iris) 50%, transparent);
padding: 0.14rem 0.4rem;
flex: none;
}
.patt-credit__text { color: var(--fg-dim); line-height: 1.5; }
.patt-credit__text a { color: var(--iris); border-bottom: 1px solid color-mix(in oklab, var(--iris) 40%, transparent); }
.patt-credit__text a:hover { border-color: var(--iris); }
.patt-lic { display: inline-block; margin-left: 0.5rem; color: var(--fg-faint); font-family: var(--font-mono); font-size: 0.78rem; }
.patt-lic code { background: none; color: var(--fg-faint); }
.patt-src {
margin-left: auto;
display: inline-flex; align-items: center; gap: 0.35rem;
font-family: var(--font-mono); font-size: var(--step-micro);
letter-spacing: var(--track-micro); text-transform: uppercase;
color: var(--fg-dim);
padding: 0.32rem 0.6rem;
border: 1px solid var(--rule);
transition: color 180ms ease, border-color 180ms ease;
}
.patt-src:hover { color: var(--iris); border-color: color-mix(in oklab, var(--iris) 50%, transparent); }
/* ---- Theme toggle: circular-reveal wipe ---------------------------------- */
/* Scoped to .theme-vt so it outranks the page iris below, which runs on
every navigation. The toggle sets --vt-x/--vt-y (origin) and --vt-r
(end radius) in JS. */
:root.theme-vt::view-transition-old(root),
:root.theme-vt::view-transition-new(root) {
animation: none; /* cancel the default fade */
mix-blend-mode: normal;
}
:root.theme-vt::view-transition-old(root) { z-index: 0; } /* previous theme underneath */
:root.theme-vt::view-transition-new(root) { z-index: 1; } /* new theme wipes in on top */
@media (prefers-reduced-motion: no-preference) {
:root.theme-vt::view-transition-new(root) {
animation: theme-reveal 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes theme-reveal {
from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 0)); }
to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 0)); }
}
}
/* ---- Page iris: circular reveal on navigation -------------------------- */
/* Every internal navigation (Astro's ClientRouter) opens the next page as a
circle from the link that was pressed, the theme wipe's gesture at page
pace. The inline script in Base.astro sets --vt-x/--vt-y and the exact
farthest-corner radius --vt-r. The theme wipe's rules above are scoped to
.theme-vt, which outranks these, so each keeps its own timing. */
::view-transition-old(root),
::view-transition-new(root) {
animation: none; /* replace Astro's default crossfade */
mix-blend-mode: normal;
}
@media (prefers-reduced-motion: no-preference) {
::view-transition-new(root) {
animation: page-iris 960ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes page-iris {
from { clip-path: circle(0 at var(--vt-x, 50%) var(--vt-y, 50%)); }
to { clip-path: circle(var(--vt-r, 150vmax) at var(--vt-x, 50%) var(--vt-y, 50%)); }
}
}
/* The transition layer sits over the whole page and, left alone, swallows
every click until it finishes: at 960ms, a page that ignores the reader
for a second. The live DOM underneath is already the new page, so clicks
go straight through to it. */
::view-transition {
pointer-events: none;
}
/* ============================================================================
Cyberdeck integration — additive hooks that wire the shared chrome objects
(`.corners`, `.scanlines`, `.plate-dawn`) into the page furniture. Kept in
one block at the foot of the file so the restyle stays reviewable.
========================================================================== */
/* ---- Hover-reveal corner brackets ---------------------------------------- */
/* Domain tiles and index records carry `.corners`, but a grid of always-on
brackets reads as clutter — so they stay clipped until the row is under the
pointer, arriving with the ink wipe. */
.plate-tile.corners::before, .plate-tile.corners::after,
.record.corners::before, .record.corners::after {
opacity: 0;
transition: opacity 180ms ease;
}
.plate-tile.corners:hover::before, .plate-tile.corners:hover::after,
.record.corners:hover::before, .record.corners:hover::after {
opacity: 1;
}
/* ---- Footer CRT film ----------------------------------------------------- */
/* The footer is a `.plate`; the scanline sheet rides at z-index 1 over it, so
the content column is lifted above the film and the brackets frame it. */
.site-footer .wrap { position: relative; z-index: 2; }
.site-footer > .scanlines { opacity: 0.6; }
/* `tabindex="-1"` makes <main> a focus target for the back-to-top handoff.
It is not keyboard-reachable, so suppressing the ring costs no affordance. */
#main:focus { outline: none; }
/* ── Back to top ───────────────────────────────────────────────────────────
Square, hairline, no radius or shadow, per the design contract. It sits
clear of the footer rule and out of the way of the mobile nav bar. */
.to-top {
position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
width: 38px; height: 38px;
display: grid; place-items: center;
background: var(--surface); color: var(--fg-faint);
border: 1px solid var(--rule);
cursor: pointer;
opacity: 0; transform: translateY(6px);
transition: opacity 200ms ease, transform 200ms ease,
color 200ms ease, border-color 200ms ease;
}
.to-top[hidden] { display: none; }
.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { color: var(--accent); border-color: var(--accent); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The icon set ships a right-chevron; pointing it up avoids a new glyph. */
.to-top svg { width: 14px; height: 14px; transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
.to-top { transition: none; transform: none; }
.to-top.is-visible { transform: none; }
}
/* Report membership is public; the numbered index is encrypted. */
.report-sequence {
display: inline-block;
vertical-align: middle;
white-space: nowrap;
margin-inline-start: 0.35rem;
padding: 0.15rem 0.4rem;
border: 1px solid var(--rule-hi);
color: var(--text);
font-family: var(--font-term);
font-size: 0.8rem;
font-weight: 500;
line-height: 1.5;
letter-spacing: 0.02em;
}
.sheet-head .report-sequence-note {
position: relative;
z-index: 2;
margin: 0.7rem 0;
font-family: var(--font-term);
font-size: 0.85rem;
}
.sheet-head .report-sequence-note a { color: var(--text); }