resume/styles.css
Paul Trowbridge b277058c13 Inline company subtitles, right-align role dates, rewrite Growscape blurb
- Move each company's italic subtitle into its h3 line; style via h3 em
- Wrap role dates in .date spans floated right; normalize dash/pipe separators
- Tighten Growscape subtitle and description

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-29 23:53:33 -05:00

222 lines
4.8 KiB
CSS

/* ============================================
Resume Stylesheet — Paul Trowbridge
Usage: pandoc resume.md -o resume.html --css styles.css --standalone
============================================ */
/* --- Reset & Base --- */
*, *::before, *::after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
:root {
--blue-dark: #1F4E79;
--blue-mid: #2E75B6;
--blue-light: #D6E4F0;
--gray-dark: #333333;
--gray-mid: #595959;
--gray-light: #f5f7fa;
--text: #222222;
--font: 'Calibri', 'Gill Sans', Arial, sans-serif;
}
body {
font-family: var(--font);
font-size: 15px;
line-height: 1.6;
color: var(--text);
background: #ffffff;
max-width: 860px;
margin: 40px auto;
padding: 0 40px 60px;
}
/* --- Name (H1) --- */
h1 {
font-size: 2.6em;
color: var(--blue-dark);
font-weight: 700;
letter-spacing: 0.5px;
margin-bottom: 4px;
}
/* Tagline paragraph immediately after h1 */
h1 + p {
color: var(--gray-mid);
font-size: 1em;
margin-bottom: 12px;
letter-spacing: 0.3px;
}
/* --- Horizontal Rule (section divider under name) --- */
hr {
border: none;
border-top: 3px solid var(--blue-mid);
margin: 16px 0 24px;
}
/* --- Section Headers (H2) --- */
hr + h2 {
margin-top: 0;
}
h2 {
font-size: 0.78em;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1.8px;
color: var(--blue-dark);
border-bottom: 2px solid var(--blue-mid);
padding-bottom: 5px;
margin-top: 32px;
margin-bottom: 16px;
}
/* --- Company Name (H3) --- */
h3 {
font-size: 1.1em;
font-weight: 700;
color: var(--gray-dark);
margin-top: 20px;
margin-bottom: 2px;
}
/* Company subtitle (italic, inline in h3) */
h3 em {
font-size: 0.8em;
font-weight: 400;
color: var(--gray-mid);
margin-left: 0.4em;
}
/* Role dates, right-aligned on the role line */
.date {
float: right;
}
/* --- Role Title (H4) --- */
h4 {
font-size: 1em;
font-weight: 700;
color: var(--blue-mid);
margin-top: 14px;
margin-bottom: 4px;
}
/* Date range inside strong inside h4 — handled by pandoc as strong */
h4 > strong {
font-weight: 400;
color: var(--gray-mid);
font-style: italic;
font-size: 0.92em;
}
/* --- Body Paragraphs --- */
p {
margin-bottom: 8px;
color: var(--gray-dark);
}
/* --- Bullet Lists --- */
ul {
margin: 6px 0 10px 0;
padding-left: 20px;
list-style: none;
}
ul li {
position: relative;
padding-left: 16px;
margin-bottom: 5px;
color: var(--gray-dark);
font-size: 0.97em;
line-height: 1.55;
}
ul li::before {
content: "•";
position: absolute;
left: 0;
color: var(--blue-mid);
font-weight: 700;
}
/* --- Strong / Bold --- */
strong {
color: var(--gray-dark);
font-weight: 600;
}
/* --- Code (for tech skills inline) --- */
code {
font-family: 'Consolas', 'Courier New', monospace;
font-size: 0.9em;
background: var(--gray-light);
padding: 1px 5px;
border-radius: 3px;
color: var(--blue-dark);
}
/* --- Links --- */
a { color: var(--blue-mid); text-decoration: none; }
/* --- Print Styles (browser print and the build.sh PDF) --- */
@page {
size: letter;
margin: 0.5in 0.55in 0.55in;
@bottom-left { content: "Paul Trowbridge \2022 330.819.3826 \2022 paul.hptrow@gmail.com"; font: 9px var(--font); color: #595959; }
@bottom-right { content: "Page " counter(page) " of " counter(pages); font: 9px var(--font); color: #595959; }
}
@page :first { @bottom-left { content: none; } }
@media print {
body {
margin: 0;
padding: 0;
font-size: 11.5px;
line-height: 1.38;
max-width: 100%;
}
h1 { font-size: 2em; margin-bottom: 2px; }
h1 + p { margin-bottom: 6px; }
h2 { font-size: 0.78em; margin-top: 16px; margin-bottom: 7px; padding-bottom: 3px; }
hr + h2 { margin-top: 16px; }
h1 + p + hr + h2 { margin-top: 0; }
h3 { margin-top: 10px; }
h4 { margin-top: 8px; margin-bottom: 2px; }
p { margin-bottom: 5px; }
/* One rule per section: the h2 underline carries it; keep only the rule under the header */
hr { display: none; }
h1 + p + hr { display: block; margin: 6px 0 10px; border-top-width: 2px; }
ul { margin: 2px 0 6px; padding-left: 2px; }
ul li { margin-bottom: 2px; padding-left: 13px; line-height: inherit; }
.no-print { display: none; }
/* Keep headings with what follows; never split a single bullet */
h2, h3, h4 { break-after: avoid; }
li { break-inside: avoid; }
p, li { orphans: 2; widows: 2; }
a { color: inherit; }
}
/* --- Responsive (mobile) --- */
@media screen and (max-width: 600px) {
body {
padding: 20px;
font-size: 14px;
}
h1 { font-size: 2em; }
}
/* --- Figures (work page diagrams) --- */
figure { margin: 12px 0 16px; }
figure img, p img { max-width: 100%; height: auto; display: block; }
figcaption { font-size: 0.85em; color: var(--gray-mid); font-style: italic; margin-top: 4px; }