Download styles.css from ratel-ai/Ratel: direct link, hf CLI and curl.
- Browser
- Download file 23.2 kB
-
https://huggingface.co/spaces/ratel-ai/Ratel/resolve/main/styles.css
- Command line
-
hf download hf://spaces/ratel-ai/Ratel/styles.css
-
curl -L -o styles.css https://huggingface.co/spaces/ratel-ai/Ratel/resolve/main/styles.css
23.2 kB
| /* ============================================================================ | |
| Ratel — Tool Retrieval Demo · brand stylesheet | |
| Palette + type distilled from ratel-websites (packages/brand, apps/web). | |
| Light, warm theme — soft cream surfaces, forest ink, coral accent. | |
| Geist via Google Fonts; Acid Grotesk / Geist Pixel self-hosted. | |
| ========================================================================== */ | |
| @import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500&display=swap'); | |
| @font-face { | |
| font-family: "Acid Grotesk"; | |
| src: url("assets/fonts/acid-grotesk-medium.woff2") format("woff2"); | |
| font-weight: 500; font-style: normal; font-display: swap; | |
| } | |
| @font-face { | |
| font-family: "Acid Grotesk"; | |
| src: url("assets/fonts/acid-grotesk-bold.woff2") format("woff2"); | |
| font-weight: 700; font-style: normal; font-display: swap; | |
| } | |
| @font-face { | |
| font-family: "Geist Pixel Square"; | |
| src: url("assets/fonts/geist-pixel-square.woff2") format("woff2"); | |
| font-weight: 400; font-style: normal; font-display: swap; | |
| } | |
| :root { | |
| color-scheme: light; | |
| --base: #001c16; /* page background — ratel.sh dark forest */ | |
| --base-deep: #012a20; /* recessed wells inside cards — a touch lighter than bg */ | |
| --page-fg: #eee3ce; /* cream text on the dark background (chrome) */ | |
| --page-fg-dim: #b7ae98; /* muted cream on the dark background */ | |
| --forest: #0c4d3e; /* raised / selected fill */ | |
| --forest-600: #023a2e; /* card / control surface — ratel.sh, lighter than bg */ | |
| --forest-300: rgba(238,227,206,0.14); /* subtle cream borders (ratel.sh) */ | |
| --cream: #eee3ce; /* primary text on dark surfaces */ | |
| --cream-dim: #d5c9b0; /* secondary text */ | |
| --coral: #ed5126; /* brand orange */ | |
| --coral-deep: #c4431f; | |
| --coral-soft: rgba(237,81,38,0.13); /* coral tint on dark */ | |
| --green: #239452; /* brand green */ | |
| --green-deep: #023a2e; /* brand forest */ | |
| --green-soft: rgba(35,148,82,0.15); /* green tint on dark */ | |
| --amber: #e0a53a; /* partial (some gold hit, not all) */ | |
| --indigo: #140092; | |
| --indigo-300: #9b8cff; /* links / code keyword */ | |
| --ink: #eee3ce; | |
| --paper: #f6f1e5; /* headings on dark surfaces */ | |
| --warm-muted: #93a08a; | |
| --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; | |
| --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace; | |
| --font-display: "Acid Grotesk", "Geist", ui-sans-serif, system-ui, sans-serif; | |
| --font-pixel: "Geist Pixel Square", "Geist Mono", monospace; | |
| --shadow-sm: 0 1px 2px rgba(26,38,32,0.05); | |
| --shadow-md: 0 1px 2px rgba(26,38,32,0.04), 0 16px 38px -24px rgba(26,38,32,0.24); | |
| --radius-btn: 12px; | |
| --radius-card: 22px; | |
| --max-w: 1120px; | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; padding: 0; } | |
| body { | |
| background-color: var(--base); | |
| background-image: | |
| radial-gradient(1100px 520px at 15% -8%, rgba(35,148,82,0.12), transparent 60%), | |
| radial-gradient(900px 480px at 96% 4%, rgba(237,81,38,0.09), transparent 55%); | |
| background-attachment: fixed; | |
| color: var(--cream); | |
| font-family: var(--font-sans); | |
| -webkit-font-smoothing: antialiased; | |
| line-height: 1.55; | |
| min-height: 100vh; | |
| } | |
| /* Faint pixel grid behind the page — the same square rhythm as Geist Pixel, at 3% ink. */ | |
| body::before { | |
| content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; | |
| background-image: | |
| linear-gradient(rgba(238,227,206,0.030) 1px, transparent 1px), | |
| linear-gradient(90deg, rgba(238,227,206,0.030) 1px, transparent 1px); | |
| background-size: 44px 44px; | |
| mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%); | |
| -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 72%); | |
| } | |
| .wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; } | |
| h1, h2, h3 { | |
| font-family: var(--font-display); | |
| font-weight: 500; | |
| letter-spacing: -0.03em; | |
| line-height: 1.06; | |
| color: var(--paper); | |
| margin: 0; | |
| } | |
| a { color: var(--indigo-300); text-decoration: none; transition: color .15s; } | |
| a:hover { color: var(--coral); } | |
| ::selection { background: var(--coral); color: #fff; } | |
| :focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; } | |
| /* ── Header ─────────────────────────────────────────────────────────────── */ | |
| header.site { | |
| border-bottom: 1px solid rgba(238,227,206,0.12); | |
| background: rgba(0,19,15,0.62); | |
| backdrop-filter: blur(16px) saturate(140%); | |
| position: sticky; top: 0; z-index: 20; | |
| } | |
| .site-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; } | |
| .brand { display: flex; align-items: center; gap: 10px; } | |
| .brand img { height: 22px; width: auto; display: block; transition: filter .2s, transform .2s; } | |
| .brand:hover img { transform: translateY(-1px); filter: drop-shadow(0 3px 10px rgba(237,81,38,0.45)); } | |
| .brand .word { font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -0.03em; color: var(--page-fg); } | |
| .header-links { display: flex; align-items: center; gap: 18px; font-size: 13px; } | |
| .header-links a { color: var(--page-fg-dim); position: relative; padding: 4px 0; } | |
| .header-links a::after { | |
| content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; | |
| background: var(--coral); transition: right .22s cubic-bezier(0.22,0.61,0.36,1); | |
| } | |
| .header-links a:hover { color: var(--page-fg); } | |
| .header-links a:hover::after { right: 0; } | |
| @media (max-width: 720px) { .header-links a:nth-child(n+3) { display: none; } } | |
| /* ── Hero / intro ───────────────────────────────────────────────────────── */ | |
| .hero { padding: 58px 0 6px; } | |
| .hero .eyebrow { | |
| display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; | |
| font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; | |
| color: var(--page-fg-dim); border: 1px solid rgba(238,227,206,0.18); | |
| background: rgba(238,227,206,0.04); border-radius: 999px; padding: 5px 12px; | |
| } | |
| .hero .eyebrow::before { | |
| content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--coral); | |
| box-shadow: 0 0 0 3px var(--coral-soft); | |
| } | |
| .hero h1 { font-size: clamp(2.5rem, 5.4vw, 3.6rem); color: var(--page-fg); } | |
| .hero h1 .dash { color: var(--page-fg-dim); font-weight: 400; } | |
| .hero h1 .accent { | |
| font-family: var(--font-pixel); color: var(--coral); font-size: 0.82em; | |
| letter-spacing: 0; -webkit-font-smoothing: none; | |
| } | |
| .hero-sub { | |
| margin: 16px 0 0; max-width: 60ch; font-size: 15px; line-height: 1.6; color: var(--cream-dim); | |
| } | |
| /* ── Console (controls) ─────────────────────────────────────────────────── */ | |
| .console { margin: 24px 0 8px; } | |
| /* Toggle takes its own width; the dropdown starts right after it and fills to the edge. */ | |
| .control-row { display: flex; align-items: center; gap: 12px; } | |
| .control-row .field { flex: 1; min-width: 0; } | |
| @media (max-width: 620px) { .control-row { flex-wrap: wrap; } .control-row .field { flex-basis: 100%; } } | |
| /* Segmented retriever toggle */ | |
| .segmented { | |
| display: inline-flex; background: var(--base-deep); border: 1px solid var(--forest-300); | |
| border-radius: 12px; padding: 4px; gap: 4px; | |
| } | |
| .segmented button { | |
| appearance: none; border: 0; cursor: pointer; background: transparent; color: var(--cream-dim); | |
| font-family: var(--font-sans); font-size: 13px; font-weight: 500; padding: 8px 16px; border-radius: 9px; | |
| transition: background .16s, color .16s, box-shadow .16s; display: flex; align-items: center; gap: 8px; | |
| } | |
| .segmented button .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--forest-300); transition: background .16s; } | |
| .segmented button[aria-selected="true"] { background: var(--forest); color: var(--paper); box-shadow: var(--shadow-sm); } | |
| .segmented button[aria-selected="true"] .dot { background: var(--coral); } | |
| .segmented button:hover:not([aria-selected="true"]) { color: var(--paper); } | |
| /* Custom dark dropdown (native select can't be themed on open) */ | |
| .dropdown { position: relative; } | |
| .prompt-select { | |
| display: flex; align-items: center; width: 100%; text-align: left; | |
| background: var(--forest-600); border: 1px solid var(--forest-300); border-radius: 12px; | |
| padding: 13px 44px 13px 16px; color: var(--cream); font-family: var(--font-sans); font-size: 15px; | |
| cursor: pointer; line-height: 1.2; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; | |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23b7ae98' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); | |
| background-repeat: no-repeat; background-position: right 16px center; | |
| } | |
| .prompt-select:hover { border-color: var(--warm-muted); } | |
| .prompt-select:focus-visible { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); } | |
| .prompt-select[aria-expanded="true"] { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft); } | |
| .dd-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .dd-label.placeholder { color: var(--warm-muted); } | |
| .dd-menu { | |
| position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; | |
| background: var(--forest-600); border: 1px solid var(--forest-300); border-radius: 12px; | |
| box-shadow: var(--shadow-md); padding: 5px; max-height: 46vh; overflow-y: auto; | |
| animation: reveal 0.16s ease both; | |
| } | |
| .dd-menu[hidden] { display: none; } | |
| .dd-opt { | |
| padding: 9px 12px; border-radius: 8px; font-size: 14px; color: var(--cream-dim); | |
| cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s, color .12s; | |
| } | |
| .dd-opt:hover, .dd-opt.active { background: var(--base-deep); color: var(--cream); } | |
| .dd-opt[aria-selected="true"] { color: var(--coral); } | |
| /* thin dark scrollbar to match the theme */ | |
| .dd-menu::-webkit-scrollbar { width: 10px; } | |
| .dd-menu::-webkit-scrollbar-thumb { background: var(--forest-300); border-radius: 999px; border: 3px solid var(--forest-600); } | |
| /* Run button — primary brand CTA */ | |
| .run-btn { | |
| appearance: none; border: 0; cursor: pointer; flex-shrink: 0; | |
| background: var(--coral); color: #fff; | |
| font-family: var(--font-sans); font-size: 14px; font-weight: 600; | |
| padding: 13px 22px; border-radius: 12px; | |
| display: inline-flex; align-items: center; gap: 8px; | |
| box-shadow: var(--shadow-sm); transition: background .15s, transform .05s, box-shadow .15s; | |
| } | |
| .run-btn:hover:not(:disabled) { background: var(--coral-deep); box-shadow: 0 0 0 3px var(--coral-soft), 0 12px 26px -14px rgba(237,81,38,0.8); } | |
| .run-btn:active:not(:disabled) { transform: translateY(1px); } | |
| .run-btn:disabled { background: var(--forest); color: var(--warm-muted); cursor: not-allowed; box-shadow: none; } | |
| @media (max-width: 620px) { .control-row .run-btn { flex-basis: 100%; justify-content: center; } } | |
| /* ── Split panels ───────────────────────────────────────────────────────── */ | |
| .split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; } | |
| @media (max-width: 860px) { .split { grid-template-columns: 1fr; } } | |
| .panel { | |
| position: relative; border-radius: var(--radius-card); border: 1px solid var(--forest-300); | |
| background: | |
| linear-gradient(180deg, rgba(238,227,206,0.035), transparent 190px), | |
| var(--forest-600); | |
| overflow: hidden; display: flex; flex-direction: column; | |
| box-shadow: var(--shadow-md); | |
| transition: transform .22s cubic-bezier(0.22,0.61,0.36,1), box-shadow .22s; | |
| } | |
| /* Hairline of brand colour along the top edge — identifies each side at a glance. */ | |
| .panel::before { | |
| content: ""; position: absolute; inset: 0 0 auto; height: 2px; | |
| background: linear-gradient(90deg, transparent, var(--green), transparent); | |
| opacity: 0.75; | |
| } | |
| .panel.with::before { background: linear-gradient(90deg, transparent, var(--coral), transparent); } | |
| .panel.without { border-color: rgba(35,148,82,0.28); box-shadow: var(--shadow-md), 0 0 0 3px var(--green-soft); } | |
| .panel.with { border-color: rgba(237,81,38,0.30); box-shadow: var(--shadow-md), 0 0 0 3px var(--coral-soft); } | |
| .panel.without:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 0 3px var(--green-soft), 0 24px 48px -30px rgba(35,148,82,0.55); } | |
| .panel.with:hover { transform: translateY(-2px); box-shadow: var(--shadow-md), 0 0 0 3px var(--coral-soft), 0 24px 48px -30px rgba(237,81,38,0.55); } | |
| @media (prefers-reduced-motion: reduce) { .panel, .panel:hover { transform: none; transition: none; } } | |
| .panel-head { padding: 16px 18px; border-bottom: 1px solid var(--forest-300); display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } | |
| .panel-head .title { display: flex; align-items: center; gap: 9px; } | |
| .panel-head h3 { font-size: 17px; letter-spacing: -0.02em; } | |
| .panel-head .kicker { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green); } | |
| .panel.with .panel-head .kicker { color: var(--coral); } | |
| .panel-head .tag { | |
| font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; | |
| padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(35,148,82,0.35); color: var(--green); background: var(--green-soft); | |
| } | |
| .panel.with .panel-head .tag { border-color: rgba(237,81,38,0.35); color: var(--coral); background: var(--coral-soft); } | |
| .panel-sub { padding: 10px 18px 4px; font-size: 12.5px; color: var(--warm-muted); } | |
| .panel-body { padding: 12px 18px 18px; flex: 1; min-height: 220px; } | |
| /* Per-panel stat strip, tucked gently under each chat: token cost · hits · recall */ | |
| .panel-foot { | |
| display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; | |
| padding: 13px 18px 15px; border-top: 1px solid var(--forest-300); margin-top: auto; | |
| background: linear-gradient(180deg, transparent, rgba(1,42,32,0.55)); | |
| } | |
| /* display: flex/grid override the `hidden` attribute — restore it explicitly */ | |
| .panel-foot[hidden], .metrics[hidden], .loaded[hidden] { display: none; } | |
| .fstat { display: flex; flex-direction: column; gap: 3px; } | |
| .fk { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warm-muted); } | |
| .fv { font-family: var(--font-pixel); -webkit-font-smoothing: none; font-size: 15px; letter-spacing: 0; color: var(--cream); } | |
| .fv small { font-size: 11px; color: var(--warm-muted); font-weight: 400; } | |
| .fv.ok { color: var(--green); } | |
| .fv.partial { color: var(--amber); } | |
| .fv.bad { color: var(--coral); } | |
| /* "Generating…" placeholder + reveal animation */ | |
| .thinking { | |
| display: flex; align-items: center; gap: 10px; min-height: 96px; padding: 8px 2px; | |
| font-size: 12.5px; color: var(--warm-muted); font-family: var(--font-mono); | |
| } | |
| .dots { display: inline-flex; gap: 4px; } | |
| .dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--warm-muted); opacity: 0.4; animation: dot 1s infinite ease-in-out; } | |
| .panel.with .dots i { background: var(--coral); } | |
| .dots i:nth-child(2) { animation-delay: 0.16s; } | |
| .dots i:nth-child(3) { animation-delay: 0.32s; } | |
| @keyframes dot { 0%, 80%, 100% { opacity: 0.3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } } | |
| .reveal { animation: reveal 0.34s cubic-bezier(0.22, 0.61, 0.36, 1) both; } | |
| @keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } } | |
| @media (prefers-reduced-motion: reduce) { | |
| .reveal, .dots i { animation: none; } | |
| .reveal { opacity: 1; transform: none; } | |
| } | |
| /* Tool rows */ | |
| .tool-list { display: flex; flex-direction: column; gap: 8px; } | |
| .tool { | |
| display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 14px; | |
| background: var(--base-deep); border: 1px solid var(--forest-300); | |
| transition: border-color .16s, background .16s; | |
| } | |
| .tool:hover { border-color: rgba(238,227,206,0.24); } | |
| .tool.dim { opacity: 0.5; } | |
| .tool.gold { border-color: rgba(35,148,82,0.45); background: var(--green-soft); } | |
| .tool .rank { font-family: var(--font-pixel); font-size: 12px; color: var(--warm-muted); min-width: 20px; padding-top: 1px; } | |
| .tool .main { flex: 1; min-width: 0; } | |
| .tool .id { font-family: var(--font-mono); font-size: 13px; color: var(--cream); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; } | |
| .tool .id .check { color: var(--green); font-weight: 700; } | |
| .tool .desc { font-size: 12px; color: var(--warm-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } | |
| .tool .score { font-family: var(--font-mono); font-size: 11.5px; color: var(--cream-dim); white-space: nowrap; padding-top: 1px; } | |
| .tool .grp { font-family: var(--font-mono); font-size: 10px; color: var(--warm-muted); border: 1px solid var(--forest-300); border-radius: 999px; padding: 1px 6px; } | |
| /* Chat conversation (kestral-style): user bubble → tool calls → answer bubble */ | |
| .chat { display: flex; flex-direction: column; gap: 11px; } | |
| .msg { display: flex; flex-direction: column; } | |
| .msg.user { align-items: flex-end; } | |
| .msg.user .bubble { | |
| max-width: 84%; background: var(--forest); color: var(--cream); | |
| border: 1px solid var(--forest-300); border-radius: 13px 13px 4px 13px; | |
| padding: 8px 12px; font-size: 13px; line-height: 1.4; | |
| } | |
| .msg.assistant { align-items: flex-start; gap: 6px; max-width: 94%; } | |
| .msg.assistant .who { | |
| font-family: var(--font-mono); font-size: 9.5px; text-transform: uppercase; | |
| letter-spacing: 0.08em; color: var(--warm-muted); margin-bottom: 1px; | |
| } | |
| .assistant-bubble { | |
| background: var(--base-deep); border: 1px solid var(--forest-300); | |
| border-radius: 13px 13px 13px 4px; padding: 9px 12px; | |
| font-size: 13px; line-height: 1.5; color: var(--cream); min-height: 1.1em; | |
| } | |
| .chat-answer.streaming::after { | |
| content: "▋"; margin-left: 1px; color: var(--warm-muted); | |
| animation: caret 0.9s steps(1) infinite; | |
| } | |
| @keyframes caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } } | |
| @media (prefers-reduced-motion: reduce) { .chat-answer.streaming::after { animation: none; } } | |
| /* Tool-call rows in the assistant turn */ | |
| .tool-call { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; padding: 1px 0; min-width: 0; } | |
| .tc-dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; } | |
| .tc-dot.hit, .tc-dot.done { background: var(--green); } | |
| .tc-dot.miss { background: var(--coral); } | |
| .tc-fn { font-weight: 500; flex-shrink: 0; } | |
| .tc-fn.hit { color: var(--green); } | |
| .tc-fn.miss { color: var(--coral); } | |
| .tc-fn.gateway { color: var(--coral); } | |
| .tc-fn.native { color: var(--cream-dim); } /* native MCP meta-tools — deliberately unremarkable */ | |
| .tc-arrow { color: var(--warm-muted); flex-shrink: 0; } | |
| .tc-args { color: var(--warm-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } | |
| .tc-none { color: var(--warm-muted); font-style: italic; } | |
| /* "retrieved into context" header above the tool list */ | |
| .loaded-head, .found-head, .ctx-head { | |
| font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; | |
| letter-spacing: 0.08em; color: var(--warm-muted); margin: 4px 0 8px; | |
| } | |
| .step .found-head, .step .ctx-head { margin-top: 2px; } | |
| /* Relevance bar under a retrieved tool */ | |
| .relbar { margin-top: 7px; height: 3px; border-radius: 999px; background: var(--forest-300); overflow: hidden; } | |
| .relbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--coral-deep)); border-radius: 999px; } | |
| .stacked-note { | |
| margin-top: 12px; font-size: 12px; color: var(--cream-dim); background: var(--base-deep); | |
| border: 1px solid var(--forest-300); border-radius: 12px; padding: 9px 12px; | |
| } | |
| .overflow-note { margin-top: 10px; font-size: 12px; color: var(--warm-muted); font-family: var(--font-mono); } | |
| .empty { color: var(--warm-muted); font-size: 13px; padding: 40px 8px; text-align: center; } | |
| /* ── Comparison bar (context saved · recall without → with) ─────────────── */ | |
| .metrics { | |
| margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; | |
| } | |
| @media (max-width: 560px) { .metrics { grid-template-columns: 1fr; } } | |
| .metric { | |
| border: 1px solid var(--forest-300); background: var(--forest-600); border-radius: 18px; padding: 16px 18px; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .metric .k { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--warm-muted); } | |
| .metric .v { font-family: var(--font-pixel); -webkit-font-smoothing: none; font-size: 28px; margin-top: 8px; color: var(--cream); letter-spacing: -0.01em; } | |
| .metric .v small { font-family: var(--font-sans); font-size: 13px; color: var(--warm-muted); font-weight: 400; letter-spacing: 0; } | |
| .metric.savings .v { color: var(--green); } | |
| .metric.recall .v { color: var(--coral); } | |
| .metric .sub { font-size: 11.5px; color: var(--warm-muted); margin-top: 6px; } | |
| .metric .sub code { font-family: var(--font-mono); font-size: 10.5px; color: var(--cream-dim); } | |
| /* ── Code disclosure ────────────────────────────────────────────────────── */ | |
| .code-block { margin: 30px 0 60px; border: 1px solid var(--forest-300); border-radius: 18px; overflow: hidden; background: var(--forest-600); box-shadow: var(--shadow-md); } | |
| .code-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--forest-300); } | |
| .code-head .t { font-size: 13px; color: var(--cream); font-weight: 500; } | |
| .code-tabs { display: flex; gap: 6px; } | |
| .code-tabs button { | |
| appearance: none; cursor: pointer; background: transparent; border: 1px solid var(--forest-300); | |
| color: var(--cream-dim); font-family: var(--font-mono); font-size: 12px; padding: 4px 12px; border-radius: 8px; transition: background .15s, color .15s; | |
| } | |
| .code-tabs button[aria-selected="true"] { background: var(--base-deep); color: var(--paper); } | |
| pre.code { margin: 0; padding: 16px 18px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: var(--cream); background: var(--base-deep); } | |
| pre.code .kw { color: var(--indigo-300); } | |
| pre.code .str { color: #7fc99a; } | |
| pre.code .cm { color: var(--warm-muted); } | |
| pre.code .fn { color: var(--coral); } | |
| pre.code[hidden] { display: none; } | |
| footer.site { border-top: 1px solid rgba(238,227,206,0.12); padding: 24px 0 40px; color: var(--page-fg-dim); font-size: 12.5px; } | |
| footer.site a { color: var(--page-fg); } | |