* {
  box-sizing: border-box;
}

:root {
  --ink: #141619;
  --muted: #5f6263;
  --paper: #eeeade;
  --paper-light: #f8f5ec;
  --line: #bbb9b1;
  --orange: #ad3d24;
  --yellow: #d6ff42;
  --mono: "IBM Plex Mono", monospace;
  --display: "Syne", sans-serif;
}

html {
  background: #26292d;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

body {
  margin: 0;
  padding: 6rem 1rem 3rem;
}

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

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.cv-actions {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  left: 50%;
  max-width: 1120px;
  padding: 0 1rem;
  position: absolute;
  top: 1.5rem;
  transform: translateX(-50%);
  width: 100%;
}

.cv-actions a,
.cv-actions button {
  background: transparent;
  border: 1px solid #777a7c;
  color: #f5f3eb;
  cursor: pointer;
  font: 600 0.72rem var(--mono);
  padding: 0.7rem 0.9rem;
  text-transform: uppercase;
}

.cv-actions button {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.cv-page {
  background: var(--paper);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.28);
  margin: 0 auto;
  max-width: 1120px;
  min-height: 1440px;
  padding: 4.5rem 4.8rem 2.5rem;
}

.cv-header {
  align-items: end;
  border-bottom: 3px solid var(--ink);
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr auto;
  padding-bottom: 2.2rem;
}

.kicker,
.cv-section > h2,
.cv-summary > h2 {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker {
  color: var(--orange);
  margin: 0 0 0.6rem;
}

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

h1,
h3 {
  font-family: var(--display);
}

h1 {
  font-size: 5.8rem;
  letter-spacing: -0.07em;
  line-height: 0.9;
  margin-bottom: 0.8rem;
}

.role {
  font-size: 0.88rem;
  margin: 0;
  text-transform: uppercase;
}

.identity {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  gap: 0.3rem;
  text-align: right;
}

.identity p {
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

.cv-summary {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2rem;
  grid-template-columns: 130px 1fr;
  padding: 2rem 0;
}

.cv-summary > h2,
.cv-section > h2 {
  margin: 0;
}

.cv-summary > p {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 0;
}

.summary-metrics {
  display: grid;
  gap: 0.8rem;
  grid-column: 2;
  grid-template-columns: repeat(4, 1fr);
}

.summary-metrics span {
  border-left: 2px solid var(--orange);
  color: var(--muted);
  font-size: 0.62rem;
  padding-left: 0.7rem;
  text-transform: uppercase;
}

.summary-metrics strong {
  color: var(--ink);
  display: block;
  font: 700 1.55rem/1 var(--display);
}

.cv-columns {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: minmax(0, 1fr) 285px;
  padding-top: 2.5rem;
}

.cv-section + .cv-section {
  margin-top: 2.7rem;
}

.cv-section > h2 {
  border-bottom: 1px solid var(--line);
  color: var(--orange);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
}

.experience + .experience {
  margin-top: 1.7rem;
}

.experience-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.experience h3,
.finding-list h3,
.side-project h3 {
  font-size: 1rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.experience-head p,
.experience-head time {
  color: var(--muted);
  font-size: 0.63rem;
  text-transform: uppercase;
}

.experience-head p {
  margin-bottom: 0;
}

.experience-head time {
  white-space: nowrap;
}

.experience ul {
  margin: 0.8rem 0 0;
  padding-left: 1.2rem;
}

.experience li {
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
}

.experience li a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.finding-list {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
}

.finding-list article {
  background: var(--paper-light);
  min-height: 118px;
  padding: 0.9rem;
}

.finding-list article > div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.finding-list time,
.finding-list a,
.tag {
  color: var(--muted);
  font-size: 0.57rem;
  text-transform: uppercase;
}

.finding-list h3 {
  margin: 0.75rem 0 0.45rem;
}

.finding-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tag {
  border: 1px solid currentColor;
  padding: 0.1rem 0.35rem;
}

.tag.high {
  color: #b6331a;
}

.tag.medium {
  color: #8b6500;
}

.tag.low {
  color: #217174;
}

.cv-sidebar {
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.plain-list,
.skill-list,
.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plain-list li,
.profile-list li {
  border-bottom: 1px solid #d1cfc7;
  font-size: 0.67rem;
  padding: 0.42rem 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip-list span {
  border: 1px solid var(--line);
  font-size: 0.58rem;
  padding: 0.25rem 0.42rem;
  text-transform: uppercase;
}

.skill-list li {
  font-size: 0.65rem;
  margin-bottom: 0.7rem;
}

.skill-list span {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
}

.side-project + .side-project {
  border-top: 1px solid #d1cfc7;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}

.side-project p,
.side-project a,
.sidebar-note {
  color: var(--muted);
  font-size: 0.62rem;
}

.sidebar-note {
  margin-bottom: 0;
}

.side-project p {
  margin: 0.35rem 0;
}

.side-project a,
.profile-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cv-footer {
  border-top: 3px solid var(--ink);
  display: flex;
  font-size: 0.58rem;
  justify-content: space-between;
  margin-top: 2.7rem;
  padding-top: 0.7rem;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  body {
    padding-top: 5rem;
  }

  .cv-page {
    min-height: auto;
    padding: 2rem 1.4rem;
  }

  .cv-header,
  .cv-columns,
  .cv-summary {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .identity {
    text-align: left;
  }

  .summary-metrics {
    grid-column: 1;
    grid-template-columns: repeat(2, 1fr);
  }

  .cv-sidebar {
    border-left: 0;
    border-top: 3px solid var(--ink);
    padding: 2rem 0 0;
  }

  .finding-list {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  html,
  body {
    background: white;
    font-size: 8.4px;
  }

  body {
    padding: 0;
  }

  .cv-actions {
    display: none;
  }

  .cv-page {
    box-shadow: none;
    height: 297mm;
    max-width: none;
    min-height: 297mm;
    overflow: hidden;
    padding: 12mm 13mm 7mm;
    width: 210mm;
  }

  .cv-header {
    padding-bottom: 1.5rem;
  }

  h1 {
    font-size: 5rem;
  }

  .cv-summary {
    padding: 1.5rem 0;
  }

  .cv-columns {
    gap: 2.6rem;
    grid-template-columns: minmax(0, 1fr) 220px;
    padding-top: 1.8rem;
  }

  .cv-section + .cv-section {
    margin-top: 1.8rem;
  }

  .experience + .experience {
    margin-top: 1.2rem;
  }

  .finding-list article {
    min-height: 90px;
  }

  .cv-footer {
    margin-top: 1.7rem;
  }

  a {
    color: inherit;
  }
}
