Update styles.css

This commit is contained in:
Mark Randall Havens △ The Empathic Technologist ⟁ Doctor Who 42 2025-10-16 17:41:51 -05:00 committed by GitHub
parent b5ef3e6db0
commit efbfb14de9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,159 +1,218 @@
/* styles.css */ /* — THE FOLD WITHIN — */
/* Refined gold-on-black aesthetic for markdown-native blogging */
body { :root {
--bg-dark: #0f0d0e;
--bg-card: #1a1618;
--gold: #d4af37;
--gold-soft: #b89f50;
--border: #333;
--error: #ff6666;
--font-body: 'Georgia', serif;
--transition: all 0.3s ease;
}
* {
box-sizing: border-box;
margin: 0; margin: 0;
padding: 0; padding: 0;
background-color: #0f0d0e; /* near-black */
color: #d4af37; /* gold */
font-family: 'Georgia', serif;
line-height: 1.6;
} }
body {
background: var(--bg-dark);
color: var(--gold);
font-family: var(--font-body);
line-height: 1.7;
overflow-x: hidden;
}
/* — Links — */
a { a {
color: #d4af37; color: var(--gold);
text-decoration: none; text-decoration: none;
transition: all 0.3s ease; transition: var(--transition);
} }
a:hover { a:hover {
text-shadow: 0 0 5px #d4af37; text-shadow: 0 0 6px var(--gold);
} }
/* — Header & Nav — */
header { header {
padding: 2rem; padding: 2rem 1rem;
text-align: center; text-align: center;
border-bottom: 1px solid #333; border-bottom: 1px solid var(--border);
} }
nav { nav {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 2rem; max-width: 960px;
margin: 0 auto 2rem;
} }
.logo {
nav .logo { font-size: 1.6rem;
font-size: 1.5rem; letter-spacing: 3px;
letter-spacing: 2px;
} }
nav ul { nav ul {
list-style: none; list-style: none;
display: flex; display: flex;
gap: 2rem; gap: 2rem;
padding: 0;
margin: 0;
} }
nav li { nav li {
font-size: 0.9rem; font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 1px;
} }
/* — Hero — */
.hero { .hero {
margin: 3rem auto; margin: 3rem auto;
text-align: center; text-align: center;
max-width: 720px;
} }
.glyph { .glyph {
margin: 0 auto 1.5rem; margin: 0 auto 1.5rem;
width: 100px; width: 100px;
height: 100px; height: 100px;
border: 2px solid #d4af37; border: 2px solid var(--gold);
border-radius: 50%; border-radius: 50%;
position: relative; position: relative;
transition: var(--transition);
} }
.glyph::before { .glyph::before {
content: ''; content: '';
position: absolute; position: absolute;
top: 25%; inset: 25%;
left: 25%; border: 2px solid var(--gold);
width: 50px;
height: 50px;
border: 2px solid #d4af37;
transform: rotate(45deg); transform: rotate(45deg);
transition: var(--transition);
}
.glyph:hover {
transform: rotate(5deg);
box-shadow: 0 0 12px rgba(212,175,55,0.3);
} }
.hero h1 { .hero h1 {
font-size: 2rem; font-size: 2.1rem;
text-transform: uppercase; text-transform: uppercase;
margin-bottom: 1rem;
}
.cta {
display: inline-block;
margin-top: 1rem; margin-top: 1rem;
padding: 0.5rem 1.5rem; letter-spacing: 2px;
border: 1px solid #d4af37;
font-size: 1rem;
} }
/* — Layout — */
main { main {
padding: 2rem; padding: 2rem 1rem 4rem;
max-width: 1200px;
margin: 0 auto;
} }
/* — Post Grid — */
.latest h2 { .latest h2 {
text-align: left; font-size: 1.3rem;
font-size: 1.25rem; text-transform: uppercase;
margin-bottom: 1.5rem; border-top: 1px solid var(--border);
border-top: 1px solid #333;
padding-top: 1rem; padding-top: 1rem;
margin-bottom: 2rem;
letter-spacing: 1px;
} }
.grid { .grid {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem; gap: 2rem;
} }
article { article {
background-color: #1a1618; background: var(--bg-card);
padding: 1rem; border: 1px solid var(--border);
border: 1px solid #333; border-radius: 10px;
border-radius: 8px; padding: 1.25rem;
transition: transform 0.3s ease; transition: var(--transition);
cursor: pointer;
} }
article:hover { article:hover {
transform: scale(1.02); transform: scale(1.03);
box-shadow: 0 0 10px rgba(212, 175, 55, 0.3); box-shadow: 0 0 12px rgba(212,175,55,0.35);
} }
.thumb { .thumb {
width: 100%; width: 100%;
height: 140px; height: 140px;
background-color: #333; background: var(--border);
margin-bottom: 1rem; margin-bottom: 1rem;
border-radius: 6px;
} }
h3 { h3 {
font-size: 1.1rem; font-size: 1.1rem;
margin: 0.5rem 0; margin: 0.5rem 0;
letter-spacing: 0.5px;
} }
.date { .date {
font-size: 0.8rem; font-size: 0.8rem;
color: #b89f50; color: var(--gold-soft);
margin-bottom: 0.5rem; margin-bottom: 0.75rem;
} }
/* — Markdown Content — */
.markdown { .markdown {
max-width: 720px; max-width: 720px;
margin: 3rem auto; margin: 3rem auto;
line-height: 1.8; line-height: 1.85;
font-size: 1rem;
} }
.markdown h1, .markdown h2, .markdown h3 { .markdown h1, .markdown h2, .markdown h3 {
color: #d4af37; color: var(--gold);
margin-top: 2rem; margin-top: 2rem;
margin-bottom: 0.75rem;
line-height: 1.4;
}
.markdown h1 {
font-size: 2rem;
}
.markdown h2 {
font-size: 1.5rem;
}
.markdown h3 {
font-size: 1.2rem;
} }
.markdown p { .markdown p {
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.markdown a {
border-bottom: 1px dashed var(--gold-soft);
}
.markdown a:hover {
border-bottom-color: var(--gold);
text-shadow: 0 0 4px var(--gold);
}
/* — Back link — */
#back {
display: inline-block;
margin: 2rem 0 1rem;
color: var(--gold-soft);
font-size: 0.9rem;
}
#back:hover {
color: var(--gold);
text-shadow: 0 0 5px var(--gold);
}
/* — Error & Utility — */
.error { .error {
color: #ff6666; color: var(--error);
text-align: center; text-align: center;
margin-top: 2rem; margin-top: 2rem;
font-style: italic;
letter-spacing: 1px;
}
/* — Responsiveness — */
@media (max-width: 600px) {
nav ul {
gap: 1rem;
}
.hero h1 {
font-size: 1.5rem;
}
.glyph {
width: 80px;
height: 80px;
}
} }