132 lines
4.7 KiB
CSS
132 lines
4.7 KiB
CSS
@font-face {
|
|
font-family: Figtree;
|
|
src: url('assets/fonts/Figtree-Variable.ttf') format('truetype');
|
|
font-weight: 300 900;
|
|
font-display: swap;
|
|
}
|
|
@font-face {
|
|
font-family: JetBrains;
|
|
src: url('assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
|
|
font-display: swap;
|
|
}
|
|
:root {
|
|
color-scheme: dark;
|
|
--page: #111821;
|
|
--soft: #171e27;
|
|
--raised: #1e2530;
|
|
--ink: #f4f7fb;
|
|
--muted: #a0adbf;
|
|
--line: #ffffff12;
|
|
--accent: #8dbaff;
|
|
--button: #3d7be6;
|
|
--mono: JetBrains, ui-monospace, monospace;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--page);
|
|
color: var(--ink);
|
|
font-family: Figtree, system-ui, sans-serif;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
a { color: inherit; text-decoration: none; }
|
|
button, input { font: inherit; }
|
|
button { color: inherit; cursor: pointer; }
|
|
button, a { -webkit-tap-highlight-color: transparent; }
|
|
img { display: block; max-width: 100%; height: auto; }
|
|
figure { min-width: 0; }
|
|
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
|
|
outline: 3px solid var(--accent);
|
|
outline-offset: 4px;
|
|
}
|
|
::selection { background: #3d7be640; }
|
|
[hidden] { display: none !important; }
|
|
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
|
|
.icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-width: 1.7;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
flex-shrink: 0;
|
|
}
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
.skip {
|
|
position: fixed;
|
|
top: -100px;
|
|
left: 24px;
|
|
z-index: 100;
|
|
padding: 12px 18px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--page);
|
|
}
|
|
.skip:focus { top: 12px; }
|
|
.page-width { width: calc(100% - 80px); max-width: 1120px; margin-inline: auto; }
|
|
.site-header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 30;
|
|
background: color-mix(in srgb, var(--page) 92%, transparent);
|
|
backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
|
|
.brand { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 630; letter-spacing: -.7px; }
|
|
.brand img { width: 34px; height: 34px; }
|
|
.site-header nav { display: flex; align-items: center; gap: 28px; margin-left: auto; margin-right: 28px; }
|
|
.site-header nav a { font-size: 12px; color: var(--muted); transition: color .2s; }
|
|
.site-header nav a:hover, .site-header nav a[aria-current=page] { color: var(--ink); }
|
|
.header-actions { display: flex; align-items: center; gap: 15px; }
|
|
.small-button { padding: 8px 15px; background: var(--button); color: #fff; border-radius: 20px; font-size: 11px; white-space: nowrap; }
|
|
.small-button:hover, .primary-button:hover { background: #326cce; }
|
|
.inline-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--accent); }
|
|
.inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
|
|
.inline-link .icon { width: 15px; height: 15px; }
|
|
.site-footer { display: flex; align-items: center; gap: 25px; border-top: 1px solid var(--line); padding-block: 26px; margin-bottom: 10px; }
|
|
.site-footer .brand { font-size: 18px; }
|
|
.site-footer .brand img { width: 28px; height: 28px; }
|
|
.site-footer > span { font-size: 11px; color: var(--muted); }
|
|
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }
|
|
.site-footer nav a { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); }
|
|
.site-footer nav .icon { width: 12px; height: 12px; }
|
|
.site-footer nav a:hover { color: var(--ink); }
|
|
@media (max-width: 1100px) {
|
|
.page-width { width: calc(100% - 64px); }
|
|
}
|
|
@media (max-width: 700px) {
|
|
html { scroll-padding-top: 88px; }
|
|
.page-width { width: calc(100% - 40px); }
|
|
.header-inner { height: 66px; gap: 16px; }
|
|
.brand { font-size: 21px; gap: 7px; }
|
|
.brand img { width: 30px; height: 30px; }
|
|
.site-header nav { display: none; }
|
|
.small-button { padding: 9px 14px; }
|
|
.inline-link { font-size: 12px; }
|
|
.site-footer { flex-wrap: wrap; gap: 17px; padding-block: 23px; margin-bottom: 5px; }
|
|
.site-footer > span { font-size: 10px; }
|
|
.site-footer nav { width: 100%; margin-left: 0; gap: 22px; }
|
|
.site-footer nav a { font-size: 11px; }
|
|
}
|
|
@media (max-width: 380px) {
|
|
.page-width { width: calc(100% - 32px); }
|
|
.site-footer > span { font-size: 9px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
html { scroll-behavior: auto; }
|
|
*, *::before, *::after { animation: none !important; transition: none !important; }
|
|
}
|