/* ═══════════════════════════════════════════
   PLATFORM · RRRz: ricrios.com/rrrz, the app and the kit

   Replaces /dream (2026-12-05, a draft for Ric). Loaded after
   pages.css, whose frame (the back link, the arc, the footer) it rides
   unchanged; only rrrz.html loads it.

   NO NEW INK. Every colour is a platform token, so the page follows the
   hour's accent and the light room like every other memo. The app's and
   the kit's own inks live only in their pictures. The few sizes the
   platform does not carry are declared once, below.
   ═══════════════════════════════════════════ */

:root {
    --rrrz-wide: 75rem;          /* the widest band, the memo grid's width */
    --rrrz-gutter: 10rem;        /* a part's number and name, beside its words */
    --rrrz-glass: 19rem;         /* the whole glass on a desk: one 900-tall view holds it */
    --rrrz-pics: 46rem;          /* the two kit renders together */
    --rrrz-kit-dt: 11rem;        /* a garment's name column */
    --rrrz-date: 7.5rem;         /* the ledger's date column: ten mono characters */
    --rrrz-ground: hsl(var(--ground-000));   /* the pictures are black in both rooms */
}

/* ── Frame ─────────────────────────────────── */
.rrrz-page { padding: var(--band) 0 var(--space-3xl); }
.rrrz-wrap { max-width: var(--rrrz-wide); margin-inline: auto; padding-inline: var(--safe-inline); }
/* The footer's hairline runs the column's width, not the band's: the
   same edges as every rule above it. */
.rrrz-page .case-page-footer {
    width: calc(100% - 2 * var(--safe-inline));
    max-width: calc(var(--rrrz-wide) - 2 * var(--safe-inline));
    margin-inline: auto;
}

/* The label voice, the site's one treatment. */
.rrrz-label,
.rrrz-eyebrow,
.rrrz-facts,
.rrrz-doors a,
.rrrz-kit-pics figcaption,
.rrrz-kit h3,
.rrrz-when {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: var(--tracking-label);
    color: var(--text-muted);
}
.rrrz-label,
.rrrz-doors a,
.rrrz-kit-pics figcaption,
.rrrz-kit h3 { text-transform: uppercase; }
.rrrz-label { margin: 0; }

/* ── The head: the promise left, the glass right ── */
.rrrz-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--rrrz-glass));
    gap: var(--space-2xl) var(--space-3xl);
    align-items: end;
    margin-top: var(--space-xl);
}
/* The eyebrow is set in capitals by hand, so the mark keeps its small z. */
.rrrz-eyebrow { margin: 0; line-height: var(--leading-snug); }
.rrrz-eyebrow span { white-space: nowrap; }   /* it breaks between its parts, never inside one */
.rrrz-page h1 {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--display-2);
    line-height: var(--leading-display);
    letter-spacing: var(--tracking-display);
    color: var(--mark-ink);
    margin: var(--space-lg) 0 0;
    max-width: 12ch;
    text-wrap: balance;
}
.rrrz-page h1 span { display: block; }   /* one sentence a line, each free to wrap */
.rrrz-sub {
    font-size: var(--text-xl);
    line-height: var(--leading-snug);
    max-width: 30ch;
    margin: var(--space-lg) 0 0;
    text-wrap: pretty;
}
.rrrz-facts {
    list-style: none;
    margin: var(--space-xl) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    row-gap: var(--space-xs);
    letter-spacing: 0.08em;
    line-height: var(--leading-snug);
}
.rrrz-facts li:not(:last-child)::after { content: "·"; margin-inline: 0.75em; }

/* The two doors: the listing first, in the accent; the store second.
   Label voice, a thumb's 44 on both. */
.rrrz-doors { display: flex; flex-wrap: wrap; gap: 0 var(--space-xl); margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.rrrz-doors a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 0.35em;
}
.rrrz-doors li:first-child a { color: var(--accent); text-decoration-color: currentColor; }
.rrrz-doors a:hover, .rrrz-doors a:focus-visible { color: var(--accent); text-decoration-color: currentColor; }

.rrrz-glass { margin: 0; }
.rrrz-glass img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--rrrz-ground);
    border: 1px solid var(--line);
}

@media (max-width: 760px) {
    .rrrz-hero { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-lg); }
    .rrrz-sub { font-size: var(--text-lg); }
}

