forked from
quillmatiq.com/augment
Fork of Chiri for Astro for my blog
1@import './fonts.css';
2@import './post.css';
3
4:root {
5 /* Min Content Width */
6 --content-width: 25rem;
7
8 /* Typography */
9 --sans: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
10 --serif: Besley, Baskerville, Georgia, 'Times New Roman', Times, serif;
11 --mono: 'SF Mono', SFMono-Regular, monospace;
12
13 --font-size-s: 0.8125rem;
14 --font-size-m: 0.9375rem;
15 --font-size-l: 1.0625rem;
16
17 --font-weight-light: 350;
18 --font-weight-regular: 400;
19 --font-weight-bold: 500;
20
21 --spacing-s: -0.08em;
22 --spacing-m: -0.02em;
23
24 /* Light Mode Colors (Default) */
25 --bg: #ffffff;
26 --text-primary: rgba(0, 0, 0, 0.85);
27 --text-secondary: rgba(0, 0, 0, 0.4);
28 --text-tertiary: rgba(0, 0, 0, 0.24);
29 --border: rgba(0, 0, 0, 0.1);
30 --selection: rgba(0, 0, 0, 0.08);
31 --code-bg: rgba(0, 0, 0, 0.04);
32 --mark: #f3ffc4;
33
34 /* Syntax Theme */
35 --astro-code-foreground: rgba(0, 0, 0, 0.85);
36 --astro-code-background: rgba(0, 0, 0, 0.03);
37 --astro-code-token-constant: rgba(0, 0, 0, 0.85);
38 --astro-code-token-string: rgba(0, 0, 0, 0.85);
39 --astro-code-token-comment: rgba(0, 0, 0, 0.35);
40 --astro-code-token-keyword: rgba(0, 0, 0, 0.55);
41 --astro-code-token-parameter: rgba(0, 0, 0, 0.85);
42 --astro-code-token-function: rgba(0, 0, 0, 0.85);
43 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55);
44 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55);
45 --astro-code-token-link: rgba(0, 0, 0, 0.55);
46}
47
48/* Light Mode (Explicit) */
49html.light {
50 --bg: #ffffff;
51 --text-primary: rgba(0, 0, 0, 0.85);
52 --text-secondary: rgba(0, 0, 0, 0.4);
53 --text-tertiary: rgba(0, 0, 0, 0.24);
54 --border: rgba(0, 0, 0, 0.1);
55 --selection: rgba(0, 0, 0, 0.08);
56 --code-bg: rgba(0, 0, 0, 0.04);
57 --mark: #f3ffc4;
58
59 /* Syntax Theme */
60 --astro-code-foreground: rgba(0, 0, 0, 0.85);
61 --astro-code-background: rgba(0, 0, 0, 0.03);
62 --astro-code-token-constant: rgba(0, 0, 0, 0.85);
63 --astro-code-token-string: rgba(0, 0, 0, 0.85);
64 --astro-code-token-comment: rgba(0, 0, 0, 0.35);
65 --astro-code-token-keyword: rgba(0, 0, 0, 0.5);
66 --astro-code-token-parameter: rgba(0, 0, 0, 0.85);
67 --astro-code-token-function: rgba(0, 0, 0, 0.85);
68 --astro-code-token-string-expression: rgba(0, 0, 0, 0.55);
69 --astro-code-token-punctuation: rgba(0, 0, 0, 0.55);
70 --astro-code-token-link: rgba(0, 0, 0, 0.55);
71}
72
73/* Dark Mode (Explicit) */
74html.dark {
75 --bg: #1c1c1c;
76 --text-primary: rgba(255, 255, 255, 0.9);
77 --text-secondary: rgba(255, 255, 255, 0.4);
78 --text-tertiary: rgba(255, 255, 255, 0.24);
79 --border: rgba(255, 255, 255, 0.1);
80 --selection: rgba(255, 255, 255, 0.08);
81 --code-bg: rgba(255, 255, 255, 0.04);
82 --mark: #545b37;
83
84 /* Syntax Theme */
85 --astro-code-foreground: rgba(255, 255, 255, 0.9);
86 --astro-code-background: rgba(255, 255, 255, 0.03);
87 --astro-code-token-constant: rgba(255, 255, 255, 0.9);
88 --astro-code-token-string: rgba(255, 255, 255, 0.9);
89 --astro-code-token-comment: rgba(255, 255, 255, 0.35);
90 --astro-code-token-keyword: rgba(255, 255, 255, 0.55);
91 --astro-code-token-parameter: rgba(255, 255, 255, 0.9);
92 --astro-code-token-function: rgba(255, 255, 255, 0.9);
93 --astro-code-token-string-expression: rgba(255, 255, 255, 0.55);
94 --astro-code-token-punctuation: rgba(255, 255, 255, 0.55);
95 --astro-code-token-link: rgba(255, 255, 255, 0.55);
96}
97
98html {
99 background-color: var(--bg);
100 scroll-behavior: smooth;
101 scrollbar-gutter: stable;
102 overscroll-behavior-y: contain;
103 -webkit-overflow-scrolling: touch;
104 transition: background-color 0.2s ease-out;
105}
106
107body {
108 font-family: var(--sans);
109 font-feature-settings: 'ss03' 1;
110 font-size: var(--font-size-m);
111 text-autospace: normal;
112 text-rendering: optimizeLegibility;
113 line-height: 1.75;
114 color: var(--text-primary);
115 font-display: swap;
116 word-wrap: break-word;
117 overflow-wrap: break-word;
118 margin: 0;
119 min-height: 100vh;
120 display: flex;
121 flex-direction: column;
122 box-sizing: border-box;
123 letter-spacing: var(--spacing-m);
124 padding: 6rem 1.5rem 1.5rem 1.5rem;
125 overscroll-behavior-y: contain;
126}
127
128@media (max-width: 768px) {
129 body {
130 padding: 4rem 1.35rem 1.35rem 1.35rem;
131 }
132}
133
134@media (prefers-reduced-motion: reduce) {
135 * {
136 animation-duration: 0.01ms !important;
137 transition-duration: 0.01ms !important;
138 animation-iteration-count: 1 !important;
139 scroll-behavior: auto !important;
140 }
141}
142
143::selection {
144 background-color: var(--selection);
145}
146
147:focus {
148 outline: 2px solid var(--text-tertiary);
149 outline-offset: 2px;
150}
151
152:focus:not(:focus-visible) {
153 outline: none;
154}
155
156:focus-visible {
157 outline: 2px solid var(--text-tertiary);
158 outline-offset: 2px;
159}
160
161body[data-width] {
162 max-width: var(--content-width);
163}
164
165body[data-centered='true'] {
166 margin: 0 auto;
167}
168
169main {
170 flex: 1;
171 display: flex;
172 flex-direction: column;
173 box-sizing: border-box;
174}
175
176.date {
177 margin: 0;
178 font-weight: var(--font-weight-light);
179 color: var(--text-secondary);
180 opacity: 0.75;
181 flex-shrink: 0;
182 letter-spacing: var(--spacing-s);
183 font-variant-numeric: tabular-nums;
184 font-feature-settings:
185 'tnum' 1,
186 'zero' 0,
187 'cv01' 1,
188 'cv02' 1,
189 'calt' 1,
190 'ss03' 1,
191 'ordn' 1;
192}
193
194.date .month {
195 letter-spacing: var(--spacing-m);
196}
197
198.sr-only {
199 border: 0;
200 padding: 0;
201 margin: 0;
202 position: absolute !important;
203 height: 1px;
204 width: 1px;
205 overflow: hidden;
206 clip: rect(1px 1px 1px 1px);
207 clip: rect(1px, 1px, 1px, 1px);
208 clip-path: inset(50%);
209 white-space: nowrap;
210}