:root {
  --paper: #f5f1e7;
  --canvas: #e4dfd3;
  --ink: #1a1b17;
  --muted: #66685e;
  --line: #d1cbbd;
  --accent: #c64a2c;
  --accent-dark: #8b3c27;
  --moss: #59644a;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 36px auto 64px;
}

.resume {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 92px) clamp(36px, 8vw, 112px) 56px;
  background:
    radial-gradient(circle at 96% 2%, rgb(89 100 74 / 11%), transparent 27%),
    radial-gradient(circle at 3% 100%, rgb(198 74 44 / 4%), transparent 22%),
    var(--paper);
  box-shadow: 0 18px 64px rgb(49 45 34 / 12%);
}

.resume::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    #b85a3d 52%,
    var(--moss) 100%
  );
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 72px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 23px;
  color: var(--moss);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 27px;
  font: 400 clamp(72px, 9vw, 112px) / 0.84 var(--serif);
  letter-spacing: -0.038em;
}

.intro {
  max-width: 460px;
  margin: 0;
  color: #3d3f38;
  font: 400 clamp(18px, 1.9vw, 21px) / 1.38 var(--serif);
}

.contact {
  margin: 0;
  padding-bottom: 2px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.72;
}

.contact p,
.contact a {
  display: block;
  margin: 0;
  text-decoration: none;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--accent-dark);
}

.section {
  padding-top: 58px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.section-heading span {
  margin: 0;
  font: 600 11px/1 var(--sans);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.section-heading span {
  color: var(--moss);
  font-variant-numeric: tabular-nums;
}

.entry {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 32px;
  padding: 22px 0 21px;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}

.dates {
  margin: 2px 0 0;
  color: var(--moss);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.entry-copy h3 {
  margin: 0 0 5px;
  font: 500 20px/1.25 var(--serif);
}

.entry-copy h3 span {
  display: inline;
  color: var(--muted);
  font: 400 13px/1.4 var(--sans);
}

.entry-copy h3 span::before {
  content: " / ";
  color: var(--accent);
}

.entry-copy p,
.entry-copy ul {
  max-width: 760px;
  margin: 0;
  color: #34332e;
}

.entry-copy ul {
  list-style: none;
  padding: 0;
}

.entry-copy li {
  position: relative;
  padding-left: 18px;
}

.entry-copy li + li {
  margin-top: 8px;
}

.entry-copy li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 1px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.entry-copy a,
.text-link {
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: transparent;
  color: var(--accent-dark);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.entry-copy a:hover,
.entry-copy a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  border-color: var(--accent-dark);
  border-bottom-width: 2px;
  color: var(--accent);
}

.education .entry {
  border-bottom: 0;
}

.section:not(.education) > .entry:last-child {
  border-bottom: 0;
}

.education {
  padding-top: 38px;
}

.video-dialog {
  width: min(1100px, calc(100vw - 32px));
  max-width: none;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #f9f7f1;
}

.video-dialog::backdrop {
  background: rgb(14 13 11 / 91%);
  backdrop-filter: blur(7px);
}

.video-frame {
  animation: dialog-in 220ms ease-out both;
}

.video-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 15px;
}

.video-header .eyebrow {
  margin-bottom: 2px;
  color: #d68a76;
}

.video-header h2 {
  margin: 0;
  font: 400 38px/1 var(--serif);
}

.close-button {
  border: 0;
  background: transparent;
  color: #d5d0c6;
  font: 500 11px/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 12px 0 4px 20px;
  outline: none;
}

.close-button:hover,
.close-button:focus-visible {
  color: #fff;
}

.close-button:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.video-dialog video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(255 255 255 / 14%);
  background: #090909;
  box-shadow: 0 28px 80px rgb(0 0 0 / 40%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
}

@media (max-width: 760px) {
  html,
  body {
    background: var(--paper);
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .resume {
    padding: 52px 24px 42px 30px;
    box-shadow: none;
  }

  .resume::before {
    width: 4px;
  }

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

  h1 {
    margin-bottom: 23px;
    font-size: clamp(66px, 22.5vw, 88px);
    line-height: 0.84;
  }

  .eyebrow {
    margin-bottom: 20px;
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .contact {
    line-height: 1.75;
  }

  .section {
    padding-top: 46px;
  }

  .education {
    padding-top: 32px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .dates {
    color: var(--accent-dark);
  }

  .entry-copy h3 span {
    display: block;
    margin-top: 3px;
  }

  .entry-copy h3 span::before {
    content: none;
  }

  .video-dialog {
    width: calc(100vw - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-frame {
    animation: none;
  }
}

@page {
  size: letter;
  margin: 0;
}

@media print {
  :root {
    --paper: #fff;
  }

  html,
  body {
    background: #fff;
  }

  body {
    font-size: 8.8pt;
    line-height: 1.43;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .video-dialog {
    display: none;
  }

  .resume {
    width: 8.5in;
    height: 11in;
    padding: 0.52in 0.62in 0.46in 0.7in;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
  }

  .resume::before {
    width: 0.04in;
  }

  .masthead {
    grid-template-columns: 1fr 2.1in;
    gap: 0.35in;
  }

  .eyebrow {
    margin-bottom: 0.08in;
    font-size: 7pt;
  }

  h1 {
    margin-bottom: 0.1in;
    font-size: 48pt;
    line-height: 0.82;
    letter-spacing: -0.035em;
  }

  .intro {
    max-width: 4.7in;
    font-size: 11pt;
    line-height: 1.2;
  }

  .contact {
    font-size: 7.2pt;
    line-height: 1.65;
  }

  .section {
    padding-top: 0.18in;
  }

  .section-heading {
    margin-bottom: 0.02in;
    padding-bottom: 0.06in;
  }

  .section-heading h2,
  .section-heading span {
    font-size: 7pt;
  }

  .entry {
    grid-template-columns: 0.9in 1fr;
    gap: 0.17in;
    padding: 0.09in 0;
  }

  .dates {
    font-size: 6.8pt;
  }

  .entry-copy h3 {
    margin-bottom: 0.02in;
    font-size: 10pt;
  }

  .entry-copy h3 span {
    font-size: 7.3pt;
  }

  .entry-copy li {
    padding-left: 0.12in;
  }

  .entry-copy li + li {
    margin-top: 0.025in;
  }

  .entry-copy li::before {
    width: 3px;
    height: 3px;
  }

  .text-link {
    border-bottom: 0;
    color: inherit;
  }
}
