:root {
  --red: #ff0000;
  --paper: #ffffff;
  --ink: #000000;
  --muted: #595959;
  --page-width: 760px;
  color-scheme: light;
  color: var(--ink);
  background: var(--paper);
  font:
    16px/1.5 Arial,
    Helvetica,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.skip-link {
  position: absolute;
  top: 12px;
  left: 16px;
  z-index: 2;
  background: var(--paper);
  padding: 10px 16px;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.header {
  background: var(--red);
  padding: 12px 24px;
}
.name {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-align: center;
}
main {
  max-width: var(--page-width);
  margin-inline: auto;
  padding: 24px 24px 20px;
}
main:focus {
  outline: none;
}
.section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 32px;
  margin-bottom: 20px;
  scroll-margin-top: 32px;
}
.section:last-child {
  margin-bottom: 0;
}
.section h2 {
  padding-top: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.about-section {
  align-items: baseline;
  margin-bottom: 20px;
}
.bio {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.work-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: -4px;
  margin-bottom: 6px;
}
.work-tabs button {
  position: relative;
  min-height: 36px;
  padding: 8px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--muted);
}
.work-tabs button:hover,
.work-tabs button[aria-selected="true"] {
  color: var(--ink);
}
.work-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  bottom: 2px;
  inset-inline: 0;
  height: 2px;
  background: var(--red);
}
.work-panel {
  padding-top: 4px;
}
.work-panel + .work-panel {
  margin-top: 32px;
}
.work-tabs:not([hidden]) + .work-panels {
  min-height: 128px;
}
.work-tabs:not([hidden]) + .work-panels .work-panel {
  margin-top: 0;
}
.project-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.project-name {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.project-role {
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.detail {
  max-width: 48ch;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
}
.project-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  font-size: 14px;
}
.work-years,
.school-years {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.education {
  list-style: none;
  margin: -8px 0 0;
  padding: 0;
}
.education li + li {
  margin-top: 0;
}
.school-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 36px;
  list-style: none;
  cursor: pointer;
}
.school-details summary::-webkit-details-marker {
  display: none;
}
.school-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.school-label strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.school-arrow {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.school-details[open] .school-arrow {
  transform: rotate(135deg);
}
.school-details summary:hover .school-label strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.achievements {
  display: grid;
  gap: 12px;
  margin: 12px 0 24px;
  font-size: 14px;
}
.achievements > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px 92px;
  gap: 12px;
}
.achievements dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.achievements dd:last-child {
  text-align: right;
  color: var(--muted);
}
.contacts {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: -4px;
}
.contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
}
.email-contact {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}
.copy-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
}
.copy-email:hover {
  color: var(--ink);
  background: #f3f3f3;
}
.copy-status {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 13px;
}
.copy-status:empty {
  display: none;
}
@media (max-width: 700px) {
  .section {
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 24px;
  }
  .project-heading {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .work-tabs {
    column-gap: 18px;
  }
}
@media (max-width: 540px) {
  .header {
    padding: 8px 20px;
  }
  .name {
    font-size: 28px;
  }
  main {
    padding: 12px 20px;
  }
  .section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    margin-bottom: 12px;
    scroll-margin-top: 12px;
  }
  .section h2 {
    padding: 0;
    color: var(--muted);
    font-size: 12px;
  }
  .bio {
    font-size: 18px;
  }
  .work-tabs {
    margin: 0 0 4px;
    column-gap: 18px;
  }
  .work-tabs button {
    font-size: 13px;
  }
  .work-tabs:not([hidden]) + .work-panels {
    min-height: 110px;
  }
  .work-panel {
    padding-top: 0;
  }
  .project-heading {
    margin-bottom: 4px;
  }
  .project-name {
    font-size: 22px;
  }
  .project-role {
    font-size: 14px;
  }
  .work-years,
  .school-years {
    font-size: 12px;
  }
  .education,
  .contacts {
    margin-top: 0;
  }
  .contacts {
    gap: 0 16px;
  }
  .email-contact {
    gap: 2px;
  }
}
@media (max-width: 359px) {
  main {
    padding-inline: 12px;
  }
  .work-tabs {
    column-gap: 16px;
  }
  .contacts {
    column-gap: 12px;
  }
  .contacts a {
    font-size: 13px;
  }
  .achievements > div {
    grid-template-columns: minmax(0, 1fr) 32px 52px;
    gap: 8px;
  }
}
@media (max-height: 650px) and (max-width: 540px) {
  .name {
    font-size: 24px;
  }
  .header {
    padding-block: 6px;
  }
  main {
    padding-block: 10px;
  }
  .section {
    margin-bottom: 8px;
    row-gap: 2px;
  }
  .section:last-child {
    margin-bottom: 0;
  }
  .bio {
    font-size: 17px;
  }
  .work-tabs {
    margin-bottom: 2px;
  }
  .work-tabs button,
  .school-details summary,
  .contacts a,
  .project-link {
    min-height: 32px;
  }
  .copy-email {
    height: 32px;
  }
  .work-tabs:not([hidden]) + .work-panels {
    min-height: 104px;
  }
}
@media print {
  :root {
    font-size: 11pt;
  }
  .header {
    background: none;
    padding: 0 0 24px;
  }
  .name {
    font-size: 32pt;
  }
  .work-tabs,
  .copy-email,
  .copy-status,
  .skip-link {
    display: none !important;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .section {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 22px;
  }
  .work-panel[hidden] {
    display: block !important;
  }
  .work-tabs:not([hidden]) + .work-panels .work-panel + .work-panel {
    margin-top: 20px;
  }
  .work-tabs:not([hidden]) + .work-panels {
    min-height: 0;
  }
  .work-panel,
  .school-details {
    break-inside: avoid;
  }
  .project-name,
  .bio {
    font-size: 18pt;
  }
  .project-link {
    margin-top: 0;
  }
}
