7c5cf2fa68
deploy / deploy (push) Successful in 9s
Header background is now a dark-ink-to-accent gradient instead of a flat color, with the mountain/sun mark inlined next to the wordmark. Text stays within the ink-dominant zone of the gradient so contrast holds; dark mode gets its own ink value distinct from --bg so the band doesn't blend into the page.
340 lines
7.8 KiB
CSS
340 lines
7.8 KiB
CSS
/* ==========================================================================
|
|
west575.org — site stylesheet
|
|
|
|
Fonts: Fraunces (headings) — a soft-edged serif with a lot of character
|
|
at display sizes, so headings read as written-by-a-person rather than
|
|
templated. Work Sans (body/UI) — a plain, well-built humanist sans that
|
|
stays out of the way at paragraph length. Loaded from Google Fonts in
|
|
layouts/_default/baseof.html.
|
|
|
|
Accent: one color, a warm terracotta/marigold (#d9531e). Picked because
|
|
it reads as a highlighter or a sticky note, not a corporate swatch —
|
|
nothing here is trying to look like a SaaS product or a publisher's
|
|
imprint, just a person's site with one confident splash of color.
|
|
========================================================================== */
|
|
|
|
:root {
|
|
color-scheme: light dark;
|
|
|
|
--bg: #fbf8f3;
|
|
--bg-raised: #f2ece1;
|
|
--fg: #241f19;
|
|
--fg-muted: #6e6559;
|
|
--border: #e2d8c7;
|
|
|
|
--accent: #d9531e;
|
|
--accent-fg: #ffffff;
|
|
/* Same hue as --accent, darkened for button/link contrast on light bg
|
|
(white-on-#d9531e is 3.6:1, fails WCAG AA for normal text; this pairing
|
|
hits 4.7:1 against --bg-raised and 5.1:1 for --accent-fg on --cta). */
|
|
--cta: #b8431a;
|
|
--cta-fg: #ffffff;
|
|
|
|
--radius: 0.4rem;
|
|
--max-width: 40rem;
|
|
|
|
--font-heading: "Fraunces", Georgia, "Times New Roman", serif;
|
|
--font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
|
|
/* Header banner: a fixed dark "ink" base regardless of site theme, with
|
|
the accent only showing up as a glow near the bottom edge — keeps the
|
|
gradient sunset-y without ever sitting text on top of the accent
|
|
color (white-on-accent fails contrast, see --cta note above). */
|
|
--header-ink: #241f19;
|
|
--header-accent: var(--accent);
|
|
--header-fg: #fbf8f3;
|
|
--header-fg-muted: rgba(251, 248, 243, 0.72);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--bg: #1a1611;
|
|
--bg-raised: #241f19;
|
|
--fg: #f2ece1;
|
|
--fg-muted: #b3a795;
|
|
--border: #3a3227;
|
|
|
|
--accent: #f0834f;
|
|
--accent-fg: #1a1611;
|
|
--cta: #f0834f;
|
|
--cta-fg: #1a1611;
|
|
|
|
/* Distinctly darker than dark-mode --bg (#1a1611), so the band still
|
|
reads as a separate header instead of blending into the page. */
|
|
--header-ink: #100d0a;
|
|
}
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-body);
|
|
line-height: 1.65;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a { color: var(--cta); }
|
|
a:hover { text-decoration-thickness: 2px; }
|
|
|
|
.skip-link {
|
|
position: absolute;
|
|
left: -9999px;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: var(--cta);
|
|
color: var(--cta-fg);
|
|
padding: 0.75rem 1.25rem;
|
|
border-radius: 0 0 var(--radius) 0;
|
|
}
|
|
.skip-link:focus { left: 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;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: var(--font-heading);
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
color: var(--fg);
|
|
}
|
|
h1 { font-size: 2.25rem; }
|
|
h2 { font-size: 1.5rem; margin-top: 3rem; }
|
|
|
|
/* Header: a sunset gradient band — dark ink for most of the height (where
|
|
the wordmark/nav text sits, so contrast stays solid) easing into the
|
|
accent color only at the very bottom edge, behind the mark's sun. */
|
|
header.site {
|
|
background: linear-gradient(
|
|
to bottom,
|
|
var(--header-ink) 0%,
|
|
var(--header-ink) 70%,
|
|
var(--header-accent) 100%
|
|
);
|
|
}
|
|
header.site .inner {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 1.5rem 1.5rem 2.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
header.site .brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
font-family: var(--font-heading);
|
|
font-weight: 600;
|
|
font-size: 1.25rem;
|
|
color: var(--header-fg);
|
|
text-decoration: none;
|
|
}
|
|
header.site .brand-mark {
|
|
width: 1.75rem;
|
|
height: 1.75rem;
|
|
flex-shrink: 0;
|
|
}
|
|
header.site .brand-mark-peak { fill: var(--header-fg); }
|
|
header.site .brand-mark-sun { fill: var(--header-accent); }
|
|
header.site nav {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
}
|
|
header.site nav a {
|
|
color: var(--header-fg-muted);
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
}
|
|
header.site nav a:hover,
|
|
header.site nav a[aria-current="page"] {
|
|
color: var(--header-fg);
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 3.5rem 1.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.hero p { font-size: 1.1rem; }
|
|
|
|
.home-subscribe {
|
|
background: var(--bg-raised);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
padding: 2rem;
|
|
margin-top: 3rem;
|
|
}
|
|
.home-subscribe h2 { margin-top: 0; }
|
|
|
|
/* Footer: about/links on one side, a subscribe form on the other — the
|
|
one place the newsletter ask repeats on every page. */
|
|
footer.site {
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 3rem;
|
|
background: var(--bg-raised);
|
|
}
|
|
footer.site .inner {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 2rem 1.5rem;
|
|
}
|
|
footer.site .footer-top {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
footer.site .footer-about {
|
|
font-size: 0.9rem;
|
|
color: var(--fg-muted);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
footer.site .footer-about nav {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
}
|
|
footer.site .footer-about nav a {
|
|
color: var(--fg-muted);
|
|
}
|
|
footer.site .footer-about nav a:hover { color: var(--cta); }
|
|
footer.site .footer-subscribe {
|
|
min-width: 16rem;
|
|
flex: 1 1 16rem;
|
|
}
|
|
footer.site .footer-subscribe-label {
|
|
margin: 0 0 0.75rem;
|
|
font-size: 0.9rem;
|
|
color: var(--fg-muted);
|
|
}
|
|
.subscribe-form {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
.subscribe-form input[type="email"] {
|
|
flex: 1 1 12rem;
|
|
margin-bottom: 0;
|
|
}
|
|
.subscribe-status {
|
|
font-size: 0.85rem;
|
|
color: var(--fg-muted);
|
|
margin: 0.5rem 0 0;
|
|
}
|
|
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 0.7rem 1.4rem;
|
|
border-radius: var(--radius);
|
|
background: var(--cta);
|
|
color: var(--cta-fg);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border: none;
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
.btn:hover { opacity: 0.9; }
|
|
.btn-subscribe { padding: 0.7rem 1.1rem; }
|
|
|
|
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
|
|
outline: 2px solid var(--cta);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
font-weight: 600;
|
|
font-size: 0.9rem;
|
|
margin-bottom: 0.35rem;
|
|
}
|
|
input, textarea {
|
|
width: 100%;
|
|
padding: 0.6rem 0.75rem;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
font-family: inherit;
|
|
font-size: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.field-honeypot {
|
|
position: absolute;
|
|
left: -9999px;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.contact-form { max-width: 28rem; margin-top: 2rem; }
|
|
.contact-status { color: var(--fg-muted); }
|
|
.lede { color: var(--fg-muted); font-size: 1.05rem; }
|
|
|
|
/* Post list (home page + /posts/) */
|
|
.post-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 1.5rem 0;
|
|
}
|
|
.post-list-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 0.75rem 0;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.post-list-item a {
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
color: var(--fg);
|
|
}
|
|
.post-list-item a:hover { color: var(--cta); }
|
|
.post-date {
|
|
color: var(--fg-muted);
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Single post */
|
|
.post-header { margin-bottom: 2rem; }
|
|
.post-meta {
|
|
color: var(--fg-muted);
|
|
font-size: 0.9rem;
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
.post-tags { display: flex; gap: 0.5rem; }
|
|
.post-tag {
|
|
background: var(--bg-raised);
|
|
border: 1px solid var(--border);
|
|
border-radius: 999px;
|
|
padding: 0.15rem 0.65rem;
|
|
font-size: 0.8rem;
|
|
}
|
|
.post-body { font-size: 1.05rem; }
|
|
.post-body p { margin: 1.25rem 0; }
|