:root {
  --ink: #1a1a1a;
  --muted: #444;
  --rule: #c8c8c8;
  --accent: #1e3a5f;
  --page-width: 8.5in;
  --page-padding: 0.55in 0.65in;
}

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

html {
  font-size: 10.5pt;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  line-height: 1.35;
  background: #ececec;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.resume {
  max-width: var(--page-width);
  margin: 1.5rem auto;
  padding: var(--page-padding);
  background: #fff;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}

.header {
  text-align: center;
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.header h1 {
  margin: 0 0 0.35rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
}

.contact {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.contact .sep {
  margin: 0 0.45rem;
  color: var(--rule);
}

.section {
  margin-top: 0.85rem;
}

.section h2 {
  margin: 0 0 0.45rem;
  padding-bottom: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
}

.entry {
  margin-bottom: 0.65rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.entry-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.dates {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.org {
  margin: 0.1rem 0 0.25rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--muted);
}

ul {
  margin: 0.2rem 0 0;
  padding-left: 1.15rem;
}

li {
  margin-bottom: 0.15rem;
}

.skills-list {
  columns: 2;
  column-gap: 2rem;
}

.referees {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
}

.referee h3 {
  margin: 0 0 0.15rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.referee p {
  margin: 0.05rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media print {
  @page {
    size: A4;
    margin: 0.45in 0.55in;
  }

  body {
    background: #fff;
  }

  .resume {
    margin: 0;
    padding: 0;
    box-shadow: none;
    max-width: none;
  }

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

@media (max-width: 640px) {
  .resume {
    margin: 0;
    padding: 1.25rem 1rem;
    box-shadow: none;
  }

  .entry-header {
    flex-direction: column;
  }

  .skills-list,
  .referees {
    columns: 1;
    grid-template-columns: 1fr;
  }
}
