@import "tailwindcss"; /* * Glean design system — brutalist / minimal. * Monochrome base (ink / paper) with a single accent (the brand green). * Sharp corners, thick borders, hard offset shadows, monospace for data/labels. */ @theme { --font-sans: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace; --color-ink: #0a0a0a; --color-paper: #fafaf7; --color-line: #0a0a0a; --color-accent: #00754a; --color-accent-ink: #ecfff4; --color-danger: #c82014; --color-muted: #6b6b6b; --color-faint: #c8c8c2; --color-surface: #f0efe9; --radius-brutal: 0px; --shadow-hard: 4px 4px 0 0 var(--color-ink); --shadow-hard-sm: 2px 2px 0 0 var(--color-ink); } :root { color-scheme: light; --bg: #fafaf7; --fg: #0a0a0a; --surface: #f0efe9; --border: #0a0a0a; --muted: #6b6b6b; --faint: #c8c8c2; --accent: #00754a; --accent-ink: #ecfff4; --danger: #c82014; } [data-theme="dark"] { color-scheme: dark; --bg: #0a0a0a; --fg: #f5f5ef; --surface: #161616; --border: #f5f5ef; --muted: #9a9a9a; --faint: #3a3a3a; --accent: #00754a; --accent-ink: #062018; --danger: #ff5a4d; } * { border-color: var(--border); } html, body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-feature-settings: "ss01", "cv01"; -webkit-font-smoothing: antialiased; } ::selection { background: var(--accent); color: #fff; } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-track { background: var(--bg); } ::-webkit-scrollbar-thumb { background: var(--fg); border: 2px solid var(--bg); } /* ---- Utility component classes ---- */ @utility panel { background: var(--surface); border: 2px solid var(--border); } @utility panel-press { transition: transform 0.08s ease, box-shadow 0.08s ease; box-shadow: var(--shadow-hard-sm); &:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--border); } &:active { transform: translate(1px, 1px); box-shadow: 0px 0px 0 0 var(--border); } } @utility btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.72rem; border: 2px solid var(--border); padding: 0.5rem 0.9rem; background: var(--bg); color: var(--fg); box-shadow: var(--shadow-hard-sm); transition: transform 0.08s ease, box-shadow 0.08s ease; cursor: pointer; &:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 0 var(--border); } &:active { transform: translate(1px, 1px); box-shadow: 0 0 0 0 var(--border); } &:disabled { opacity: 0.5; cursor: not-allowed; } } @utility btn-accent { background: var(--accent); color: #fff; } @utility btn-ghost { box-shadow: none; border-color: transparent; &:hover { box-shadow: none; transform: none; border-color: var(--border); } } @utility chip { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; border: 1.5px solid var(--border); padding: 0.1rem 0.5rem; background: var(--bg); &[data-active="true"] { background: var(--fg); color: var(--bg); } } @utility input-brutal { width: 100%; background: var(--bg); border: 2px solid var(--border); padding: 0.6rem 0.8rem; font-family: inherit; font-size: 0.85rem; color: var(--fg); outline: none; &:focus { box-shadow: var(--shadow-hard-sm); } &::placeholder { color: var(--muted); } } @utility tag { display: inline-block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; border: 1px solid var(--border); padding: 0.05rem 0.4rem; background: var(--surface); } @utility kbd-brutal { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; border: 1.5px solid var(--border); background: var(--bg); font-size: 0.7rem; font-weight: 700; } /* ---- Article body (rendered RSS/HTML content) ---- */ @utility article-body { max-width: 100%; overflow-wrap: break-word; line-height: 1.7; font-size: 0.95rem; & :where(h1) { font-size: 1.6rem; font-weight: 800; margin: 1.8rem 0 0.8rem; text-transform: uppercase; letter-spacing: -0.01em; } & :where(h2) { font-size: 1.3rem; font-weight: 800; margin: 1.4rem 0 0.6rem; text-transform: uppercase; } & :where(h3) { font-size: 1.1rem; font-weight: 700; margin: 1.1rem 0 0.4rem; } & :where(p) { margin: 0.9rem 0; } & :where(ul) { list-style: square; padding-left: 1.4rem; margin: 0.9rem 0; } & :where(ol) { list-style: decimal; padding-left: 1.4rem; margin: 0.9rem 0; } & :where(li) { margin: 0.3rem 0; } & :where(blockquote) { border-left: 4px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; margin: 1rem 0; font-style: italic; color: var(--muted); } & :where(pre) { background: var(--surface); border: 2px solid var(--border); padding: 0.9rem; overflow-x: auto; margin: 1rem 0; font-size: 0.82rem; } & :where(code) { background: var(--surface); border: 1px solid var(--border); padding: 0.05rem 0.3rem; font-size: 0.85em; } & :where(pre code) { border: none; padding: 0; background: none; } & :where(a) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; } & :where(img) { max-width: 100%; height: auto; border: 2px solid var(--border); margin: 1rem 0; } & :where(table) { display: block; overflow-x: auto; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; } & :where(th), & :where(td) { border: 1.5px solid var(--border); padding: 0.4rem 0.6rem; text-align: left; } & :where(th) { background: var(--surface); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; } & :where(hr) { border: none; border-top: 2px solid var(--border); margin: 1.6rem 0; } & :where(iframe, video) { max-width: 100%; border: 2px solid var(--border); margin: 1rem 0; } & :where(mark) { background: var(--accent); color: #fff; padding: 0 0.2rem; } } .annotation-highlight { background: var(--accent-ink); color: var(--fg); border-bottom: 2px solid var(--accent); padding: 0 0.1rem; cursor: pointer; &:hover { background: var(--accent); color: #fff; } } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }