style.css (2498B)
1 :root { 2 /* Rendering */ 3 font-family: 4 Departure Mono, 5 monospace; 6 /* Departure Mono has no bold face, so allow weight synthesis */ 7 font-synthesis: weight; 8 text-rendering: optimizeLegibility; 9 -webkit-font-smoothing: antialiased; 10 -moz-osx-font-smoothing: grayscale; 11 color-scheme: light dark; 12 13 /* Colors */ 14 --amber: #ffa133; 15 --pumpkin: #e47b1a; 16 --flux: #c8be50; 17 --periwinkle: #8f99fb; 18 --foam: #bccabb; 19 --enamel: #eeeeee; 20 --cement: #c0c0c0; 21 --aluminum: #cccccc; 22 --ash: #8e8e8e; 23 --mud: #8a8a6f; 24 --clay: #6c6c58; 25 --smoke: #666666; 26 --dark: #444444; 27 --soot: #333333; 28 --carbon: #222222; 29 --black: #141414; 30 31 /* Theme */ 32 --link: blue; 33 --border: var(--smoke); 34 --accent: var(--amber); 35 --fg: var(--dark); 36 --bg: var(--enamel); 37 color: var(--fg); 38 background-color: var(--bg); 39 } 40 41 @media (prefers-color-scheme: dark) { 42 :root { 43 --bg: color-mix(in lch, var(--enamel), var(--carbon) 100%); 44 --fg: var(--enamel); 45 --border: var(--mud); 46 --accent: var(--amber); 47 --link: var(--periwinkle); 48 } 49 } 50 51 @font-face { 52 font-family: DepartureMono; 53 src: 54 url("/fonts/DepartureMono-1.500/DepartureMono-Regular.woff2") 55 format("woff2"), 56 url("/fonts/DepartureMono-1.500/DepartureMono-Regular.woff") format("woff"), 57 url("/fonts/DepartureMono-1.500/DepartureMono-Regular.otf") 58 format("opentype"); 59 } 60 61 body { 62 min-height: 100vh; 63 display: grid; 64 justify-items: center; 65 margin: 0; 66 } 67 68 main { 69 width: 720px; 70 padding: 2rem; 71 border-left: 2px dashed var(--border); 72 border-right: 2px dashed var(--border); 73 } 74 75 @media screen and (max-width: 800px) { 76 main { 77 width: auto; 78 border-left: none; 79 border-right: none; 80 } 81 } 82 83 a { 84 color: var(--link); 85 } 86 87 figure { 88 margin: 0 auto; 89 max-width: 100%; 90 } 91 92 figure img { 93 width: 100%; 94 height: auto; 95 display: block; 96 } 97 98 figcaption { 99 display: none; 100 } 101 102 blockquote { 103 margin: 0; 104 padding-left: 1rem; 105 border-left: 5px solid var(--border); 106 } 107 108 summary { 109 display: block; 110 cursor: pointer; 111 } 112 113 summary::-webkit-details-marker { 114 display: none; 115 } 116 117 summary::before { 118 content: "[+]"; 119 margin-right: 0.5ch; 120 } 121 122 details[open] > summary::before { 123 content: "[-]"; 124 } 125 126 .twitter-tweet { 127 margin: auto; 128 } 129 130 h1#henry-unite { 131 margin-bottom: 0; 132 } 133 134 h1#henry-unite + p { 135 margin: 5px 0 1rem 0; 136 } 137 138 h1#henry-unite + p + ul { 139 list-style: none; 140 display: flex; 141 gap: 15px; 142 padding: 0; 143 margin: 0; 144 } 145 146 #more-experience, 147 #more-projects, 148 #more-blog-posts { 149 font-size: 1rem; 150 }