/* Resume (build/resume.mjs): the About page's big modal, and the PDF (build/resume-pdf.mjs). */

/* ---- Content -------------------------------------------------------------------------- */
.resume { font-family: Inter, sans-serif; color: var(--black, #27282a); max-width: 760px; margin: 0 auto; }
.resume a { color: inherit; text-decoration: underline; text-decoration-color: rgba(39, 40, 42, .3); text-underline-offset: 3px; }
.resume a:hover { text-decoration-color: currentColor; }
.resume p { margin: 0; }
.resume-head { margin-bottom: 24px; }
.resume-name { margin: 0; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -.01em; }
.resume-label { margin-top: 2px !important; font-size: 18px; line-height: 26px; color: var(--grey, #585e68); }
.resume-contact { margin-top: 12px !important; font-size: 14px; line-height: 22px; color: var(--grey, #585e68); }
.resume-open { padding: 12px 16px; border-radius: 12px; background: var(--ghost-white, #eff0f5); font-size: 15px; line-height: 22px; color: var(--grey, #585e68); }
.resume-open strong { color: var(--black, #27282a); font-weight: 600; margin-right: 4px; }
.resume-summary { margin-top: 24px !important; font-size: 16px; line-height: 26px; color: var(--grey, #585e68); }
.resume-section { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gainsboro, #dddee2); }
.resume-h { margin: 0 0 16px; font-size: 16px; line-height: 24px; font-weight: 600; }
.resume-job { display: grid; grid-template-columns: 120px 1fr; gap: 0 24px; }
.resume-job + .resume-job { margin-top: 28px; }
.resume-years { font-size: 14px; line-height: 24px; color: var(--grey, #585e68); }
.resume-role { font-size: 16px; line-height: 24px; }
.resume-role strong { font-weight: 600; }
.resume-what { font-size: 14px; line-height: 22px; color: var(--grey, #585e68); }
.resume-list { margin: 8px 0 0; padding-left: 18px; font-size: 15px; line-height: 23px; color: var(--grey, #585e68); }
.resume-list li + li { margin-top: 4px; }
.resume-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
.resume-cols .resume-h + .resume-keywords + .resume-h { margin-top: 24px; }
.resume-keywords { font-size: 15px; line-height: 23px; color: var(--grey, #585e68); }
@media screen and (max-width: 767px) {
  .resume-name { font-size: 26px; line-height: 32px; }
  .resume-job { grid-template-columns: 1fr; }
  .resume-years { order: 0; }
  .resume-cols { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Big modal ------------------------------------------------------------------------- */
.resume-modal {
  width: min(960px, calc(100vw - 64px)); height: calc(100dvh - 64px); max-width: none; max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: 16px; overflow: auto; overscroll-behavior: contain;
  background: #fff; color: var(--black, #27282a); box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}
.resume-modal::backdrop { background: rgba(10, 12, 16, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.resume-modal[open] { animation: resume-in .25s ease; }
.resume-modal[open]::backdrop { animation: resume-fade .25s ease; }
@keyframes resume-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes resume-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .resume-modal[open], .resume-modal[open]::backdrop { animation: none; } }
html.modal-open { overflow: hidden; }
/* Sticky bar: Download PDF and close, always in reach while the resume scrolls under it. */
.resume-bar {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; align-items: center; gap: 8px;
  padding: 16px 16px 12px; background: linear-gradient(#fff 70%, rgba(255, 255, 255, 0));
}
.resume-pdf {
  font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; line-height: 20px; color: #fff; text-decoration: none;
  background: #000; border-radius: 999px; padding: 10px 16px;
}
.resume-pdf:hover { background: #333; }
.resume-close {
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--black, #27282a); cursor: pointer;
}
.resume-close:hover { background: rgba(0, 0, 0, .06); }
.resume-pdf:focus-visible, .resume-close:focus-visible { outline: 2px solid var(--black, #27282a); outline-offset: 2px; }
.resume-modal .resume { padding: 8px 48px 64px; }
@media screen and (max-width: 767px) {
  /* Phones: the modal fills the screen. */
  .resume-modal { width: 100vw; height: 100dvh; border-radius: 0; }
  .resume-bar { padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 12px; }
  .resume-modal .resume { padding: 0 20px calc(48px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- Night mode ------------------------------------------------------------------------ */
html.dark .resume-modal { background: #17181a; color: #f2f2f3; }
html.dark .resume, html.dark .resume-close { color: #f2f2f3; }
html.dark .resume a { text-decoration-color: rgba(242, 242, 243, .35); }
html.dark .resume-label, html.dark .resume-contact, html.dark .resume-summary, html.dark .resume-years, html.dark .resume-what,
html.dark .resume-list, html.dark .resume-keywords, html.dark .resume-open { color: #a9adb5; }
html.dark .resume-open { background: #232427; }
html.dark .resume-open strong { color: #f2f2f3; }
html.dark .resume-section { border-top-color: #2e3034; }
html.dark .resume-bar { background: linear-gradient(#17181a 70%, rgba(23, 24, 26, 0)); }
html.dark .resume-pdf { background: #fff; color: #000; }
html.dark .resume-pdf:hover { background: #ddd; }
html.dark .resume-close:hover { background: rgba(255, 255, 255, .08); }

/* ---- PDF (build/resume-pdf.mjs prints a page with body.resume-print) ---------------------- */
@page { size: Letter; margin: 14mm 16mm; }
.resume-print { margin: 0; background: #fff; }
.resume-print .resume { max-width: none; }
.resume-print .resume-section { break-inside: auto; }
.resume-print .resume-job { break-inside: avoid; }
.resume-print .resume-section { margin-top: 28px; padding-top: 18px; }
.resume-print .resume-job + .resume-job { margin-top: 20px; }