/* ── A part: its number and name in the gutter, the words beside ── */
.rrrz-part {
    margin-top: var(--band);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: var(--rrrz-gutter) minmax(0, 1fr);
    gap: var(--space-md) var(--space-xl);
}
.rrrz-part > header { grid-column: 1; }
.rrrz-part > div { grid-column: 2; min-width: 0; }
.rrrz-no {
    font-family: var(--font-mono);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
    color: var(--accent);
    margin: 0 0 var(--space-xs);
    line-height: 1;
}
.rrrz-part > div > p:not([class]) {
    font-size: var(--text-lg);
    line-height: var(--leading-body);
    max-width: var(--measure-narrow);
    margin: var(--space-lg) 0 0;
    text-wrap: pretty;
}
.rrrz-lede {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--text-3xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--mark-ink);
    margin: 0;
    max-width: 24ch;
    text-wrap: balance;
}
.rrrz-lede-sm { font-size: var(--text-2xl); max-width: 30ch; }
.rrrz-quiet {
    font-size: var(--text-base);
    line-height: var(--leading-body);
    color: var(--text-muted);
    max-width: var(--measure-narrow);
    margin: var(--space-lg) 0 0;
    text-wrap: pretty;
}
@media (max-width: 640px) {
    .rrrz-part { grid-template-columns: minmax(0, 1fr); }
    .rrrz-part > header, .rrrz-part > div { grid-column: 1; }
    .rrrz-part > header { display: flex; align-items: baseline; gap: var(--space-sm); }
    .rrrz-no { margin: 0; }
}

/* ── 02 The kit: two renders, then the three pieces as a hairline list ── */
.rrrz-kit-pics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    max-width: var(--rrrz-pics);
    margin-top: var(--space-xl);
}
.rrrz-kit-pics figure { margin: 0; }
.rrrz-kit-pics img {
    display: block;
    width: 100%;
    height: auto;
    background: var(--rrrz-ground);
    border: 1px solid var(--line);
}
.rrrz-kit-pics figcaption { margin-top: var(--space-sm); }

.rrrz-kit { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: 1px solid var(--line); max-width: var(--rrrz-pics); }
.rrrz-kit li {
    display: grid;
    grid-template-columns: var(--rrrz-kit-dt) minmax(0, 1fr) auto;
    gap: var(--space-xs) var(--space-lg);
    align-items: baseline;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--line);
}
.rrrz-kit h3 { color: var(--mark-ink); margin: 0; line-height: var(--leading-snug); }
.rrrz-kit p { margin: 0; font-size: var(--text-base); line-height: var(--leading-snug); }
.rrrz-kit .rrrz-when { font-size: var(--text-xs); letter-spacing: 0.08em; white-space: nowrap; text-align: end; }
@media (max-width: 640px) {
    .rrrz-kit li { grid-template-columns: minmax(0, 1fr); }
    .rrrz-kit .rrrz-when { text-align: start; }
}

/* ── 03 How it's made: four rules on hairlines ── */
.rrrz-rules { list-style: none; margin: var(--space-xl) 0 0; padding: 0; max-width: var(--measure); border-top: 1px solid var(--line); }
.rrrz-rules li {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--text-lg);
    line-height: var(--leading-body);
    text-wrap: pretty;
}
.rrrz-rules b { color: var(--mark-ink); font-weight: var(--weight-bold); }

/* ── 04 The ledger, in the mono: dates down the left. The one lit
   line is the rule under today; what is ahead sits a step back. ── */
.rrrz-ledger {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: var(--leading-snug);
    border-top: 1px solid var(--line);
    max-width: var(--rrrz-pics);
}
.rrrz-ledger li {
    display: grid;
    grid-template-columns: var(--rrrz-date) minmax(0, 1fr);
    gap: var(--space-lg);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--line);
}
.rrrz-ledger time,
.rrrz-ledger-k { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.rrrz-ledger li.is-now { border-bottom: 2px solid var(--accent); }
.rrrz-ledger li.is-now span { color: var(--mark-ink); }
.rrrz-ledger li.is-ahead span:last-child { color: var(--text-muted); }
@media (max-width: 400px) { .rrrz-ledger li { gap: var(--space-md); } }

/* ── 05 The standard: three short laws ── */
.rrrz-standard {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg) var(--space-xl);
}
.rrrz-standard li {
    border-top: 1px solid var(--line);
    padding-top: var(--space-md);
    font-size: var(--text-base);
    line-height: var(--leading-body);
    color: var(--text-muted);
    text-wrap: pretty;
}
.rrrz-standard b {
    display: block;
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--text-xl);
    line-height: var(--leading-tight);
    color: var(--mark-ink);
    margin-bottom: var(--space-xs);
}
@media (max-width: 760px) { .rrrz-standard { grid-template-columns: minmax(0, 1fr); } }

/* ── The foot: the credit, the doors, and the line ── */
.rrrz-foot { margin-top: var(--band); padding-top: var(--space-2xl); border-top: 1px solid var(--line); }
.rrrz-foot-line { margin: 0; font-size: var(--text-lg); line-height: var(--leading-snug); }
.rrrz-foot .rrrz-doors { margin-top: var(--space-sm); }
/* The privacy label, a plain fact in the foot's small mono. */
.rrrz-privacy {
    margin: var(--space-xs) 0 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.rrrz-tag {
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-display);
    color: var(--mark-ink);
    margin: var(--space-2xl) 0 0;
    text-wrap: balance;
}
