/* Desktop CV look: centered serif column echoing the one-page CV. */

body {
  margin: 0;
  background: #fff;
  color: #111;
  font-family: Georgia, "Times New Roman", "Nimbus Roman", serif;
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 40px 72px;
}

.site-header {
  text-align: center;
  margin-bottom: 32px;
}

.site-header h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact {
  margin: 0;
}

.contact .sep {
  margin: 0 0.4em;
}

a {
  color: inherit;
}

a:hover {
  color: #555;
}

.contact a {
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 32px;
}

section h2 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #333;
  padding-bottom: 4px;
}

section h2 a {
  text-decoration: none;
}

section h2 a:hover {
  text-decoration: underline;
}

.entry {
  margin-bottom: 24px;
}

.entry:last-child {
  margin-bottom: 0;
}

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.entry-head h3 {
  margin: 0;
  font-size: 1.08rem;
}

.entry-head .date {
  white-space: nowrap;
}

.entry-sub {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-style: italic;
}

.entry-sub .role {
  margin: 0;
}

.entry-sub .loc {
  white-space: nowrap;
}

.entry ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.entry li {
  position: relative;
  padding-left: 1.1em;
  margin: 2px 0;
}

.entry li::before {
  content: "\00B7";
  position: absolute;
  left: 0.25em;
}

/* Narrow widths: stay readable single-column; the mobile design is separate work. */
@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .page {
    padding: 32px 20px 48px;
  }

  .entry-head,
  .entry-sub {
    flex-direction: column;
    gap: 0;
  }
}

/* Print: clean CV-like output. */
@media print {
  body {
    font-size: 12pt;
  }

  .page {
    max-width: none;
    padding: 0;
  }

  a {
    text-decoration: none;
  }

  a:hover {
    color: inherit;
  }

  section {
    break-inside: avoid-page;
  }
}
