/* The CV (cv.html): A4 sheets in the site's identity, made for paper first.
 * tools/make-images.py prints it to public/Dagim-Daniel-CV.pdf. On screen it
 * sits on the parchment with a bar to download the PDF. */
@page { size: A4; margin: 13mm 0 12mm }
:root {
  --parchment: #ecdcbc; --sheet: #fffbf2; --ink: #1c1510; --ink-soft: #5a4a38;
  --rubric: #a3261b; --blue: #2c4a8a; --paper: var(--parchment); --fg: var(--ink);
  --mono: "JetBrains Mono", "Noto Sans Ethiopic", ui-monospace, monospace;
  --geez: "Abyssinica SIL", "Noto Sans Ethiopic", serif;
  --serif: "Cormorant Garamond", "Abyssinica SIL", Georgia, serif;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-print-color-adjust: exact; print-color-adjust: exact }
html, body { margin: 0 }
body { background: var(--parchment); color: var(--ink); font: 8.4pt/1.55 var(--mono); -webkit-font-smoothing: antialiased }
a { color: inherit; text-decoration: none }
.geez { font-family: var(--geez) }
h1, h2, h3 { font-family: var(--serif); margin: 0; line-height: 1.1 }

.toolbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 210mm; margin: 0 auto; padding: 12px 4px; font-size: 12px; background: var(--parchment) }
.toolbar::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: var(--parchment); box-shadow: 0 1px 0 rgba(28, 21, 16, .15) }   /* full width, over the sheet */
.toolbar a { color: var(--ink) }
.toolbar .btn { padding: 6px 14px; background: var(--ink); color: var(--parchment); box-shadow: 3px 3px 0 var(--rubric); font-weight: 600 }

.sheet { width: 210mm; min-height: 297mm; margin: 0 auto 32px; padding: 14mm 15mm 12mm; background: var(--sheet); box-shadow: 0 10px 40px rgba(28, 21, 16, .22) }

.cv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 8mm }
.cv-head h1 { font-size: 31pt; font-weight: 700; letter-spacing: -.01em }
.cv-head h1 .geez { color: var(--rubric); font-size: 23pt; font-weight: 400; margin-left: 2mm }
.title { margin: 2mm 0 0; font-size: 8.4pt; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft) }
.contact { list-style: none; margin: 0; padding: 0; text-align: right; font-size: 7.8pt; line-height: 1.65 }
.contact span { margin-right: 2mm; font-size: 6.4pt; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft) }
.checker { height: 2mm; margin: 5mm 0 6mm; background: repeating-linear-gradient(90deg, var(--rubric) 0 4mm, var(--blue) 4mm 8mm) }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 60mm; gap: 8mm }
section + section { margin-top: 5mm }
h2 { font-size: 14pt; color: var(--rubric); padding-bottom: 1mm; margin-bottom: 2.2mm; border-bottom: .35mm solid var(--ink) }
p { margin: 0 }
ul { margin: 0; padding-left: 3.6mm }
li { margin: .7mm 0 }
li::marker { color: var(--rubric) }
.main a { color: var(--rubric) }
.dim { color: var(--ink-soft) }

.role { break-inside: avoid; margin-bottom: 3.6mm }
.role h3 { font-size: 12pt; font-weight: 700 }
.org { margin: .4mm 0 1.2mm; font-size: 7.6pt; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase }

.skills { margin: 0 }
.skills dt { font-size: 6.8pt; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rubric) }
.skills dd { margin: .3mm 0 2.4mm }
.edu { list-style: none; padding: 0 }
.edu li { margin: 0 0 2.2mm; break-inside: avoid }
.edu b { display: block; font-weight: 600 }
.edu span { display: block; font-size: 7.6pt; color: var(--ink-soft) }

.cv-foot { display: flex; align-items: center; gap: 2.4mm; margin-top: 7mm; padding-top: 3mm; border-top: .3mm solid rgba(28, 21, 16, .25); font-size: 7.4pt; color: var(--ink-soft) }
.cv-foot a { color: var(--rubric) }
.mark { width: 5.5mm; height: 5.5mm; flex: none }

@media screen and (max-width: 820px) {
  /* a phone shows the same CV, reflowed */
  body { font-size: 12.5px }
  .sheet { width: auto; min-height: 0; margin: 0 0 24px; padding: 22px 18px }
  .cv-head { flex-direction: column; align-items: flex-start }
  .contact { text-align: left }
  .cols { grid-template-columns: 1fr }
  .toolbar { padding: 12px 18px }
}
/* on paper: white, with the page's own margins, so every page starts and ends cleanly */
@media print {
  body { background: #fff }
  .toolbar { display: none }
  .sheet { width: auto; min-height: 0; margin: 0; padding: 0 15mm; background: #fff; box-shadow: none }
}
