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

:root {
  --color-text:       #1a1a1a;
  --color-muted:      #3a3a3a;
  --color-bg:         #ffffff;
  --color-section-bg: #1a1a1a;
  --color-section-fg: #ffffff;

  --font-display: "EB Garamond",   Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", Arial, Helvetica, sans-serif;
}

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  height: 100%;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }


.resume {
  width: 100%;
  max-width: 100%;
  padding: 2rem 3.5rem;
  background: var(--color-bg);
}

.resume-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}

.contact {
  font-size: 0.82rem;
  color: var(--color-muted);
}


.section {
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background-color: var(--color-section-bg);
  color: var(--color-section-fg);
  padding: 2px 6px;
  margin-bottom: 0.4rem;
}


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

.entry-org {
  font-size: 0.88rem;
  font-weight: 700;
}

.entry-role {
  font-weight: 700;
}

.entry-date {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.entry-degree {
  font-size: 0.85rem;
  font-style: italic;
  margin-bottom: 0.15rem;
}

.entry-detail {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-bottom: 0.12rem;
  line-height: 1.5;
}

.entry-detail strong {
  font-weight: 700;
  color: var(--color-text);
}

.entry-detail.certs {
  color: var(--color-text);
}


.job {
  margin-bottom: 0.65rem;
}
.job:last-child { margin-bottom: 0; }

.bullets {
  list-style: disc;
  padding-left: 1.25em;
  margin-top: 0.1rem;
}

.bullets li {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 0.12rem;
}

@media print {
  html, body { font-size: 10pt; }

  .resume { padding: 0.5in 0.65in; }

  .name          { font-size: 20pt; }
  .contact       { font-size: 9pt; }
  .entry-org,
  .entry-date    { font-size: 10pt; }
  .entry-degree,
  .entry-detail,
  .bullets li    { font-size: 9.5pt; }
  .section-title { font-size: 9pt; }

  .section { page-break-inside: avoid; }
  .job      { page-break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}


@media (max-width: 640px) {
  .resume { padding: 1.25rem 1rem; }

  .entry-header {
    flex-direction: column;
    gap: 0.1rem;
  }

  .name { font-size: 1.6rem; }
}