da71153a73
deploy / deploy (push) Successful in 4s
Adds top nav links to Books/Authors/Submissions stub pages, and Contact/Privacy/Terms pages modeled on reground-site's structure. Contact form posts to the already-provisioned eec-twosquirrelspress backend. Styling implements the press's brand palette and font choices. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
213 lines
4.6 KiB
CSS
213 lines
4.6 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
|
|
/* Palette from the press's own brand notes: jewel-tone base (sapphire
|
|
header/footer, plum nav) with earth-tone accents swapped in for the
|
|
original emerald/gold accent pass (forest green, terracotta), gold kept
|
|
as a highlight color. See plan notes for the full mapping. */
|
|
--bg: #fffff0; /* Ivory */
|
|
--bg-raised: #f7f0e3;
|
|
--fg: #444444; /* Charcoal Gray */
|
|
--fg-muted: #6b6560;
|
|
--border: #e6ded0;
|
|
|
|
--sapphire: #1c3f75;
|
|
--plum: #a76d95;
|
|
--forest: #3d6b4a;
|
|
--gold: #d4af37;
|
|
--terracotta: #c1653b;
|
|
--rose: #f1c6d2;
|
|
|
|
--heading: var(--sapphire);
|
|
--accent: var(--terracotta);
|
|
--accent-fg: #ffffff;
|
|
--cta: var(--forest);
|
|
--cta-fg: #ffffff;
|
|
|
|
--radius: 0.5rem;
|
|
--max-width: 42rem;
|
|
|
|
--font-heading: "Merriweather", Georgia, "Times New Roman", serif;
|
|
--font-body: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
--font-accent: "Dancing Script", cursive;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family: var(--font-body);
|
|
line-height: 1.6;
|
|
background: var(--bg);
|
|
color: var(--fg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
a { color: var(--accent); }
|
|
|
|
.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;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-family: var(--font-heading);
|
|
color: var(--heading);
|
|
line-height: 1.25;
|
|
}
|
|
|
|
/* Reserved for author names on individual author pages (not yet written —
|
|
content/authors/_index.md is still a stub). Wrap a name in
|
|
<span class="author-name"> once those pages exist. */
|
|
.author-name {
|
|
font-family: var(--font-accent);
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
header.site {
|
|
background: var(--sapphire);
|
|
}
|
|
header.site .inner {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 1.25rem 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
header.site .brand {
|
|
font-family: var(--font-heading);
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
}
|
|
/* The nav gets its own Soft Plum band nested in the sapphire header, per
|
|
the brand notes' "Navigation Bar: Soft Plum" — distinct from the header's
|
|
own sapphire background rather than inheriting it. */
|
|
header.site nav {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
background: var(--plum);
|
|
border-radius: var(--radius);
|
|
padding: 0.35rem;
|
|
}
|
|
header.site nav a {
|
|
color: #ffffff;
|
|
text-decoration: none;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
padding: 0.4rem 0.75rem;
|
|
border-radius: calc(var(--radius) - 0.2rem);
|
|
}
|
|
/* Forest green swap-in for the brand notes' original emerald hover. */
|
|
header.site nav a:hover {
|
|
background: var(--forest);
|
|
}
|
|
header.site a:focus-visible {
|
|
outline-color: #ffffff;
|
|
}
|
|
|
|
main {
|
|
flex: 1;
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 4rem 1.5rem;
|
|
width: 100%;
|
|
}
|
|
|
|
footer.site {
|
|
background: var(--sapphire);
|
|
margin-top: 2rem;
|
|
}
|
|
footer.site .inner {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 1.5rem;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
font-size: 0.85rem;
|
|
color: #ffffff;
|
|
}
|
|
footer.site nav {
|
|
display: flex;
|
|
gap: 1.25rem;
|
|
}
|
|
footer.site nav a {
|
|
color: var(--rose);
|
|
text-decoration: none;
|
|
}
|
|
footer.site nav a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Gold sits at ~3:1 against both the forest-green button and the ivory
|
|
page background — enough for a border/accent, not enough for the button
|
|
label itself, so the label stays white (var(--cta-fg)) and gold shows up
|
|
as a highlight border instead. */
|
|
.btn {
|
|
display: inline-block;
|
|
padding: 0.75rem 1.5rem;
|
|
border-radius: var(--radius);
|
|
background: var(--cta);
|
|
color: var(--cta-fg);
|
|
text-decoration: none;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-bottom: 3px solid var(--gold);
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
}
|
|
.btn:hover { opacity: 0.9; }
|
|
|
|
a:focus-visible, button: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.65rem 0.75rem;
|
|
border-radius: var(--radius);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-raised);
|
|
color: var(--fg);
|
|
font-family: inherit;
|
|
font-size: 1rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
input:focus, textarea:focus {
|
|
outline: 2px solid var(--cta);
|
|
outline-offset: 1px;
|
|
}
|
|
|
|
.field-honeypot {
|
|
position: absolute;
|
|
left: -9999px;
|
|
width: 1px;
|
|
height: 1px;
|
|
overflow: hidden;
|
|
}
|