:root {
  --ink: #11161a;
  --text: #171a1d;
  --muted: #4d565f;
  --subtle: #6c747c;
  --paper: #ffffff;
  --line: #11161a;
  --soft-line: #d9dde1;
  --field: #f6f6f6;
  --page-bg: #eeeeee;
  --accent: #11161a;
  --link: #551a8b;
  --error: #9f1239;
  --shadow: none;
  --font-display: "Vollkorn", Georgia, serif;
  --font-readable: Arial, Helvetica, system-ui, sans-serif;
}

@font-face {
  font-display: swap;
  font-family: "Vollkorn";
  font-style: normal;
  font-weight: 400 900;
  src: url("../assets/fonts/vollkorn/Vollkorn-VariableFont_wght.ttf") format("truetype");
}

@font-face {
  font-display: swap;
  font-family: "Vollkorn";
  font-style: italic;
  font-weight: 400 900;
  src: url("../assets/fonts/vollkorn/Vollkorn-Italic-VariableFont_wght.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-readable);
  font-size: 16px;
}

body {
  background: var(--page-bg);
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: var(--link);
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
input,
textarea {
  outline-color: var(--accent);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  padding: 32px 16px;
}

.resume-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 0 auto 32px;
  max-width: 8.5in;
}

.resume-paper {
  background: var(--paper);
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
  line-height: 1.34;
  margin: 0 auto;
  max-width: 8.5in;
  min-height: 11in;
  padding: 0.58in 0.55in;
}

.resume-header {
  align-items: center;
  border-bottom: 2px solid var(--ink);
  display: block;
  padding-bottom: 13px;
  text-align: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: #000000;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.15;
  margin-bottom: 10px;
}

.home-link,
.download-button {
  align-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.88rem;
  font-family: var(--font-readable);
  font-weight: 800;
  gap: 8px;
  min-height: 40px;
  padding: 9px 13px;
  text-decoration: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.home-link {
  background: transparent;
  min-height: 40px;
}

.home-link:hover {
  background: rgb(255 255 255 / 44%);
}

.download-button {
  background: #ffffff;
  border: 1px solid rgb(17 22 26 / 14%);
}

.download-button:hover {
  background: #f9fafb;
  border-color: rgb(17 22 26 / 26%);
}

.download-button svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.contact-line {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 0;
  justify-content: center;
  line-height: 1.35;
  margin: 0;
}

.headline-line {
  color: #000000;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

.contact-line span,
.contact-line a {
  display: inline;
}

.contact-line span:not(:last-child)::after,
.contact-line a:not(:last-child)::after {
  content: " • ";
  display: inline;
  padding: 0 5px;
}

.resume-section {
  border-top: 0;
  display: block;
  padding: 24px 0 0;
}

.resume-section h2 {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  gap: 12px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 14px;
  text-align: center;
  text-transform: uppercase;
}

.resume-section h2::before,
.resume-section h2::after {
  background: var(--soft-line);
  content: "";
  flex: 1;
  height: 1px;
}

.entry-list {
  display: grid;
  gap: 24px;
}

.entry {
  break-inside: avoid;
}

.entry.client-work {
  border-left: 1px solid var(--soft-line);
  margin-left: 8px;
  padding-left: 16px;
}

.nested-list {
  border-left: 1px solid var(--soft-line);
  display: grid;
  gap: 14px;
  margin: 10px 0 0 4px;
  padding-left: 14px;
}

.nested-list .entry h3 {
  font-size: 0.96rem;
}

.nested-list .entry ul {
  margin-top: 6px;
}

.entry-line {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  line-height: 1.28;
}

.entry-line p {
  text-align: right;
}

.entry h3 {
  color: #000000;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.24;
  margin: 0;
}

.entry p {
  margin-bottom: 0;
}

.entry-heading {
  align-items: baseline;
}

.entry-heading p {
  color: var(--subtle);
  font-size: 0.86rem;
  font-weight: 700;
}

.entry-meta {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 3px;
}

.entry time {
  flex: 0 0 auto;
  text-align: right;
}

.entry-summary {
  color: #2b3034;
  font-size: 0.91rem;
  line-height: 1.36;
  margin: 7px 0 0;
}

.entry ul {
  color: #111111;
  margin: 10px 0 0;
  padding-left: 24px;
}

.entry li {
  line-height: 1.36;
  margin: 0 0 5px;
  padding-left: 5px;
}

.skills dl {
  display: grid;
  gap: 2px;
  margin: 0;
}

.skills dl div {
  display: flex;
  gap: 5px;
}

.skills .skill-row {
  color: #2b3034;
  display: block;
}

.skills dt {
  color: #000000;
  font-weight: 800;
}

.skills dd {
  color: #2b3034;
  margin: 0;
}

@media (max-width: 1080px) {
  .resume-paper {
    padding: 0.45in 0.35in;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 0;
  }

  .resume-paper {
    box-shadow: none;
    font-size: 0.98rem;
    min-height: auto;
    padding: 26px 20px 96px;
  }

  .headline-line {
    font-size: 0.94rem;
  }

  .resume-toolbar {
    background: #ffffff;
    border-bottom: 1px solid rgb(17 22 26 / 12%);
    justify-content: space-between;
    margin: 0;
    max-width: none;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 5;
  }

  .entry-line {
    flex-direction: column;
    gap: 2px;
  }

  .entry-line p,
  .entry time {
    text-align: left;
  }

  .entry-heading {
    gap: 3px;
  }

  .entry-heading p {
    font-size: 0.9rem;
  }

  .entry-meta {
    font-size: 0.94rem;
    margin-top: 5px;
  }

  .entry-summary {
    font-size: 0.94rem;
    margin-top: 8px;
  }

  .resume-section {
    padding-top: 24px;
  }

  .entry ul {
    margin-top: 12px;
    padding-left: 24px;
  }

  .nested-list {
    gap: 16px;
    margin-left: 2px;
    padding-left: 12px;
  }

  .skills dl div {
    display: block;
  }
}

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

  html,
  body {
    background: #ffffff;
    font-family: var(--font-readable);
  }

  .no-print {
    display: none !important;
  }

  .page-shell {
    display: block;
    min-height: auto;
    padding: 0;
  }

  .resume-paper {
    background: #ffffff;
    box-shadow: none;
    font-family: var(--font-readable);
    font-size: 9pt;
    line-height: 1.22;
    min-height: auto;
    padding: 0;
  }

  h1,
  .resume-section h2,
  .entry h3 {
    font-family: var(--font-readable);
  }

  h1 {
    font-size: 13pt;
    margin-bottom: 4pt;
  }

  .resume-header {
    border-bottom-width: 1.5pt;
    padding-bottom: 7pt;
  }

  .headline-line {
    font-size: 9.5pt;
    line-height: 1.15;
    margin-bottom: 4pt;
  }

  .contact-line {
    font-size: 9pt;
    line-height: 1.15;
  }

  .resume-section {
    padding: 8pt 0 0;
  }

  .resume-section h2 {
    font-size: 8.5pt;
    gap: 8pt;
    margin-bottom: 7pt;
  }

  .entry,
  .entry-list,
  .nested-list {
    break-inside: auto;
    page-break-inside: auto;
  }

  .resume-section h2,
  .entry-heading,
  .entry-meta {
    break-after: avoid;
    page-break-after: avoid;
  }

  .entry-list {
    display: block;
  }

  .entry.client-work {
    margin-left: 3pt;
    padding-left: 8pt;
  }

  .entry + .entry,
  .nested-list .entry + .entry {
    margin-top: 7pt;
  }

  .nested-list {
    display: block;
    margin-top: 6pt;
    padding-left: 10pt;
  }

  .entry ul {
    margin-top: 4pt;
    padding-left: 18pt;
  }

  .entry li {
    line-height: 1.25;
    margin-bottom: 2pt;
    padding-left: 2pt;
  }

  .entry h3 {
    font-size: 9.5pt;
    line-height: 1.15;
  }

  .entry-heading p {
    font-size: 8.5pt;
  }

  .entry-meta {
    font-size: 9pt;
    margin-top: 1pt;
  }

  .entry-summary {
    font-size: 9pt;
    line-height: 1.25;
    margin-top: 4pt;
  }

  .skills dl {
    gap: 0;
  }
}
