Fantasy Michigan theme (forest green / lake teal / birch parchment). Reader-magnet content is placeholder pending Cate's story and cover art.
This commit is contained in:
@@ -0,0 +1,492 @@
|
||||
/* ==========================================================================
|
||||
Cate Conners — site stylesheet
|
||||
Fonts: EB Garamond (headings), Source Serif 4 (body), Inter (UI chrome)
|
||||
Palette: Fantasy Michigan — birch parchment / forest green / lake teal
|
||||
========================================================================== */
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
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 <link> 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
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
/* Color — Fantasy Michigan: birch parchment, forest green, lake teal */
|
||||
--color-bg: #f4ede1;
|
||||
--color-bg-raised: #e8ddc8; /* cards, code blocks, pull-quote background */
|
||||
--color-ink: #2b2a1f; /* body text */
|
||||
--color-ink-heading: #1c2a1f; /* headings, strongest contrast — deep forest */
|
||||
--color-accent: #2f5233; /* links, rules, emphasis — forest green */
|
||||
--color-accent-hover: #1f3a22;
|
||||
--color-brass: #3b6e77; /* metadata, dividers, secondary accent — lake teal */
|
||||
--color-border: #cbb98f;
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
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-brass);
|
||||
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.
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
.site-header {
|
||||
padding: var(--space-3) var(--space-2);
|
||||
border-bottom: 1px solid var(--color-border);
|
||||
}
|
||||
|
||||
.site-title {
|
||||
font-family: var(--font-heading);
|
||||
font-size: 1.6rem;
|
||||
color: var(--color-ink-heading);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
nav a {
|
||||
text-decoration: none;
|
||||
color: var(--color-ink);
|
||||
margin-right: var(--space-2);
|
||||
font-size: 0.95rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
nav a:hover {
|
||||
color: var(--color-accent);
|
||||
}
|
||||
|
||||
.meta {
|
||||
color: var(--color-brass);
|
||||
font-size: 0.85rem;
|
||||
letter-spacing: 0.02em;
|
||||
}
|
||||
|
||||
.site-footer {
|
||||
border-top: 1px solid var(--color-border);
|
||||
padding: var(--space-3) var(--space-2);
|
||||
color: var(--color-brass);
|
||||
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 <main>.
|
||||
-------------------------------------------------------------------------- */
|
||||
|
||||
.skip-link {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: 0;
|
||||
z-index: 100;
|
||||
background-color: var(--color-accent);
|
||||
color: var(--color-bg);
|
||||
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-bg);
|
||||
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-bg);
|
||||
}
|
||||
|
||||
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-brass);
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.course-social-proof {
|
||||
font-style: italic;
|
||||
font-size: 0.9rem;
|
||||
color: var(--color-brass);
|
||||
}
|
||||
|
||||
.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-accent);
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user