aboutsummaryrefslogtreecommitdiffstats
path: root/index.css
diff options
context:
space:
mode:
Diffstat (limited to 'index.css')
-rw-r--r--index.css267
1 files changed, 129 insertions, 138 deletions
diff --git a/index.css b/index.css
index 256e2fc..72f84cf 100644
--- a/index.css
+++ b/index.css
@@ -1,138 +1,129 @@
1 * { 1* { box-sizing: border-box; }
2 box-sizing: border-box; 2body {
3 } 3 margin: 0;
4 4 font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
5 body { 5 Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
6 margin: 0; 6 font-size: 1.125rem; /* 18px base */
7 background: #fcfdfe; /* base07 - light background */ 7 line-height: 1.8;
8 color: #000c18; /* base00 - dark text */ 8 background: #fcfdfe;
9 line-height: 1.75; 9 color: #000c18;
10 font-size: 1rem; 10 display: flex;
11 display: flex; 11 flex-direction: column;
12 flex-direction: column; 12 min-height: 100vh;
13 min-height: 100vh; 13 overflow-x: hidden;
14 overflow-x: hidden; 14}
15 font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 15
16 Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 16header, footer { padding: 2em; }
17 } 17
18 18main {
19 header, footer { 19 flex-grow: 1;
20 padding: 2em; 20 max-width: 900px;
21 text-align: center; 21 margin: 0 auto;
22 } 22 padding: 2em;
23 23}
24 main { 24
25 flex-grow: 1; 25footer {
26 padding: 2em; 26 border-top: 1px solid currentColor;
27 width: 100%; 27 text-align: center;
28 box-sizing: border-box; 28 font-size: 1.05rem;
29 max-width: 900px; 29}
30 margin: 0 auto; 30
31 } 31h2 {
32 32 margin: 0 0 0.75em;
33 footer { 33 font-weight: 700;
34 border-top: 1px solid #000c18; /* base00 */ 34 line-height: 1.3;
35 color: #000c18; /* base00 */ 35}
36 } 36
37 37h1 { font-size: 2.5rem; }
38 h1, h2 { 38h2 { font-size: 2rem; }
39 font-weight: normal; 39
40 margin: 0; 40header h1 { font-size: 2rem; }
41 font-size: 2.25rem; 41section { margin-bottom: 3em; padding: 0 2%; }
42 color: inherit; /* inherit from body */ 42a {
43 } 43 color: #22aa44;
44 44 font-weight: 700;
45 section { 45 text-decoration: underline;
46 margin-bottom: 3em; 46 text-decoration-color: transparent;
47 color: inherit; /* inherit from body */ 47 text-underline-offset: 4px;
48 width: 100%; 48 text-decoration-thickness: 2px;
49 padding: 0 2%; 49 transition: color .3s, text-decoration-color .3s;
50 } 50}
51 51a:hover,
52 a { 52a:focus {
53 color: #22aa44; /* base0B - green */ 53 color: #9966b8;
54 text-decoration: underline; 54 text-decoration-color: currentColor;
55 font-weight: 700; 55}
56 transition: color 0.3s ease, text-decoration-color 0.3s ease; 56a:focus-visible {
57 text-underline-offset: 3px; 57 outline: 3px solid #22aa44;
58 text-decoration-thickness: 2px; 58 outline-offset: 4px;
59 text-decoration-color: transparent; 59 border-radius: 3px;
60 } 60}
61 61header { text-align: center; }
62 a:hover, 62
63 a:focus { 63.header-top {
64 color: #9966b8; /* base08 - purple */ 64 display: flex;
65 text-decoration-color: currentColor; 65 justify-content: center;
66 outline-offset: 3px; 66 align-items: center;
67 outline: 2px solid #22aa44; 67 gap: 2rem;
68 outline-radius: 3px; 68}
69 } 69
70 70nav ul {
71 a:focus-visible { 71 list-style: none;
72 outline-offset: 4px; 72 margin: 0;
73 outline: 3px solid #22aa44; /* base0B */ 73 padding: 0;
74 outline-radius: 3px; 74 display: flex;
75 } 75 gap: 2rem;
76 76 justify-content: center;
77 .links a { 77 flex-wrap: wrap;
78 color: #22aa44; /* base0B */ 78}
79 } 79nav a {
80 80 font-weight: 600;
81 .links a:hover { 81 font-size: 1.125rem;
82 color: #e6550d; /* base09 */ 82}
83 } 83.menu-toggle {
84 84 display: none;
85 @media (max-width: 768px) { 85 background: none;
86 h1 { 86 border: 0;
87 font-size: 1.8rem; 87 font-size: 1.75rem;
88 } 88 cursor: pointer;
89 89 color: inherit;
90 h2 { 90}
91 font-size: 1.6rem; 91.sr-only {
92 } 92 position: absolute;
93 93 width: 1px; height: 1px;
94 footer { 94 margin: -1px; padding: 0;
95 font-size: 0.9em; 95 overflow: hidden;
96 } 96 clip: rect(0 0 0 0);
97 97 border: 0;
98 .privacy { 98}
99 font-size: 0.8em; 99@media (max-width: 768px) {
100 } 100 h1 { font-size: 2rem; }
101 101 h2 { font-size: 1.75rem; }
102 main { 102 main { padding: 1.5em; }
103 padding: 1.5em; 103
104 } 104 .header-top {
105 } 105 justify-content: space-between;
106 106 text-align: left;
107 @media (prefers-color-scheme: dark) { 107 }
108 body { 108 nav ul {
109 background: #000c18; /* base00 */ 109 flex-direction: column;
110 color: #b7b8b9; /* base05 */ 110 align-items: center;
111 } 111 gap: 1.25rem;
112 112 display: none;
113 footer { 113 }
114 border-color: #fcfdfe; /* base07 */ 114 nav ul.open { display: flex; }
115 color: #fcfdfe; /* base07 */ 115 .menu-toggle { display: block; }
116 } 116 header {
117 117 position: sticky;
118 a { 118 top: 0;
119 color: #22aa44; /* keep green links in dark mode */ 119 z-index: 1000;
120 text-decoration-color: transparent; 120 background: inherit;
121 } 121 }
122 122}
123 a:hover, 123@media (prefers-color-scheme: dark) {
124 a:focus { 124 body { background: #000c18; color: #b7b8b9; }
125 color: #9966b8; /* base08 */ 125 footer { border-color: #fcfdfe; color: #fcfdfe; }
126 text-decoration-color: currentColor; 126 a { color: #22aa44; }
127 } 127 a:hover, a:focus { color: #9966b8; }
128 } 128}
129 129.highlight { background: #9966b8; color: #fcfdfe; }
130 .high-contrast {
131 background-color: #fcfdfe; /* base07 */
132 color: #000c18; /* base00 */
133 }
134
135 .highlight {
136 background-color: #9966b8; /* base08 */
137 color: #fcfdfe; /* base07 */
138 }