/* ============================================================
   Résumé page — document styling + print rules
   ============================================================ */

body:has(.resume-page) {
  --accent: #a83212;
  --accent-hover: #8f280c;
  --text-faint: #4b4b55;
  --text-on-accent: #ffffff;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-shell);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-body);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: #a83212;
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.logo-dot {
  color: #a83212;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  background: #a83212;
  color: var(--text-on-accent) !important;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: var(--text-on-accent) !important;
}

.resume-page {
  padding-top: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  padding-inline: 1rem;
}

.resume-sheet {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4.5vw, 3.5rem);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-shell);
}

/* Header */
.resume-head {
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}
.resume-name {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.resume-title {
  color: #a83212;
  font-weight: 500;
  font-size: var(--fs-body);
  line-height: 1.5;
  margin-top: 0.6rem;
  max-width: 64ch;
}
.resume-meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #4b4b55;
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
}
.resume-meta a {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.resume-meta a:hover {
  color: var(--text);
  border-color: var(--accent-line);
}

/* Sections */
.resume-section {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.resume-section:last-child {
  border-bottom: none;
}
.resume-h {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a83212;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resume-h::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.resume-section > p {
  color: var(--text-dim);
  line-height: 1.75;
}

.resume-skills p {
  margin-bottom: 0.4rem;
  color: var(--text-dim);
}
.resume-skills strong {
  color: var(--text);
  font-weight: 600;
}

/* Jobs */
.job {
  margin-bottom: 2rem;
}
.job:last-child {
  margin-bottom: 0;
}
.job-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.job-company {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.job-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: #4b4b55;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.job-role {
  color: #a83212;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 0.25rem;
}
.resume-lead {
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.job-sub {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b4b55;
  margin-top: 1.1rem;
}
.job ul {
  list-style: none;
  margin-top: 0.6rem;
}
.job ul li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: 0.55rem;
}
.job ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent-line);
}

/* ---------- Print (A4, three pages) ---------- */
@page {
  size: A4;
  margin: 13mm 14mm;
}

@media print {
  .nav,
  .no-print,
  .footer {
    display: none !important;
    background: #fbfcfd;
    color: #141619;
  }
  .nav-cta,
  .nav-cta:hover {
    background: #fbfcfd;
    color: #141619 !important;
  }
  body,
  body * {
    font-variant-ligatures: none !important;
    font-feature-settings: "liga" 0, "clig" 0, "calt" 0, "dlig" 0 !important;
  }
  body {
    background: #fbfcfd;
    color: #141619;
    font-size: 9.5pt;
    line-height: 1.45;
  }
  .resume-page,
  .resume-sheet,
  .resume-head,
  .resume-section,
  .resume-skills,
  .job,
  .job-head {
    background: #fbfcfd;
  }
  .resume-page {
    padding: 0;
  }
  .resume-sheet {
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fbfcfd;
  }
  .resume-head {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .resume-name {
    font-size: 24pt;
    color: #141619;
  }
  .resume-title {
    font-size: 9.5pt;
    margin-top: 0.3rem;
    color: #a83212;
  }
  .resume-meta {
    font-size: 8.5pt;
    margin-top: 0.5rem;
    color: #3d424a;
  }
  .resume-section {
    padding-block: 0.8rem;
    border-bottom-color: rgba(20, 22, 26, 0.14);
  }
  .resume-h {
    font-size: 7.5pt;
    margin-bottom: 0.6rem;
    color: #a83212;
    break-after: avoid;
  }
  .resume-h::after,
  .resume-section > p,
  .resume-skills p,
  .resume-lead {
    font-size: 9pt;
    line-height: 1.45;
    color: #3d424a;
  }
  .resume-skills strong,
  .job-company {
    color: #141619;
  }
  .resume-skills p {
    margin-bottom: 0.2rem;
  }
  .job {
    margin-bottom: 0.9rem;
    break-inside: avoid;
  }
  .job-company {
    font-size: 10.5pt;
  }
  .job-date {
    font-size: 8pt;
    color: #525862;
  }
  .job-role {
    font-size: 8.8pt;
    margin-top: 0.1rem;
    color: #a83212;
  }
  .resume-lead {
    margin-top: 0.4rem;
  }
  .job-sub {
    font-size: 6.8pt;
    margin-top: 0.5rem;
    color: #525862;
  }
  .job ul {
    margin-top: 0.35rem;
  }
  .job ul li {
    font-size: 9pt;
    line-height: 1.42;
    margin-bottom: 0.2rem;
    padding-left: 1rem;
    color: #3d424a;
  }
  .job ul li::before {
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: #a83212;
  }
  .resume-h::after {
    background: rgba(20, 22, 26, 0.14);
  }
  a {
    color: inherit !important;
  }
}
