:root {
  color-scheme: light;
  --paper: #fffdf8;
  --canvas: #f7f4ef;
  --ink: #17202a;
  --muted: #5e6873;
  --line: #d9d1c4;
  --accent: #174c63;
  --accent-2: #8d2f2f;
  --accent-3: #3f6b43;
  --chip: #eef3f0;
  --shadow: 0 20px 60px rgba(27, 35, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-2);
}

.resume-shell {
  width: min(960px, calc(100% - 32px));
  margin: 32px auto;
  padding: 40px;
  background: var(--paper);
  border: 1px solid rgba(23, 32, 42, 0.08);
  box-shadow: var(--shadow);
}

.masthead {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 3px solid var(--ink);
}

.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px rgba(23, 32, 42, 0.18);
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.role {
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  background: var(--chip);
  border: 1px solid rgba(63, 107, 67, 0.2);
  color: #26312a;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

section {
  padding-top: 24px;
}

h2 {
  margin: 0 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.25;
}

p,
li,
dd {
  font-size: 0.96rem;
  line-height: 1.55;
}

.summary p {
  margin: 0;
  font-size: 1.04rem;
}

.project {
  padding: 17px 0 18px;
  border-bottom: 1px solid rgba(217, 209, 196, 0.75);
}

.project:last-child {
  border-bottom: 0;
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.project-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 650;
}

.project-heading span {
  justify-self: end;
  color: var(--accent-3);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}

li + li {
  margin-top: 6px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
  gap: 36px;
}

.skills {
  margin: 0;
}

.skills dt {
  margin-top: 11px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skills dt:first-child {
  margin-top: 0;
}

.skills dd {
  margin: 3px 0 0;
}

.education {
  margin: 0;
}

@media (max-width: 720px) {
  .resume-shell {
    width: 100%;
    margin: 0;
    padding: 24px 18px 28px;
    border: 0;
    box-shadow: none;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .avatar {
    width: 92px;
    height: 92px;
  }

  .project-heading,
  .split {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .project-heading span {
    justify-self: start;
    white-space: normal;
  }
}

@media print {
  @page {
    margin: 0.45in;
  }

  html,
  body {
    background: white;
  }

  .resume-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .avatar {
    width: 88px;
    height: 88px;
    box-shadow: none;
  }

  .masthead {
    grid-template-columns: 88px 1fr;
    gap: 20px;
    padding-bottom: 16px;
  }

  h1 {
    font-size: 3.1rem;
  }

  section {
    padding-top: 15px;
    break-inside: avoid;
  }

  .project {
    padding: 10px 0 11px;
    break-inside: avoid;
  }

  p,
  li,
  dd {
    font-size: 0.82rem;
    line-height: 1.32;
  }

  .summary p {
    font-size: 0.88rem;
  }

  .contact a {
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
  }
}
