/* ══════════════════════════════════════════════════════════════
   resume.css — the RESUME sticker opens my resume over the page (resume.js): the same see-through blue
   blur as the sketchbook, with the resume as a sheet of paper dropped on top (scroll to read it), and
   Download / Open PDF buttons. Computers: the whole page fits the screen (click to zoom in). Phones: fits the
   width (tap to zoom). The sheet is an image of the PDF: Images/resume/resume.png
   (regenerate with: swift tools/pdf2png.swift Data/UX-Design-Resume.pdf <prefix> 2000).
   ══════════════════════════════════════════════════════════════ */
.rs { position: fixed; inset: 0; z-index: 6000; width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: radial-gradient(120% 90% at 50% 45%, rgba(27, 47, 124, .42) 0%, rgba(11, 26, 82, .6) 70%, rgba(7, 15, 53, .72) 100%);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  color: #fff; overflow: hidden; }
.rs[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: rsFade .35s ease both; }
.rs::backdrop { background: transparent; }
html.rsOpen { overflow: hidden; }
html.rsOpen .sbFab { opacity: 0; pointer-events: none; }

.rs__top { position: relative; display: flex; justify-content: center; padding: clamp(16px, 3vh, 32px) var(--edge, 20px) clamp(10px, 2vh, 18px); text-align: center; }
.rs__title { margin: 0; font: 900 clamp(28px, 3.4vw, 52px)/.95 "Archivo", var(--font-sans); letter-spacing: -.045em; }
.rs__meta { margin: 8px 0 0; font: 600 12px/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }
.rs__close { position: absolute; right: var(--edge, 20px); top: clamp(16px, 3vh, 32px); }

/* the sheet: scroll the stage to read it, like holding a page */
.rs__stage { overflow: auto; overscroll-behavior: contain; padding: clamp(8px, 2vh, 20px) var(--edge, 16px) clamp(28px, 5vh, 56px); }
.rs__sheet { display: block; width: min(820px, 100%); margin: 0 auto; background: #fff; rotate: -1deg; transform-origin: 50% 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 24px 50px -10px rgba(0,0,30,.55); }
.rs__sheet img { display: block; width: 100%; height: auto; }
.rs[open] .rs__sheet { animation: rsDrop .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rsDrop { from { opacity: 0; transform: translateY(70px) rotate(-5deg); } }
@keyframes rsFade { from { opacity: 0; } }

/* bottom: download / open */
.rs__bar { display: flex; justify-content: center; align-items: center; gap: 12px 22px; flex-wrap: wrap; padding: 14px var(--edge, 20px) clamp(16px, 3.5vh, 32px); }
.rs__download { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; background: #fff; color: #111; text-decoration: none;
  font: 600 clamp(14px, 1.2vw, 17px)/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 3px 0 rgba(0,0,40,.35); transition: background .15s ease, transform .15s ease; }
.rs__download:hover, .rs__download:focus-visible { background: #ffe14d; transform: translateY(-2px); outline: none; }
.rs__open { font: 600 13px/1 var(--font-pixel); text-transform: uppercase; letter-spacing: .12em; color: #fff; text-decoration: none;
  border-bottom: 1.5px solid rgba(255,255,255,.6); padding-bottom: 5px; }
.rs__open:hover, .rs__open:focus-visible { color: #ffe14d; border-color: #ffe14d; outline: none; }
.rs__btn { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.7); border-radius: 50%;
  background: none; color: #fff; font: 600 20px/1 var(--font-sans); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.rs__btn:hover, .rs__btn:focus-visible { background: #ffe14d; border-color: #ffe14d; color: #111; outline: none; }
.rs :focus-visible { outline-offset: 4px; }

/* computer screens: the whole page fits on screen; click it to zoom in and read, click again to fit */
@media (min-width: 641px) {
  .rs__stage { display: flex; justify-content: center; align-items: center; overflow: hidden; padding-bottom: clamp(8px, 2vh, 20px); }
  .rs__sheet { height: 100%; width: auto; max-width: 100%; aspect-ratio: 2000 / 2829; margin: 0; cursor: zoom-in; }
  .rs__sheet img { height: 100%; object-fit: contain; }
  .rs__stage.is-zoomed { display: block; overflow: auto; padding-bottom: clamp(28px, 5vh, 56px); }
  .rs__stage.is-zoomed .rs__sheet { height: auto; width: min(900px, 100%); margin: 0 auto; rotate: 0deg; cursor: zoom-out; }
  .rs__meta::after { content: " · click the page to zoom"; }
}
@media (max-width: 640px) {
  .rs__sheet { rotate: 0deg; cursor: zoom-in; }
  .rs__stage.is-zoomed .rs__sheet { width: 220%; max-width: none; cursor: zoom-out; }   /* tap to read the small print; pan around */
  .rs__meta { font-size: 0; }                                               /* phones: just the hint */
  .rs__meta::after { content: "Tap the page to zoom"; font-size: 11px; }
  .rs__btn { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .rs[open], .rs[open] .rs__sheet { animation: none; } }
