/* lazzurs.com: a single-page CV. No external fonts, no JavaScript. */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --text: #1c1d1f;
  --muted: #5d6168;
  --rule: #e3e4e6;
  --accent: #1f5f8b;
  --accent-text: #ffffff;
  --measure: 46rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416;
    --surface: #1b1c1f;
    --text: #e8e9eb;
    --muted: #a2a6ad;
    --rule: #2e3035;
    --accent: #7fb6e0;
    --accent-text: #0f1a23;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 var(--font);
  font-kerning: normal;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1rem;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--accent-text);
  z-index: 1;
}

/* Header */
.masthead {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}
.masthead h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.headline {
  margin: 0.4rem 0 1rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

/* Sections */
main { padding-top: 0.5rem; }
section { padding: 1.75rem 0 0.5rem; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; }
p { margin: 0 0 0.75rem; }

/* Experience: employer, then one entry per client engagement or role */
.employers { margin: 0; padding: 0; list-style: none; }
.employer { margin-bottom: 1.75rem; }
.employer-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  margin-bottom: 0.6rem;
}
.employer-head h3 { font-size: 1.15rem; }
.employer .entries { padding-left: 0.9rem; border-left: 2px solid var(--rule); }
h4 { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 600; }
.label { font-weight: 400; color: var(--muted); }

/* Skills as wrapped tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.tags li {
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Talks */
.talks { margin: 0; padding: 0; list-style: none; }
.talks li { margin-bottom: 0.5rem; }
.event { display: block; font-size: 0.9rem; color: var(--muted); }

/* Experience / education entries */
.entries,
.projects,
.plain { margin: 0; padding: 0; list-style: none; }
.entry { margin-bottom: 1.5rem; }
.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 1rem;
  margin-bottom: 0.35rem;
}
.at { font-weight: 400; color: var(--muted); }
.at::before { content: "· "; }
.when,
.when-inline {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
time + .where::before { content: " · "; }
.highlights { margin: 0.25rem 0 0; padding-left: 1.15rem; }
.highlights li { margin-bottom: 0.25rem; }

.projects li { margin-bottom: 1rem; }
.projects p { margin: 0.15rem 0 0; }

/* Skills */
.skills { margin: 0; }
.skills div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0 1rem;
  padding: 0.35rem 0;
}
.skills dt { font-weight: 600; }
.skills dd { margin: 0; }
@media (max-width: 34rem) {
  .skills div { grid-template-columns: 1fr; }
}

.site-footer {
  margin-top: 1.5rem;
  padding-bottom: 3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
/* Rule on the inner text so it lines up with the section rules */
.site-footer p { margin: 0; padding-top: 1.25rem; border-top: 1px solid var(--rule); }

.notfound { padding: 4rem 1rem; }

/* Print: a clean A4 CV from "Print → Save as PDF" */
@page { size: A4; margin: 13mm 14mm 14mm; }
@media print {
  :root {
    --bg: #fff; --surface: #fff; --text: #000; --muted: #444; --rule: #ccc; --accent: #000;
  }
  body { font-size: 9.5pt; line-height: 1.38; }
  p { margin-bottom: 3pt; }
  .highlights { margin-top: 1pt; }
  .highlights li { margin-bottom: 1pt; }
  h2 { margin-bottom: 5pt; }
  .employer-head { margin-bottom: 3pt; break-after: avoid; }
  .wrap { max-width: none; padding: 0; }
  .masthead { padding: 0 0 8pt; }
  .masthead h1 { font-size: 22pt; }
  section { padding: 7pt 0 1pt; }
  .entry { margin-bottom: 6pt; }
  .entry-head, h3, h4 { break-after: avoid; }
  .highlights li { break-inside: avoid; }
  .employer { margin-bottom: 7pt; }
  .employer .entries { border-left-width: 1px; padding-left: 8pt; }
  .tags li { border: none; padding: 0; background: none; font-size: inherit; }
  .tags li:not(:last-child)::after { content: " ·"; }
  .tags { gap: 0 0.3em; }
  .talks a::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  h2 { break-after: avoid; }
  a { text-decoration: none; }
  /* Show where the profile links go on paper */
  .contact a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
  .skip, .screen-only { display: none; }
  .site-footer { margin-top: 8pt; padding: 0; }
  .site-footer p { padding-top: 6pt; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
