aboutsummaryrefslogtreecommitdiffstats
path: root/index.css
diff options
context:
space:
mode:
authorphilw <contact@philw.dev>2025-08-18 17:36:57 +0200
committerphilw <contact@philw.dev>2025-08-18 17:36:57 +0200
commit335ce2c66508e90d61fa468e8b12b3289f715a3e (patch)
treec3fb87df0a553f2055fd7fb2de2e4c4c990401c2 /index.css
downloadphilw.dev-335ce2c66508e90d61fa468e8b12b3289f715a3e.tar.gz
philw.dev-335ce2c66508e90d61fa468e8b12b3289f715a3e.zip
Initialize the repository
Signed-off-by: philw <contact@philw.dev>
Diffstat (limited to 'index.css')
-rw-r--r--index.css138
1 files changed, 138 insertions, 0 deletions
diff --git a/index.css b/index.css
new file mode 100644
index 0000000..256e2fc
--- /dev/null
+++ b/index.css
@@ -0,0 +1,138 @@
1 * {
2 box-sizing: border-box;
3 }
4
5 body {
6 margin: 0;
7 background: #fcfdfe; /* base07 - light background */
8 color: #000c18; /* base00 - dark text */
9 line-height: 1.75;
10 font-size: 1rem;
11 display: flex;
12 flex-direction: column;
13 min-height: 100vh;
14 overflow-x: hidden;
15 font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
16 Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
17 }
18
19 header, footer {
20 padding: 2em;
21 text-align: center;
22 }
23
24 main {
25 flex-grow: 1;
26 padding: 2em;
27 width: 100%;
28 box-sizing: border-box;
29 max-width: 900px;
30 margin: 0 auto;
31 }
32
33 footer {
34 border-top: 1px solid #000c18; /* base00 */
35 color: #000c18; /* base00 */
36 }
37
38 h1, h2 {
39 font-weight: normal;
40 margin: 0;
41 font-size: 2.25rem;
42 color: inherit; /* inherit from body */
43 }
44
45 section {
46 margin-bottom: 3em;
47 color: inherit; /* inherit from body */
48 width: 100%;
49 padding: 0 2%;
50 }
51
52 a {
53 color: #22aa44; /* base0B - green */
54 text-decoration: underline;
55 font-weight: 700;
56 transition: color 0.3s ease, text-decoration-color 0.3s ease;
57 text-underline-offset: 3px;
58 text-decoration-thickness: 2px;
59 text-decoration-color: transparent;
60 }
61
62 a:hover,
63 a:focus {
64 color: #9966b8; /* base08 - purple */
65 text-decoration-color: currentColor;
66 outline-offset: 3px;
67 outline: 2px solid #22aa44;
68 outline-radius: 3px;
69 }
70
71 a:focus-visible {
72 outline-offset: 4px;
73 outline: 3px solid #22aa44; /* base0B */
74 outline-radius: 3px;
75 }
76
77 .links a {
78 color: #22aa44; /* base0B */
79 }
80
81 .links a:hover {
82 color: #e6550d; /* base09 */
83 }
84
85 @media (max-width: 768px) {
86 h1 {
87 font-size: 1.8rem;
88 }
89
90 h2 {
91 font-size: 1.6rem;
92 }
93
94 footer {
95 font-size: 0.9em;
96 }
97
98 .privacy {
99 font-size: 0.8em;
100 }
101
102 main {
103 padding: 1.5em;
104 }
105 }
106
107 @media (prefers-color-scheme: dark) {
108 body {
109 background: #000c18; /* base00 */
110 color: #b7b8b9; /* base05 */
111 }
112
113 footer {
114 border-color: #fcfdfe; /* base07 */
115 color: #fcfdfe; /* base07 */
116 }
117
118 a {
119 color: #22aa44; /* keep green links in dark mode */
120 text-decoration-color: transparent;
121 }
122
123 a:hover,
124 a:focus {
125 color: #9966b8; /* base08 */
126 text-decoration-color: currentColor;
127 }
128 }
129
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 }