/* securedataresearch.net: only what this site has and no other. Everything shared (tokens, faces, the page, the top bar,
   the banner, buttons, cards, prose, the footer) is sdr-ui, pinned in config.toml and loaded before this sheet. Tokens
   only: no colour literals, except the hand-drawn figures' attribute selectors below, which match colours in the SVG. */

/* every page: the top bar and the slab under it are ink in both themes, as the band's own colours are; no mesh behind */
body::before { background: var(--bg); }
.ui-topbar { background: color-mix(in oklab, var(--band-ink) 86%, transparent); border-bottom-color: color-mix(in oklab, var(--band-label) 22%, transparent); }
.ui-top, .ui-brand { color: var(--band-peak); }
.ui-brand img.ui-mask { filter: none; }
.ui-links a { color: var(--band-label); }
.ui-links a:hover, .ui-links a[aria-current] { color: var(--band-peak); background: color-mix(in oklab, var(--band-peak) 10%, transparent); box-shadow: none; }
.ui-links .ui-cta, .ui-links .ui-cta:hover { color: var(--band-ink); background: var(--band-peak); }
/* --band-lit is the display's illumination colour, set by band.js as it cycles; the labels take most of their colour from it */
.slab { --lit: color-mix(in oklab, var(--band-lit, var(--band-label)) 62%, var(--band-peak)); background: var(--band-ink); color: var(--band-peak); padding-top: clamp(20px, 2.4vw, 32px); }
.wordmark { margin: 0; padding-inline: var(--gutter); line-height: 0; }
.wordmark svg { display: block; width: min(100%, 720px); height: auto; overflow: visible; }
.wordmark text { font-family: var(--mono); font-weight: 700; font-size: 84px; fill: currentColor; }
.slab-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 32px; margin: 0; padding: 14px var(--gutter) 22px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lit); }

