Files
portfolio-website/assets/css/main.css
Ludovic Bouchard daf6b8f55f
Some checks failed
Deploy Hugo site / deploy (push) Failing after 47s
First template
2026-03-16 22:25:02 +01:00

253 lines
3.7 KiB
CSS

:root {
--bg: #f3efe6;
--surface: rgba(255, 250, 240, 0.86);
--surface-strong: #fff9ef;
--text: #1e1a16;
--muted: #6d6258;
--line: rgba(30, 26, 22, 0.12);
--accent: #b44f2f;
--accent-dark: #7e3018;
--shadow: 0 20px 60px rgba(77, 55, 33, 0.12);
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
color: var(--text);
background:
radial-gradient(circle at top left, rgba(180, 79, 47, 0.16), transparent 28%),
radial-gradient(circle at 85% 20%, rgba(113, 142, 106, 0.22), transparent 20%),
linear-gradient(180deg, #f7f2e8 0%, var(--bg) 100%);
font-family: Georgia, "Times New Roman", serif;
line-height: 1.6;
}
a {
color: inherit;
text-decoration: none;
}
p,
li {
color: var(--muted);
}
.page-shell {
width: min(1120px, calc(100% - 2rem));
margin: 0 auto;
}
.site-header {
position: sticky;
top: 0;
z-index: 10;
backdrop-filter: blur(14px);
background: rgba(247, 242, 232, 0.72);
border-bottom: 1px solid var(--line);
}
.header-inner,
.footer-inner {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 1rem 0;
}
.brand {
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.site-nav,
.footer-links {
display: flex;
gap: 1rem;
flex-wrap: wrap;
}
.site-nav a,
.footer-links a {
color: var(--muted);
}
.hero {
display: grid;
grid-template-columns: 1.5fr 1fr;
gap: 2rem;
padding: 4rem 0 2rem;
}
.hero-copy,
.hero-panel,
.project-card,
.section-alt,
.project-single {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 28px;
box-shadow: var(--shadow);
}
.hero-copy {
padding: 3rem;
}
.hero-panel {
padding: 2rem;
align-self: end;
}
.hero h1,
.section h1,
.section h2,
.project-card h2,
.project-card h3 {
color: var(--text);
line-height: 1.05;
margin: 0;
}
.hero h1 {
font-size: clamp(2.8rem, 7vw, 5.8rem);
margin-top: 0.2rem;
}
.hero-text,
.section-text,
.lead {
font-size: 1.1rem;
max-width: 62ch;
}
.eyebrow,
.meta,
.panel-label {
text-transform: uppercase;
letter-spacing: 0.14em;
font-size: 0.78rem;
color: var(--accent-dark);
}
.hero-actions,
.project-links {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1.5rem;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 46px;
padding: 0.75rem 1.2rem;
border-radius: 999px;
border: 1px solid transparent;
font-weight: 700;
}
.button-primary {
background: var(--accent);
color: #fff7f2;
}
.button-secondary {
border-color: var(--line);
background: transparent;
color: var(--text);
}
.section {
padding: 2rem 0;
}
.section-heading {
margin-bottom: 1.25rem;
}
.card-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1.25rem;
}
.project-card,
.project-single,
.section-alt {
padding: 1.75rem;
}
.tag-list {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 0.6rem;
padding: 0;
margin: 1rem 0 0;
}
.tag-list li {
padding: 0.3rem 0.7rem;
border-radius: 999px;
background: rgba(180, 79, 47, 0.08);
color: var(--accent-dark);
}
.tag-list-spaced {
margin-bottom: 2rem;
}
.content-body h2,
.content-body h3 {
color: var(--text);
margin-top: 2rem;
}
.content-body ul {
padding-left: 1.25rem;
}
.site-footer {
padding: 2rem 0 3rem;
}
@media (max-width: 860px) {
.hero,
.card-grid,
.header-inner,
.footer-inner {
grid-template-columns: 1fr;
flex-direction: column;
align-items: flex-start;
}
.hero-copy {
padding: 2rem;
}
}
@media (max-width: 560px) {
.page-shell {
width: min(100% - 1.2rem, 1120px);
}
.hero {
padding-top: 2rem;
}
.hero h1 {
font-size: 2.6rem;
}
}