mirror of
https://github.com/Nutlope/hallmark.git
synced 2026-08-14 12:35:33 +02:00
· Footer: stripped Ft1–Ft4 archetypes (.foot--masthead, .foot--inline, .foot--index, .foot--dense) + their helper classes (.foot__tagline, .foot__links, .foot__powered, .foot__col-head, .foot__wordmark-small, .foot__sep, .foot__credits) — every theme uses .foot--colophon now. · Hero: dropped H6 Photographic, H7 Clipped, H8 Specimen archetype blocks (404 lines of CSS) plus per-theme overrides on .hero__photo, .hero__photo-grid, .hero__mock, .hero--clipped — no theme references any of these archetypes after the recent reroutes. · Templates: removed `<template id="section-04-archive-without-with">`, `<template id="section-05-archive-foundations-tabs">` (revertibility archives — superseded), and the three dead hero templates. · Local fonts: deleted site/fonts/the-future-*.woff2 (8 files) and the empty site/fonts/ directory. Geist + Geist Mono cover all type roles. · Media: dropped the unprocessed BananaStudio-example.mp4, Podcast-example.mp4, SaaS-example.mp4 — only the -loop.mp4 versions are referenced. · main.js: removed buildDenseColophon() helper (dense colophon never rendered after the unified footer rework). Total: ~930 lines removed. No visual regression. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
195 lines
6.2 KiB
CSS
195 lines
6.2 KiB
CSS
/* Hallmark — base: fonts, reset, body */
|
|
|
|
/* — Google Fonts — all theme display & alt faces ——————————— */
|
|
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Instrument+Serif:ital@0;1&family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&family=DM+Serif+Display:ital@0;1&family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..700&family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:ital,wght@0,300;0,400;0,500;0,600;1,400&family=JetBrains+Mono:ital,wght@0,400;0,500;0,700;1,400&display=swap");
|
|
|
|
/* — Reset ———————————————————————————————————————————— */
|
|
*, *::before, *::after { box-sizing: border-box; }
|
|
|
|
html { -webkit-text-size-adjust: 100%; }
|
|
|
|
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
|
|
margin: 0;
|
|
}
|
|
|
|
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
|
|
|
|
button, input, select, textarea {
|
|
font: inherit;
|
|
color: inherit;
|
|
}
|
|
|
|
button { background: none; border: 0; padding: 0; cursor: pointer; }
|
|
|
|
a { color: inherit; text-decoration: none; }
|
|
|
|
ul, ol { margin: 0; padding: 0; list-style: none; }
|
|
|
|
:focus { outline: none; }
|
|
:focus-visible {
|
|
outline: 2px solid var(--color-focus);
|
|
outline-offset: 3px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
/* — Theme transitions — targeted so type swap feels intentional —— */
|
|
html,
|
|
body,
|
|
.nav,
|
|
.opening__title,
|
|
.opening__sub,
|
|
.section__title,
|
|
.spec__name,
|
|
.spec__rule,
|
|
.tell,
|
|
.tell__viz,
|
|
.tell__meta,
|
|
.tell__name,
|
|
.tell__why,
|
|
.step__head,
|
|
.step__sub,
|
|
.install__body,
|
|
.foot,
|
|
.code,
|
|
.swatch,
|
|
.section__head,
|
|
.vs,
|
|
.vs__col,
|
|
.vs__caption,
|
|
hr.rule,
|
|
.themer,
|
|
.themer__btn {
|
|
transition:
|
|
background-color var(--dur-short) var(--ease-out),
|
|
color var(--dur-short) var(--ease-out),
|
|
border-color var(--dur-short) var(--ease-out);
|
|
}
|
|
|
|
/* — Body ————————————————————————————————————————————— */
|
|
html {
|
|
background: var(--color-paper);
|
|
color: var(--color-ink);
|
|
/* Hard stop on horizontal overflow at the root. `clip` (not `hidden`)
|
|
so descendants with `position: sticky` keep working. */
|
|
overflow-x: clip;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-body);
|
|
font-weight: 400;
|
|
font-size: var(--text-base);
|
|
line-height: var(--lh-relaxed);
|
|
letter-spacing: var(--tracking-normal);
|
|
font-feature-settings: "ss01", "ss02", "cv01";
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
min-height: 100dvh;
|
|
padding-inline: max(var(--page-gutter), env(safe-area-inset-left));
|
|
padding-block-end: env(safe-area-inset-bottom);
|
|
overflow-x: clip;
|
|
}
|
|
|
|
/* Long-word safety: hero display headlines must break inside long
|
|
words on narrow viewports rather than push the layout wider than
|
|
the viewport. Critical for hyphenated brand-style words like
|
|
"AI-generated" in uppercase / heavy display faces. */
|
|
.hero__display,
|
|
.section__title,
|
|
.skill-row__title {
|
|
overflow-wrap: anywhere;
|
|
min-width: 0;
|
|
}
|
|
|
|
/* — Selection ——————————————————————————————————————— */
|
|
::selection {
|
|
background: var(--color-accent);
|
|
color: var(--color-paper);
|
|
}
|
|
|
|
/* — Typography primitives ——————————————————————————— */
|
|
h1, h2, h3, h4 {
|
|
font-family: var(--font-display);
|
|
font-weight: var(--display-weight, 400);
|
|
font-style: var(--display-style, normal);
|
|
line-height: var(--lh-tight);
|
|
letter-spacing: var(--tracking-display);
|
|
color: var(--color-ink);
|
|
font-optical-sizing: auto;
|
|
font-variation-settings:
|
|
"opsz" var(--display-optical, 48),
|
|
"SOFT" var(--display-soft, 0);
|
|
}
|
|
|
|
h1 { font-size: var(--text-display); }
|
|
h2 { font-size: var(--text-display-s); }
|
|
h3 { font-size: var(--text-xl); font-weight: 500; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); font-style: normal; font-variation-settings: normal; }
|
|
h4 { font-size: var(--text-md); font-weight: 500; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); font-style: normal; font-variation-settings: normal; }
|
|
|
|
p { max-width: var(--measure); }
|
|
|
|
strong { font-weight: 500; }
|
|
|
|
em { font-style: italic; }
|
|
|
|
code, kbd, samp, pre {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9em;
|
|
font-feature-settings: "tnum";
|
|
}
|
|
|
|
/* — Utility: label (small caps numbering) —————————— */
|
|
.label {
|
|
font-family: var(--font-label);
|
|
font-size: var(--text-xs);
|
|
font-weight: 400;
|
|
letter-spacing: var(--tracking-label);
|
|
text-transform: uppercase;
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
/* — Utility: rule (hairline divider) ———————————————— */
|
|
.rule {
|
|
border: 0;
|
|
border-top: var(--rule-hair) solid var(--color-rule);
|
|
margin: 0;
|
|
}
|
|
|
|
.rule-strong {
|
|
border-top-color: var(--color-rule-2);
|
|
border-top-width: var(--rule-fine);
|
|
}
|
|
|
|
/* — Utility: serif (editorial emphasis) ———————————— */
|
|
.serif {
|
|
font-family: var(--font-serif);
|
|
font-weight: 400;
|
|
font-optical-sizing: auto;
|
|
font-variant-numeric: oldstyle-nums;
|
|
}
|
|
|
|
.serif-italic {
|
|
font-family: var(--font-serif);
|
|
font-style: italic;
|
|
font-weight: 400;
|
|
}
|
|
|
|
/* — Utility: tabular numbers ————————————————————————— */
|
|
.tnum { font-variant-numeric: tabular-nums; }
|
|
|
|
/* — Utility: container ————————————————————————————————— */
|
|
.container {
|
|
max-width: var(--page-max);
|
|
margin-inline: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
/* — Orange square (the accent mark) ——————————————————— */
|
|
.mark {
|
|
display: inline-block;
|
|
width: 0.55em;
|
|
height: 0.55em;
|
|
background: var(--color-accent);
|
|
vertical-align: 0.04em;
|
|
transition: background-color var(--dur-short) var(--ease-out);
|
|
}
|