/* ── palette ─────────────────────────────────────────────────────────────── */ /* * YoRHa dark, the palette of the desktop this runs on (quickshell Theme.qml, * hypr palette.lua) and of narl.io. A green-black ramp, sage-grey text, and * only two colours that mean anything: `light` is focus, selection and * whatever is live; `alarm` is something wrong. Nothing else carries hue. */ :root { --ink: #090a08; --hull: #0c0d0b; --base: #0f110e; --surface: #161915; --surface-alt: #20241f; --rim: #2a2f28; --overlay: #383e35; --outline: #545c52; --fg: #ccd2cb; --subtle: #9fa7a2; --muted: #79847a; --light: #eef1ea; --light-dim: #8e978d; --light-soft: #bcc1bf; --alarm: #c8684f; --font-sans: "Noto Sans Variable", "Noto Sans", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono Variable", "JetBrains Mono", ui-monospace, monospace; /* The frame: a bar on top, a rail on the right, a band at the bottom, and a rounded opening between them that the panes are seen through. */ --bar-h: 40px; --rail-w: 48px; --status-h: 28px; --frame: 8px; --frame-radius: 18px; /* Concentric with the frame: 18 outside, 12 one step in, 6 for the small things. */ --radius-s: 6px; --radius-m: 10px; --radius-l: 12px; /* Quick start, long settle, no overshoot. */ --ease-snap: cubic-bezier(0.22, 1, 0.36, 1); --ease-glide: cubic-bezier(0.4, 0, 0.2, 1); --ease-in: cubic-bezier(0.55, 0, 0.9, 0.35); --ease-drift: cubic-bezier(0.35, 0, 0.15, 1); --t-fast: 120ms; --t-base: 220ms; --t-slow: 380ms; --t-lazy: 700ms; color-scheme: dark; } @media (max-width: 767px) { :root { --rail-w: var(--frame); --status-h: 40px; --frame: 6px; --frame-radius: 14px; } } /* ── base ────────────────────────────────────────────────────────────────── */ * { box-sizing: border-box; } html, body { height: 100%; margin: 0; } body { background: var(--hull); color: var(--fg); font-family: var(--font-mono); font-size: 13px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; } #app { height: 100%; } a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--overlay); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--t-base) var(--ease-glide), text-decoration-color var(--t-base) var(--ease-glide); } a:hover { color: var(--light); text-decoration-color: var(--light); } a:focus-visible { background: var(--light); color: var(--ink); text-decoration: none; outline: none; } /* * A button rests as a hairline and a label. Hover lifts it a step and lights * the label; only focus inverts — the NieR cursor, light fill and ink text. */ /* `a.button` is a link that has to look like one: open, download. */ button, a.button { font: inherit; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--subtle); background: transparent; border: 1px solid color-mix(in oklab, var(--outline) 55%, transparent); border-radius: var(--radius-s); padding: 2px 8px; cursor: pointer; transition: background-color var(--t-base) var(--ease-glide), color var(--t-base) var(--ease-glide), border-color var(--t-base) var(--ease-glide); } a.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; } :is(button, a.button):hover { background: var(--surface-alt); color: var(--light); border-color: var(--outline); } :is(button, a.button):active { transform: translateY(1px); } :is(button, a.button):focus-visible { background: var(--light); color: var(--ink); border-color: var(--light); outline: none; } /* A folder, crumb or space that rows dragged from the list would land in. */ .carry-over { outline: 1px dashed var(--light); outline-offset: -1px; border-radius: var(--radius-s); } button:disabled { color: var(--muted); cursor: default; } input, textarea { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--rim); border-radius: var(--radius-s); padding: 6px 10px; transition: border-color var(--t-base) var(--ease-glide); } input:focus, textarea:focus { border-color: var(--light-dim); outline: none; } input::placeholder { color: var(--muted); } ::selection { background: var(--light); color: var(--ink); } /* * Thin, unobtrusive scrollbars everywhere. Chrome drops its ::-webkit-scrollbar * styling (and falls back to arrows) as soon as the standard properties are * set, so those are only for the browsers that have nothing else. */ @supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--overlay) transparent; } } *::-webkit-scrollbar { width: 8px; height: 8px; } *::-webkit-scrollbar-thumb { background: var(--overlay); border-radius: 4px; } *::-webkit-scrollbar-track { background: transparent; } .subtle { color: var(--subtle); } .muted { color: var(--muted); } .light { color: var(--light); } .alarm { color: var(--alarm); } /* ── vocabulary ──────────────────────────────────────────────────────────── */ /* A caption: small, mono, upper case and spaced out. */ .label { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); } /* A caption followed by a hairline that runs to the end of the row. */ .rule { display: flex; align-items: center; gap: 12px; } .rule::after { content: ''; height: 1px; flex: 1; background: var(--overlay); } /* The square that says "this one": overlay at rest, light when it matters. */ .marker { display: inline-block; width: 7px; height: 7px; flex: none; background: var(--overlay); transition: background-color var(--t-base) var(--ease-glide); } .display { font-family: var(--font-sans); font-weight: 200; letter-spacing: 0.18em; text-transform: uppercase; color: var(--light); } /* * A key, as a keycap: inside a `.label` everything is upper case, and `o` and * `O` are different keys, so a key is never set in a label's case. */ .kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border: 1px solid var(--rim); border-radius: 4px; background: var(--surface-alt); color: var(--light); font-family: var(--font-mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; } /* The blinking block after "standing by". */ .cursor { margin-left: 2px; animation: blink 1.1s steps(1) infinite; } /* ── frame ───────────────────────────────────────────────────────────────── */ /* * The shell every page sits in, the app and the shared view alike: a hull with * a bar on top, a band at the bottom, and a rounded porthole between them that * the windows are seen through. */ .shell { position: relative; height: 100%; outline: none; background: var(--hull); } /* The rim is drawn on top by ::after, so the windows scroll underneath it the way they sit under the frame on the desktop. */ .porthole { position: absolute; top: var(--bar-h); right: var(--rail-w); bottom: var(--status-h); left: var(--frame); overflow: hidden; border-radius: var(--frame-radius); background: radial-gradient(120% 70% at 30% 0%, #141713 0%, transparent 60%), var(--base); } .porthole::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--rim); pointer-events: none; z-index: 5; } /* Windows tile the porthole like a workspace: a gap round and between them. */ .panes { --gap: 7px; height: 100%; display: grid; grid-template-columns: minmax(32ch, 24vw) 1fr; gap: var(--gap); padding: var(--gap); } /* * A window: opaque, a hairline border in overlay. The focused one gets the * desktop's active border — a light gradient at 135° — and its shadow. */ .window { --pane-bg: color-mix(in oklab, var(--surface) 40%, var(--base)); min-width: 0; min-height: 0; overflow: hidden; border: 1px solid transparent; border-radius: calc(var(--frame-radius) - var(--gap)); background: linear-gradient(var(--pane-bg), var(--pane-bg)) padding-box, linear-gradient(var(--overlay), var(--overlay)) border-box; transition: box-shadow var(--t-base) var(--ease-glide); } .window.focused { background: linear-gradient(var(--pane-bg), var(--pane-bg)) padding-box, linear-gradient(135deg, var(--light), var(--light-dim)) border-box; box-shadow: 0 6px 24px rgb(0 0 0 / 0.45); } /* hypr: workspaces, slidefadevert 18%, 550ms on the drift curve. */ .switch { animation: slidefadevert 550ms var(--ease-drift) both; } @keyframes slidefadevert { from { opacity: 0; transform: translateY(calc(var(--dir, 1) * 18%)); } } /* On a phone one window fills the porthole, so its rim is the window's edge. */ @media (max-width: 767px) { .panes { --gap: 0px; } .window, .window.focused { border: 0; border-radius: 0; background: var(--pane-bg); box-shadow: none; } } /* The bar along the top: mark, workspace pills, the clock. */ .bar { position: absolute; inset: 0 0 auto 0; height: var(--bar-h); display: flex; align-items: center; gap: 12px; padding: 0 calc(var(--rail-w) + 4px) 0 calc(var(--frame) + 10px); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--subtle); white-space: nowrap; overflow: hidden; } /* A ring with a dot in it: the favicon, and the desktop's launcher. */ .bar .mark { position: relative; width: 12px; height: 12px; flex: none; border: 1.5px solid var(--light); border-radius: 999px; } .bar .mark::after { content: ''; position: absolute; inset: 2px; border-radius: 999px; background: var(--light); } .bar .divider { width: 1px; height: 14px; flex: none; background: var(--overlay); } /* Workspace pills: muted at rest, light on hover, inverted when current. The current one widens, as the desktop's does, over the slow duration. */ .bar .pill { flex: none; display: flex; align-items: center; gap: 6px; min-width: 22px; height: 20px; padding: 0 6px; justify-content: center; transition: padding var(--t-slow) var(--ease-snap), background-color var(--t-base) var(--ease-glide), color var(--t-base) var(--ease-glide); border: 0; border-radius: 4px; font-size: 11px; letter-spacing: 0.06em; text-transform: none; color: var(--muted); background: transparent; } .bar .pill:hover { background: transparent; color: var(--light); } .bar .pill[aria-current='true'] { background: var(--light); color: var(--ink); padding: 0 12px; } .bar .pill:focus-visible { background: var(--light); color: var(--ink); } .bar .spacer { flex: 1; } .bar .readout { display: flex; gap: 8px; font-variant-numeric: tabular-nums; } .bar .readout .key { color: var(--muted); } .bar .readout .value { color: var(--fg); text-transform: none; letter-spacing: 0.06em; } @media (max-width: 767px) { .bar { padding-left: 12px; padding-right: 12px; gap: 10px; } } /* The band along the bottom: the mode, the file, what just happened. */ .status { position: absolute; inset: auto 0 0 0; height: var(--status-h); display: flex; align-items: center; gap: 14px; padding: 0 calc(var(--rail-w) + 4px) 0 calc(var(--frame) + 4px); font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; } .status .mode { display: flex; align-items: center; height: 18px; padding: 0 8px; border-radius: 4px; flex: none; font-weight: 600; letter-spacing: 0.18em; background: var(--surface-alt); color: var(--fg); transition: background-color var(--t-base) var(--ease-glide), color var(--t-base) var(--ease-glide); } .status .readout { color: var(--fg); font-variant-numeric: tabular-nums; } .status .unit { color: var(--muted); margin-left: 1px; } .status .hint { color: var(--muted); letter-spacing: 0.06em; } /* ── motion ──────────────────────────────────────────────────────────────── */ @keyframes resolve { from { opacity: 0; transform: translateY(6px) scale(0.985); } } @keyframes rise { from { opacity: 0; transform: translateY(12px); } } @keyframes blink { 50% { opacity: 0; } } /* Things settle into place; `--i` staggers a group of them. */ .resolve { animation: resolve var(--t-lazy) var(--ease-snap) both; animation-delay: calc(var(--i, 0) * 80ms); } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; } } /* ── rendered markdown ───────────────────────────────────────────────────── */ /* Reading is set in the sans; anything that is code stays mono. */ .md { max-width: 72ch; font-family: var(--font-sans); font-size: 15px; line-height: 1.7; color: var(--fg); } .md > :first-child { margin-top: 0; } .md h1, .md h2, .md h3, .md h4 { color: var(--light); font-weight: 400; line-height: 1.3; margin: 1.8em 0 0.6em; } .md h1 { font-size: 1.7em; font-weight: 300; letter-spacing: 0.01em; } .md h2 { display: flex; align-items: center; gap: 14px; font-size: 1.25em; } .md h2::after { content: ''; height: 1px; flex: 1; background: var(--overlay); } .md h3 { font-size: 1.05em; font-weight: 500; } .md h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--subtle); } .md p { margin: 0 0 1em; } .md strong { color: var(--light); font-weight: 600; } .md ul, .md ol { margin: 0 0 1em; padding-left: 1.6em; } .md li { margin: 0.2em 0; } .md li::marker { color: var(--muted); } .md ul { list-style: none; padding-left: 1.4em; } .md ul > li { position: relative; } .md ul > li::before { content: ''; position: absolute; left: -1.1em; top: 0.72em; width: 5px; height: 5px; background: var(--overlay); } .md ul > li:has(> input[type='checkbox'])::before { content: none; } .md blockquote { margin: 0 0 1em; padding-left: 1.2em; border-left: 1px solid var(--outline); color: var(--subtle); } .md code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface); border: 1px solid var(--rim); border-radius: 4px; padding: 0 5px; } .md pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; background: var(--surface); border: 1px solid var(--rim); border-radius: var(--radius-s); padding: 12px 14px; overflow-x: auto; margin: 0 0 1em; } .md pre code { background: none; border: 0; padding: 0; font-size: inherit; } /* A long equation scrolls on its own rather than widening the page. */ .md .katex-display { overflow-x: auto; overflow-y: hidden; padding: 2px 0; } .md hr { border: 0; border-top: 1px solid var(--overlay); margin: 2.4em 0; } .md img, .md video { max-width: 100%; border: 1px solid var(--rim); border-radius: var(--radius-s); display: block; margin: 0 0 1em; } .md audio { width: 100%; margin: 0 0 1em; } .md table { border-collapse: collapse; margin: 0 0 1em; display: block; overflow-x: auto; font-size: 14px; } .md th, .md td { border-bottom: 1px solid var(--rim); padding: 6px 14px 6px 0; text-align: left; } .md th { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--overlay); } .md input[type='checkbox'] { accent-color: var(--light-dim); margin-right: 0.5em; } /* ── codemirror ──────────────────────────────────────────────────────────── */ .cm-editor { height: 100%; background: transparent; } .cm-editor.cm-focused { outline: none; } .cm-scroller { font-family: var(--font-mono) !important; font-size: 14px; line-height: 1.65; padding-bottom: 40vh; } .cm-content { caret-color: var(--light); } .cm-gutters { background: transparent; border: 0; color: var(--muted); } .cm-editor .cm-activeLineGutter { background: transparent; color: var(--subtle); } /* * CodeMirror injects its own `.cm-activeLine` rule (a light blue #cceeff44) * into the document after this stylesheet, so an equally specific selector * loses and the current line renders as a bright box. Qualify it to win. */ .cm-editor .cm-activeLine { background: color-mix(in oklab, var(--fg) 4%, transparent); } .cm-selectionBackground, .cm-content ::selection { background: var(--overlay) !important; } /* * Insert mode: a 2px bar reads far better than the browser's hairline caret. * CodeMirror injects `.cm-cursor { border-left: 1.2px solid black }` after this * stylesheet, so — like `.cm-activeLine` above — an equally specific selector * loses and the caret renders black on a dark background. Qualify it to win. */ .cm-editor .cm-cursor, .cm-editor .cm-cursor-primary, .cm-editor .cm-dropCursor { border-left: 2px solid var(--light); border-right: 0; margin-left: -1px; } .cm-editor .cm-cursor-secondary { border-left-color: var(--light-dim); } /* * Normal mode: the vim plugin paints the character *inside* the block cursor, * inheriting its syntax colour, so a light glyph — a heading's `#`, a link — * disappears against the light block. Force the glyph to ink instead, which * is legible whatever the token was: the same inversion as everywhere else. */ .cm-fat-cursor, .cm-animate-fat-cursor { background: var(--light) !important; color: var(--ink) !important; opacity: 1 !important; } .cm-fat-cursor.cm-cursor-secondary { background: var(--light-dim) !important; } /* Unfocused, the plugin hardcodes a pink outline; keep it on-theme. */ .cm-editor:not(.cm-focused) .cm-fat-cursor { background: none !important; outline: 1px solid var(--light-dim) !important; color: transparent !important; } /* The panel and vim `:` prompt are themed in Editor.svelte — see the note there. */