File size: 9,253 Bytes
fd74a4d | 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 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | :root{
color-scheme:light;
--ink:#172d29;
--muted:#4e625c;
--green:#245743;
--line:#cad6c9;
--paper:#f7f8f3}
*{
box-sizing:border-box}
body{
margin:0;
background:var(--paper);
color:var(--ink);
font:16px/1.65 system-ui,sans-serif}
.wrap{
max-width:850px;
padding:0 clamp(20px,5vw,58px);
margin:auto}
.hero{
background:#e6ecdf;
border-bottom:1px solid var(--line);
padding:clamp(34px,7vw,74px) 0}
.over,small,legend,.author{
color:var(--green);
font:600 12px/1.5 ui-monospace,monospace;
letter-spacing:.055em}
.over{
margin:0 0 15px}
h1,h2{
font-family:Georgia,serif;
font-weight:500;
letter-spacing:-.04em;
line-height:1.05;
text-wrap:balance}
h1{
font-size:clamp(42px,8vw,78px);
margin:0 0 22px}
h2{
font-size:clamp(31px,5vw,45px);
margin:0 0 15px}
.lede{
max-width:55ch;
font-size:20px}
.author{
margin:20px 0}
.wrap>section{
padding:44px 0;
border-bottom:1px solid var(--line)}
p{
max-width:70ch}
nav,.controls,fieldset{
display:flex;
flex-wrap:wrap;
gap:10px 18px;
align-items:center}
a{
color:var(--green);
font-weight:650;
text-underline-offset:4px}
a:hover{
color:#0d3028}
.primary{
background:var(--green);
color:white;
padding:9px 15px;
border-radius:4px}
.primary:hover{
color:white;
background:#153f31}
fieldset{
border:0;
padding:0;
margin:22px 0 14px}
legend{
margin-bottom:6px}
select,label{
font:inherit}
fieldset label,.controls label{
display:flex;
align-items:center;
gap:7px}
.controls{
margin:20px 0}
.controls label{
flex-wrap:wrap}
select{
padding:6px;
border:1px solid var(--line);
border-radius:4px;
background:white;
color:var(--ink)}
.case,.results{
background:#edf2e9;
border:1px solid var(--line);
border-radius:6px;
padding:18px}
.case,dl{
display:grid;
grid-template-columns:repeat(3,minmax(0,1fr));
gap:15px}
.case strong,dd{
display:block;
font:600 clamp(17px,2.4vw,22px)/1.55 ui-monospace,monospace}
.case strong{
overflow-wrap:anywhere}
dl{
margin:12px 0 0;
grid-template-columns:1fr 1fr}
dd{
font-size:16px;
margin:4px 0}
dt,.note{
color:var(--muted)}
.results p{
margin:0}
code,pre{
font-family:ui-monospace,monospace}
pre{
padding:15px;
background:#e9eee5;
overflow:auto;
border-radius:4px}
summary{
cursor:pointer;
color:var(--green)}
a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{
outline:3px solid #8f632f;
outline-offset:3px}
[hidden]{
display:none!important}
@media(max-width:520px){
dl{
grid-template-columns:1fr}
.case{
gap:8px;
padding:12px}
.case small{
font-size:10px}
}
@media(prefers-reduced-motion:no-preference){
.wrap>section{
animation:appear .28s ease-out}
@keyframes appear{
from{
transform:translateY(5px);
opacity:.7}
to{
transform:none;
opacity:1}
}
}
|