/* main.css - Global stylesheet */ :root { --font-primary: 'Inter', system-ui, -apple-system, sans-serif; --font-mono: 'Fira Code', monospace; --color-bg: #f9fafb; --color-surface: #ffffff; --color-primary: #2563eb; --color-primary-light: #3b82f6; --color-primary-dark: #1d4ed8; --color-muted: #6b7280; --color-muted-light: #9ca3af; --color-success: #10b981; --color-warning: #f59e0b; --color-danger: #ef4444; --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --shadow-sm: 0 1px 2px rgba(0,0,0,0.05); --shadow-md: 0 4px 6px rgba(0,0,0,0.1); --shadow-lg: 0 10px 15px rgba(0,0,0,0.15); } /* Reset & base */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 100%; scroll-behavior: smooth; } body { font-family: var(--font-primary); background-color: var(--color-bg); color: var(--color-muted); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* Typography */ h1, h2, h3, h4, h5, h6 { color: #111827; line-height: 1.25; margin-bottom: 0.5rem; } h1 { font-size: 2.25rem; } h2 { font-size: 1.875rem; } h3 { font-size: 1.5rem; } h4 { font-size: 1.25rem; } h5 { font-size: 1rem; } h6 { font-size: 0.875rem; } p { margin-bottom: 1rem; } /* Links */ a { color: var(--color-primary); text-decoration: none; transition: color 0.2s ease; } a:hover, a:focus { color: var(--color-primary-dark); text-decoration: underline; } /* Buttons */ .button { display: inline-block; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500; color: #ffffff; background-color: var(--color-primary); border: none; border-radius: var(--radius-md); cursor: pointer; text-align: center; transition: background-color 0.2s ease, transform 0.1s ease; box-shadow: var(--shadow-sm); } .button:hover { background-color: var(--color-primary-light); } .button:active { transform: scale(0.98); } /* Forms */ input, textarea, select, button { font-family: inherit; } input, textarea, select { width: 100%; padding: 0.75rem 1rem; border: 1px solid #d1d5db; border-radius: var(--radius-sm); background-color: #ffffff; color: #111827; transition: border-color 0.2s ease, box-shadow 0.2s ease; } input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.2); } /* Utility classes */ .container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 1rem; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 1rem; } .mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 1rem; } .text-center { text-align: center; } .flex { display: flex; } .flex-col { flex-direction: column; } .flex-row { flex-direction: row; } .items-center { align-items: center; } .justify-center { justify-content: center; } .gap-2 { gap: 0.5rem; } .gap-4 { gap: 1rem; } .rounded-sm { border-radius: var(--radius-sm); } .rounded-md { border-radius: var(--radius-md); } .rounded-lg { border-radius: var(--radius-lg); } /* Card component */ .card { background-color: var(--color-surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.5rem; transition: transform 0.2s ease, box-shadow 0.2s ease; } .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } /* Navigation */ .navbar { background-color: #ffffff; box-shadow: var(--shadow-sm); padding: 0.75rem 1rem; } .navbar .logo { font-size: 1.5rem; font-weight: 600; color: var(--color-primary); } .navbar ul { list-style: none; display: flex; gap: 1.5rem; } .navbar a { font-weight: 500; color: var(--color-muted); } .navbar a:hover { color: var(--color-primary); } /* Footer */ .footer { background-color: #111827; color: #9ca3af; padding: 2rem 1rem; font-size: 0.875rem; } .footer a { color: #d1d5db; } .footer a:hover { color: #ffffff; } /* Responsive */ @media (max-width: 768px) { .navbar ul { flex-direction: column; gap: 0.75rem; } .flex-row { flex-direction: column; } } ```