Restyle the frontend as an editorial magazine layout

Centred wordmark over a rule of category links, a lead article above a grid of
cards, centred article headers over a narrow reading column, and a footer split
into columns. Neutral warm-grey palette with a serif display face for headings
and small uppercase labels for metadata.
This commit is contained in:
2026-08-25 12:22:05 +02:00
parent 005c90f33a
commit 55b70f0805
7 changed files with 499 additions and 175 deletions
+128 -38
View File
@@ -1,13 +1,20 @@
:root {
--color-text: #16181d;
--color-muted: #5b6270;
--color-bg: #ffffff;
--color-surface: #f5f6f8;
--color-border: #e2e5ea;
--color-accent: #2f4bd8;
--radius: 10px;
--width: 68rem;
--space: 1.25rem;
/* Neutral editorial palette: warm off-white paper, near-black ink. */
--color-ink: #14130f;
--color-body: #3d3a34;
--color-muted: #857f74;
--color-bg: #fbfaf7;
--color-surface: #f1efe9;
--color-border: #e0ddd4;
--color-rule: #14130f;
--font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
--width: 76rem;
--width-prose: 40rem;
--space: 1.5rem;
--radius: 2px;
}
*,
@@ -18,32 +25,38 @@
body {
margin: 0;
color: var(--color-text);
color: var(--color-body);
background: var(--color-bg);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
font-size: 1.05rem;
line-height: 1.65;
font-family: var(--font-sans);
font-size: 1rem;
line-height: 1.7;
-webkit-font-smoothing: antialiased;
}
img {
display: block;
max-width: 100%;
height: auto;
}
a {
color: var(--color-accent);
color: inherit;
}
h1,
h2,
h3 {
line-height: 1.25;
margin: 0;
color: var(--color-ink);
font-family: var(--font-display);
font-weight: 400;
line-height: 1.2;
text-wrap: balance;
}
:focus-visible {
outline: 3px solid var(--color-accent);
outline-offset: 2px;
outline: 2px solid var(--color-ink);
outline-offset: 3px;
}
.container {
@@ -64,52 +77,129 @@ h3 {
z-index: 10;
padding: 0.5rem 0.75rem;
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius);
border: 1px solid var(--color-ink);
}
.muted {
color: var(--color-muted);
}
/* Small uppercase label used for categories, dates and section headings. */
.kicker {
margin: 0;
font-family: var(--font-sans);
font-size: 0.7rem;
font-weight: 600;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--color-muted);
}
.section-heading {
display: flex;
align-items: center;
gap: 1.25rem;
margin-block: 4rem 2rem;
}
.section-heading::after {
content: "";
flex: 1;
height: 1px;
background: var(--color-border);
}
/* Centred title block at the top of a listing page. */
.page-header {
margin-bottom: 3.5rem;
padding-bottom: 2rem;
text-align: center;
border-bottom: 1px solid var(--color-border);
}
.page-header h1 {
font-size: clamp(2rem, 5vw, 3rem);
}
.page-header .kicker {
margin-bottom: 0.75rem;
}
.card-grid {
display: grid;
gap: 1.75rem;
grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
gap: 3rem 2.5rem;
grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
padding: 0;
margin: 0;
list-style: none;
}
/* Article body */
.prose {
max-width: 44rem;
max-width: var(--width-prose);
font-size: 1.075rem;
}
.prose h2,
.prose h3 {
margin-block: 2.5rem 0.75rem;
}
.prose h2 {
font-size: 1.6rem;
}
.prose h3 {
font-size: 1.25rem;
}
.prose p,
.prose ul,
.prose ol {
margin-block: 0 1.4rem;
}
.prose a {
text-decoration: underline;
text-underline-offset: 0.2em;
}
.prose blockquote {
margin: 2.5rem 0;
padding-left: 1.5rem;
border-left: 2px solid var(--color-ink);
font-family: var(--font-display);
font-size: 1.3rem;
line-height: 1.45;
color: var(--color-ink);
}
.prose img {
border-radius: var(--radius);
margin-block: 2rem;
}
.prose pre {
overflow-x: auto;
padding: 1rem;
padding: 1rem 1.25rem;
background: var(--color-surface);
border-radius: var(--radius);
font-size: 0.9rem;
}
.tag-list {
.prose code {
font-size: 0.9em;
}
.pagination {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
padding: 0;
margin: 2rem 0 0;
list-style: none;
}
.tag-list a {
display: inline-block;
padding: 0.15rem 0.6rem;
font-size: 0.9rem;
background: var(--color-surface);
border-radius: 999px;
text-decoration: none;
gap: 2rem;
align-items: center;
justify-content: center;
margin-top: 4rem;
padding-top: 2rem;
border-top: 1px solid var(--color-border);
font-size: 0.85rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}