/* ==========================================================================
   v007 — Résumé & Contact Me (page + full-size viewer)
   The résumé is shown as an image rendered from the PDF; it is always displayed
   at its natural aspect ratio (2550 × 3300, US Letter) — never stretched or cropped.
   ========================================================================== */
.resume-page { display: flex; flex-direction: column; align-items: center; padding-block: clamp(2rem, 4vw, 3.5rem) var(--space-6); }

.resume-preview { display: block; width: min(100%, 860px); background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 2px rgba(16,29,56,.06), 0 8px 24px rgba(16,29,56,.08); transition: box-shadow .2s ease, border-color .2s ease; cursor: zoom-in; }
.resume-preview:hover { border-color: var(--gold-500); box-shadow: 0 2px 4px rgba(16,29,56,.08), 0 12px 32px rgba(16,29,56,.12); }
.resume-preview:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.resume-doc { display: block; width: 100%; height: auto; aspect-ratio: 2550 / 3300; max-width: none; object-fit: contain; background: #fff; }

/* v018: "Have Questions? Contact me!" — contact first, then the résumé (unchanged) */
.contact-head { width: min(100%, 860px); margin: 0 0 clamp(1.75rem, 3.5vw, 2.75rem); text-align: center; }
.contact-head__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 1.55rem + 2vw, 3rem); line-height: 1.15; letter-spacing: 0.01em; color: var(--navy-900); text-wrap: balance; }
.contact-head__title::after { content: ""; display: block; width: 4.5rem; height: 1px; margin: clamp(0.9rem, 1.8vw, 1.25rem) auto 0; background: var(--gold-500); }
.contact-head__links { margin-top: clamp(0.9rem, 1.8vw, 1.25rem); font-family: var(--font-ui); font-size: 1.06rem; line-height: 1.6; color: var(--charcoal-700); }
.contact-head__links p { margin: 0; }
.contact-head__links p + p { margin-top: var(--space-1); }
.contact-head__links a { overflow-wrap: anywhere; }
.resume-links { margin-top: var(--space-5); text-align: center; font-family: var(--font-ui); font-size: 1rem; line-height: 1.6; color: var(--charcoal-700); }
.resume-links p { margin: 0; }
.resume-links p + p { margin-top: var(--space-1); }
.resume-links__download { margin-bottom: var(--space-4) !important; font-weight: 600; letter-spacing: 0.02em; }

/* Full-size viewer */
.resume-viewer-page { padding-block: var(--space-5) var(--space-6); }
.resume-viewer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); margin-bottom: var(--space-4); font-family: var(--font-ui); }
.resume-viewer__back { font-weight: 600; }
.resume-viewer__zoom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.resume-viewer__zoom[hidden] { display: none; }
.resume-viewer__zoom button { font-family: var(--font-ui); font-size: 0.92rem; min-width: 2.5rem; min-height: 2.25rem; padding: 0 var(--space-3); background: var(--ivory-50); color: var(--navy-900); border: 1px solid var(--navy-700); border-radius: var(--radius); cursor: pointer; }
.resume-viewer__zoom button:hover { border-color: var(--gold-700); color: var(--gold-700); }
.resume-viewer__zoom button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--ivory-50); }
.resume-viewer__zoom button:disabled { opacity: .45; cursor: default; }
.resume-viewer__level { min-width: 3.5rem; margin-left: var(--space-2); font-size: 0.9rem; color: var(--charcoal-700); }
.resume-viewer__download { font-weight: 600; }
.resume-viewer__frame { overflow-x: auto; overflow-y: hidden; background: var(--ivory-100); border: 1px solid var(--rule); padding: clamp(0.5rem, 1.5vw, 1.25rem); }
.resume-viewer__frame:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.resume-viewer__frame .resume-doc { margin-inline: auto; box-shadow: 0 1px 2px rgba(16,29,56,.08), 0 6px 18px rgba(16,29,56,.08); }
/* Without JavaScript, or in "Fit": the full page fits the frame width. When enlarged, the frame scrolls horizontally and the page scrolls vertically. */
.resume-viewer__frame[data-fit="true"] .resume-doc { width: 100%; }

@media (max-width: 30rem) {
  .resume-links { font-size: 0.95rem; }
  .contact-head__links { font-size: 1rem; }
  .resume-viewer__bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .resume-preview { transition: none; } }
@media print {
  .resume-viewer__bar { display: none; }
  .resume-viewer__frame { overflow: visible; border: 0; padding: 0; }
  .resume-viewer__frame .resume-doc { width: 100% !important; box-shadow: none; }
}
