/* ==========================================================================
Thistle & Moth — site stylesheet
Fonts: EB Garamond (headings), Source Serif 4 (body), Inter (UI chrome)
Palette: emerald banner / cobalt accent / parchment & ink / gold & thistle
ornaments — see the "Thistle & Moth — Visual Identity" reference for the
full rationale behind these choices.
========================================================================== */
/* --------------------------------------------------------------------------
1. Font loading
Self-hosted is preferable to a Google Fonts CDN call for both
privacy and reliability. Drop the .woff2 files in /assets/fonts/
and adjust paths below. If you'd rather use Google Fonts directly,
swap this block for @import statements or a in your head
partial instead — either works, just don't do both.
-------------------------------------------------------------------------- */
@font-face {
font-family: "EB Garamond";
src: url("/fonts/EBGaramond-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "EB Garamond";
src: url("/fonts/EBGaramond-Medium.woff2") format("woff2");
font-weight: 600;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Source Serif 4";
src: url("/fonts/SourceSerif4-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: "Source Serif 4";
src: url("/fonts/SourceSerif4-Italic.woff2") format("woff2");
font-weight: 400;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: "Inter";
src: url("/fonts/Inter-Regular.woff2") format("woff2");
font-weight: 400;
font-style: normal;
font-display: swap;
}
/* --------------------------------------------------------------------------
2. Design tokens
Light mode: an open page in daylight — parchment ground, ink text.
Dark mode (below, @media prefers-color-scheme): the same page read by
lamplight — a deep emerald-black ground holding the parchment content
surface, rather than a naive color inversion.
-------------------------------------------------------------------------- */
:root {
/* Color — light (default) */
--color-bg: #f6f0df; /* parchment page ground */
--color-bg-raised: #fbf7ec; /* cards, code blocks, pull-quote background */
--color-ink: #241c14; /* body text — warm, not flat black */
--color-ink-heading: #1a140d; /* headings, strongest contrast */
--color-ink-soft: #4a3f30; /* metadata, dividers, quiet secondary text */
--color-border: #d8c9a3;
--color-accent: #1d4f91; /* cobalt — links, rules, emphasis */
--color-accent-hover: #163b70;
--color-gold: #a9812e; /* ornament — drop caps, sparingly */
--color-thistle: #6e5a87; /* ornament — tags, quiet secondary accent */
--color-thistle-bg: #e7e0ee;
--color-banner-bg: #0b6e4f; /* emerald banner ground */
--color-banner-bg-deep: #084c37;
--color-banner-text: #f2ecdc; /* warm ivory — not stark white */
/* Type */
--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
--font-heading: "EB Garamond", "Palatino Linotype", Georgia, serif;
--font-ui: "Inter", "IBM Plex Sans", -apple-system, sans-serif;
--font-size-base: 19px;
--line-height-base: 1.65;
--measure: 70ch; /* max line length for body text */
/* Spacing scale */
--space-1: 0.5rem;
--space-2: 1rem;
--space-3: 1.75rem;
--space-4: 3rem;
--space-5: 5rem;
}
@media (prefers-color-scheme: dark) {
:root {
--color-bg: #12201a;
--color-bg-raised: #efe6cd;
--color-ink: #2a2013;
--color-ink-heading: #1c150c;
--color-ink-soft: #52432c;
--color-border: #cabb92;
--color-accent: #5b83c9;
--color-accent-hover: #7b9dd6;
--color-gold: #c9a227;
--color-thistle: #9c8ab9;
--color-thistle-bg: #2a2436;
--color-banner-bg: #0a5a41;
--color-banner-bg-deep: #073f2d;
--color-banner-text: #f5efdd;
}
}
/* --------------------------------------------------------------------------
3. Base
-------------------------------------------------------------------------- */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 100%;
}
body {
background-color: var(--color-bg);
color: var(--color-ink);
font-family: var(--font-body);
font-size: var(--font-size-base);
line-height: var(--line-height-base);
margin: 0;
-webkit-font-smoothing: antialiased;
}
/* Main content column */
main {
max-width: var(--measure);
margin: 0 auto;
padding: var(--space-4) var(--space-2);
}
/* --------------------------------------------------------------------------
4. Headings
-------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading);
color: var(--color-ink-heading);
font-weight: 600;
line-height: 1.25;
margin-top: var(--space-4);
margin-bottom: var(--space-2);
}
h1 {
font-size: 2.6rem;
margin-top: 0;
}
h2 {
font-size: 2rem;
border-bottom: 1px solid var(--color-border);
padding-bottom: var(--space-1);
}
h3 {
font-size: 1.5rem;
}
h4 {
font-size: 1.2rem;
font-style: italic;
font-weight: 400;
}
/* --------------------------------------------------------------------------
5. Body text elements
-------------------------------------------------------------------------- */
p {
margin: 0 0 var(--space-2) 0;
}
a {
color: var(--color-accent);
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 0.15em;
}
a:hover,
a:focus {
color: var(--color-accent-hover);
}
/* Visible focus state — important for keyboard/screen-reader navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible {
outline: 2px solid var(--color-accent);
outline-offset: 2px;
}
strong {
color: var(--color-ink-heading);
}
em, i {
font-style: italic;
}
blockquote {
margin: var(--space-3) 0;
padding: var(--space-2) var(--space-3);
border-left: 3px solid var(--color-accent);
background-color: var(--color-bg-raised);
font-style: italic;
}
blockquote p:last-child {
margin-bottom: 0;
}
hr {
border: none;
border-top: 1px solid var(--color-gold);
width: 4rem;
margin: var(--space-4) auto;
}
/* --------------------------------------------------------------------------
6. Lists
-------------------------------------------------------------------------- */
ul, ol {
padding-left: 1.4em;
margin: 0 0 var(--space-2) 0;
}
li {
margin-bottom: 0.4em;
}
/* --------------------------------------------------------------------------
7. Code / pre
Kept legible rather than decorative — likely to appear rarely on this
site, but essays quoting Latin, TSV data, or Canon law citations
sometimes want a monospace treatment.
-------------------------------------------------------------------------- */
code, pre {
font-family: "Courier New", monospace;
font-size: 0.9em;
}
code {
background-color: var(--color-bg-raised);
padding: 0.1em 0.35em;
border-radius: 3px;
}
pre {
background-color: var(--color-bg-raised);
padding: var(--space-2);
overflow-x: auto;
border-radius: 4px;
border: 1px solid var(--color-border);
}
pre code {
background: none;
padding: 0;
}
/* --------------------------------------------------------------------------
8. UI chrome — nav, metadata, tags
Sans-serif reserved for these elements only. Never used for body prose.
-------------------------------------------------------------------------- */
.site-header,
.site-footer,
nav,
.meta,
.tags {
font-family: var(--font-ui);
}
/* The masthead — the "banner" in the visual identity reference: emerald
ground, ivory text, in both color modes (it deliberately does not follow
the page's light/dark swap the way body content does — see --color-banner-*
above, which stay emerald/ivory and only deepen slightly for dark mode). */
.site-header {
background: linear-gradient(180deg, var(--color-banner-bg) 0%, var(--color-banner-bg-deep) 100%);
padding: var(--space-3) var(--space-2);
display: flex;
align-items: baseline;
flex-wrap: wrap;
gap: var(--space-1) var(--space-3);
}
.site-title {
font-family: var(--font-heading);
font-size: 1.9rem;
font-weight: 600;
color: var(--color-banner-text);
text-decoration: none;
}
nav a {
text-decoration: none;
color: var(--color-banner-text);
opacity: 0.88;
margin-right: var(--space-2);
font-size: 0.95rem;
letter-spacing: 0.02em;
}
nav a:hover {
opacity: 1;
}
.meta {
color: var(--color-ink-soft);
font-size: 0.85rem;
letter-spacing: 0.02em;
}
.tags {
color: var(--color-thistle);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.03em;
}
.site-footer {
border-top: 1px solid var(--color-border);
padding: var(--space-3) var(--space-2);
color: var(--color-ink-soft);
font-size: 0.85rem;
text-align: center;
}
/* --------------------------------------------------------------------------
9. Skip link
Off-screen until focused — the same pattern needed for any keyboard/
screen-reader user to bypass the header nav straight to .
-------------------------------------------------------------------------- */
.skip-link {
position: absolute;
left: -9999px;
top: 0;
z-index: 100;
background-color: var(--color-banner-bg);
color: var(--color-banner-text);
font-family: var(--font-ui);
padding: var(--space-1) var(--space-2);
border-radius: 0 0 4px 0;
}
.skip-link:focus {
left: 0;
}
/* --------------------------------------------------------------------------
10. Buttons, form fields, and the reader-magnet enrollment funnel
(layouts/partials/course-enroll-form.html, layouts/courses/single.html)
-------------------------------------------------------------------------- */
.btn {
display: inline-block;
font-family: var(--font-ui);
font-weight: 600;
font-size: 0.95rem;
letter-spacing: 0.02em;
text-decoration: none;
color: var(--color-banner-text);
background-color: var(--color-accent);
border: none;
border-radius: 4px;
padding: 0.75rem 1.5rem;
cursor: pointer;
}
.btn:hover {
background-color: var(--color-accent-hover);
color: var(--color-banner-text);
}
label {
display: block;
font-family: var(--font-ui);
font-size: 0.85rem;
font-weight: 600;
margin-bottom: 0.35rem;
}
input[type="email"],
input[type="text"],
textarea {
width: 100%;
font-family: var(--font-ui);
font-size: 1rem;
color: var(--color-ink);
background-color: var(--color-bg-raised);
border: 1px solid var(--color-border);
border-radius: 4px;
padding: 0.65rem 0.75rem;
margin-bottom: var(--space-2);
}
/* Honeypot: must stay genuinely hidden from sighted users (not just
visually de-emphasized), or a real visitor filling it in silently kills
their own signup — see course-enroll-form.html's `if (form.website.value)
return;` check. */
.field-honeypot {
position: absolute;
left: -9999px;
width: 1px;
height: 1px;
overflow: hidden;
}
.course-hero {
text-align: center;
}
.course-cover {
max-width: 14rem;
width: 100%;
height: auto;
border-radius: 4px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
margin: 0 auto var(--space-3);
}
.course-subhead {
font-style: italic;
color: var(--color-ink-soft);
margin-top: 0;
}
.course-social-proof {
font-style: italic;
font-size: 0.9rem;
color: var(--color-ink-soft);
}
.enroll-form {
max-width: 24rem;
margin: var(--space-3) auto;
text-align: left;
}
.enroll-status {
text-align: center;
font-family: var(--font-ui);
font-size: 0.9rem;
}
.enroll-download {
text-align: center;
margin-top: var(--space-2);
}
.course-repeat-cta {
text-align: center;
margin-top: var(--space-5);
}
/* --------------------------------------------------------------------------
11. Post/article-specific
-------------------------------------------------------------------------- */
.post-title {
margin-bottom: var(--space-1);
}
.post-meta {
margin-bottom: var(--space-4);
}
.post-content h2:first-of-type {
margin-top: var(--space-3);
}
/* Drop cap for opening paragraph — optional, purely decorative flourish;
delete this rule if it doesn't earn its keep in practice */
.post-content > p:first-of-type::first-letter {
font-family: var(--font-heading);
font-size: 3.2em;
float: left;
line-height: 0.8;
padding-right: 0.08em;
padding-top: 0.05em;
color: var(--color-gold);
}
/* --------------------------------------------------------------------------
12. Responsive
-------------------------------------------------------------------------- */
@media (max-width: 640px) {
:root {
--font-size-base: 17px;
}
h1 {
font-size: 2.1rem;
}
h2 {
font-size: 1.6rem;
}
main {
padding: var(--space-3) var(--space-2);
}
}
/* --------------------------------------------------------------------------
13. Print
-------------------------------------------------------------------------- */
@media print {
body {
background: #fff;
color: #000;
}
nav, .site-footer {
display: none;
}
}