/* ============================================================================ DÆMON//SEC — design tokens Matches the main DÆMON site: Rosé Pine Dawn (cream, DEFAULT) ⇄ Rosé Pine (night), with Gruvbox and Gruvepine as alternative palettes (palettes.css, generated from the main site's palette model, chosen by ). Type is DM Mono throughout; only the wordmark, whose Greek and Cyrillic letters DM Mono does not carry, is Noto Sans Display. Palette values are the contrast-tuned DÆMON dawn/night tokens. The theme and palette attributes are set on by an inline head script before paint. ── Form language ── The site is an editorial-brutalist paper archive, not a glass UI. Three rules follow from that and everything here serves them: 1. Zero radius. Corners are square, everywhere, including images and inputs. `--radius*` survive only so that consumers written against them keep compiling; they all resolve to 0. 2. No blur, no glow, no drop shadow. Structure is carried by 1px ink rules (`--rule`), flat panels (`.slab`), and the grain film. 3. Colour separates by *value*, not by translucency. A panel differs from its page because it is a different ink, not because it is frosted. Alpha still belongs on borders and washes. It does NOT belong on text: use the ink / subtle / muted ramp, which is tuned to stay legible at every step in both modes. ========================================================================== */ /* ---- Fonts (self-hosted, base-aware via Vite) ---------------------------- */ /* DM Mono — the site face, matching daemon-sec.xyz: body, headings, labels, code. Self-hosted latin subsets; no external request. It stops at 500, so `font-synthesis-weight: none` (global.css) keeps the browser from smearing a fake bold over the heavier weights the headings ask for. */ @font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/dm-mono-300.woff2') format('woff2'); } @font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-mono-400.woff2') format('woff2'); } @font-face { font-family: 'DM Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/dm-mono-400-italic.woff2') format('woff2'); } @font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-mono-500.woff2') format('woff2'); } /* Noto Sans Display — variable cut, the wordmark face: heavy, compressed, uppercase, and the only face here with DΛΣMӨП's Greek and Cyrillic. */ @font-face { font-family: 'Noto Sans Display'; font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; src: url('../fonts/noto-sans-display-var-latin.woff2') format('woff2'); } /* ---- Light = Rosé Pine Dawn (DEFAULT, cream) ---------------------------- */ :root, :root[data-theme='light'] { --base: #faf4ed; --surface: #fffaf3; --overlay: #f2e9e1; --muted: #6e6a86; /* 4.73:1 */ --subtle: #635f7c; /* 5.56:1 */ --text: #575279; /* 6.66:1 */ /* accents tuned to clear 4.5:1 as ink on cream */ --love: #af416c; --gold: #9b5800; --rose: #b4423d; --pine: #017194; --foam: #00747b; --iris: #795aa2; --hl-low: #f4ede8; --hl-med: #dfdad9; --hl-high: #cecacd; /* The published Rosé Pine Dawn pastels, kept for decoration — washes, rules, noise bands, anything that is a shape rather than a word. On cream they run from gold at 2.05:1 to love at 3.84:1, all under the 4.5:1 floor, so never put text in them here. They are what the theme actually looks like: use them as ground and put ink on top. */ --pine-soft: #286983; --foam-soft: #56949f; --gold-soft: #ea9d34; --love-soft: #b4637a; --iris-soft: #907aa9; --rose-soft: #d7827e; /* semantic */ --bg: var(--base); --fg: var(--text); --fg-dim: var(--subtle); --fg-faint: var(--muted); --accent: var(--iris); --accent-2: var(--pine); /* Structure. `--rule` is the hairline every edge on the site is drawn with; `--rule-hi` is the same ink at the weight a hovered or active edge takes. `--wash` is the one permitted fill that is not a flat colour — a paper tint for table stripes and hover grounds. */ --rule: rgba(87, 82, 121, 0.22); --rule-hi: rgba(87, 82, 121, 0.48); --rule-faint: rgba(87, 82, 121, 0.12); --wash: rgba(242, 233, 225, 0.6); --wash-strong: #f2e9e1; --code-bg: #f2e9e1; --selection: rgba(121, 90, 162, 0.22); /* The grain film's weight on paper. Multiply, because on a light ground noise has to be laid *into* the page — added to it, it is invisible. */ --grain-blend: multiply; --grain-opacity: 0.1; } /* ---- Dark = Rosé Pine (night) ------------------------------------------- */ :root[data-theme='dark'] { --base: #191724; --surface: #1f1d2e; --overlay: #26233a; --muted: #8b87a3; /* 5.12:1 */ --subtle: #908caa; /* 5.48:1 */ --text: #e0def4; /* 13.39:1 */ --love: #eb6f92; --gold: #f6c177; --rose: #ebbcba; --pine: #3e8fb0; /* 4.84:1 — lifted from #31748f */ --foam: #9ccfd8; --iris: #c4a7e7; --hl-low: #21202e; --hl-med: #403d52; --hl-high: #524f67; /* On the dark side the published accents already clear their floors as text, so `-soft` is the same value rather than a separate pastel. */ --pine-soft: #3e8fb0; --foam-soft: #9ccfd8; --gold-soft: #f6c177; --love-soft: #eb6f92; --iris-soft: #c4a7e7; --rose-soft: #ebbcba; --bg: var(--base); --fg: var(--text); --fg-dim: var(--subtle); --fg-faint: var(--muted); --accent: var(--iris); --accent-2: var(--foam); --rule: rgba(224, 222, 244, 0.16); --rule-hi: rgba(224, 222, 244, 0.38); --rule-faint: rgba(224, 222, 244, 0.08); --wash: rgba(224, 222, 244, 0.05); --wash-strong: #26233a; --code-bg: #131019; --selection: rgba(196, 167, 231, 0.30); /* Screen, not multiply: on ink, noise has to be added or it vanishes. */ --grain-blend: screen; --grain-opacity: 0.07; } /* ---- Bands: grounds, not accents ---------------------------------------- */ /* A full-bleed band has to carry text on top of it, and an accent at reading weight cannot also be a ground: at the accent's lightness the night palette stops reading on it. So a band is an accent walked down its own hue until the night accents all clear their floors on it. Two bands, two tokens — they shared one for a while on the main site and retuning the marquee silently repainted the ledger halfway down the page. These sit outside the theme blocks because a band is the same ink in both modes: it is the page's constant. */ :root { /* The marquee. Iris, because iris is the signature accent — the hero rule, the section eyebrows — so the one saturated stripe near the top of the page belongs to the family around it. Published iris (#795aa2, hue 266) walked down to ground weight at the same hue. Cream on it: 9.10:1. */ --band: #4e3969; /* The ledger band, far enough down the page that the two never share a sightline. Cream on it: 7.04:1. */ --band-ledger: #015a77; /* InternalAllTheThings is the Payloads mirror's companion, not a second copy of it. A pine ground keeps the pair related while giving each reference a distinct address on the homepage. Cream on it: 7.33:1. */ --band-internal: #28594f; /* Night pine, lifted for the marquee band only (see .marquee in global.css): published #3e8fb0 lands at 2.73:1 on --band. */ --band-pine: #6fb3d0; /* The plate ground the section banners and code blocks are drawn on, and its scrim channels — the canvas reads these to erase its own edges under the title. */ --plate: #171322; --plate-scrim: 23 19 34; } /* ---- Fonts + scale ------------------------------------------------------ */ :root { /* One face. The role tokens stay so their consumers keep their names. */ --font-display: 'DM Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace; --font-body: var(--font-display); --font-mono: var(--font-display); --font-lockup: var(--font-display); /* Noto Sans Display — the daemon-sec signature display face: heavy, compressed, uppercase. Wordmarks, banner titles, segbar wordmark. */ --font-wordmark: 'Noto Sans Display', 'DM Mono', sans-serif; /* Terminal chrome: status-bar segments, code captions, prompt lines. */ --font-term: var(--font-display); /* The corner-bracket ink. Defaults to `--love`, the accent the brackets are drawn in everywhere; consumers may override it per element via `var(--bracket, var(--love))` fallbacks. */ --bracket: var(--love); --step--1: clamp(0.79rem, 0.77rem + 0.1vw, 0.85rem); --step-0: clamp(0.95rem, 0.92rem + 0.15vw, 1.02rem); --step-1: clamp(1.14rem, 1.05rem + 0.4vw, 1.35rem); --step-2: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem); --step-3: clamp(1.85rem, 1.4rem + 2vw, 2.9rem); --step-4: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); /* The micro label — 10px mono, uppercase, widely tracked. This is the site's signature type object: every eyebrow, kind mark, stat label, tab and code-block caption is set in it. Fixed in px on purpose; it is furniture, and furniture does not scale with the headline. */ --step-micro: 10px; --track-micro: 0.18em; --track-wide: 0.24em; /* Square corners, everywhere. Kept as tokens so existing consumers keep compiling — they all resolve to nothing. */ --radius: 0; --radius-sm: 0; /* The archive measure. Wider than the old glass build's 1180px because the page is now built out of full-bleed bands and ruled tables rather than out of floating cards, and those want the room. */ --maxw: 1440px; --rail: 240px; --ease: cubic-bezier(0.22, 1, 0.36, 1); /* The site's entrance curve — slower out, hard landing. Distinct from `--ease`, which is for hover-scale transitions. */ --ease-in: cubic-bezier(0.2, 0.7, 0.2, 1); /* The entrance vocabulary shared with daemon-sec.xyz. */ --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94); --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1); --dur-reveal: 1000ms; } /* ---- Plate: the DÆMON signature — an inverse (night) panel on the cream page. Pins the Rosé Pine palette for its whole subtree, like the main site's dark hero band / terminals / footer. On the night theme it stays dark, so plates read as dark in both modes. -------------------------- */ .plate { --base: #191724; --surface: #1f1d2e; --overlay: #26233a; --muted: #8b87a3; --subtle: #908caa; --text: #e0def4; --love: #eb6f92; --gold: #f6c177; --rose: #ebbcba; --pine: #3e8fb0; --foam: #9ccfd8; --iris: #c4a7e7; --pine-soft: #3e8fb0; --foam-soft: #9ccfd8; --gold-soft: #f6c177; --love-soft: #eb6f92; --iris-soft: #c4a7e7; --rose-soft: #ebbcba; --hl-low: #21202e; --hl-med: #403d52; --hl-high: #524f67; --bg: var(--base); --fg: var(--text); --fg-dim: var(--subtle); --fg-faint: var(--muted); --accent: var(--iris); --accent-2: var(--foam); --rule: rgba(224, 222, 244, 0.16); --rule-hi: rgba(224, 222, 244, 0.38); --rule-faint: rgba(224, 222, 244, 0.08); --wash: rgba(224, 222, 244, 0.05); --wash-strong: #26233a; --code-bg: #131019; --grain-blend: screen; --grain-opacity: 0.07; color: var(--fg); } /* ---- Plate-dawn: the inverse of `.plate` — a Dawn (cream) panel on the night page. Pins the full Rosé Pine Dawn palette for its whole subtree, exactly as `.plate` pins night. The cross-theme rule runs in both directions: in light mode code panes and callouts stay dark via `.plate`; in dark mode callouts, the TOC rail and the hero card stay cream via `.plate-dawn` — paper panels floating on the night page. In light mode it is a no-op look (the page is already cream) but harmless. --------------------------------------------------------------------- */ .plate-dawn { --base: #faf4ed; --surface: #fffaf3; --overlay: #f2e9e1; --muted: #6e6a86; --subtle: #635f7c; --text: #575279; --love: #af416c; --gold: #9b5800; --rose: #b4423d; --pine: #017194; --foam: #00747b; --iris: #795aa2; --pine-soft: #286983; --foam-soft: #56949f; --gold-soft: #ea9d34; --love-soft: #b4637a; --iris-soft: #907aa9; --rose-soft: #d7827e; --hl-low: #f4ede8; --hl-med: #dfdad9; --hl-high: #cecacd; --bg: var(--base); --fg: var(--text); --fg-dim: var(--subtle); --fg-faint: var(--muted); --accent: var(--iris); --accent-2: var(--pine); --rule: rgba(87, 82, 121, 0.22); --rule-hi: rgba(87, 82, 121, 0.48); --rule-faint: rgba(87, 82, 121, 0.12); --wash: rgba(242, 233, 225, 0.6); --wash-strong: #f2e9e1; --code-bg: #f2e9e1; --grain-blend: multiply; --grain-opacity: 0.1; color: var(--fg); } /* ============================================================================ DÆMON main-site palette — the fixed, absolute Rosé Pine token set the redesigned homepage and shared chrome are authored against, extracted verbatim from daemon-sec.xyz's compiled @theme. These do NOT flip with the mode: `dawn` is always the cream family, `night` always the ink family, `signal` the dark plate chrome. The page's *ground* follows the mode through the theme-relative tokens above (--base / --text / --pine …); the tokens below name the two poles the homepage inverts between — see the hero's P/Q and .plate / .plate-dawn. ========================================================================== */ :root { /* Paper (Rosé Pine Dawn) */ --color-dawn-base: #faf4ed; --color-dawn-surface: #fffaf3; --color-dawn-panel: #fdf8f1; --color-dawn-overlay: #f2e9e1; --color-dawn-ink: #575279; --color-dawn-subtle: #635f7c; --color-dawn-muted: #6e6a86; --color-dawn-pine: #017194; --color-dawn-foam: #00747b; --color-dawn-gold: #9b5800; --color-dawn-love: #af416c; --color-dawn-iris: #795aa2; --color-dawn-rose: #b4423d; --color-dawn-band: #4e3969; --color-dawn-band-ledger: #015a77; /* The published pastels and the hairline, for subtrees that pin the paper palette themselves (callouts and credits on the night page). */ --color-dawn-pine-soft: #286983; --color-dawn-foam-soft: #56949f; --color-dawn-gold-soft: #ea9d34; --color-dawn-love-soft: #b4637a; --color-dawn-iris-soft: #907aa9; --color-dawn-rose-soft: #d7827e; --color-dawn-rule: rgba(87, 82, 121, 0.22); --color-dawn-rule-hi: rgba(87, 82, 121, 0.48); /* Plates (Rosé Pine night) */ --color-night-base: #191724; --color-night-surface: #1f1d2e; --color-night-text: #e0def4; --color-night-subtle: #908caa; --color-night-muted: #8b87a3; --color-night-pine: #3e8fb0; --color-night-foam: #9ccfd8; --color-night-gold: #f6c177; --color-night-love: #eb6f92; --color-night-love-lift: #ee85a2; --color-night-iris: #c4a7e7; --color-night-rose: #ebbcba; --color-night-overlay: #26233a; --color-night-rule: rgba(224, 222, 244, 0.16); /* Signal / plate chrome */ --color-signal-plate: #171322; --color-signal-meta: #c9c3e0; --color-signal-dim: #9a91c4; --color-signal-pine: #31a3c4; --color-plate-ink: #faf4ed; /* Type — the homepage's names for the one face. */ --font-plex: var(--font-display); --font-archivo: var(--font-display); /* The redesigned homepage's measure — wider than --maxw for the band grids. */ --container-archive: 1560px; } /* Theme-relative surfaces the paper homepage sections use, so they invert with the mode. --line is ink@16% and rides --text automatically. */ :root, :root[data-theme='light'] { --panel: #fdf8f1; --line: color-mix(in srgb, var(--text) 16%, transparent); } :root[data-theme='dark'] { --panel: #1f1d2e; } .plate { --panel: #1f1d2e; } .plate-dawn { --panel: #fdf8f1; }