audit-labs/audit-labs.dev

The website for Audit Labs.

clone: git clone https://gitbay.org/audit-labs/audit-labs.dev.git

main: assets/site.css · raw

  1/* ===================================================================
  2   audit-labs.dev — shared styles
  3   Design system: DM Serif Display (display) · DM Sans (body) ·
  4   IBM Plex Mono (labels/code). Warm palette, amber accent.
  5
  6   The home page uses a single-column hero (`.hero`); project pages
  7   opt into a two-column hero with `.hero.split`.
  8   =================================================================== */
  9
 10*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 11
 12:root {
 13    --black: #0a0a0a;
 14    --off-white: #f4f1eb;
 15    --warm-white: #faf8f4;
 16    --amber: #d97706;
 17    --amber-light: #fbbf24;
 18    --green: #15803d;
 19    --gray-1: #1c1c1c;
 20    --gray-2: #2e2e2e;
 21    --gray-3: #6b6b6b;
 22    --gray-4: #a3a3a3;
 23    --gray-5: #d4d4d4;
 24    --border: #e5e1d8;
 25    --red: #c0392b;
 26}
 27
 28body {
 29    font-family: 'DM Sans', sans-serif;
 30    background: var(--warm-white);
 31    color: var(--black);
 32    line-height: 1.6;
 33}
 34
 35.mono { font-family: 'IBM Plex Mono', monospace; }
 36.serif { font-family: 'DM Serif Display', serif; }
 37
 38/* ---------- NAV ---------- */
 39nav { position: sticky; top: 0; z-index: 100; background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 0 2rem; }
 40.nav-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; height: 60px; }
 41.logo { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--black); text-decoration: none; white-space: nowrap; flex-shrink: 0; }
 42.logo span { color: var(--amber); }
 43.nav-links { display: flex; gap: 2rem; align-items: center; list-style: none; flex-shrink: 0; }
 44.nav-links a { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--gray-3); text-decoration: none; white-space: nowrap; transition: color 0.15s; }
 45.nav-links a:hover { color: var(--black); }
 46.nav-links .btn-github { background: var(--black); color: var(--off-white); padding: 0.45rem 1rem; border-radius: 4px; font-size: 0.75rem; transition: background 0.15s; }
 47.nav-links .btn-github:hover { background: var(--gray-2); color: var(--off-white); }
 48
 49/* ---------- HERO (base = home; .split = project pages) ---------- */
 50.hero { background: var(--black); color: var(--off-white); padding: 7rem 2rem 5rem; position: relative; overflow: hidden; }
 51.hero::before {
 52    content: ''; position: absolute; inset: 0; pointer-events: none;
 53    background-image:
 54        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
 55        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
 56}
 57.hero-inner { max-width: 1100px; margin: 0 auto; position: relative; }
 58
 59.hero.split { padding: 5.5rem 2rem 4.5rem; }
 60.hero.split .hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
 61/* Let grid tracks shrink below content width so a long code line scrolls inside
 62   its box instead of widening the track and overflowing the page. */
 63.hero.split .hero-inner > * { min-width: 0; }
 64@media (max-width: 820px) { .hero.split .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; } }
 65
 66.hero-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
 67.hero-label::before { content: ''; display: inline-block; width: 1.5rem; height: 1px; background: var(--amber-light); }
 68
 69.crumb { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--amber-light); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
 70.crumb::before { content: ''; width: 1.5rem; height: 1px; background: var(--amber-light); }
 71.crumb a { color: var(--amber-light); text-decoration: none; opacity: 0.8; }
 72
 73h1 { font-family: 'DM Serif Display', serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: 700px; }
 74h1 em { font-style: italic; color: var(--amber-light); }
 75.hero.split h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; margin-bottom: 1.3rem; max-width: none; }
 76
 77.hero-desc { font-size: 1.05rem; color: #a09a8e; max-width: 540px; margin-bottom: 2.5rem; line-height: 1.75; }
 78.hero.split .hero-desc { font-size: 1.02rem; max-width: 34rem; margin-bottom: 2rem; }
 79
 80.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
 81.hero.split .hero-actions { margin-bottom: 0; }
 82
 83.btn-primary { background: var(--amber); color: #fff; text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; font-weight: 500; transition: background 0.15s; }
 84.btn-primary:hover { background: var(--amber-light); color: #000; }
 85.btn-secondary { background: transparent; color: var(--gray-4); text-decoration: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; border: 1px solid var(--gray-2); transition: border-color 0.15s, color 0.15s; }
 86.btn-secondary:hover { border-color: var(--gray-4); color: var(--off-white); }
 87
 88/* ---------- TERMINAL ---------- */
 89.terminal { background: #111; border: 1px solid #2a2a2a; border-radius: 8px; overflow: hidden; max-width: 600px; }
 90.hero.split .terminal { max-width: none; }
 91.terminal-bar { background: #1a1a1a; border-bottom: 1px solid #2a2a2a; padding: 0.6rem 1rem; display: flex; gap: 0.4rem; align-items: center; }
 92.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
 93.dot-red { background: #ff5f57; } .dot-yellow { background: #febc2e; } .dot-green { background: #28c840; }
 94.terminal-body { padding: 1.25rem 1.5rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; line-height: 1.9; overflow-x: auto; }
 95.hero.split .terminal-body { padding: 1.2rem 1.4rem; font-size: 0.78rem; line-height: 1.95; }
 96.t-prompt { color: #5a9060; } .t-cmd { color: #e8e0d0; } .t-comment { color: #555; }
 97.t-out { color: #7a9f7a; } .t-path { color: #d4a862; } .t-dim { color: #444; }
 98.t-bad { color: #e06c5e; } .t-hash { color: #8a8a8a; }
 99
100/* ---------- SECTIONS ---------- */
101section { padding: 5rem 2rem; border-bottom: 1px solid var(--border); }
102.section-inner { max-width: 1100px; margin: 0 auto; }
103.eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.9rem; }
104h2 { font-family: 'DM Serif Display', serif; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; line-height: 1.2; }
105.eyebrow + h2 { margin-bottom: 0.6rem; }
106.lede { color: var(--gray-3); font-size: 1rem; max-width: 44rem; line-height: 1.7; }
107
108.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
109.section-link { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--gray-3); text-decoration: none; border-bottom: 1px solid var(--gray-5); padding-bottom: 1px; transition: color 0.15s; }
110.section-link:hover { color: var(--black); }
111
112/* ---------- HOME: repos grid ---------- */
113.repos { background: var(--warm-white); }
114.repo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 1.5rem; }
115.repo-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 2rem; text-decoration: none; color: inherit; display: block; transition: border-color 0.15s, box-shadow 0.15s; position: relative; }
116.repo-card:hover { border-color: var(--amber); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
117.repo-tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); background: #fef3c7; padding: 0.2rem 0.5rem; border-radius: 3px; display: inline-block; margin-bottom: 1rem; }
118.repo-card h3 { font-family: 'IBM Plex Mono', monospace; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--black); }
119.repo-card p { font-size: 0.9rem; color: var(--gray-3); line-height: 1.65; margin-bottom: 1.5rem; }
120.repo-langs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
121.lang-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; background: var(--off-white); border: 1px solid var(--border); color: var(--gray-3); padding: 0.15rem 0.5rem; border-radius: 3px; }
122
123/* ---------- HOME: tools grid ---------- */
124.tools { background: #fff; }
125.tools-intro { max-width: 550px; margin-bottom: 3rem; }
126.tools-intro p { color: var(--gray-3); font-size: 0.95rem; margin-top: 0.75rem; line-height: 1.7; }
127.tool-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
128.tool-item { background: #fff; padding: 1.75rem; transition: background 0.15s; }
129.tool-item:hover { background: var(--warm-white); }
130.tool-icon { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--amber); margin-bottom: 0.75rem; letter-spacing: 0.05em; }
131.tool-item h4 { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--black); }
132.tool-item p { font-size: 0.82rem; color: var(--gray-3); line-height: 1.6; }
133
134/* ---------- FRAMEWORKS strip (home + project pages) ---------- */
135.frameworks { padding: 3.5rem 2rem; background: var(--warm-white); }
136.frameworks-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 3rem; flex-wrap: wrap; }
137.frameworks-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-4); white-space: nowrap; }
138.frameworks-list { display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center; }
139.framework-tag { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; font-weight: 700; color: var(--gray-3); letter-spacing: 0.05em; }
140
141/* ---------- PROJECT PAGES: overview cards ---------- */
142.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2.6rem; }
143.card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1.8rem; transition: border-color 0.15s, box-shadow 0.15s; }
144.card:hover { border-color: var(--amber); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
145.card .num { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--amber); letter-spacing: 0.1em; }
146.card h3 { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 1.3rem; margin: 0.5rem 0 0.6rem; }
147.card p { font-size: 0.9rem; color: var(--gray-3); line-height: 1.65; }
148.card p .mono { color: var(--gray-1); }
149
150/* ---------- PROJECT PAGES: contents / commands list ---------- */
151.cmds { background: #fff; }
152.cmd-list { margin-top: 2.4rem; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
153.cmd-row { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); align-items: baseline; }
154.cmd-row:last-child { border-bottom: none; }
155.cmd-row:hover { background: var(--warm-white); }
156.cmd-name { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 700; color: var(--black); }
157.cmd-desc { font-size: 0.9rem; color: var(--gray-3); line-height: 1.6; }
158.cmd-desc .mono { color: var(--amber); }
159@media (max-width: 560px) { .cmd-row { grid-template-columns: 1fr; gap: 0.3rem; } }
160
161/* ---------- PROJECT PAGES: install / quickstart ---------- */
162.install { background: var(--warm-white); }
163.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; margin-top: 2.4rem; align-items: start; }
164.install-grid > * { min-width: 0; }
165@media (max-width: 820px) { .install-grid { grid-template-columns: 1fr; } }
166.install pre { background: #111; color: #e8e0d0; border-radius: 8px; padding: 1.25rem 1.4rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; line-height: 1.9; overflow-x: auto; }
167.install pre .c { color: #555; } .install pre .p { color: #5a9060; }
168.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
169.badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; background: #fff; border: 1px solid var(--border); color: var(--gray-3); padding: 0.2rem 0.55rem; border-radius: 3px; }
170.exit { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
171.exit .e { font-size: 0.85rem; color: var(--gray-3); display: flex; gap: 0.7rem; align-items: baseline; }
172.exit .code { font-family: 'IBM Plex Mono', monospace; font-weight: 700; min-width: 1.2rem; }
173.exit .g { color: var(--green); } .exit .r { color: var(--red); } .exit .a { color: var(--amber); }
174
175/* ---------- FOOTER ---------- */
176footer { background: var(--black); color: var(--gray-4); padding: 3rem 2rem; }
177.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
178.footer-logo { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 0.9rem; color: var(--gray-4); text-decoration: none; }
179.footer-logo span { color: var(--amber); }
180.footer-left p { font-size: 0.78rem; color: var(--gray-2); margin-top: 0.4rem; }
181.footer-note { font-size: 0.7rem; color: var(--gray-3); max-width: 46ch; line-height: 1.5; }
182.footer-links { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
183.footer-links a { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--gray-3); text-decoration: none; transition: color 0.15s; }
184.footer-links a:hover { color: var(--off-white); }
185
186/* ---------- HOME ECOSYSTEM DIAGRAM ---------- */
187.ecosystem { width: 100%; max-width: 600px; display: flex; flex-direction: column; align-items: stretch; }
188.eco-cap { font-family: 'IBM Plex Mono', monospace; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gray-4); margin-bottom: 1rem; }
189
190.eco-node { display: flex; align-items: center; gap: 0.85rem; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 0.85rem 1.05rem; transition: border-color 0.2s, transform 0.2s; }
191.eco-node:hover { border-color: rgba(251,191,36,0.5); transform: translateX(2px); }
192.eco-icon { flex-shrink: 0; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 9px; background: rgba(251,191,36,0.12); color: var(--amber-light); }
193.eco-icon svg { width: 1.15rem; height: 1.15rem; }
194.eco-main { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
195.eco-name { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 0.9rem; color: var(--off-white); }
196.eco-role { font-size: 0.78rem; color: #a09a8e; line-height: 1.4; }
197
198/* flagship end node — the destination of the whole pipeline */
199.eco-node--flagship { border-color: rgba(251,191,36,0.55); background: linear-gradient(180deg, rgba(251,191,36,0.12), rgba(251,191,36,0.02)); box-shadow: 0 10px 34px rgba(217,119,6,0.16); }
200.eco-node--flagship .eco-name { color: var(--amber-light); }
201.eco-node--flagship .eco-icon { background: rgba(251,191,36,0.2); }
202
203/* vertical connector with a chevron */
204.eco-connector { width: 2px; height: 1.5rem; align-self: center; background: linear-gradient(180deg, rgba(251,191,36,0.75), rgba(251,191,36,0.12)); position: relative; }
205.eco-connector::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; border-right: 2px solid var(--amber-light); border-bottom: 2px solid var(--amber-light); transform: translateX(-50%) rotate(45deg); }
206
207/* artifact pill sitting on the spine */
208.eco-artifact { align-self: center; justify-self: center; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; letter-spacing: 0.01em; color: var(--amber-light); background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.28); border-radius: 999px; padding: 0.25rem 0.75rem; white-space: nowrap; }
209/* dashed variant — the conditional output of the optional seal step */
210.eco-artifact--dashed { border-style: dashed; }
211
212/* optional step in the spine — dashed border signals it can be skipped */
213.eco-node--seal { border-style: dashed; border-color: rgba(251,191,36,0.32); }
214.eco-optional { font-family: 'IBM Plex Mono', monospace; font-weight: 400; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber-light); border: 1px dashed rgba(251,191,36,0.45); border-radius: 999px; padding: 0.05rem 0.4rem; margin-left: 0.4rem; vertical-align: middle; }
215
216/* control-coverage outputs */
217.eco-outputs { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-top: 0.8rem; }
218.eco-outputs span { font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--off-white); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 0.24rem 0.55rem; }
219.eco-outputs span:first-child { color: var(--amber-light); border-color: rgba(251,191,36,0.35); background: rgba(251,191,36,0.1); }
220
221/* ---------- ANIMATION ---------- */
222@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
223.hero-label, .crumb { animation: fadeUp 0.5s ease both; }
224h1 { animation: fadeUp 0.5s ease 0.1s both; }
225.hero-desc { animation: fadeUp 0.5s ease 0.2s both; }
226.hero-actions { animation: fadeUp 0.5s ease 0.3s both; }
227.terminal { animation: fadeUp 0.5s ease 0.4s both; }
228.ecosystem { animation: fadeUp 0.5s ease 0.4s both; }
229html { scroll-behavior: smooth; }
230@media (prefers-reduced-motion: reduce) { * { animation: none !important; } html { scroll-behavior: auto; } }
231
232/* ---------- RESPONSIVE ---------- */
233@media (max-width: 640px) {
234    h1 { font-size: 2.4rem; }
235}