:root,
body.light {
--bg: #ffffff;
--bg-soft: #f5f7f8;
--bg-sunken: #eceff1;
--fg: #22292d;
--fg-muted: #566067;
--rule: #dfe4e7;
--rule-strong: #c3ccd1;
--accent: #37474f;
--accent-hover: #22303a;
--accent-contrast: #ffffff;
--link: #2f5d75;
--note-bg: #eef3f6;
--note-rule: #7d9db0;
--warn-bg: #fdf3e6;
--warn-rule: #c8873a;
--focus: #1a73e8;
--shadow: 0 1px 2px rgba(15, 30, 40, .06), 0 6px 20px rgba(15, 30, 40, .07);
}
body.dark {
--bg: #14191c;
--bg-soft: #1b2226;
--bg-sunken: #222b30;
--fg: #e3e8ea;
--fg-muted: #9fadb4;
--rule: #2c363b;
--rule-strong: #3d4a51;
--accent: #90a4ae;
--accent-hover: #b0c1c9;
--accent-contrast: #14191c;
--link: #8fc0d8;
--note-bg: #1b262c;
--note-rule: #5b7f92;
--warn-bg: #2a2117;
--warn-rule: #c8873a;
--focus: #7cb0ff;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
body:not(.light) {
--bg: #14191c;
--bg-soft: #1b2226;
--bg-sunken: #222b30;
--fg: #e3e8ea;
--fg-muted: #9fadb4;
--rule: #2c363b;
--rule-strong: #3d4a51;
--accent: #90a4ae;
--accent-hover: #b0c1c9;
--accent-contrast: #14191c;
--link: #8fc0d8;
--note-bg: #1b262c;
--note-rule: #5b7f92;
--warn-bg: #2a2117;
--warn-rule: #c8873a;
--focus: #7cb0ff;
--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
}
}
:root {
--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
--measure: 46rem;
--sidebar: 16rem;
--radius: 8px;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
body {
margin: 0;
background: var(--bg);
color: var(--fg);
font-family: var(--font-body);
font-size: 17px;
line-height: 1.65;
-webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
line-height: 1.25;
letter-spacing: -0.01em;
margin: 2.5rem 0 0.75rem;
scroll-margin-top: 5rem;
}
h1 {
font-size: 2.1rem;
margin-top: 0;
}
h2 {
font-size: 1.45rem;
padding-top: 1.75rem;
border-top: 1px solid var(--rule);
}
h3 {
font-size: 1.15rem;
}
p,
ul,
ol {
margin: 0 0 1rem;
}
ul,
ol {
padding-left: 1.35rem;
}
li + li {
margin-top: 0.35rem;
}
a {
color: var(--link);
text-underline-offset: 0.18em;
}
a:hover {
text-decoration-thickness: 2px;
}
hr {
height: 0;
margin: 2.5rem 0;
border: 0;
border-top: 1px solid var(--rule);
}
strong {
font-weight: 650;
}
:focus-visible {
outline: 3px solid var(--focus);
outline-offset: 2px;
border-radius: 3px;
}
table {
display: block;
width: max-content;
min-width: 100%;
max-width: 100%;
margin: 0 0 1.25rem;
overflow-x: auto;
border: 1px solid var(--rule);
border-radius: var(--radius);
border-collapse: collapse;
font-size: 0.92rem;
}
th,
td {
padding: 0.6rem 0.8rem;
text-align: left;
vertical-align: top;
border-bottom: 1px solid var(--rule);
}
thead th {
background: var(--bg-soft);
font-weight: 650;
white-space: nowrap;
}
tbody tr:last-child td {
border-bottom: 0;
}
tbody tr:hover {
background: var(--bg-soft);
}
code {
font-family: var(--font-mono);
font-size: 0.875em;
}
:not(pre) > code {
padding: 0.12em 0.35em;
background: var(--bg-sunken);
border-radius: 4px;
overflow-wrap: break-word;
}
pre {
margin: 0 0 1.25rem;
padding: 1rem 1.1rem;
overflow-x: auto;
background: var(--hl-bg);
color: var(--hl-fg);
border: 1px solid var(--rule);
border-radius: var(--radius);
font-size: 0.875rem;
line-height: 1.55;
tab-size: 2;
}
pre code {
font-size: inherit;
}
dl {
margin: 0 0 1.25rem;
}
dt {
margin: 1rem 0 0.25rem;
font-weight: 650;
}
dt:first-child {
margin-top: 0;
}
dd {
margin: 0 0 0 1.1rem;
padding-left: 0.9rem;
border-left: 2px solid var(--rule);
color: var(--fg-muted);
}
blockquote {
margin: 0 0 1.25rem;
padding: 0.9rem 1.1rem;
background: var(--note-bg);
border-left: 4px solid var(--note-rule);
border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote > :last-child {
margin-bottom: 0;
}
img {
max-width: 100%;
height: auto;
}
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
padding: 0.6rem 1rem;
background: var(--accent);
color: var(--accent-contrast);
border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
left: 0;
}
.site-header {
position: sticky;
top: 0;
z-index: 30;
display: flex;
gap: 1rem;
align-items: center;
padding: 0.7rem 1.25rem;
background: var(--bg);
border-bottom: 1px solid var(--rule);
}
.site-header__brand {
display: flex;
gap: 0.55rem;
align-items: center;
font-weight: 650;
font-size: 1.05rem;
color: var(--fg);
text-decoration: none;
}
.site-header__brand img {
width: 26px;
height: 26px;
border-radius: 6px;
}
.site-header__version {
padding: 0.1rem 0.45rem;
background: var(--bg-sunken);
border-radius: 999px;
color: var(--fg-muted);
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.02em;
}
.site-header__links {
margin-left: auto;
display: flex;
gap: 1rem;
font-size: 0.9rem;
}
.shell {
display: grid;
grid-template-columns: var(--sidebar) minmax(0, 1fr);
gap: 2.5rem;
max-width: 78rem;
margin: 0 auto;
padding: 0 1.25rem;
}
.shell--wide {
grid-template-columns: minmax(0, 1fr);
max-width: 62rem;
}
.sidebar {
padding: 2rem 0;
}
.sidebar__inner {
position: sticky;
top: 4.5rem;
max-height: calc(100vh - 6rem);
overflow-y: auto;
}
.content {
min-width: 0;
padding: 2rem 0 4rem;
}
.prose {
max-width: var(--measure);
}
.site-footer {
border-top: 1px solid var(--rule);
padding: 1.5rem 1.25rem 3rem;
color: var(--fg-muted);
font-size: 0.88rem;
}
.site-footer__inner {
max-width: 78rem;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.5rem;
align-items: center;
}
.site-footer__inner > :last-child {
margin-left: auto;
}
@media (max-width: 60rem) {
.shell {
grid-template-columns: minmax(0, 1fr);
gap: 0;
}
.sidebar {
padding: 1rem 0 0;
}
.sidebar__inner {
position: static;
max-height: none;
}
.content {
padding-top: 1.25rem;
}
.site-footer__inner > :last-child {
margin-left: 0;
}
}
.nav__group {
margin: 0 0 1.5rem;
}
.nav__title {
margin: 0 0 0.5rem;
color: var(--fg-muted);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.09em;
text-transform: uppercase;
}
.nav__list {
margin: 0;
padding: 0;
list-style: none;
}
.nav__list li + li {
margin-top: 0;
}
.nav__link {
display: block;
padding: 0.35rem 0.6rem;
border-radius: 6px;
color: var(--fg-muted);
font-size: 0.93rem;
text-decoration: none;
}
.nav__link:hover {
background: var(--bg-soft);
color: var(--fg);
}
.nav__link[aria-current=page] {
background: var(--bg-sunken);
color: var(--fg);
font-weight: 600;
box-shadow: inset 3px 0 0 var(--accent);
}
.nav-toggle {
display: none;
}
@media (max-width: 60rem) {
.nav-desktop {
display: none;
}
.nav-toggle {
display: block;
border: 1px solid var(--rule);
border-radius: var(--radius);
background: var(--bg-soft);
}
.nav-toggle > summary {
padding: 0.6rem 0.9rem;
cursor: pointer;
font-weight: 600;
font-size: 0.93rem;
}
.nav-toggle .nav {
padding: 0 0.6rem 0.6rem;
}
.nav-toggle .nav__group {
margin-bottom: 0.75rem;
}
}
.page-nav {
display: flex;
gap: 1rem;
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid var(--rule);
}
.page-nav__link {
flex: 1 1 0;
padding: 0.8rem 1rem;
border: 1px solid var(--rule);
border-radius: var(--radius);
text-decoration: none;
color: var(--fg);
}
.page-nav__link:hover {
border-color: var(--rule-strong);
background: var(--bg-soft);
}
.page-nav__link--next {
text-align: right;
}
.page-nav__dir {
display: block;
color: var(--fg-muted);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.hero {
padding: 3rem 0 1rem;
}
.hero h1 {
font-size: clamp(2.2rem, 5vw, 3rem);
margin-bottom: 0.75rem;
}
.hero__lead {
max-width: 42rem;
color: var(--fg-muted);
font-size: 1.15rem;
}
.hero__actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
.button {
display: inline-block;
padding: 0.6rem 1.15rem;
border: 1px solid var(--accent);
border-radius: var(--radius);
background: var(--accent);
color: var(--accent-contrast);
font: inherit;
font-size: 0.95rem;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
.button:hover {
background: var(--accent-hover);
border-color: var(--accent-hover);
}
.button--quiet {
background: transparent;
color: var(--fg);
border-color: var(--rule-strong);
}
.button--quiet:hover {
background: var(--bg-soft);
border-color: var(--rule-strong);
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
gap: 1rem;
margin: 1.5rem 0 2rem;
padding: 0;
list-style: none;
}
.card {
display: flex;
flex-direction: column;
padding: 1.1rem 1.25rem;
background: var(--bg);
border: 1px solid var(--rule);
border-radius: var(--radius);
box-shadow: var(--shadow);
}
.card h3 {
margin: 0 0 0.4rem;
font-size: 1.05rem;
}
.card p {
margin: 0 0 0.9rem;
color: var(--fg-muted);
font-size: 0.93rem;
}
.card > :last-child {
margin-top: auto;
margin-bottom: 0;
}
.callout {
margin: 0 0 1.5rem;
padding: 0.9rem 1.1rem;
border-left: 4px solid var(--note-rule);
border-radius: 0 var(--radius) var(--radius) 0;
background: var(--note-bg);
}
.callout > :last-child {
margin-bottom: 0;
}
.callout--warn {
background: var(--warn-bg);
border-left-color: var(--warn-rule);
}
.fixture {
margin: 0 0 1.5rem;
padding: 1.1rem 1.25rem;
border: 1px solid var(--rule-strong);
border-radius: var(--radius);
background: var(--bg-soft);
}
.fixture h2,
.fixture h3 {
margin-top: 0;
padding-top: 0;
border-top: 0;
}
.fixture__actions {
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
margin-top: 1rem;
}
.fixture__state {
margin: 1rem 0 0;
padding: 0.7rem 0.9rem;
background: var(--bg);
border: 1px solid var(--rule);
border-radius: 6px;
font-family: var(--font-mono);
font-size: 0.82rem;
overflow-x: auto;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
/*# sourceMappingURL=main.css.map */