Files
cedarline-digital/styles.css
T
2026-10-19 19:06:15 -07:00

362 lines
6.0 KiB
CSS

:root {
/* Surfaces */
--bg: #111413;
--surface: #181c1a;
--surface-hover: #1d2220;
/* Text ladder, brightest to dimmest */
--text-1: #ecefed;
--text-2: #d8dcda;
--text-3: #bcc2bf;
--text-4: #a2a9a5;
--text-5: #878e8a;
--text-6: #6b716d;
/* Green */
--accent: #7cb496;
--accent-hover: #9bcdb1;
--accent-dim: #4f8a6b;
/* Edges */
--edge: rgba(255, 255, 255, 0.06);
--edge-hover: rgba(255, 255, 255, 0.1);
--line: rgba(255, 255, 255, 0.08);
--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--max-width: 50rem;
--radius: 0.7rem;
--radius-small: 0.3rem;
--ease: 0.25s ease;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
-webkit-text-size-adjust: 100%;
}
body {
margin: 0;
background-color: var(--bg);
color: var(--text-4);
font-family: var(--font-sans);
font-size: 1rem;
line-height: 1.6;
}
a {
color: var(--accent);
text-decoration: none;
transition: color var(--ease);
}
a:hover {
color: var(--accent-hover);
}
a:focus-visible {
outline: 1px solid var(--accent-dim);
outline-offset: 3px;
border-radius: 2px;
}
.page {
max-width: var(--max-width);
margin: 0 auto;
padding: 0 2rem;
}
/* Header */
.header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem 2rem;
flex-wrap: wrap;
padding: 1.25rem 0;
border-bottom: 1px solid var(--line);
}
.brand {
font-size: 0.95rem;
font-weight: 600;
letter-spacing: -0.01em;
color: var(--text-2);
}
.brand span {
font-weight: 400;
color: var(--text-6);
}
.brand:hover {
color: var(--text-1);
}
.nav {
display: flex;
gap: 1.5rem;
font-size: 0.875rem;
}
.nav a {
color: var(--text-5);
}
.nav a:hover,
.nav a[aria-current="page"] {
color: var(--text-2);
}
/* Hero */
.hero {
padding: 5rem 0 0;
text-align: center;
}
.eyebrow {
margin: 0 0 1.25rem;
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--accent-dim);
}
h1 {
margin: 0;
font-size: 2.4rem;
font-weight: 700;
line-height: 1.1;
letter-spacing: -0.025em;
color: var(--text-1);
}
.subtitle {
margin: 1.25rem auto 0;
max-width: 34rem;
color: var(--text-4);
}
/* Sections */
.section {
padding: 5rem 0 0;
}
h2 {
margin: 0;
font-size: 1.4rem;
font-weight: 600;
line-height: 1.2;
letter-spacing: -0.015em;
color: var(--text-2);
text-align: center;
}
.section-note {
margin: 0.75rem auto 0;
max-width: 32rem;
font-size: 0.9rem;
color: var(--text-5);
text-align: center;
}
/* Cards */
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
gap: 1rem;
margin-top: 2.25rem;
}
.card {
display: flex;
flex-direction: column;
padding: 1.5rem;
background-color: var(--surface);
border: 1px solid var(--edge);
border-radius: var(--radius);
transition:
background-color var(--ease),
border-color var(--ease);
}
.card:hover {
background-color: var(--surface-hover);
border-color: var(--edge-hover);
}
.card h3 {
margin: 0;
font-family: var(--font-mono);
font-size: 0.95rem;
font-weight: 500;
color: var(--text-2);
}
.card p:not(.card-links) {
margin: 0.625rem 0 1.25rem;
font-size: 0.9rem;
color: var(--text-5);
}
.card-links {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 1.25rem;
font-size: 0.85rem;
}
.card .card-links {
margin-top: auto;
padding-top: 1.25rem;
border-top: 1px solid var(--edge);
}
/* Fact panel */
.facts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
gap: 1px;
margin-top: 2.25rem;
background-color: var(--edge);
border: 1px solid var(--edge);
border-radius: var(--radius);
overflow: hidden;
}
.facts > div {
padding: 1.5rem;
background-color: var(--bg);
}
.facts dt {
font-family: var(--font-mono);
font-size: 0.7rem;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--text-6);
}
.facts dd {
margin: 0.5rem 0 0;
font-size: 0.95rem;
color: var(--text-3);
}
/* Document list */
.docs {
margin: 2.25rem 0 0;
padding: 0;
list-style: none;
border: 1px solid var(--edge);
border-radius: var(--radius);
overflow: hidden;
}
.docs li {
border-top: 1px solid var(--edge);
}
.docs li:first-child {
border-top: 0;
}
.docs a {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 1rem;
padding: 1.125rem 1.5rem;
background-color: var(--surface);
transition: background-color var(--ease);
}
.docs a:hover {
background-color: var(--surface-hover);
}
.docs strong {
font-family: var(--font-mono);
font-size: 0.95rem;
font-weight: 500;
color: var(--accent);
transition: color var(--ease);
}
.docs a:hover strong {
color: var(--accent-hover);
}
.docs span {
font-size: 0.875rem;
color: var(--text-5);
}
/* Footer */
.footer {
margin-top: 6rem;
padding: 1.75rem 0 3rem;
border-top: 1px solid var(--line);
display: flex;
flex-wrap: wrap;
gap: 0.5rem 2rem;
justify-content: space-between;
align-items: center;
font-size: 0.8rem;
color: var(--text-6);
}
.footer-links {
display: flex;
gap: 1.25rem;
}
.footer-links a {
color: var(--text-5);
}
.footer-links a:hover {
color: var(--text-2);
}
@media (max-width: 36rem) {
.page {
padding: 0 1.25rem;
}
.hero {
padding-top: 3.5rem;
}
h1 {
font-size: 1.9rem;
}
.section {
padding-top: 3.5rem;
}
.facts {
grid-template-columns: 1fr;
}
.footer {
margin-top: 4rem;
}
}