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

.resume-page {
  padding-top: 72px;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.resume-sheet {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 4rem);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}

/* 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: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.resume-title {
  color: var(--accent);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  margin-top: 0.6rem;
  max-width: 64ch;
}
.resume-meta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
  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: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  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: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.job-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.job-role {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.25rem;
}
.resume-lead {
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}
.job-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  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: 0.96rem;
  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: 50%;
  background: var(--accent-line);
}

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

@media print {
  :root {
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --text: #14181d;
    --text-dim: #3a424c;
    --text-faint: #6b7480;
    --accent: #7a5c2e;
    --accent-line: rgba(122, 92, 46, 0.5);
    --line: #e4e7ea;
  }
  .grain,
  .progress,
  .nav,
  .no-print,
  .footer {
    display: none !important;
  }
  body {
    background: #fff;
    color: #14181d;
    font-size: 9.5pt;
    line-height: 1.45;
    font-feature-settings: "calt" 0;
  }
  .resume-page {
    padding: 0;
  }
  .resume-sheet {
    max-width: 100%;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  .resume-head {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  .resume-name {
    font-size: 24pt;
  }
  .resume-title {
    font-size: 9.5pt;
    margin-top: 0.3rem;
  }
  .resume-meta {
    font-size: 8.5pt;
    margin-top: 0.5rem;
  }
  .resume-section {
    padding-block: 0.8rem;
  }
  .resume-h {
    font-size: 7.5pt;
    margin-bottom: 0.6rem;
    break-after: avoid;
  }
  .resume-h::after,
  .resume-section > p,
  .resume-skills p,
  .resume-lead {
    font-size: 9pt;
    line-height: 1.45;
  }
  .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;
  }
  .job-role {
    font-size: 8.8pt;
    margin-top: 0.1rem;
  }
  .resume-lead {
    margin-top: 0.4rem;
  }
  .job-sub {
    font-size: 6.8pt;
    margin-top: 0.5rem;
  }
  .job ul {
    margin-top: 0.35rem;
  }
  .job ul li {
    font-size: 9pt;
    line-height: 1.42;
    margin-bottom: 0.2rem;
    padding-left: 1rem;
  }
  .job ul li::before {
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: #7a5c2e;
  }
  .resume-h::after {
    background: #e4e7ea;
  }
  a {
    color: inherit !important;
  }
}
