Repository navigation
Expand file tree
/
Copy pathsite.css
More file actions
72 lines (70 loc) · 3.88 KB
/
Copy pathsite.css
File metadata and controls
72 lines (70 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
@layer reset, tokens, base, layout;
@font-face {
font-family: 'Instrument Sans';
src: url('./assets/fonts/instrument-sans-latin-400-normal.woff2') format('woff2');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Instrument Sans';
src: url('./assets/fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
font-weight: 600;
font-display: swap;
}
/* The two pages of the public site, method and demo, share this stylesheet, one header and one footer. Light and
plain like the Regesten edition: white ground, near-black text, one link colour. Three text styles carry the first
screen, the title, body text and a quiet line (decision of 11 November 2026); a link keeps the style of its text. */
@layer reset {
* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; color: inherit; }
img, iframe { max-inline-size: 100%; }
[hidden] { display: none !important; }
}
@layer tokens {
:root {
color-scheme: light;
--ground: #ffffff;
--text: #1a1a1a;
--muted: #4a4a4a;
--hairline: #dcdcdc;
--link: #005c64;
--code-ground: #f6f6f6;
--quiet-size: .875rem;
}
}
@layer base {
body { font-family: 'Instrument Sans', 'Segoe UI', Arial, sans-serif; background: var(--ground); color: var(--text); font-size: 1.0625rem; line-height: 1.6; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
h1 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-weight: 600; line-height: 1.15; margin: 0 0 1rem; }
/* A section heading is body text in bold: it orders the page without adding a size. */
h2 { font-size: 1em; font-weight: 600; line-height: 1.4; margin: 2.75rem 0 .6rem; }
p, ol, ul { margin: 0 0 1.1rem; max-inline-size: 62ch; }
li { margin-block-end: .7rem; }
pre { margin: 0; padding: 1rem 1.1rem; background: var(--code-ground); white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; color: var(--text); }
}
@layer layout {
.shell { inline-size: min(48rem, calc(100% - 2rem)); margin-inline: auto; }
.shell-wide { inline-size: min(84rem, calc(100% - 2rem)); margin-inline: auto; }
.skip-link { position: absolute; inset-block-start: -5rem; inset-inline-start: 1rem; background: var(--text); color: var(--ground); padding: .7rem; z-index: 5; }
.skip-link:focus { inset-block-start: .5rem; }
.site-header, .site-footer { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.4rem; font-size: var(--quiet-size); color: var(--muted); }
.site-header { justify-content: space-between; padding-block: .9rem; border-block-end: 1px solid var(--hairline); }
.site-header a, .site-footer a { color: inherit; }
.site-header nav { display: flex; gap: 1.2rem; }
.site-header nav a { display: inline-flex; align-items: center; min-block-size: 44px; }
.site-header nav a[aria-current] { color: var(--text); text-decoration-thickness: 2px; }
.brand { display: flex; align-items: center; gap: .55rem; min-block-size: 44px; text-decoration: none; }
.site-footer { padding-block: 1.5rem 2rem; margin-block-start: 3rem; border-block-start: 1px solid var(--hairline); }
main { padding-block: 2.25rem 0; }
.model { margin: 1.5rem 0 0; }
.model img { display: block; inline-size: 100%; max-inline-size: 26rem; block-size: auto; }
.prompt { position: relative; margin-block-end: 1.1rem; max-inline-size: 62ch; }
.copy { display: block; margin-block-start: .5rem; min-block-size: 44px; padding: .4rem 1rem; border: 1px solid var(--hairline); border-radius: 3px; background: var(--ground); cursor: pointer; }
.copy:hover { border-color: var(--text); }
.quiet { font-size: var(--quiet-size); color: var(--muted); }
.demo-frame { display: block; inline-size: 100%; block-size: max(36rem, calc(100vh - 12rem)); border: 1px solid var(--hairline); }
@media print { .copy { display: none; } }
}