| 1 | /* Base: reset, document typography, page shell. */ |
| 2 | |
| 3 | *, |
| 4 | *::before, |
| 5 | *::after { |
| 6 | box-sizing: border-box; |
| 7 | } |
| 8 | |
| 9 | html { |
| 10 | -webkit-text-size-adjust: 100%; |
| 11 | text-size-adjust: 100%; |
| 12 | } |
| 13 | |
| 14 | body { |
| 15 | margin: 0; |
| 16 | min-height: 100vh; |
| 17 | display: flex; |
| 18 | flex-direction: column; |
| 19 | background: var(--black); |
| 20 | color: var(--text-primary); |
| 21 | font-family: var(--font-body); |
| 22 | font-size: var(--body); |
| 23 | font-weight: 400; |
| 24 | line-height: 1.5; |
| 25 | -webkit-font-smoothing: antialiased; |
| 26 | -moz-osx-font-smoothing: grayscale; |
| 27 | text-rendering: optimizeLegibility; |
| 28 | font-synthesis: none; |
| 29 | } |
| 30 | |
| 31 | h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { |
| 32 | margin: 0; |
| 33 | } |
| 34 | |
| 35 | h1, h2, h3, h4, h5, h6 { |
| 36 | font-weight: 500; |
| 37 | color: var(--text-display); |
| 38 | } |
| 39 | |
| 40 | ul, ol { |
| 41 | padding: 0; |
| 42 | } |
| 43 | |
| 44 | img, svg, video { |
| 45 | display: block; |
| 46 | max-width: 100%; |
| 47 | } |
| 48 | |
| 49 | button, input, select, textarea { |
| 50 | font: inherit; |
| 51 | color: inherit; |
| 52 | } |
| 53 | |
| 54 | button { |
| 55 | cursor: pointer; |
| 56 | } |
| 57 | |
| 58 | a { |
| 59 | color: var(--interactive); |
| 60 | text-decoration: none; |
| 61 | } |
| 62 | |
| 63 | a:hover { |
| 64 | text-decoration: underline; |
| 65 | text-underline-offset: 3px; |
| 66 | text-decoration-thickness: 1px; |
| 67 | } |
| 68 | |
| 69 | code, kbd, samp, pre { |
| 70 | font-family: var(--font-code); |
| 71 | font-size: var(--body-sm); |
| 72 | } |
| 73 | |
| 74 | ::selection { |
| 75 | background: var(--text-display); |
| 76 | color: var(--black); |
| 77 | } |
| 78 | |
| 79 | :focus-visible { |
| 80 | outline: 1px solid var(--text-display); |
| 81 | outline-offset: 2px; |
| 82 | } |
| 83 | |
| 84 | [hidden] { |
| 85 | display: none !important; |
| 86 | } |
| 87 | |
| 88 | /* Page shell: one centered column with responsive gutters. */ |
| 89 | .shell { |
| 90 | width: 100%; |
| 91 | max-width: calc(var(--page-max) + 2 * var(--gutter)); |
| 92 | margin-inline: auto; |
| 93 | padding-inline: var(--gutter); |
| 94 | } |
| 95 | |
| 96 | main.shell { |
| 97 | flex: 1; |
| 98 | } |
| 99 | |
| 100 | @media (prefers-reduced-motion: reduce) { |
| 101 | *, |
| 102 | *::before, |
| 103 | *::after { |
| 104 | transition-duration: 0ms !important; |
| 105 | } |
| 106 | } |