506 lines
9.2 KiB
CSS
506 lines
9.2 KiB
CSS
@import "@fontsource-variable/newsreader";
|
|
@import "@fontsource-variable/newsreader/wght-italic.css";
|
|
@import "@fontsource-variable/jetbrains-mono";
|
|
@import "@fontsource/unbounded/900.css";
|
|
|
|
:root {
|
|
color-scheme: dark;
|
|
|
|
--paper: #1b1a18;
|
|
--paper-2: #232220;
|
|
--ink: #e7e3dc;
|
|
--muted: #9a948a;
|
|
--faint: #6b655c;
|
|
--line: #322f2b;
|
|
--accent: #ffab5e;
|
|
--accent-2: #5ea0ff;
|
|
--star: #ffab5e;
|
|
|
|
--grad: linear-gradient(
|
|
90deg,
|
|
rgb(255, 224, 138),
|
|
rgb(255, 171, 94),
|
|
rgb(255, 95, 109),
|
|
rgb(200, 75, 214),
|
|
rgb(255, 95, 109),
|
|
rgb(255, 171, 94),
|
|
rgb(255, 224, 138)
|
|
);
|
|
|
|
--serif: "Newsreader Variable", Charter, "Iowan Old Style", Georgia, serif;
|
|
--mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", Menlo, monospace;
|
|
--display: "Unbounded", var(--mono);
|
|
|
|
--col: 40rem;
|
|
--step: clamp(1.05rem, 0.92rem + 0.6vw, 1.2rem);
|
|
--gap: 2.5rem;
|
|
}
|
|
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
}
|
|
|
|
html {
|
|
-webkit-text-size-adjust: 100%;
|
|
scrollbar-gutter: stable;
|
|
background: var(--paper);
|
|
}
|
|
|
|
body {
|
|
background: var(--paper);
|
|
color: var(--ink);
|
|
font-family: var(--serif);
|
|
font-size: var(--step);
|
|
line-height: 1.6;
|
|
font-optical-sizing: auto;
|
|
-webkit-font-smoothing: antialiased;
|
|
text-rendering: optimizeLegibility;
|
|
max-width: var(--col);
|
|
margin-inline: auto;
|
|
padding: clamp(2.5rem, 9vw, 4.5rem) clamp(1.5rem, 6vw, 2rem) clamp(5rem, 12vw, 7rem);
|
|
}
|
|
|
|
::selection {
|
|
background: rgba(255, 171, 94, 0.22);
|
|
}
|
|
|
|
a {
|
|
color: inherit;
|
|
text-underline-offset: 0.18em;
|
|
text-decoration-color: var(--faint);
|
|
text-decoration-thickness: from-font;
|
|
}
|
|
a:hover {
|
|
text-decoration-color: var(--accent);
|
|
}
|
|
|
|
:focus-visible {
|
|
outline: 2px solid var(--accent);
|
|
outline-offset: 3px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
[hidden] {
|
|
display: none !important;
|
|
}
|
|
|
|
.skip {
|
|
position: absolute;
|
|
left: -9999px;
|
|
}
|
|
.skip:focus {
|
|
left: 1rem;
|
|
top: 1rem;
|
|
background: var(--ink);
|
|
color: var(--paper);
|
|
padding: 0.5rem 0.75rem;
|
|
z-index: 10;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
.ribbon {
|
|
display: flex;
|
|
align-items: stretch;
|
|
margin: 0 0 clamp(1.6rem, 4.5vw, 2.4rem);
|
|
border: 1px solid var(--line);
|
|
border-radius: 4px;
|
|
background: var(--paper-2);
|
|
font-family: var(--mono);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.015em;
|
|
transition: border-color 0.18s ease;
|
|
}
|
|
.ribbon:hover {
|
|
border-color: var(--faint);
|
|
}
|
|
:root[data-ribbon="off"] .ribbon {
|
|
display: none;
|
|
}
|
|
|
|
.ribbon__link {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.55rem;
|
|
padding: 0.5rem 0.45rem 0.5rem 0.7rem;
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
transition: color 0.18s ease;
|
|
}
|
|
.ribbon__link:hover {
|
|
color: var(--ink);
|
|
}
|
|
.ribbon__dot {
|
|
flex: none;
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
}
|
|
.ribbon__text {
|
|
color: var(--ink);
|
|
white-space: nowrap;
|
|
}
|
|
.ribbon__sub {
|
|
color: var(--faint);
|
|
white-space: nowrap;
|
|
}
|
|
.ribbon__count {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.ribbon__arw {
|
|
margin-left: auto;
|
|
padding-left: 0.5rem;
|
|
color: var(--faint);
|
|
transition:
|
|
transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
|
|
color 0.18s ease;
|
|
}
|
|
.ribbon__link:hover .ribbon__arw {
|
|
color: var(--accent);
|
|
transform: translate(0.18em, -0.18em);
|
|
}
|
|
|
|
.ribbon__x {
|
|
flex: none;
|
|
padding: 0 0.7rem;
|
|
background: none;
|
|
border: 0;
|
|
border-left: 1px solid var(--line);
|
|
color: var(--faint);
|
|
font: inherit;
|
|
font-size: 0.7rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
transition:
|
|
color 0.15s ease,
|
|
background 0.15s ease;
|
|
}
|
|
.ribbon__x:hover {
|
|
color: var(--ink);
|
|
background: rgba(255, 255, 255, 0.03);
|
|
}
|
|
|
|
.topbar {
|
|
margin: 0 0 clamp(2rem, 5vw, 3rem);
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
}
|
|
.mark {
|
|
font-family: var(--display);
|
|
font-weight: 900;
|
|
font-size: clamp(1.6rem, 1.2rem + 2vw, 2.1rem);
|
|
line-height: 1;
|
|
letter-spacing: -0.03em;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
padding-right: 0.06em;
|
|
color: #fff;
|
|
background: var(--grad);
|
|
background-size: 220% 100%;
|
|
background-position: 0% 50%;
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: currentColor;
|
|
transition:
|
|
-webkit-text-fill-color 0.4s ease,
|
|
background-position 0.9s ease;
|
|
user-select: none;
|
|
}
|
|
.mark:hover,
|
|
.mark:focus-visible,
|
|
.mark.is-sweeping {
|
|
-webkit-text-fill-color: transparent;
|
|
background-position: 100% 50%;
|
|
}
|
|
.topnav {
|
|
font-family: var(--mono);
|
|
font-size: 0.78rem;
|
|
letter-spacing: 0.04em;
|
|
display: flex;
|
|
gap: 1.1rem;
|
|
}
|
|
.topnav a {
|
|
color: #fff;
|
|
text-decoration: none;
|
|
}
|
|
.topnav a:hover {
|
|
color: var(--accent-2);
|
|
}
|
|
.topnav a[aria-current="page"] {
|
|
color: var(--muted);
|
|
}
|
|
|
|
.section {
|
|
margin-top: var(--gap);
|
|
}
|
|
.label {
|
|
font-family: var(--mono);
|
|
font-size: 0.72rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.1em;
|
|
color: var(--faint);
|
|
margin-bottom: 0.7rem;
|
|
}
|
|
.label__sub {
|
|
color: var(--faint);
|
|
letter-spacing: 0.06em;
|
|
}
|
|
|
|
.intro {
|
|
margin-bottom: var(--gap);
|
|
}
|
|
.intro h1 {
|
|
font-family: var(--display);
|
|
font-weight: 900;
|
|
font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.2rem);
|
|
line-height: 1;
|
|
letter-spacing: -0.03em;
|
|
margin-bottom: 0.9rem;
|
|
}
|
|
.intro .bio {
|
|
color: var(--muted);
|
|
max-width: 46ch;
|
|
text-wrap: pretty;
|
|
}
|
|
|
|
.pagenav {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 0.4rem 1.5rem;
|
|
font-family: var(--mono);
|
|
font-size: 0.82rem;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
.pagenav a {
|
|
text-decoration: none;
|
|
color: var(--ink);
|
|
transition: color 0.18s ease;
|
|
}
|
|
.pagenav a:hover {
|
|
color: var(--accent-2);
|
|
}
|
|
.pagenav .arw {
|
|
display: inline-block;
|
|
color: var(--muted);
|
|
transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
.pagenav a:hover .arw {
|
|
transform: translateX(0.3em);
|
|
color: var(--accent-2);
|
|
}
|
|
.pagenav a:hover .arw--out {
|
|
transform: translate(0.22em, -0.22em);
|
|
}
|
|
|
|
.contact .avail {
|
|
color: var(--muted);
|
|
font-size: 0.95rem;
|
|
margin-top: 0.7rem;
|
|
}
|
|
.contact-links {
|
|
display: flex;
|
|
gap: 1.2rem;
|
|
align-items: center;
|
|
margin-top: 1rem;
|
|
}
|
|
.contact-links a {
|
|
display: inline-flex;
|
|
color: var(--muted);
|
|
transition: color 0.15s ease;
|
|
padding: 0.25rem;
|
|
margin: -0.25rem;
|
|
}
|
|
.contact-links a:hover {
|
|
color: var(--ink);
|
|
}
|
|
.contact-links svg {
|
|
width: 1.2rem;
|
|
height: 1.2rem;
|
|
fill: currentColor;
|
|
display: block;
|
|
}
|
|
|
|
.copy {
|
|
font-family: var(--mono);
|
|
font-size: 0.9em;
|
|
border: 0;
|
|
background: none;
|
|
color: var(--ink);
|
|
padding: 0.05em 0.15em;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--line);
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35em;
|
|
vertical-align: baseline;
|
|
max-width: 100%;
|
|
}
|
|
.copy__text {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.copy__icon,
|
|
.copy__check {
|
|
flex: none;
|
|
width: 0.95em;
|
|
height: 0.95em;
|
|
color: var(--faint);
|
|
}
|
|
.copy__check {
|
|
display: none;
|
|
color: var(--accent-2);
|
|
}
|
|
.copy:hover {
|
|
border-color: var(--accent-2);
|
|
}
|
|
.copy:hover .copy__icon {
|
|
color: var(--accent-2);
|
|
}
|
|
.copy.copied .copy__icon {
|
|
display: none;
|
|
}
|
|
.copy.copied .copy__check {
|
|
display: block;
|
|
animation: copy-pop 0.28s cubic-bezier(0.17, 0.89, 0.32, 1.28);
|
|
}
|
|
@keyframes copy-pop {
|
|
from {
|
|
transform: scale(0.5);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
.copy .tip {
|
|
position: absolute;
|
|
bottom: 130%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
background: var(--ink);
|
|
color: var(--paper);
|
|
font-size: 0.66rem;
|
|
letter-spacing: 0.04em;
|
|
padding: 0.3rem 0.5rem;
|
|
border-radius: 5px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
transition: opacity 0.15s;
|
|
pointer-events: none;
|
|
}
|
|
.copy.copied .tip {
|
|
opacity: 1;
|
|
}
|
|
|
|
.moreme {
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
width: fit-content;
|
|
max-width: 100%;
|
|
margin-top: var(--gap);
|
|
padding: 1.2rem 1.15rem 1.05rem;
|
|
border: 1px solid var(--line);
|
|
border-radius: 3px;
|
|
}
|
|
.moreme__label {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0.85rem;
|
|
transform: translateY(-50%);
|
|
margin: 0;
|
|
padding: 0 0.45rem;
|
|
background: var(--paper);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.foot {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 0.55rem 0.8rem;
|
|
}
|
|
.foot > .music,
|
|
.foot > .reading {
|
|
margin-top: 0;
|
|
}
|
|
.foot + .foot {
|
|
margin-top: 0.7rem;
|
|
}
|
|
|
|
.colophon {
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 3rem 0 0;
|
|
}
|
|
.version {
|
|
font-family: var(--mono);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.06em;
|
|
color: var(--faint);
|
|
user-select: none;
|
|
}
|
|
.srcline {
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
.srcline a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.4em;
|
|
font-family: var(--mono);
|
|
font-size: 0.72rem;
|
|
letter-spacing: 0.06em;
|
|
color: var(--faint);
|
|
text-decoration: none;
|
|
transition: color 0.16s ease;
|
|
}
|
|
.srcline a:hover {
|
|
color: var(--accent);
|
|
}
|
|
.srcline__icon {
|
|
width: 0.95em;
|
|
height: 0.95em;
|
|
flex: none;
|
|
}
|
|
|
|
.backlink {
|
|
font-family: var(--mono);
|
|
font-size: 0.78rem;
|
|
color: var(--muted);
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
margin-bottom: 2rem;
|
|
}
|
|
.backlink:hover {
|
|
color: var(--accent);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
* {
|
|
animation-duration: 0.001ms !important;
|
|
transition-duration: 0.001ms !important;
|
|
}
|
|
}
|