Spaces:
Running
Running
File size: 7,180 Bytes
b1a8265 b1c84b5 b1a8265 b1c84b5 b1a8265 b1c84b5 b1a8265 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 | @import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Lora:ital,wght@0,400;0,600;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');
@import "tailwindcss";
/* ββ Design Tokens β Investigative Newsroom Terminal ββββββββββββ */
:root {
/* Backgrounds β dark newsprint feel */
--bg-base: #0d0d0d;
--bg-surface: #141414;
--bg-elevated: #1c1c1c;
--bg-hover: #222222;
/* Borders */
--border: rgba(245, 240, 232, 0.07);
--border-light: rgba(245, 240, 232, 0.14);
/* Accent DNA β PH flag red + gold + cyan data */
--accent-red: #dc2626;
--accent-gold: #d97706;
--accent-cyan: #06b6d4;
--accent-green: #16a34a;
/* Verdict palette */
--credible: #16a34a;
--unverified: #d97706;
--fake: #dc2626;
/* Typography β warm newsprint white */
--text-primary: #f5f0e8;
--text-secondary: #a89f94;
--text-muted: #5c554e;
/* Font families */
--font-display: 'Syne', system-ui, sans-serif;
--font-body: 'Lora', Georgia, serif;
--font-mono: 'JetBrains Mono', 'Courier New', monospace;
}
/* ββ Dark mode meta (web-design-guidelines: color-scheme) βββββββ */
html {
color-scheme: dark;
scroll-behavior: smooth;
}
*,
*::before,
*::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
background: var(--bg-base);
color: var(--text-primary);
font-family: var(--font-body);
-webkit-font-smoothing: antialiased;
min-height: 100vh;
/* Halftone dot texture β atmospheric depth (frontend-design) */
background-image: radial-gradient(circle, rgba(245, 240, 232, 0.025) 1px, transparent 1px);
background-size: 24px 24px;
}
h1,
h2,
h3,
h4 {
font-family: var(--font-display);
font-weight: 700;
letter-spacing: -0.02em;
/* web-design-guidelines: text-wrap balance prevents widows */
text-wrap: balance;
}
/* ββ Scrollbar βββββββββββββββββββββββββββββββββββββββββ */
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--bg-elevated);
border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--accent-red);
}
/* ββ Focus (web-design-guidelines: never outline-none without replacement) */
:focus-visible {
outline: 2px solid var(--accent-cyan);
outline-offset: 3px;
border-radius: 4px;
}
/* Textarea: use box-shadow ring for :focus-visible so keyboard users see focus;
border-color animation still handled by onFocus/onBlur JS handlers */
.claim-textarea:focus-visible {
outline: none;
box-shadow: 0 0 0 2px var(--accent-red);
}
/* ββ Touch (web-design-guidelines) βββββββββββββββββββββ */
button,
a,
[role="button"] {
touch-action: manipulation;
-webkit-tap-highlight-color: transparent;
}
/* ββ Typography helpers ββββββββββββββββββββββββββββββββ */
.font-display {
font-family: var(--font-display);
}
.font-mono {
font-family: var(--font-mono);
}
/* web-design-guidelines: tabular-nums for data columns */
.tabular {
font-variant-numeric: tabular-nums;
font-family: var(--font-mono);
}
/* ββ Verdict Badges β broadcast news aesthetic βββββββ */
.badge-credible {
background: rgba(22, 163, 74, 0.12);
color: #4ade80;
border: 1px solid rgba(22, 163, 74, 0.3);
}
.badge-unverified {
background: rgba(217, 119, 6, 0.12);
color: #fbbf24;
border: 1px solid rgba(217, 119, 6, 0.3);
}
.badge-fake {
background: rgba(220, 38, 38, 0.12);
color: #f87171;
border: 1px solid rgba(220, 38, 38, 0.35);
}
/* ββ Cards βββββββββββββββββββββββββββββββββββββββββββββ */
.card {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: 4px;
/* Sharp corners β editorial, not bubbly */
transition: border-color 0.2s;
}
.card:hover {
border-color: var(--border-light);
}
.card-elevated {
background: var(--bg-elevated);
border: 1px solid var(--border);
border-radius: 4px;
}
/* ββ Left-rule accent divider ββββββββββββββββββββββββββ */
.ruled {
border-left: 3px solid var(--accent-red);
padding-left: 16px;
}
/* ββ Nav link hover ββββββββββββββββββββββββββββββββββββββββ */
a.nav-link-item {
text-decoration: none;
display: block;
}
a.nav-link-item:hover > div {
color: var(--text-primary) !important;
}
/* ββ Animations (frontend-design: one orchestrated reveal) βββ */
/* web-design-guidelines: honor prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
@keyframes fadeUp {
from {
opacity: 0;
transform: translateY(14px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes barGrow {
from {
width: 0;
}
}
@keyframes scanline {
from {
top: -8px;
}
to {
top: 100%;
}
}
.fade-up {
animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.fade-up-1 {
animation: fadeUp 0.5s 0.05s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up-2 {
animation: fadeUp 0.5s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up-3 {
animation: fadeUp 0.5s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up-4 {
animation: fadeUp 0.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.fade-up-5 {
animation: fadeUp 0.5s 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.bar-fill {
animation: barGrow 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes shimmer {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(100%);
}
}
}
/* Fallback: no animation for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
.fade-up,
.fade-up-1,
.fade-up-2,
.fade-up-3,
.fade-up-4,
.fade-up-5 {
animation: none;
opacity: 1;
transform: none;
}
.bar-fill {
animation: none;
}
}
/* ββ Gauge βββββββββββββββββββββββββββββββββββββββββββββββ */
@media (prefers-reduced-motion: no-preference) {
@keyframes gaugeFill {
from {
stroke-dashoffset: 400;
}
}
.gauge-arc {
animation: gaugeFill 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
}
/* ββ Verdict breaking-news banner ββββββββββββββββββββββββ */
.verdict-banner {
font-family: var(--font-display);
font-weight: 800;
font-size: 11px;
letter-spacing: 0.25em;
text-transform: uppercase;
padding: 3px 10px;
border-radius: 2px;
}
.verdict-banner-credible {
background: var(--credible);
color: #fff;
}
.verdict-banner-unverified {
background: var(--unverified);
color: #fff;
}
.verdict-banner-fake {
background: var(--fake);
color: #fff;
} |