/* Résumé page — reuses the portfolio tokens and @font-face declarations from the site CSS. */
.resume-body {
  background: var(--background, #09090b);
  color: var(--text, #f4f4f5);
  font-family: var(--font-geist), Geist, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  min-height: 100vh;
}

.resume-shell {
  width: min(100% - 40px, 900px);
  margin-inline: auto;
  padding: 26px 0 96px;
}

.rs-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line-soft, #1d1d20);
  padding-bottom: 18px;
  margin-bottom: clamp(32px, 6vw, 64px);
}

.rs-back,
.rs-print {
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.rs-back:hover,
.rs-print:hover {
  color: var(--text, #f4f4f5);
}

.rs-print {
  background: none;
  border: 1px solid var(--line, #27272a);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
}

.rs-print:hover {
  border-color: var(--accent, #ff3b2f);
  color: #fff;
}

.rs-masthead {
  margin-bottom: clamp(34px, 5vw, 56px);
}

.rs-name {
  font-family: var(--font-anton), Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.92;
  font-size: clamp(46px, 9vw, 92px);
  margin: 0 0 14px;
  color: #fff;
}

.rs-name span {
  color: var(--accent, #ff3b2f);
}

.rs-role {
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  margin: 0 0 24px;
}

.rs-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--dim, #71717a);
  margin: 0;
}

.rs-contact a {
  color: var(--muted, #a1a1aa);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.rs-contact a:hover {
  color: #fff;
  border-bottom-color: var(--accent, #ff3b2f);
}

.rs-section {
  padding-top: clamp(26px, 4vw, 40px);
  margin-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid var(--line-soft, #1d1d20);
}

.rs-section:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.rs-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent, #ff3b2f);
  font-weight: 500;
  margin: 0 0 20px;
}

.rs-h em {
  font-style: normal;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--dim, #71717a);
}

.rs-lead {
  font-size: clamp(15px, 1.26vw, 17.5px);
  line-height: 1.72;
  color: #d4d4d8;
  margin: 0 0 16px;
  max-width: 68ch;
}

.rs-lead strong {
  color: #fff;
  font-weight: 500;
}

.rs-skills {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 0;
  margin: 0;
}

.rs-skills dt {
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  padding: 14px 0;
  border-top: 1px solid var(--line-soft, #1d1d20);
}

.rs-skills dd {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft, #1d1d20);
  color: #d4d4d8;
  font-size: 14.5px;
  line-height: 1.6;
}

.rs-skills dt:first-of-type,
.rs-skills dd:first-of-type {
  border-top: 0;
}

.rs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rs-card {
  border: 1px solid var(--line-soft, #1d1d20);
  border-radius: 14px;
  padding: 18px 18px 16px;
  background: var(--surface, #0e0e10);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rs-card:hover {
  border-color: var(--line, #27272a);
  transform: translateY(-2px);
}

.rs-card.is-wide {
  grid-column: 1 / -1;
}

.rs-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.rs-card h3 {
  font-family: var(--font-anton), Impact, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 22px;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}

.rs-card .rs-tags {
  font-family: var(--font-geist-mono), monospace;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim, #71717a);
  text-align: right;
  flex-shrink: 0;
  max-width: 52%;
}

.rs-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted, #a1a1aa);
}

.rs-card ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted, #a1a1aa);
}

.rs-card li + li {
  margin-top: 3px;
}

.rs-card a.rs-link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted, #a1a1aa);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.rs-card a.rs-link:hover {
  color: var(--accent, #ff3b2f);
}

.rs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rs-list li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft, #1d1d20);
}

.rs-list li:first-child {
  border-top: 0;
}

.rs-list b {
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted, #a1a1aa);
  font-weight: 500;
  padding-top: 3px;
}

.rs-list span {
  color: #d4d4d8;
  font-size: 14.5px;
  line-height: 1.6;
}

.rs-foot {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft, #1d1d20);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim, #71717a);
}

.rs-foot a {
  color: var(--muted, #a1a1aa);
  text-decoration: none;
}

.rs-foot a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .rs-grid {
    grid-template-columns: 1fr;
  }
  .rs-skills {
    grid-template-columns: 1fr;
  }
  .rs-skills dt {
    padding-bottom: 0;
    border-top: 0;
  }
  .rs-skills dd {
    padding-top: 4px;
    border-top: 0;
  }
  .rs-skills dd + dt {
    border-top: 1px solid var(--line-soft, #1d1d20);
    padding-top: 14px;
  }
  .rs-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .rs-card .rs-tags {
    text-align: left;
    max-width: none;
  }
  .rs-card-top {
    flex-direction: column;
    gap: 4px;
  }
}

/* Printing: clean paper version of the same page. */
@media print {
  @page {
    margin: 14mm 14mm;
  }
  html,
  body.resume-body {
    background: #fff !important;
    color: #111 !important;
  }
  .rs-topbar,
  .rs-foot .rs-print {
    display: none !important;
  }
  .resume-shell {
    width: 100%;
    padding: 0;
    max-width: none;
  }
  .rs-name,
  .rs-card h3 {
    color: #000 !important;
  }
  .rs-name {
    font-size: 34pt;
  }
  .rs-role,
  .rs-contact,
  .rs-contact a,
  .rs-lead,
  .rs-skills dd,
  .rs-card p,
  .rs-card ul,
  .rs-list span {
    color: #222 !important;
  }
  .rs-h {
    color: #000 !important;
    border-bottom: 1px solid #999;
    padding-bottom: 4px;
    margin-bottom: 10px;
    font-size: 9pt;
  }
  .rs-h em {
    color: #555 !important;
  }
  .rs-section {
    border-top: 0;
    margin-top: 16pt;
    padding-top: 0;
    break-inside: avoid;
  }
  .rs-card {
    border: 1px solid #ccc !important;
    background: #fff !important;
    box-shadow: none !important;
    padding: 10px 12px;
    break-inside: avoid;
  }
  .rs-card:hover {
    transform: none;
  }
  .rs-grid {
    gap: 8px;
  }
  .rs-lead {
    font-size: 10pt;
    line-height: 1.5;
  }
  .rs-card h3 {
    font-size: 12pt;
    font-family: var(--font-anton), Impact, sans-serif;
  }
  .rs-card p,
  .rs-card ul,
  .rs-list span,
  .rs-skills dd {
    font-size: 9.5pt;
    line-height: 1.45;
  }
  .rs-card a.rs-link {
    color: #333 !important;
    font-size: 8.5pt;
  }
  .rs-foot {
    border-top: 1px solid #999;
    color: #555 !important;
    font-size: 8pt;
  }
  .rs-foot a {
    color: #333 !important;
  }
  a {
    text-decoration: none;
  }
}
