/* * Stylesheet * * Typography & structural rules only. * NO component styles. NO layout sections. * This file is imported by globals.css. * * Structure: * 1. Typography * 2. Structural Rules * 3. Utility Classes * 4. Animations */ /* ========================================================================== 1. Typography ========================================================================== */ h1, h2, h3, h4, h5, h6 { font-weight: var(--font-weight-bold); line-height: var(--line-height-tight); letter-spacing: var(--letter-spacing-tight); margin-top: 0; margin-bottom: var(--spacing-md); } h1 { font-size: var(--font-size-4xl); } h2 { font-size: var(--font-size-3xl); } h3 { font-size: var(--font-size-2xl); } h4 { font-size: var(--font-size-xl); } h5 { font-size: var(--font-size-lg); } h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); } p { margin-top: 0; margin-bottom: var(--spacing-md); line-height: var(--line-height-normal); } small { font-size: var(--font-size-sm); } strong, b { font-weight: var(--font-weight-bold); } /* Prevent orphans and widows in text blocks */ p, li, dd { orphans: 2; widows: 2; } /* Lists */ ul, ol { margin-top: 0; margin-bottom: var(--spacing-md); padding-left: var(--spacing-lg); } li { margin-bottom: var(--spacing-xs); } /* Blockquote */ blockquote { margin: 0 0 var(--spacing-md); padding-left: var(--spacing-lg); border-left: 3px solid var(--color-border); font-style: italic; } /* Code */ code { font-family: var(--font-mono); font-size: var(--font-size-sm); } pre { margin-top: 0; margin-bottom: var(--spacing-md); overflow-x: auto; } pre code { font-size: var(--font-size-sm); } /* ========================================================================== 2. Structural Rules ========================================================================== */ /* Focus styles for keyboard navigation */ :focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; } /* Selection */ ::selection { background-color: var(--color-primary); color: var(--color-background); } /* Reduced motion */ @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; } } /* ========================================================================== 3. Utility Classes ========================================================================== */ .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } /* ========================================================================== 4. Animations ========================================================================== */ /* Animations are added per project */