interplane.Get Omega
Read in your language

sovereign-intelligence

Front door to Drake Stapleton's sovereign stack.

Brought by drakestapleton

branch main Branches Tags History

sovereign-intelligence / docs / archive / drakestapleton.com-old / src / styles / reader.css

159 lines · 2891 bytes Raw Blame History
1.reader {
2 width: 100%;
3 max-width: 100%;
4 margin: 0;
5 padding: 2rem 1rem 3.5rem;
6 overflow-x: hidden;
7 color: var(--ink, #1c1915);
8 background: var(--paper, #f7f4ee);
9 font-family: var(--sans, Georgia, "Times New Roman", serif);
10 font-size: 1.125rem;
11 line-height: 1.7;
12 overflow-wrap: break-word;
13}
14
15.reader > h1,
16.reader article {
17 width: min(66ch, 100%);
18 max-width: 66ch;
19 margin-inline: auto;
20}
21
22.reader h1 {
23 margin: 0 0 0.75rem;
24 color: var(--navy, var(--ink, #1c1915));
25 font-family: var(--display, Georgia, "Times New Roman", serif);
26 font-size: 2.15rem;
27 font-weight: 500;
28 line-height: 1.15;
29 text-wrap: balance;
30}
31
32.reader p {
33 text-wrap: pretty;
34}
35
36.reader a {
37 color: inherit;
38 text-decoration-line: underline;
39 text-decoration-thickness: 1px;
40 text-underline-offset: 0.16em;
41}
42
43.reader a:hover {
44 color: var(--red, #a9462b);
45}
46
47.reader a:focus-visible {
48 outline: 3px solid var(--red, #a9462b);
49 outline-offset: 3px;
50}
51
52.reader-date {
53 margin: 0 0 1.25rem;
54 color: var(--muted, #6d626a);
55 font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
56 font-size: 0.78rem;
57 letter-spacing: 0.04em;
58}
59
60.reader ul.reader-index {
61 list-style: none;
62 margin: 1.25rem 0 0;
63 padding: 0;
64}
65
66.reader-index article {
67 padding-block: 1.1rem 1.25rem;
68 border-bottom: 1px solid var(--line, rgba(43, 34, 51, 0.18));
69}
70
71.reader-index > li:nth-child(n + 2) {
72 content-visibility: auto;
73 contain-intrinsic-size: auto 8rem;
74}
75
76.reader-index a {
77 display: block;
78 color: inherit;
79 text-decoration: none;
80}
81
82.reader-index h2 {
83 margin: 0 0 0.3rem;
84 color: var(--navy, var(--ink, #1c1915));
85 font-family: var(--display, Georgia, "Times New Roman", serif);
86 font-size: 1.45rem;
87 font-weight: 500;
88 line-height: 1.25;
89 text-decoration: underline;
90 text-decoration-thickness: 1px;
91 text-underline-offset: 0.16em;
92}
93
94.reader-index .reader-date {
95 margin: 0 0 0.45rem;
96}
97
98.reader-index p {
99 margin: 0;
100}
101
102.reader-body h2,
103.reader-body h3,
104.reader-body h4,
105.reader-body h5,
106.reader-body h6 {
107 margin: 1.75rem 0 0.5rem;
108 color: var(--navy, var(--ink, #1c1915));
109 font-family: var(--display, Georgia, "Times New Roman", serif);
110 font-weight: 500;
111 line-height: 1.25;
112}
113
114.reader-body h2 {
115 font-size: 1.45rem;
116}
117
118.reader-body h3 {
119 font-size: 1.25rem;
120}
121
122.reader-body p,
123.reader-body ul,
124.reader-body ol {
125 margin: 0 0 1rem;
126}
127
128.reader-body ul,
129.reader-body ol {
130 padding-inline-start: 1.25rem;
131}
132
133.reader-body li + li {
134 margin-top: 0.35rem;
135}
136
137.reader-body blockquote {
138 margin: 0 0 1rem;
139 padding-inline-start: 1rem;
140 border-inline-start: 2px solid var(--navy, var(--ink, #1c1915));
141}
142
143.reader-body blockquote p {
144 margin: 0;
145}
146
147@media (max-width: 40rem) {
148 .reader {
149 padding: 1rem;
150 }
151}
152
153@media (prefers-reduced-motion: reduce) {
154 .reader,
155 .reader * {
156 animation: none;
157 transition: none;
158 }
159}