:root {
  color-scheme: light;
  --page: #f5f6f3;
  --paper: #ffffff;
  --ink: #151916;
  --muted: #5d6660;
  --line: #d9ded8;
  --accent: #11675d;
  --accent-soft: #e8f2ef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.48 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.resume-page {
  width: min(920px, calc(100% - 28px));
  margin: 32px auto;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(21, 25, 22, .08);
}

.resume-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 3px solid var(--ink);
}

.eyebrow,
h1,
h2,
h3,
p {
  margin: 0;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

h1 {
  font-size: 48px;
  line-height: 1;
  letter-spacing: 0;
}

.headline {
  max-width: 640px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.actions a,
.actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.actions a:hover,
.actions button:hover {
  border-color: var(--accent);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 16px 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.contact-strip span {
  overflow-wrap: anywhere;
}

.resume-section {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.resume-section > :not(h2) {
  grid-column: 2;
}

.resume-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

h2 {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  font-size: 18px;
  line-height: 1.18;
  letter-spacing: 0;
}

.summary p,
.education > .entry > p,
.skill-list p,
.entry-head p {
  color: var(--muted);
}

.skill-list {
  display: grid;
  gap: 10px;
}

.skill-list strong {
  color: var(--ink);
}

.entry {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
}

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

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

.entry-head span {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

li::marker {
  color: var(--accent);
}

.compact {
  padding-bottom: 18px;
}

@media (max-width: 760px) {
  .resume-page {
    width: min(100% - 20px, 920px);
    margin: 10px auto;
    padding: 24px;
  }

  .resume-header,
  .entry-head {
    flex-direction: column;
  }

  .actions {
    justify-content: flex-start;
  }

  h1 {
    font-size: 38px;
  }

  .resume-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resume-section > :not(h2) {
    grid-column: auto;
  }
}

@media print {
  @page {
    size: letter;
    margin: .55in;
  }

  body {
    background: #ffffff;
    font-size: 11px;
  }

  .resume-page {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .actions {
    display: none;
  }

  .resume-header {
    padding-bottom: 14px;
  }

  h1 {
    font-size: 34px;
  }

  .headline {
    font-size: 13px;
  }

  .contact-strip {
    padding: 10px 0 2px;
    font-size: 10px;
  }

  .resume-section {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 13px 0;
    break-inside: avoid;
  }

  .entry {
    gap: 7px;
    padding-bottom: 11px;
    break-inside: avoid;
  }

  h2,
  .entry-head span {
    font-size: 10px;
  }

  h3 {
    font-size: 13px;
  }

  ul {
    gap: 3px;
  }
}
