/* Resume — design spec v1. Shared chrome and type: /styles.css */

.resume-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  column-gap: 40px;
  align-items: start;
  padding: 2.25rem 0 3.5rem;
  min-width: 0;
}

.resume-intro,
.resume-main,
.resume-edu,
.resume-skills,
.sidebar-stack {
  min-width: 0;
  max-width: 100%;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.resume-intro .headshot-sm {
  width: 160px;
  height: 160px;
  margin: 0 0 1rem;
  margin-inline: auto;
}

.resume-page .resume-intro h1 {
  font-size: 28px;
  margin: 0 0 8px;
}

.resume-intro .lede {
  margin: 0 0 0.7rem;
}

.resume-meta {
  margin: 0 0 0.35rem;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
}

.resume-intro .hero-actions {
  flex-direction: column;
  align-items: stretch;
  margin-top: 1rem;
  gap: 12px;
}

.resume-intro .btn {
  width: 100%;
}

.resume-edu .compact-list,
.resume-skills {
  font-size: 15px;
  line-height: 1.5;
}

.compact-list {
  margin: 0;
  padding-left: 1.1rem;
}

.compact-list li + li {
  margin-top: 0.45rem;
}

.skill-block {
  margin: 0 0 0.95rem;
}

.skill-block:last-child {
  margin-bottom: 0;
}

.skill-label {
  margin: 0 0 0.25rem;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.3;
}

.skill-block p:not(.skill-label) {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.resume-main .section {
  margin: 0 0 2rem;
}

.resume-main .section:last-child {
  margin-bottom: 0;
}

.resume-main .section > p {
  margin: 0 0 1rem;
}

.pills {
  list-style: none;
  margin: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--accent);
  border-radius: 12px;
}

.pills li {
  margin: 0;
  padding: 0;
  background: none;
  color: var(--accent);
  border-radius: 0;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.timeline {
  position: relative;
  padding-left: 22px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--rule);
}

.job {
  position: relative;
  margin: 0 0 1.35rem;
}

.job:last-child {
  margin-bottom: 0;
}

.job::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.job-head {
  margin: 0;
}

.job-org {
  margin: 0;
  font-weight: 600;
}

.job-meta {
  margin: 0 0 0.4rem;
  font-size: 14px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.job ul {
  margin: 0.2rem 0 0;
  list-style: none;
  padding-left: 0;
}

.job ul li {
  position: relative;
  padding-left: 0.9em;
}

.job ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--muted);
}

.job li + li {
  margin-top: 0.3rem;
}

.additional-list {
  padding-left: 1.15rem;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.project-card {
  background: var(--accent-tint);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px;
  box-shadow: none;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(31, 41, 51, 0.1);
}

.project-card .job-meta {
  margin-bottom: 0.5rem;
}

.project-card ul {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
}

.project-card li + li {
  margin-top: 0.3rem;
}

@media (max-width: 799px) {
  .resume-layout {
    display: flex;
    flex-direction: column;
    padding-top: 1.75rem;
  }

  .sidebar-stack {
    display: contents;
    position: static;
  }

  .resume-intro {
    order: 1;
    margin-bottom: 2rem;
  }

  .resume-main {
    order: 2;
  }

  .resume-edu {
    order: 3;
    margin-top: 0.5rem;
  }

  .resume-skills {
    order: 4;
    margin-top: 1.75rem;
  }

  .resume-page .resume-intro h1 {
    font-size: 34px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .pills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  html,
  body,
  .resume-page {
    background: #fff !important;
    color: #000 !important;
    font-size: 9.25pt;
    line-height: 1.22;
  }

  .skip,
  .site-header,
  .site-footer,
  .hero-actions,
  .btn,
  .headshot {
    display: none !important;
  }

  a {
    color: #000 !important;
    text-decoration: underline;
  }

  .wrap {
    width: 100%;
    max-width: none;
  }

  .resume-layout {
    display: flex;
    flex-direction: column;
    padding: 0;
    column-gap: 0;
  }

  .sidebar-stack {
    display: contents;
    position: static;
  }

  .resume-intro {
    order: 1;
    margin: 0 0 0.35rem;
  }

  .resume-main {
    order: 2;
  }

  .resume-edu {
    order: 3;
    margin-top: 0.45rem;
  }

  .resume-skills {
    order: 4;
    margin-top: 0.45rem;
  }

  .resume-intro .headshot-sm {
    width: 52px;
    height: 52px;
    margin: 0 0 0.22rem;
  }

  .resume-page .resume-intro h1 {
    font-size: 15pt;
    color: #000 !important;
    margin-bottom: 0.12rem;
  }

  .lede,
  .resume-meta,
  .job-meta,
  .skill-label,
  h1, h2, h3,
  .job-org {
    color: #000 !important;
  }

  .lede {
    font-size: 10pt;
    margin-bottom: 0.15rem;
  }

  .resume-meta {
    font-size: 8.75pt;
  }

  h2 {
    font-size: 11pt;
    margin: 0 0 0.18rem;
    padding: 0;
    border-bottom: none;
    letter-spacing: normal;
    text-transform: none;
  }

  h2::before {
    display: none;
  }

  h3 {
    font-size: 10pt;
    margin-bottom: 0.04rem;
  }

  .resume-main .section {
    margin: 0 0 0.38rem;
  }

  .resume-main .section > p {
    margin: 0 0 0.28rem;
  }

  .pills {
    display: block;
    background: none;
    padding: 0;
    border-radius: 0;
  }

  .pills li {
    display: inline;
    background: none;
    color: #000;
    border-radius: 0;
    padding: 0;
    font-size: inherit;
    font-weight: 400;
  }

  .pills li:not(:last-child)::after {
    content: ", ";
  }

  .timeline {
    padding-left: 0;
  }

  .timeline::before,
  .job::before {
    display: none;
  }

  .job {
    margin-bottom: 0.28rem;
  }

  .job ul,
  .project-card ul,
  .compact-list {
    margin-top: 0.08rem;
  }

  .job li + li,
  .compact-list li + li {
    margin-top: 0.06rem;
  }

  .job-meta {
    margin-bottom: 0.12rem;
    font-size: 8.75pt;
  }

  .project-grid {
    display: block;
  }

  .project-card {
    background: #fff;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin: 0 0 0.28rem;
  }

  .project-card:hover {
    box-shadow: none;
  }

  .skill-label {
    text-transform: uppercase;
    font-size: 8pt;
    color: #000;
    margin-bottom: 0.08rem;
  }

  .skill-block {
    margin-bottom: 0.28rem;
  }

  .resume-edu {
    margin-top: 0.28rem;
  }

  .resume-skills {
    margin-top: 0.28rem;
  }
}
