/** * INTERCEPT Base Styles * Reset, typography, and foundational element styles * Requires: variables.css to be imported first */ /* ============================================ CSS RESET ============================================ */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; } body { font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-normal); color: var(--text-primary); background-color: var(--bg-primary); background-image: var(--noise-image), radial-gradient(circle at 15% 0%, var(--grid-dot), transparent 45%), linear-gradient(180deg, var(--grid-dot), transparent 35%), linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px, auto, auto, 48px 48px, 48px 48px; background-attachment: fixed; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* ============================================ TYPOGRAPHY ============================================ */ h1, h2, h3, h4, h5, h6 { font-weight: var(--font-semibold); line-height: var(--leading-tight); color: var(--text-primary); letter-spacing: 0.01em; } h1 { font-size: var(--text-4xl); } h2 { font-size: var(--text-3xl); } h3 { font-size: var(--text-2xl); } h4 { font-size: var(--text-xl); } h5 { font-size: var(--text-lg); } h6 { font-size: var(--text-base); } p { margin-bottom: var(--space-4); } a { color: var(--accent-cyan); text-decoration: none; transition: color var(--transition-fast); } a:hover { color: var(--accent-cyan-hover); } a:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; } strong, b { font-weight: var(--font-semibold); } small { font-size: var(--text-sm); } code, kbd, pre, samp { font-family: var(--font-mono); font-size: 0.9em; } code { background: var(--bg-elevated); border: 1px solid var(--border-color); padding: 2px 6px; border-radius: var(--radius-sm); } pre { background: var(--bg-elevated); border: 1px solid var(--border-color); padding: var(--space-4); border-radius: var(--radius-md); overflow-x: auto; } pre code { background: none; padding: 0; } /* ============================================ FORM ELEMENTS ============================================ */ button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; color: inherit; } button { cursor: pointer; border: none; background: none; } button:disabled { cursor: not-allowed; opacity: 0.5; } input, select, textarea { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--space-2) var(--space-3); color: var(--text-primary); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); } input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-cyan); box-shadow: 0 0 0 2px var(--accent-cyan-dim); } input::placeholder, textarea::placeholder { color: var(--text-dim); } select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239fb0c7' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; padding-right: 28px; } input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; cursor: pointer; accent-color: var(--accent-cyan); } label { display: block; font-size: var(--text-sm); font-weight: var(--font-medium); color: var(--text-secondary); margin-bottom: var(--space-1); } /* ============================================ TABLES ============================================ */ table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); } th, td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--border-color); } th { font-weight: var(--font-semibold); color: var(--text-secondary); background: var(--bg-tertiary); text-transform: uppercase; font-size: var(--text-xs); letter-spacing: 0.05em; } tr:hover td { background: var(--bg-elevated); } /* ============================================ LISTS ============================================ */ ul, ol { padding-left: var(--space-6); margin-bottom: var(--space-4); } li { margin-bottom: var(--space-1); } /* ============================================ UTILITY CLASSES ============================================ */ /* Text colors */ .text-primary { color: var(--text-primary); } .text-secondary { color: var(--text-secondary); } .text-muted { color: var(--text-muted); } .text-cyan { color: var(--accent-cyan); } .text-green { color: var(--accent-green); } .text-red { color: var(--accent-red); } .text-orange { color: var(--accent-orange); } .text-amber { color: var(--accent-amber); } /* Font utilities */ .font-mono { font-family: var(--font-mono); } .font-medium { font-weight: var(--font-medium); } .font-semibold { font-weight: var(--font-semibold); } .font-bold { font-weight: var(--font-bold); } /* Text sizes */ .text-xs { font-size: var(--text-xs); } .text-sm { font-size: var(--text-sm); } .text-base { font-size: var(--text-base); } .text-lg { font-size: var(--text-lg); } .text-xl { font-size: var(--text-xl); } /* Display */ .hidden { display: none !important; } .block { display: block; } .inline-block { display: inline-block; } .flex { display: flex; } .inline-flex { display: inline-flex; } .grid { display: grid; } /* Flexbox */ .items-center { align-items: center; } .justify-center { justify-content: center; } .justify-between { justify-content: space-between; } .flex-1 { flex: 1; } .gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); } .gap-4 { gap: var(--space-4); } /* Spacing */ .m-0 { margin: 0; } .mt-2 { margin-top: var(--space-2); } .mt-4 { margin-top: var(--space-4); } .mb-2 { margin-bottom: var(--space-2); } .mb-4 { margin-bottom: var(--space-4); } .p-2 { padding: var(--space-2); } .p-3 { padding: var(--space-3); } .p-4 { padding: var(--space-4); } /* Borders */ .rounded { border-radius: var(--radius-md); } .rounded-lg { border-radius: var(--radius-lg); } .border { border: 1px solid var(--border-color); } /* Truncate text */ .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* Screen reader only */ .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; } /* ============================================ SCROLLBAR STYLING ============================================ */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); } ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--radius-full); } ::-webkit-scrollbar-thumb:hover { background: var(--text-dim); } /* Firefox scrollbar */ * { scrollbar-width: thin; scrollbar-color: var(--border-light) var(--bg-secondary); } /* ============================================ SELECTION ============================================ */ ::selection { background: var(--accent-cyan-dim); color: var(--text-primary); } /* ============================================ UX POLISH - TRANSITIONS & INTERACTIONS ============================================ */ /* Smooth page transitions */ html { scroll-behavior: smooth; } /* Better focus ring for all interactive elements */ :focus-visible { outline: 2px solid var(--accent-cyan); outline-offset: 2px; } /* Remove focus ring for mouse users */ :focus:not(:focus-visible) { outline: none; } /* Active state feedback */ button:active:not(:disabled), a:active, [role="button"]:active { transform: scale(0.98); } /* Smooth transitions for all interactive elements */ button, a, input, select, textarea, [role="button"] { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), opacity var(--transition-fast); } /* Subtle hover lift effect for cards and panels */ .card:hover, .panel:hover { box-shadow: var(--shadow-md); } /* Link underline on hover */ a:hover { text-decoration: underline; text-underline-offset: 2px; } /* Skip link for accessibility */ .skip-link { position: absolute; top: -40px; left: 0; background: var(--accent-cyan); color: var(--bg-primary); padding: var(--space-2) var(--space-4); z-index: 9999; transition: top var(--transition-fast); } .skip-link:focus { top: 0; } /* Reduced motion preference */ @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } } /* High contrast mode support */ @media (prefers-contrast: high) { :root { --border-color: #4b5563; --text-secondary: #d1d5db; } }