|
| 1 | +/* ============================================ |
| 2 | + CSS RESET & VARIABLES |
| 3 | + ============================================ */ |
| 4 | + |
| 5 | +:root { |
| 6 | + --primary-color: #2c4f7c; |
| 7 | + --primary-hover: #446b9e; |
| 8 | + --secondary-color: #66e888; |
| 9 | + --text-color: #1a202c; |
| 10 | + --text-secondary: #4a5568; |
| 11 | + --bg-color: #ffffff; |
| 12 | + --bg-secondary: #f7fafc; |
| 13 | + --border-color: #e2e8f0; |
| 14 | + --max-width: 1200px; |
| 15 | + --radius: 8px; |
| 16 | + --transition: all 0.2s ease; |
| 17 | +} |
| 18 | + |
| 19 | +* { |
| 20 | + box-sizing: border-box; |
| 21 | + margin: 0; |
| 22 | + padding: 0; |
| 23 | +} |
| 24 | + |
| 25 | +/* ============================================ |
| 26 | + BASE STYLES |
| 27 | + ============================================ */ |
| 28 | + |
| 29 | +html { |
| 30 | + font-size: 16px; |
| 31 | + scroll-behavior: smooth; |
| 32 | +} |
| 33 | + |
| 34 | +body { |
| 35 | + font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; |
| 36 | + color: var(--text-color); |
| 37 | + background-color: var(--bg-color); |
| 38 | + line-height: 1.6; |
| 39 | + -webkit-font-smoothing: antialiased; |
| 40 | + -moz-osx-font-smoothing: grayscale; |
| 41 | +} |
| 42 | + |
| 43 | +/* ============================================ |
| 44 | + LAYOUT |
| 45 | + ============================================ */ |
| 46 | + |
| 47 | +#app { |
| 48 | + min-height: 100vh; |
| 49 | + display: flex; |
| 50 | + flex-direction: column; |
| 51 | +} |
| 52 | + |
| 53 | +main, .container { |
| 54 | + flex: 1; |
| 55 | + width: 100%; |
| 56 | + max-width: var(--max-width); |
| 57 | + margin: 0 auto; |
| 58 | + padding: 2rem 1rem; |
| 59 | +} |
| 60 | + |
| 61 | +.container { |
| 62 | + display: flex; |
| 63 | + justify-content: center; |
| 64 | + align-items: center; |
| 65 | + flex-direction: column; |
| 66 | + width: 100%; |
| 67 | + max-width: var(--max-width); |
| 68 | + margin: 0 auto; |
| 69 | + padding: 2rem 1rem; |
| 70 | +} |
| 71 | + |
| 72 | +/* ============================================ |
| 73 | + TYPOGRAPHY |
| 74 | + ============================================ */ |
| 75 | + |
| 76 | +h1 { |
| 77 | + color: var(--primary-color); |
| 78 | + font-size: clamp(2.5rem, 5vw, 4rem); |
| 79 | + font-weight: 700; |
| 80 | + line-height: 1.2; |
| 81 | + margin-bottom: 1.5rem; |
| 82 | + text-align: center; |
| 83 | + letter-spacing: -0.02em; |
| 84 | +} |
| 85 | + |
| 86 | +h2, h3, h4, h5, h6 { |
| 87 | + color: var(--text-color); |
| 88 | + font-weight: 600; |
| 89 | + line-height: 1.3; |
| 90 | + margin-bottom: 1rem; |
| 91 | + text-align: center; |
| 92 | +} |
| 93 | + |
| 94 | +p { |
| 95 | + color: var(--text-secondary); |
| 96 | + font-size: 1.125rem; |
| 97 | + line-height: 1.7; |
| 98 | + margin-bottom: 1.5rem; |
| 99 | + text-align: center; |
| 100 | + max-width: 600px; |
| 101 | + margin-left: auto; |
| 102 | + margin-right: auto; |
| 103 | +} |
| 104 | + |
| 105 | +/* ============================================ |
| 106 | + NAVIGATION & LINKS |
| 107 | + ============================================ */ |
| 108 | + |
| 109 | +nav { |
| 110 | + display: flex; |
| 111 | + justify-content: center; |
| 112 | + align-items: center; |
| 113 | + gap: 0.5rem; |
| 114 | + padding: 1.5rem; |
| 115 | + border-bottom: 1px solid var(--border-color); |
| 116 | + flex-wrap: wrap; |
| 117 | +} |
| 118 | + |
| 119 | +a { |
| 120 | + color: var(--primary-color); |
| 121 | + text-decoration: none; |
| 122 | + font-weight: 500; |
| 123 | + transition: var(--transition); |
| 124 | + padding: 0.5rem 1rem; |
| 125 | + border-radius: var(--radius); |
| 126 | + display: inline-block; |
| 127 | +} |
| 128 | + |
| 129 | +a:hover { |
| 130 | + color: var(--primary-hover); |
| 131 | + background-color: var(--bg-secondary); |
| 132 | +} |
| 133 | + |
| 134 | +a[aria-current="page"] { |
| 135 | + background-color: var(--primary-color); |
| 136 | + color: white; |
| 137 | +} |
| 138 | + |
| 139 | +a[aria-current="page"]:hover { |
| 140 | + background-color: var(--primary-hover); |
| 141 | + color: white; |
| 142 | +} |
| 143 | + |
| 144 | +/* External links */ |
| 145 | +a[target="_blank"]::after { |
| 146 | + content: " ↗"; |
| 147 | + font-size: 0.875em; |
| 148 | + opacity: 0.7; |
| 149 | +} |
| 150 | + |
| 151 | +/* ============================================ |
| 152 | + COMPONENTS |
| 153 | + ============================================ */ |
| 154 | + |
| 155 | +/* Button styles */ |
| 156 | +button { |
| 157 | + font-family: inherit; |
| 158 | + font-size: 1rem; |
| 159 | + font-weight: 500; |
| 160 | + padding: 0.75rem 1.5rem; |
| 161 | + border: none; |
| 162 | + border-radius: var(--radius); |
| 163 | + background-color: var(--primary-color); |
| 164 | + color: white; |
| 165 | + cursor: pointer; |
| 166 | + transition: var(--transition); |
| 167 | + display: inline-flex; |
| 168 | + align-items: center; |
| 169 | + gap: 0.5rem; |
| 170 | +} |
| 171 | + |
| 172 | +button:hover { |
| 173 | + background-color: var(--primary-hover); |
| 174 | + transform: translateY(-1px); |
| 175 | + box-shadow: 0 4px 12px rgba(44, 79, 124, 0.2); |
| 176 | +} |
| 177 | + |
| 178 | +button:active { |
| 179 | + transform: translateY(0); |
| 180 | + box-shadow: 0 2px 4px rgba(44, 79, 124, 0.2); |
| 181 | +} |
| 182 | + |
| 183 | +/* Language selector */ |
| 184 | +.lang-selector { |
| 185 | + display: flex; |
| 186 | + gap: 0.25rem; |
| 187 | + padding: 0.25rem; |
| 188 | + background-color: var(--bg-secondary); |
| 189 | + border-radius: var(--radius); |
| 190 | + margin-left: auto; |
| 191 | +} |
| 192 | + |
| 193 | +.lang-selector a { |
| 194 | + padding: 0.5rem 0.75rem; |
| 195 | + font-size: 0.875rem; |
| 196 | + font-weight: 600; |
| 197 | + min-width: 3rem; |
| 198 | + text-align: center; |
| 199 | +} |
| 200 | + |
| 201 | +. |
| 202 | + |
| 203 | +/* ============================================ |
| 204 | + UTILITIES |
| 205 | + ============================================ */ |
| 206 | + |
| 207 | +.text-center { |
| 208 | + text-align: center; |
| 209 | +} |
| 210 | + |
| 211 | +.mt-4 { |
| 212 | + margin-top: 2rem; |
| 213 | +} |
| 214 | + |
| 215 | +.mb-4 { |
| 216 | + margin-bottom: 2rem; |
| 217 | +} |
| 218 | + |
| 219 | +/* ============================================ |
| 220 | + RESPONSIVE DESIGN |
| 221 | + ============================================ */ |
| 222 | + |
| 223 | +@media (max-width: 640px) { |
| 224 | + nav { |
| 225 | + padding: 1rem; |
| 226 | + } |
| 227 | + |
| 228 | + a { |
| 229 | + padding: 0.4rem 0.8rem; |
| 230 | + font-size: 0.875rem; |
| 231 | + } |
| 232 | + |
| 233 | + button { |
| 234 | + padding: 0.625rem 1.25rem; |
| 235 | + font-size: 0.875rem; |
| 236 | + } |
| 237 | +} |
| 238 | + |
| 239 | +/* ============================================ |
| 240 | + ANIMATIONS |
| 241 | + ============================================ */ |
| 242 | + |
| 243 | +@keyframes fadeIn { |
| 244 | + from { |
| 245 | + opacity: 0; |
| 246 | + transform: translateY(10px); |
| 247 | + } |
| 248 | + to { |
| 249 | + opacity: 1; |
| 250 | + transform: translateY(0); |
| 251 | + } |
| 252 | +} |
| 253 | + |
| 254 | +main > * { |
| 255 | + animation: fadeIn 0.5s ease-out; |
| 256 | +} |
| 257 | + |
0 commit comments