File size: 5,386 Bytes
a136190 6c1e02d | 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 | /* Bayan Base Styles — typography & global */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: var(--font-family-primary);
}
body {
font-family: var(--font-family-primary);
font-size: var(--font-size-body);
font-weight: var(--font-weight-regular);
line-height: var(--line-height-body);
background-color: var(--color-bg);
color: var(--color-text-primary);
margin: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* ── Type scale ── */
.text-display {
font-size: var(--font-size-display);
font-weight: var(--font-weight-bold);
line-height: 1.3;
}
.text-h1 {
font-size: var(--font-size-h1);
font-weight: var(--font-weight-bold);
line-height: 1.35;
}
.text-h2 {
font-size: var(--font-size-h2);
font-weight: var(--font-weight-semibold);
line-height: 1.4;
}
.text-h3 {
font-size: var(--font-size-h3);
font-weight: var(--font-weight-semibold);
line-height: 1.5;
}
.text-body {
font-size: var(--font-size-body);
font-weight: var(--font-weight-regular);
line-height: var(--line-height-body);
}
.text-caption {
font-size: var(--font-size-caption);
font-weight: var(--font-weight-medium);
line-height: 1.6;
}
.text-label {
font-size: var(--font-size-label);
font-weight: var(--font-weight-semibold);
line-height: 1.5;
letter-spacing: 0.04em;
}
/* ── Semantic text colors ── */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-brand { color: var(--color-primary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-secondary-brand { color: var(--color-secondary); }
/* ── Page utilities ── */
.page-bg { background-color: var(--color-bg); }
.surface-bg { background-color: var(--color-surface); }
.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;
}
.page { display: none; }
.page.active { display: block; }
.gradient-bg {
background: linear-gradient(
165deg,
var(--color-bg) 0%,
var(--color-surface) 50%,
var(--color-bg) 100%
);
}
.gradient-accent {
background: linear-gradient(
135deg,
var(--color-primary) 0%,
var(--color-secondary) 100%
);
}
.text-gradient {
background: linear-gradient(
135deg,
var(--color-primary) 0%,
var(--color-secondary) 100%
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.editor-content {
font-size: var(--font-size-editor);
line-height: var(--line-height-editor);
letter-spacing: var(--letter-spacing-arabic);
}
/* ── Focus ── */
button:focus-visible,
a:focus-visible,
[contenteditable]:focus-visible,
.suggestion-card:focus-visible,
input:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
/* ── Form controls ── */
input[type="checkbox"],
input[type="range"] {
accent-color: var(--color-primary);
}
/* ── Motion ── */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
.card-hover:hover {
transform: none;
}
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(12px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-12px); }
}
@keyframes spin {
to { transform: rotate(360deg); }
}
@keyframes pulse-subtle {
0%, 100% { opacity: 1; }
50% { opacity: 0.55; }
}
.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-float { animation: float 6s ease-in-out infinite; }
/* Shimmer animation for loading skeletons */
@keyframes shimmer {
0% { background-position: -200px 0; }
100% { background-position: calc(200px + 100%) 0; }
}
.skeleton {
background: linear-gradient(90deg, var(--color-surface-elevated) 0%, var(--color-border) 50%, var(--color-surface-elevated) 100%);
background-size: 200px 100%;
animation: shimmer 1.5s ease-in-out infinite;
border-radius: var(--radius-sm);
}
/* Slide up animation for staggered entry */
@keyframes slideUp {
from { opacity: 0; transform: translateY(24px); }
to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up {
animation: slideUp 0.6s ease-out both;
}
/* Staggered grid children */
.grid > *:nth-child(1) { animation-delay: 0ms; }
.grid > *:nth-child(2) { animation-delay: 80ms; }
.grid > *:nth-child(3) { animation-delay: 160ms; }
.grid > *:nth-child(4) { animation-delay: 240ms; }
.grid > *:nth-child(5) { animation-delay: 320ms; }
.grid > *:nth-child(6) { animation-delay: 400ms; }
.grid > *:nth-child(7) { animation-delay: 480ms; }
.grid > *:nth-child(8) { animation-delay: 560ms; }
/* Score ring change animation */
@keyframes scoreChange {
0%, 100% { filter: none; }
50% { filter: brightness(1.3); }
}
.score-ring-wrap.score-changed {
animation: scoreChange 0.6s ease;
}
/* Button press effect */
.btn-primary:active,
.gradient-accent:active {
transform: scale(0.97) !important;
}
|