/* inner pages: the slab holds the page's name in the wordmark's face and one line under it */
.slab--page { padding-bottom: clamp(24px, 3vw, 40px); }
.pagemark { margin: 0; padding-inline: var(--gutter); font-family: var(--mono); font-weight: 700; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; overflow-wrap: anywhere; }
.slab-sub { margin: 12px 0 0; padding-inline: var(--gutter); max-width: 46em; font-size: 18px; color: var(--lit); }
.slab-sub a { color: var(--band-peak); }
.visit .ui-btn--primary { border-radius: 0; box-shadow: none; padding: 16px 22px; background: var(--cobalt); color: var(--on-cobalt); font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stories { gap: 0 32px; }
.stories .ui-card { background: none; border: 0; border-top: 1px solid var(--text-strong); border-radius: 0; box-shadow: none; padding: 16px 0 28px; }
.stories .ui-card h3 { font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1.1; letter-spacing: -.01em; }

/* the band: the display (static/js/band.js), a tick ruler, and the dial. Each dial link sits under its own carrier. On a
   narrow screen the three scroll sideways together, like a dial, rather than squeeze eight names into a phone's width. */
.band-scroll { overflow-x: auto; }
.band { min-width: 880px; }
.band-display { display: block; width: 100%; height: clamp(160px, 17vw, 250px); background: var(--band-ink); cursor: crosshair; }
.band-display.off { display: none; }
.band-ruler { height: 12px; background-image: repeating-linear-gradient(90deg, color-mix(in oklab, var(--lit) 55%, transparent) 0 1px, transparent 1px 12px); }
.dial { display: flex; font-family: var(--mono); font-size: 13px; }
.dial a { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; justify-items: center; padding: 16px 4px 22px; text-decoration: none; color: var(--lit);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.dial a span { opacity: .7; }
.dial a b { font-weight: 700; }
.dial a:hover, .dial a:focus-visible { background: var(--band-peak); color: var(--band-ink); }

/* under the slab: the statement, then ruled ledgers (steps, findings, lab, play). Everything sits on one four-column
   grid, so the steps, the findings' text and the rows' descriptions share their left edges all the way down the page. */
.statement, .steps, .finding, .row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; }
.statement { align-items: start; row-gap: 32px; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 64px); }
.statement h2 { grid-column: span 2; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(44px, 6.2vw, 92px); line-height: .95; letter-spacing: -.02em; color: var(--text-strong); }
.statement h2 span { color: var(--cobalt); }
.statement-text { grid-column: span 2; font-size: 19px; }
.statement-text p { margin-block: 0 1em; }
.go { display: inline-block; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 18px 24px; background: var(--cobalt); color: var(--on-cobalt); transition: transform var(--t-fast) var(--ease-out); }
.go:hover { transform: translateY(-2px); }
.tag { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger { padding-block: 0 clamp(56px, 8vw, 96px); }
.ledger > h2.tag { color: var(--text-strong); padding-bottom: 14px; }
.steps { row-gap: 28px; }
.steps > div { border-top: 1px solid var(--text-strong); padding-top: 14px; }
.steps h3 { margin: 8px 0 6px; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--text-strong); }
.steps p:last-child { margin: 0; color: var(--muted); }
.finding { align-items: baseline; row-gap: 8px; border-top: 1px solid var(--text-strong); padding: 16px 0 20px; }
.finding .n { margin: 0; font-family: var(--display); font-size: clamp(44px, 5vw, 68px); line-height: 1; letter-spacing: -.02em; color: var(--text-strong); }
.finding > div { grid-column: 2 / span 2; display: grid; gap: 10px; }
.finding > div p { margin: 0; font-size: 19px; line-height: 1.45; }
.finding > div .tag { font-size: 13px; }
.more { margin: 0; border-top: 1px solid var(--text-strong); padding-top: 16px; font-family: var(--mono); font-size: 14px; }
.more a { color: var(--text-strong); }
.row { align-items: baseline; row-gap: 4px; padding: 14px 0 16px; border-top: 1px solid var(--text-strong); text-decoration: none; color: var(--text-strong);
  transition: background var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.row:last-child { border-bottom: 1px solid var(--text-strong); }
.row:hover, .row:focus-visible { background: var(--text-strong); color: var(--bg); }
.row .tag { color: inherit; opacity: .7; }
.row b { font-family: var(--display); font-weight: 400; font-size: clamp(28px, 2.8vw, 36px); line-height: 1.1; }
.row .what { grid-column: 2 / span 2; font-size: 17px; line-height: 1.4; opacity: .78; }
.row .where { grid-column: 4; text-align: right; text-transform: none; letter-spacing: .02em; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .statement h2, .statement-text, .finding .n, .finding > div, .row b, .row .what, .row .where { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* engagements: the stories grid */
.stories { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* product pages: the "visit" button under the intro, and the TeX blocks */
.visit { margin: 1.4em auto .4em; }
.tex { margin-block: .6em 1.2em; overflow-x: auto; font-size: 1.05em; }
.katex-display { margin: .4em 0; }

/* the hand-drawn figures in pipe.md carry fixed colours; these follow the theme instead */
.ui-figure svg [fill="#171717"], .ui-figure svg [fill="#0a0a0a"] { fill: var(--text-strong); }
.ui-figure svg [fill="#737373"] { fill: var(--faint); }
.ui-figure svg [fill="#a3a3a3"] { fill: var(--rule); }
.ui-figure svg [stroke="#a3a3a3"] { stroke: var(--rule); }
.ui-figure svg [stroke="#737373"] { stroke: var(--faint); }
.ui-figure svg [stroke="#e5e5e5"] { stroke: var(--line-2); }
.ui-figure svg [stroke="#fff"] { stroke: var(--surface-solid); }
.ui-figure svg [fill="#3a78c2"] { fill: var(--sapphire); } .ui-figure svg [stroke="#3a78c2"] { stroke: var(--sapphire); }
.ui-figure svg [fill="#00694e"] { fill: var(--emerald); } .ui-figure svg [stroke="#00694e"] { stroke: var(--emerald); }
.ui-figure svg [fill="#e4002b"] { fill: var(--red); } .ui-figure svg [stroke="#e4002b"] { stroke: var(--red); }
