/* Resume for print and ATS: one column, system fonts, black on white, no decoration that a parser could misread. */

@page {
  size: A4;
  margin: 10mm 12mm;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  background: #e9ebe8;
  color: #111;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 9.5pt;
  line-height: 1.32;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
}

.toolbar a,
.toolbar button {
  color: #0b5c73;
  font: inherit;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sheet {
  width: 210mm;
  max-width: 100%;
  min-height: 297mm;
  margin: 0 auto 2rem;
  padding: 14mm 15mm;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12), 0 8px 24px rgb(0 0 0 / 0.08);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: 19pt;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.headline {
  margin-top: 2pt;
  font-size: 11.5pt;
  font-weight: 700;
  color: #0b5c73;
}

.contact {
  margin-top: 4pt;
  font-size: 9.5pt;
  color: #333;
}

section {
  margin-top: 8pt;
}

h2 {
  font-size: 11pt;
  text-transform: none;
  padding-bottom: 2pt;
  margin-bottom: 4pt;
  border-bottom: 1px solid #111;
}

section > p + p {
  margin-top: 3pt;
}

.entry {
  margin-top: 5pt;
}

.entry h3,
.entry .meta {
  break-after: avoid;
}

li {
  break-inside: avoid;
}

h3 {
  font-size: 10.5pt;
}

.meta {
  margin-top: 1pt;
  color: #444;
  font-size: 9.5pt;
}

ul {
  margin-top: 2pt;
  padding-left: 14pt;
}

li + li {
  margin-top: 1pt;
}

.skills,
.plain {
  padding-left: 0;
  list-style: none;
}

.stack {
  margin-top: 3pt;
  font-size: 9.5pt;
  color: #333;
}

@media (max-width: 220mm) {
  .sheet {
    padding: 1.25rem;
    min-height: 0;
  }
}

@media print {
  body {
    background: #fff;
  }

  .toolbar {
    display: none;
  }

  .sheet {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  h2 {
    break-after: avoid;
  }
}
