Initial rewrite
This commit is contained in:
parent
a5f64a3ff8
commit
0d183c8335
200 changed files with 12537 additions and 18659 deletions
916
src/styles/global.css
Normal file
916
src/styles/global.css
Normal file
|
|
@ -0,0 +1,916 @@
|
|||
@font-face {
|
||||
font-family: 'Source Sans 3';
|
||||
src: url('/fonts/source-sans-3-latin-variable.woff2') format('woff2-variations');
|
||||
font-style: normal;
|
||||
font-weight: 200 900;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Mono';
|
||||
src: url('/fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'IBM Plex Mono';
|
||||
src: url('/fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--font-sans:
|
||||
'Source Sans 3', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
||||
'Segoe UI', sans-serif;
|
||||
--font-mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
|
||||
|
||||
--bg: #fbfaf7;
|
||||
--text: #181817;
|
||||
--muted: #6b6860;
|
||||
--link: #285f74;
|
||||
--link-hover: #8a4b2f;
|
||||
--accent: #b7455e;
|
||||
--rule: #d9d5ca;
|
||||
--rule-strong: #7f7668;
|
||||
--code-bg: #efede6;
|
||||
--callout-bg: #f4f1e8;
|
||||
|
||||
--measure: 40rem;
|
||||
--measure-wide: 62rem;
|
||||
--page: 72rem;
|
||||
--gutter: clamp(16px, 5vw, 24px);
|
||||
|
||||
--space-1: 0.25rem;
|
||||
--space-2: 0.5rem;
|
||||
--space-3: 0.75rem;
|
||||
--space-4: 1rem;
|
||||
--space-6: 1.5rem;
|
||||
--space-8: 2rem;
|
||||
--space-12: 3rem;
|
||||
--space-16: 4rem;
|
||||
|
||||
--text-caption: 0.875rem;
|
||||
--text-body: 1.0625rem;
|
||||
--text-title-mobile: 2rem;
|
||||
--leading-prose: 1.65;
|
||||
--leading-heading: 1.18;
|
||||
}
|
||||
|
||||
:root[data-theme='dark'] {
|
||||
color-scheme: dark;
|
||||
--bg: #151514;
|
||||
--text: #f1eee7;
|
||||
--muted: #b7afa3;
|
||||
--link: #8ab8c8;
|
||||
--link-hover: #d6a17f;
|
||||
--accent: #e18498;
|
||||
--rule: #39352f;
|
||||
--rule-strong: #d0c5b7;
|
||||
--code-bg: #24221f;
|
||||
--callout-bg: #211f1c;
|
||||
}
|
||||
|
||||
:root[data-theme='light'] {
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root:not([data-theme='light']) {
|
||||
color-scheme: dark;
|
||||
--bg: #151514;
|
||||
--text: #f1eee7;
|
||||
--muted: #b7afa3;
|
||||
--link: #8ab8c8;
|
||||
--link-hover: #d6a17f;
|
||||
--accent: #e18498;
|
||||
--rule: #39352f;
|
||||
--rule-strong: #d0c5b7;
|
||||
--code-bg: #24221f;
|
||||
--callout-bg: #211f1c;
|
||||
}
|
||||
}
|
||||
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
overflow-x: hidden;
|
||||
background: var(--bg);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font-family: var(--font-sans);
|
||||
font-size: var(--text-body);
|
||||
line-height: var(--leading-prose);
|
||||
text-rendering: optimizeLegibility;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
}
|
||||
|
||||
button,
|
||||
input,
|
||||
textarea,
|
||||
select {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
img,
|
||||
video,
|
||||
canvas,
|
||||
svg {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
main:focus {
|
||||
outline: none;
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--link);
|
||||
text-decoration-thickness: 0.08em;
|
||||
text-underline-offset: 0.18em;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
|
||||
:focus-visible {
|
||||
outline: 2px solid var(--rule-strong);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
::selection {
|
||||
background: #dce9ed;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: var(--gutter);
|
||||
top: var(--space-3);
|
||||
z-index: 10;
|
||||
transform: translateY(-150%);
|
||||
background: var(--text);
|
||||
color: var(--bg);
|
||||
padding: var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
.skip-link:focus {
|
||||
transform: translateY(0);
|
||||
}
|
||||
|
||||
.site-header,
|
||||
.site-footer,
|
||||
.home-intro,
|
||||
.home-section,
|
||||
.page-shell,
|
||||
.post {
|
||||
width: min(100% - 2 * var(--gutter), var(--page));
|
||||
margin-inline: auto;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
padding-block: var(--space-8) var(--space-6);
|
||||
border-bottom: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
.site-title {
|
||||
color: var(--text);
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-6);
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.site-nav {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-4);
|
||||
}
|
||||
|
||||
.site-nav a,
|
||||
.site-footer a {
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.site-nav a:hover,
|
||||
.site-nav a[aria-current='page'],
|
||||
.site-footer a:hover {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.theme-control {
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.theme-switcher {
|
||||
--theme-switcher-width: 2.5rem;
|
||||
--theme-switcher-height: 1.25rem;
|
||||
--theme-switcher-icon: 0.85rem;
|
||||
--theme-switcher-mask: 0.68rem;
|
||||
--theme-switcher-gap: 0.2rem;
|
||||
--theme-switcher-mask-offset: 0.28rem;
|
||||
--theme-switcher-track: var(--accent);
|
||||
--theme-switcher-sun: #f7f78c;
|
||||
--theme-switcher-moon: #f1eee7;
|
||||
|
||||
position: relative;
|
||||
display: block;
|
||||
width: var(--theme-switcher-width);
|
||||
height: var(--theme-switcher-height);
|
||||
margin: 0;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 999px;
|
||||
appearance: none;
|
||||
cursor: pointer;
|
||||
background: var(--theme-switcher-track);
|
||||
box-shadow:
|
||||
inset 0 0 10px 2px rgb(0 0 0 / 17.5%),
|
||||
inset 0 0 1px rgb(0 0 0 / 40%);
|
||||
}
|
||||
|
||||
.theme-switcher:hover {
|
||||
border-color: var(--rule-strong);
|
||||
}
|
||||
|
||||
.theme-switcher::before,
|
||||
.theme-switcher::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
display: block;
|
||||
border-radius: 999px;
|
||||
transition:
|
||||
transform 180ms ease,
|
||||
background-color 180ms ease,
|
||||
box-shadow 180ms ease,
|
||||
filter 180ms ease;
|
||||
}
|
||||
|
||||
.theme-switcher::before {
|
||||
z-index: 1;
|
||||
width: var(--theme-switcher-icon);
|
||||
height: var(--theme-switcher-icon);
|
||||
}
|
||||
|
||||
.theme-switcher::after {
|
||||
z-index: 2;
|
||||
width: var(--theme-switcher-mask);
|
||||
height: var(--theme-switcher-mask);
|
||||
}
|
||||
|
||||
.theme-switcher:not(:checked)::before {
|
||||
transform: translateY(-50%)
|
||||
translateX(
|
||||
calc(
|
||||
var(--theme-switcher-width) - var(--theme-switcher-icon) -
|
||||
var(--theme-switcher-gap)
|
||||
)
|
||||
);
|
||||
animation: theme-switcher-shine 2s linear alternate infinite;
|
||||
background-color: var(--theme-switcher-sun);
|
||||
}
|
||||
|
||||
.theme-switcher:not(:checked)::after {
|
||||
transform: translateY(-50%) translateX(var(--theme-switcher-width));
|
||||
}
|
||||
|
||||
.theme-switcher:checked::before {
|
||||
transform: translateY(-50%) translateX(var(--theme-switcher-gap));
|
||||
background-color: var(--theme-switcher-moon);
|
||||
}
|
||||
|
||||
.theme-switcher:checked::after {
|
||||
transform: translateY(-50%)
|
||||
translateX(calc(var(--theme-switcher-gap) + var(--theme-switcher-mask-offset)));
|
||||
background-color: var(--theme-switcher-track);
|
||||
}
|
||||
|
||||
@keyframes theme-switcher-shine {
|
||||
from {
|
||||
filter: brightness(1.01);
|
||||
box-shadow: 0 0 4px 2px var(--theme-switcher-sun);
|
||||
}
|
||||
|
||||
to {
|
||||
filter: brightness(1.18);
|
||||
box-shadow: 0 0 11px 2px var(--theme-switcher-sun);
|
||||
}
|
||||
}
|
||||
|
||||
.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;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
border-top: 1px solid var(--rule);
|
||||
margin-top: var(--space-16);
|
||||
padding-block: var(--space-6) var(--space-8);
|
||||
}
|
||||
|
||||
.site-footer p {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.site-footer span {
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.home-intro {
|
||||
max-width: var(--measure-wide);
|
||||
padding-block: clamp(3rem, 8vw, 6rem) var(--space-12);
|
||||
}
|
||||
|
||||
.home-intro h1,
|
||||
.page-header h1,
|
||||
.post-header h1 {
|
||||
max-width: var(--measure-wide);
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-size: clamp(var(--text-title-mobile), 6vw, 3.85rem);
|
||||
font-weight: 650;
|
||||
line-height: var(--leading-heading);
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.home-name-accent {
|
||||
color: var(--accent);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.93em;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.home-intro p:not(.eyebrow),
|
||||
.page-header p,
|
||||
.dek {
|
||||
max-width: var(--measure);
|
||||
color: var(--muted);
|
||||
font-size: clamp(1.08rem, 2vw, 1.25rem);
|
||||
}
|
||||
|
||||
.eyebrow,
|
||||
.post-meta,
|
||||
.project-meta {
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.eyebrow {
|
||||
margin: 0 0 var(--space-3);
|
||||
font-weight: 650;
|
||||
letter-spacing: 0.02em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.home-section,
|
||||
.page-shell {
|
||||
margin-top: var(--space-12);
|
||||
}
|
||||
|
||||
.section-heading {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: space-between;
|
||||
gap: var(--space-4);
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: var(--space-2);
|
||||
border-top: 1px solid var(--rule);
|
||||
padding-top: var(--space-6);
|
||||
}
|
||||
|
||||
.section-heading h2,
|
||||
.archive-year h2,
|
||||
.project-section h2,
|
||||
.facts h2,
|
||||
.at-a-glance h2 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
font-weight: 650;
|
||||
line-height: 1.3;
|
||||
}
|
||||
|
||||
.section-heading a {
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.article-list,
|
||||
.project-list {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.project-list {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
|
||||
gap: var(--space-3);
|
||||
align-items: stretch;
|
||||
}
|
||||
|
||||
.article-list > li {
|
||||
display: grid;
|
||||
grid-template-columns: 8rem minmax(0, 1fr) 10rem;
|
||||
grid-template-areas: 'date content thumb';
|
||||
align-items: start;
|
||||
gap: var(--space-4);
|
||||
padding-block: var(--space-5, 1.25rem);
|
||||
border-top: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
.project-card {
|
||||
display: grid;
|
||||
grid-template-columns: clamp(5.5rem, 28%, 7rem) minmax(0, 1fr);
|
||||
grid-template-areas:
|
||||
'thumb summary'
|
||||
'details details';
|
||||
align-items: start;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 8px;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.project-card:target {
|
||||
border-color: var(--rule-strong);
|
||||
}
|
||||
|
||||
.article-list > li:first-child {
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.article-list time {
|
||||
grid-area: date;
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.article-list > li > div {
|
||||
grid-area: content;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.project-card__summary {
|
||||
grid-area: summary;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-2);
|
||||
min-width: 0;
|
||||
padding: var(--space-3);
|
||||
}
|
||||
|
||||
.project-card__details {
|
||||
grid-area: details;
|
||||
min-width: 0;
|
||||
padding: 0 var(--space-3) var(--space-3);
|
||||
}
|
||||
|
||||
.entry-thumbnail {
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 6px;
|
||||
background: var(--code-bg);
|
||||
aspect-ratio: 4 / 3;
|
||||
}
|
||||
|
||||
.entry-thumbnail img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
a.entry-thumbnail {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.entry-thumbnail:hover,
|
||||
a.entry-thumbnail:focus-visible {
|
||||
border-color: var(--rule-strong);
|
||||
}
|
||||
|
||||
.article-thumbnail {
|
||||
grid-area: thumb;
|
||||
}
|
||||
|
||||
.project-card .project-thumbnail {
|
||||
grid-area: thumb;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
min-height: 0;
|
||||
border: 0;
|
||||
border-right: 1px solid var(--rule);
|
||||
border-radius: 0;
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.project-card a.project-thumbnail:hover,
|
||||
.project-card a.project-thumbnail:focus-visible {
|
||||
border-right-color: var(--rule-strong);
|
||||
}
|
||||
|
||||
.article-list .entry-title,
|
||||
.project-list h3 a {
|
||||
color: var(--text);
|
||||
font-weight: 650;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.article-list .entry-title:hover,
|
||||
.project-list h3 a:hover {
|
||||
color: var(--link-hover);
|
||||
}
|
||||
|
||||
.article-list p,
|
||||
.project-list p {
|
||||
margin: var(--space-1) 0 0;
|
||||
color: var(--muted);
|
||||
}
|
||||
|
||||
.project-card p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.project-card .project-description {
|
||||
margin-bottom: var(--space-2);
|
||||
color: var(--text);
|
||||
font-size: 0.95rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.project-card .project-meta {
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.tag-list {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-2);
|
||||
margin: var(--space-2) 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.tag-list a {
|
||||
min-height: 1.75rem;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tag-list a::before {
|
||||
content: '#';
|
||||
color: var(--rule-strong);
|
||||
}
|
||||
|
||||
.tag-list a:hover,
|
||||
.tag-list a[aria-current='page'] {
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.tag-filter {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: 0 0 var(--space-8);
|
||||
padding-block: var(--space-3);
|
||||
border-block: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
.tag-filter > span {
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.page-header,
|
||||
.post-header {
|
||||
max-width: var(--measure-wide);
|
||||
padding-block: var(--space-12) var(--space-8);
|
||||
}
|
||||
|
||||
.post-header .dek {
|
||||
margin-block: var(--space-4) 0;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
margin-block: var(--space-3) 0;
|
||||
}
|
||||
|
||||
.prose {
|
||||
max-inline-size: var(--measure);
|
||||
}
|
||||
|
||||
.post > .prose,
|
||||
.post > .at-a-glance,
|
||||
.facts {
|
||||
max-width: var(--measure-wide);
|
||||
}
|
||||
|
||||
.archive-year,
|
||||
.project-section {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.project-section + .project-section {
|
||||
margin-top: var(--space-8);
|
||||
}
|
||||
|
||||
.project-section h2 {
|
||||
margin-bottom: var(--space-3);
|
||||
}
|
||||
|
||||
.about-section {
|
||||
width: 100%;
|
||||
margin-top: var(--space-8);
|
||||
}
|
||||
|
||||
.about-section.facts {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.about-section.facts > .prose {
|
||||
margin-top: var(--space-4);
|
||||
}
|
||||
|
||||
.post > .prose {
|
||||
margin-top: var(--space-8);
|
||||
}
|
||||
|
||||
.post-thumbnail {
|
||||
max-inline-size: var(--measure-wide);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-thumbnail img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 6px;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
.prose > * {
|
||||
margin-block: 0;
|
||||
}
|
||||
|
||||
.prose > * + * {
|
||||
margin-top: 1.05em;
|
||||
}
|
||||
|
||||
.prose h2,
|
||||
.prose h3 {
|
||||
color: var(--text);
|
||||
line-height: 1.22;
|
||||
}
|
||||
|
||||
.prose h2 {
|
||||
margin-top: var(--space-12);
|
||||
font-size: 1.45rem;
|
||||
}
|
||||
|
||||
.prose h3 {
|
||||
margin-top: var(--space-8);
|
||||
font-size: 1.15rem;
|
||||
}
|
||||
|
||||
.prose ul,
|
||||
.prose ol {
|
||||
padding-left: 1.25rem;
|
||||
}
|
||||
|
||||
.prose li + li {
|
||||
margin-top: var(--space-1);
|
||||
}
|
||||
|
||||
.prose code {
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.88em;
|
||||
background: var(--code-bg);
|
||||
border-radius: 4px;
|
||||
padding: 0.08em 0.25em;
|
||||
}
|
||||
|
||||
.prose pre {
|
||||
max-width: 100%;
|
||||
overflow-x: auto;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
padding: var(--space-4);
|
||||
background: var(--code-bg);
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 6px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.prose pre code {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.at-a-glance {
|
||||
margin-top: var(--space-8);
|
||||
padding-block: var(--space-4);
|
||||
border-block: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
.at-a-glance dl,
|
||||
.facts dl {
|
||||
display: grid;
|
||||
grid-template-columns: 8rem minmax(0, var(--measure));
|
||||
gap: var(--space-2) var(--space-4);
|
||||
margin: var(--space-4) 0 0;
|
||||
}
|
||||
|
||||
.at-a-glance dt,
|
||||
.facts dt {
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.at-a-glance dd,
|
||||
.facts dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.project-links {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: var(--space-1) var(--space-3);
|
||||
margin: var(--space-3) 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.project-links a {
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
color: var(--link);
|
||||
}
|
||||
|
||||
.project-card .project-links {
|
||||
gap: 0 var(--space-3);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.project-card .project-links a {
|
||||
min-height: 2rem;
|
||||
font-size: var(--text-caption);
|
||||
}
|
||||
|
||||
.project-list h3 {
|
||||
margin: 0;
|
||||
font-size: 1rem;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.evidence-media {
|
||||
max-inline-size: min(100%, var(--measure-wide));
|
||||
margin: var(--space-8) 0 0;
|
||||
}
|
||||
|
||||
.evidence-media img,
|
||||
.evidence-media video {
|
||||
display: block;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 6px;
|
||||
background: var(--code-bg);
|
||||
}
|
||||
|
||||
.evidence-media figcaption,
|
||||
.media-transcript {
|
||||
max-width: var(--measure);
|
||||
margin-top: var(--space-2);
|
||||
color: var(--muted);
|
||||
font-size: var(--text-caption);
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.facts {
|
||||
margin-top: var(--space-8);
|
||||
padding-top: var(--space-6);
|
||||
border-top: 1px solid var(--rule);
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
.site-header {
|
||||
padding-block: var(--space-6) var(--space-4);
|
||||
}
|
||||
|
||||
.home-intro {
|
||||
padding-block: var(--space-12) var(--space-8);
|
||||
}
|
||||
|
||||
.article-list > li,
|
||||
.at-a-glance dl,
|
||||
.facts dl {
|
||||
grid-template-columns: 1fr;
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
.article-list > li {
|
||||
grid-template-columns: 5rem minmax(0, 1fr);
|
||||
grid-template-areas:
|
||||
'thumb content'
|
||||
'date content';
|
||||
gap: var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
.article-list > li {
|
||||
padding-block: var(--space-4);
|
||||
}
|
||||
|
||||
.article-list .entry-thumbnail {
|
||||
aspect-ratio: 1;
|
||||
}
|
||||
|
||||
.project-card__summary {
|
||||
padding: var(--space-2) var(--space-3);
|
||||
}
|
||||
|
||||
.project-card__details {
|
||||
padding: 0 var(--space-3) var(--space-3);
|
||||
}
|
||||
|
||||
.project-card .project-links a {
|
||||
min-height: 44px;
|
||||
}
|
||||
|
||||
.page-header,
|
||||
.post-header {
|
||||
padding-block: var(--space-8) var(--space-6);
|
||||
}
|
||||
|
||||
.post > .prose {
|
||||
margin-top: var(--space-6);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
scroll-behavior: auto !important;
|
||||
transition: none !important;
|
||||
animation: none !important;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue