/* The CV is a document, not a page of the site: black on white, one column, sized to A4.
   It shares nothing with style.css on purpose — the neon dark theme has no print equivalent. */

@page { size: A4; margin: 14mm 0; }

:root {
  --ink: #111;
  --soft: #555;
  --rule: #d4d4d4;
  --accent: #007a63;
  --sans: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono: "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1rem 4rem;
  background: #e9e9e9;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 10.2pt;
  line-height: 1.45;
}

.sheet {
  max-width: 190mm;
  margin: 0 auto;
  padding: 16mm 16mm 18mm;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 18%);
}

/* ---------- header ---------- */

.sheet > header { border-bottom: 2px solid var(--ink); padding-bottom: 0.7rem; margin-bottom: 1.3rem; }
h1 { margin: 0; font-size: 22pt; font-weight: 700; letter-spacing: -0.02em; }
.role { margin: 0.25rem 0 0; font-family: var(--mono); font-size: 8.6pt; color: var(--accent); }
.contact { margin: 0.5rem 0 0; font-family: var(--mono); font-size: 8.4pt; color: var(--soft); }
.contact a { color: inherit; text-decoration: none; }
.contact span { color: var(--rule); }

/* ---------- sections ---------- */

section { margin-top: 1.4rem; }
h2 {
  margin: 0 0 0.7rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 9pt;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

/* an entry never splits across a page boundary if it can be helped */
.entry { margin-bottom: 1rem; break-inside: avoid; }
.entry h3 { margin: 0; font-size: 11pt; font-weight: 700; }
/* the employer rides on the role line so the period can hold the right margin alone */
.entry h3 .org { font-weight: 400; color: var(--soft); }
.entry h3 .org::before { content: "· "; color: var(--rule); }
.period { margin: 0.1rem 0 0; font-family: var(--mono); font-size: 8.2pt; color: var(--soft); }
.summary { margin: 0.4rem 0 0; }

.entry ul { margin: 0.4rem 0 0; padding-left: 1.05rem; }
.entry li { margin-bottom: 0.28rem; }
.entry li::marker { color: var(--accent); }

/* two-up, because each project is a few lines and a one-column list of nine wastes a page */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.6rem; }
@media (max-width: 40rem) { .projects { grid-template-columns: 1fr; } }
.stack { margin: 0.3rem 0 0; font-family: var(--mono); font-size: 7.8pt; color: var(--soft); }

.skills { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; }
.skills dt { font-weight: 600; }
.skills dd { margin: 0; font-size: 9.4pt; color: var(--soft); }

a { color: var(--accent); }

/* ---------- screen-only chrome ---------- */

.actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  max-width: 190mm;
  margin: 0 auto 1rem;
  font-family: var(--mono);
  font-size: 8.5pt;
}
.actions a, .actions button {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.actions button { margin-left: auto; border-color: var(--accent); color: var(--accent); }
.actions a:hover, .actions button:hover { border-color: var(--ink); }

@media print {
  body { padding: 0; background: #fff; font-size: 9.6pt; }
  .sheet { max-width: none; margin: 0; padding: 0 14mm; box-shadow: none; }
  .actions { display: none; }
  a { color: inherit; text-decoration: none; }
}
