350 lines
6.8 KiB
CSS
350 lines
6.8 KiB
CSS
:root {
|
|
color-scheme: light;
|
|
--ink: #17212b;
|
|
--muted: #5c6b77;
|
|
--rule: #dbe2e7;
|
|
--accent: #0f766e;
|
|
--accent-dark: #0b5f59;
|
|
--soft: #f2f8f7;
|
|
--soft-2: #f6f8fa;
|
|
--card: #ffffff;
|
|
}
|
|
|
|
@page {
|
|
size: 297mm 167mm;
|
|
margin: 10mm 14mm 9mm;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
body {
|
|
margin: 0;
|
|
background: #fff;
|
|
color: var(--ink);
|
|
font-family: "Noto Sans CJK KR", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
|
|
font-size: 9.15pt;
|
|
line-height: 1.42;
|
|
word-break: keep-all;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
main {
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
margin: 0;
|
|
line-height: 1.18;
|
|
letter-spacing: -0.015em;
|
|
}
|
|
|
|
/* Each page is exactly the content box, so its figure can flex into the slack. */
|
|
.page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 148mm;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.page + .page {
|
|
break-before: page;
|
|
}
|
|
|
|
.page > h1 {
|
|
flex: 0 0 auto;
|
|
padding-top: 1mm;
|
|
padding-bottom: 2.2mm;
|
|
border-bottom: 2px solid var(--accent);
|
|
font-size: 21.5pt;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.page:first-child > h1 {
|
|
margin-top: 3mm;
|
|
padding-bottom: 0;
|
|
border-bottom: 0;
|
|
font-size: 26pt;
|
|
color: var(--ink);
|
|
}
|
|
|
|
h2 {
|
|
margin-top: 3.4mm;
|
|
color: var(--accent-dark);
|
|
font-size: 14pt;
|
|
font-weight: 850;
|
|
}
|
|
|
|
h3 {
|
|
margin-top: 2.5mm;
|
|
font-size: 10.8pt;
|
|
font-weight: 850;
|
|
}
|
|
|
|
p {
|
|
margin: 1.4mm 0;
|
|
}
|
|
|
|
strong { font-weight: 850; }
|
|
|
|
a {
|
|
color: #0b5cad;
|
|
text-decoration: none;
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
margin: 2.5mm 0;
|
|
border: 0;
|
|
background: var(--rule);
|
|
}
|
|
|
|
blockquote {
|
|
margin: 2mm 0 2.4mm;
|
|
padding: 2mm 2.6mm;
|
|
border: 0;
|
|
border-left: 4px solid var(--accent);
|
|
border-radius: 3px;
|
|
background: var(--soft);
|
|
color: #28433f;
|
|
font-size: 9.1pt;
|
|
}
|
|
|
|
blockquote p { margin: 0; }
|
|
|
|
ul, ol {
|
|
margin: 1.3mm 0 2mm;
|
|
padding-left: 5mm;
|
|
}
|
|
|
|
li {
|
|
margin: .65mm 0;
|
|
padding-left: .4mm;
|
|
}
|
|
|
|
code {
|
|
padding: .1mm .55mm;
|
|
border-radius: 2px;
|
|
background: #eef2f4;
|
|
color: #23303c;
|
|
font-family: "JetBrains Mono", "D2Coding", Consolas, monospace;
|
|
font-size: .91em;
|
|
}
|
|
|
|
pre {
|
|
margin: 1.8mm 0;
|
|
padding: 2mm 2.4mm;
|
|
border: 1px solid var(--rule);
|
|
border-radius: 5px;
|
|
background: var(--soft-2);
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
pre code {
|
|
padding: 0;
|
|
background: transparent;
|
|
font-size: 7.5pt;
|
|
line-height: 1.35;
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
margin: 1.8mm 0 2.3mm;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
table-layout: fixed;
|
|
font-size: 8.0pt;
|
|
line-height: 1.32;
|
|
}
|
|
|
|
td {
|
|
padding: 1.15mm 1.55mm;
|
|
border-right: 1px solid var(--rule);
|
|
border-bottom: 1px solid var(--rule);
|
|
vertical-align: top;
|
|
background: #fff;
|
|
}
|
|
|
|
tr:first-child td {
|
|
border-top: 1px solid var(--rule);
|
|
font-weight: 800;
|
|
color: #34424e;
|
|
}
|
|
|
|
td:first-child { border-left: 1px solid var(--rule); }
|
|
tr:first-child td:first-child { border-top-left-radius: 5px; }
|
|
tr:first-child td:last-child { border-top-right-radius: 5px; }
|
|
tr:last-child td:first-child { border-bottom-left-radius: 5px; }
|
|
tr:last-child td:last-child { border-bottom-right-radius: 5px; }
|
|
|
|
.two-col-table td:first-child {
|
|
width: 33mm;
|
|
background: #f7f9fa;
|
|
color: var(--muted);
|
|
font-weight: 800;
|
|
}
|
|
|
|
.metric-table {
|
|
border-spacing: 2mm 0;
|
|
border-collapse: separate;
|
|
margin-top: 2.3mm;
|
|
}
|
|
|
|
.metric-table td {
|
|
border: 0;
|
|
text-align: center;
|
|
background: var(--soft-2);
|
|
}
|
|
|
|
.metric-table tr:first-child td {
|
|
border: 0;
|
|
padding-top: 2.3mm;
|
|
padding-bottom: .8mm;
|
|
color: var(--accent-dark);
|
|
font-size: 14.5pt;
|
|
font-weight: 900;
|
|
}
|
|
|
|
.metric-table tr:last-child td {
|
|
padding-top: .7mm;
|
|
padding-bottom: 2.3mm;
|
|
color: var(--muted);
|
|
font-size: 8.0pt;
|
|
}
|
|
|
|
.data-table tr:first-child td {
|
|
background: #f3f6f7;
|
|
color: #34424e;
|
|
font-weight: 850;
|
|
}
|
|
|
|
figure {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
min-height: 0;
|
|
margin: 1.6mm auto;
|
|
text-align: center;
|
|
}
|
|
|
|
figure img {
|
|
display: block;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
min-height: 0;
|
|
margin: 0 auto;
|
|
object-fit: contain;
|
|
}
|
|
|
|
figcaption {
|
|
margin-top: .7mm;
|
|
color: var(--muted);
|
|
font-size: 6.8pt;
|
|
}
|
|
|
|
.project {
|
|
display: block;
|
|
}
|
|
|
|
h2, h3, blockquote, table, figure {
|
|
break-after: avoid;
|
|
}
|
|
|
|
tr, blockquote, figure {
|
|
break-inside: avoid;
|
|
}
|
|
|
|
/* ── Cover: headline > experience axis > headline results > stack > contact ── */
|
|
|
|
.page:first-child > h1 {
|
|
margin-top: 6mm;
|
|
font-size: 34pt;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 {
|
|
margin-top: 3.4mm;
|
|
max-width: 235mm;
|
|
color: var(--accent-dark);
|
|
font-size: 18.5pt;
|
|
line-height: 1.24;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote {
|
|
max-width: 235mm;
|
|
margin-top: 3.6mm;
|
|
padding: 2.6mm 3.2mm;
|
|
font-size: 9.6pt;
|
|
}
|
|
|
|
/* Headline results on the cover read louder than anything below them. */
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table {
|
|
margin-top: 5.5mm;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table td {
|
|
background: var(--soft);
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table tr:first-child td {
|
|
padding-top: 3.4mm;
|
|
padding-bottom: 1.1mm;
|
|
font-size: 19pt;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table tr:last-child td {
|
|
padding-bottom: 3.4mm;
|
|
font-size: 8.4pt;
|
|
}
|
|
|
|
/* Stack and contact are the quietest elements on the page. */
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table + p {
|
|
margin-top: 4.2mm;
|
|
color: var(--muted);
|
|
font-size: 8.6pt;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table + p + .two-col-table {
|
|
width: 118mm;
|
|
margin-top: 3.4mm;
|
|
font-size: 7.8pt;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table + p + .two-col-table td {
|
|
padding: .85mm 1.4mm;
|
|
}
|
|
|
|
.page:first-child > h1 + h2 + blockquote + .metric-table + p + .two-col-table td:first-child {
|
|
width: 26mm;
|
|
}
|
|
|
|
/* ── Section pages ── */
|
|
|
|
/* The deck line under a section title stays subordinate to the h2 claim. */
|
|
h2 + p strong:first-child {
|
|
color: #34424e;
|
|
}
|
|
|
|
@media print {
|
|
a { color: #0b5cad; }
|
|
}
|
|
|
|
/* ── Figures ──────────────────────────────────────────────────────────────
|
|
A figure is the flexible row of its .page column, so it receives exactly the
|
|
space the text on that page leaves over and the image scales into it. Width
|
|
(269mm of content box) is the binding constraint for wide diagrams, so the
|
|
viewBox aspect ratio decides how large the labels inside an SVG end up:
|
|
|
|
rendered height(mm) = viewBox height / viewBox width * 269
|
|
|
|
A 1260x450 diagram therefore prints at ~96mm and its 20-unit labels at ~12pt.
|
|
Nothing here caps the figure in millimetres; overflow is impossible because
|
|
the page box is a fixed 148mm and the figure is the only element that flexes.
|
|
------------------------------------------------------------------------ */
|
|
|
|
figcaption {
|
|
flex: 0 0 auto;
|
|
margin-top: 1mm;
|
|
font-size: 7.2pt;
|
|
}
|