@font-face { font-family: "FiraCode Nerd Font Mono"; src: url("../fonts/FiraCodeNerdFontMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; } @font-face { font-family: "FiraCode Nerd Font Mono"; src: url("../fonts/FiraCodeNerdFontMono-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; } /* * The same palette as Rhema Together: a warm paper ground, white cards, * one jade accent, and status color only where a state needs it. Light * is the default; the dark set follows the operating system. */ :root { color-scheme: light dark; --bg: #f7f6f3; --surface: #ffffff; --surface-2: #f1efe9; --border: #e4e0d8; --border-strong: #d3cec3; --text: #1f1d1a; --muted: #736d63; --faint: #9a9388; --accent: #2f6f5e; --accent-soft: #e7f1ed; --danger: #a33a2f; --warn: #8a6519; --ok: #2f6f5e; --info: #4f5f8f; --on-accent: #ffffff; --overlay: rgba(31, 29, 26, 0.4); --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --font-mono: "FiraCode Nerd Font Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; --fs-small: 12px; --fs-meta: 13px; --fs-ui: 14px; --fs-code: 13px; --fs-section: 16px; --fs-title: 20px; --lh-body: 1.5; --lh-heading: 1.2; --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --r-card: 10px; --r-control: 8px; --r-avatar: 999px; --sidebar-w: 232px; --topbar-h: 56px; /* Names the components used before the redesign. They resolve to the same palette, so every existing rule keeps its meaning. */ --ground: var(--bg); --elevated: var(--surface-2); --sunken: var(--surface-2); --text2: var(--text); --text3: var(--muted); --accent-text: var(--accent); --running: var(--accent); --error: var(--danger); --sans: var(--font-sans); --mono: var(--font-mono); } @media (prefers-color-scheme: dark) { :root { --bg: #12110f; --surface: #1a1917; --surface-2: #22201d; --border: #272521; --border-strong: #3a3733; --text: #f2f0ec; --muted: #a49d92; --faint: #7d766c; --accent: #58a58c; --accent-soft: #1e2f2a; --danger: #d07366; --warn: #c9a45c; --ok: #58a58c; --info: #8b9bd0; --on-accent: #12110f; --overlay: rgba(0, 0, 0, 0.62); } } *, *::before, *::after { box-sizing: border-box; } html, body, #__nuxt { height: 100%; } body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: var(--fs-ui); line-height: var(--lh-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; } h1, h2, h3, p { margin: 0; } h1, h2, h3 { font-weight: 600; line-height: var(--lh-heading); } h1 { font-size: var(--fs-title); } h2 { font-size: var(--fs-section); } h3 { font-size: var(--fs-ui); } a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; } code, pre, .mono { font-family: var(--font-mono); font-size: 0.94em; font-variant-ligatures: contextual common-ligatures; font-feature-settings: "calt" 1, "liga" 1; } button, input, textarea, select { font: inherit; color: inherit; } button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 32px; padding: 0 var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--r-control); background: var(--surface); color: var(--text); font-size: var(--fs-ui); font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; } button:hover:not(:disabled) { background: var(--surface-2); } button:disabled { opacity: 0.5; cursor: not-allowed; } button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } button.primary:hover:not(:disabled) { background: var(--accent); filter: brightness(0.96); } button.ghost { border-color: transparent; background: transparent; color: var(--muted); font-weight: 400; } button.ghost:hover:not(:disabled) { background: var(--surface-2); color: var(--text); } input, select, textarea { min-height: 36px; padding: var(--sp-2) var(--sp-3); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-control); color: var(--text); font-size: var(--fs-ui); } textarea { resize: vertical; line-height: var(--lh-body); } input::placeholder, textarea::placeholder { color: var(--faint); } input:hover, select:hover, textarea:hover { border-color: var(--border-strong); } input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -1px; } :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; } ::selection { background: var(--accent-soft); color: var(--text); } .file-input { display: none; } .muted { color: var(--muted); } .faint { color: var(--faint); } .meta { font-size: var(--fs-meta); color: var(--muted); } .small { font-size: var(--fs-small); } .label { font-family: var(--font-sans); font-size: 11px; font-weight: 500; color: var(--faint); } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* --- controls ------------------------------------------------------- */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); height: 32px; padding: 0 var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--r-control); background: var(--surface); color: var(--text); font-size: var(--fs-ui); font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; } .btn:hover:not(:disabled) { background: var(--surface-2); } .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .btn-primary:hover:not(:disabled) { background: var(--accent); filter: brightness(0.96); } .btn-danger { color: var(--danger); border-color: var(--border-strong); background: transparent; } .btn-danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); } .btn-quiet { border-color: transparent; background: transparent; color: var(--muted); } .btn-quiet:hover:not(:disabled) { background: var(--surface-2); color: var(--text); } .btn-sm { height: 28px; padding: 0 var(--sp-2); font-size: var(--fs-meta); gap: var(--sp-1); } .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; min-height: 32px; padding: 0; border: 1px solid transparent; border-radius: var(--r-control); background: transparent; color: var(--muted); line-height: 1; } .icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); } .icon-btn:disabled { opacity: 0.45; } /* --- surfaces ------------------------------------------------------- */ .card { flex-shrink: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); } .card > .card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--border); } .card > .card-head .title { font-size: var(--fs-ui); font-weight: 600; } .card > .card-head .meta { min-width: 0; color: var(--muted); font-size: var(--fs-small); text-align: right; } .card > .card-body { padding: 0; } .card > .card-body > * + * { border-top: 1px solid var(--border); } .card > .card-body.flush { padding: var(--sp-2) var(--sp-4); } .card > .card-body.flush > * + * { border-top: none; } /* --- tags ----------------------------------------------------------- */ .badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 1px var(--sp-2); border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-family: var(--font-mono); font-size: 11px; line-height: 1.6; white-space: nowrap; } .badge.accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); color: var(--accent); } .badge.ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); color: var(--ok); } .badge.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); color: var(--warn); } .badge.error { border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); color: var(--danger); } /* --- banners -------------------------------------------------------- */ .banner { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border-strong); border-left: 3px solid var(--info); border-radius: var(--r-control); background: var(--surface); color: var(--text); font-size: var(--fs-meta); } .banner.error { border-left-color: var(--danger); } .banner.warn { border-left-color: var(--warn); } .banner .banner-text { flex: 1; min-width: 0; overflow-wrap: anywhere; } /* --- markdown ------------------------------------------------------- */ .md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; } .md p, .md ul, .md ol, .md pre, .md blockquote, .md table { margin: 0 0 var(--sp-2); } .md ul, .md ol { padding-left: var(--sp-5); } .md li { margin: 2px 0; } .md li > ul, .md li > ol { margin-bottom: 0; } .md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: var(--sp-3) 0 var(--sp-1); font-weight: 600; line-height: var(--lh-heading); } .md h1 { font-size: var(--fs-section); } .md h2 { font-size: 15px; } .md h3, .md h4, .md h5, .md h6 { font-size: var(--fs-ui); } .md a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; } .md code { padding: 1px 5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; } .md pre { padding: var(--sp-2) var(--sp-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-control); overflow-x: auto; } .md pre code { padding: 0; background: none; border: none; font-size: inherit; } .md blockquote { padding: 2px var(--sp-3); border-left: 3px solid var(--border-strong); color: var(--muted); } .md hr { border: none; border-top: 1px solid var(--border); } .md table { border-collapse: collapse; } .md th, .md td { padding: 3px var(--sp-2); border: 1px solid var(--border-strong); text-align: left; vertical-align: top; } .md th { background: var(--surface-2); } .md img { max-width: 100%; border-radius: var(--r-control); } .md.streaming > :last-child::after { content: '▊'; margin-left: 1px; color: var(--accent); animation: md-blink 1.1s steps(1) infinite; } @keyframes md-blink { 50% { opacity: 0; } } @media (prefers-reduced-motion: reduce) { .md.streaming > :last-child::after { animation: none; } }