/* Resume overlay (Figma 1110:267913 / 1110:271402) — see resume.js */
.resume { position: fixed; inset: 0; z-index: 1100; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.resume::-webkit-scrollbar { display: none; }
.resume.is-idle { visibility: hidden; }
.resume.is-moving { overflow: hidden; }
/* Figma: home dimmed to ~70% warm dark */
.resume__dim { position: fixed; inset: 0; background: rgba(39, 27, 10, 0.7); opacity: 0; transition: opacity 0.45s ease; }
.resume.is-shown .resume__dim { opacity: 1; }
.resume__track { position: relative; padding: 103px 16px 96px; min-height: 100%; box-sizing: border-box;
  display: flex; justify-content: center; pointer-events: none; }
.resume__page { position: relative; flex: none; pointer-events: none; }
.resume__scaled { position: absolute; left: 0; top: 0; width: 595px; transform-origin: 0 0; }
.resume__shade, .resume__fold { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* the dogear's shadow comes from a copy of it clipped to the paper (resume.js), so none falls on home */
.resume__flap-shadow { filter: drop-shadow(-8px 7px 12px rgba(0, 0, 0, 0.05)) drop-shadow(-1.5px 2px 2.5px rgba(39, 27, 10, 0.1)); }
.resume__hit { fill: transparent; pointer-events: all; cursor: pointer; outline: none; }
.resume.is-moving .resume__hit { pointer-events: none; }
.resume__close-text { fill: #271b0a; fill-opacity: 0.7; transition: fill-opacity 200ms ease, opacity 260ms ease; }
.resume.is-moving .resume__close-text { opacity: 0; transition: opacity 120ms ease; }
.resume.is-hover .resume__close-text { fill-opacity: 1; }
/* the dogear's × (it replaced the word "close") */
.resume__x { fill: none; stroke: #271b0a; stroke-opacity: 0.7; stroke-width: 1.7; stroke-linecap: round; transition: stroke-opacity 200ms ease, opacity 260ms ease; }
.resume.is-hover .resume__x { stroke-opacity: 1; }
.resume.is-dragging .resume__hit { cursor: grabbing; }
html.resume-open { overflow: hidden; }

/* ---- the paper (Figma 1110:267847, 595 wide) ---- */
.cv { position: relative; width: 595px; box-sizing: border-box; padding: 40px 44px; background: #fdfcf7;
  display: flex; flex-direction: column; gap: 16px; pointer-events: auto; clip-path: polygon(0 0, 0 0, 0 0);
  font-family: "Newsreader", Georgia, serif; color: rgba(33, 25, 13, 0.82); font-size: 12px; line-height: 14.5px; text-align: left; }
/* resets in :where() so they never outrank the classes below (bold titles, green/plum names) */
:where(.cv) a { color: inherit; text-decoration: none; }
.cv a:hover, .cv a:focus-visible { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
:where(.cv) :where(p, ul, h1, h2, h3) { margin: 0; font-weight: inherit; }
.cv__head { display: flex; flex-direction: column; gap: 6px; }
.cv__name { font: 400 30px/34px "RX100", monospace; color: #21190d; }
.cv__role { font-weight: 500; font-size: 14px; line-height: 18px; color: #3d826b; }
.cv__contact { color: rgba(33, 25, 13, 0.8); white-space: pre-wrap; }
.cv__plum { color: #740a38; }
.cv__green { color: #3d826b; }
.cv__sec { display: flex; flex-direction: column; gap: 12px; }   /* Figma: heading → content */
.cv__h { display: flex; flex-direction: column; gap: 3px; font: 400 13px/16px "RX100", monospace; color: #21190d; }
.cv__h::after { content: ""; width: 57.4px; height: 2.843px; margin: -0.7px 0 -0.7px -0.7px; background: url("assets/resume/squiggle-1.svg") 0 0 / 100% 100% no-repeat; }
.cv__h--green::after { background-image: url("assets/resume/squiggle-2.svg"); }
.cv__h--plum::after { background-image: url("assets/resume/squiggle-3.svg"); }
.cv b { font-weight: 600; }
.cv__jobs { display: flex; flex-direction: column; gap: 24px; }
.cv__job { display: flex; flex-direction: column; gap: 3px; }
.cv__title { font-weight: 600; font-size: 12px; line-height: 16px; color: #21190d; white-space: pre-wrap; }
.cv__title span { font-weight: 400; }
.cv__meta { font: 400 10px/13px "RX100", monospace; color: rgba(33, 25, 13, 0.6); white-space: pre-wrap; }
.cv__meta--small { font-size: 9px; }   /* Figma: The Fine Finds dates are 9px */
.cv ul { padding: 0; list-style: none; }
.cv li { position: relative; margin: 0 0 3px 0; line-height: 16px; }
.cv li::before { content: ""; position: absolute; left: -10.5px; top: 7.5px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.cv__edu { line-height: 16px; }
.cv li:last-child { margin-bottom: 0; }
.cv__projects { display: flex; flex-direction: column; gap: 4px; }
.cv__project { font-style: italic; font-size: 10.5px; line-height: 14px; color: rgba(33, 25, 13, 0.9); white-space: pre-wrap; }
.cv__project span { font-style: normal; }

/* no shadow outside the paper: drop the cast shade, and keep the dogear's own shadow within the sheet */
.resume__shade { display: none; }


/* ---- Download / Back to top (Figma 1110:267913 → 1110:271402) ---- */
.resume__actions { position: fixed; left: 0; right: 0; bottom: 32px; height: 38px; pointer-events: none; z-index: 2; }
.resume__btn {
  position: absolute; top: 0; height: 38px; box-sizing: border-box; padding: 8px 10px 8px 14px;
  display: flex; align-items: center; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  font: 400 18px/22px "RX100", ui-monospace, monospace; letter-spacing: 0.22px; text-transform: uppercase; text-decoration: none;
  pointer-events: auto; opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s, translate 0.55s cubic-bezier(0.65, 0, 0.35, 1), background-color 0.2s ease, color 0.2s ease, scale 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.resume__btn--download { background: rgba(229, 222, 82, 0.3); color: #e5de52; }
.resume__btn--top { background: rgba(175, 199, 220, 0.3); color: #afc7dc; translate: -24px 0; }
.resume__btn--download:hover, .resume__btn--download:focus-visible { background: #e5de52; color: #21190d; scale: 1.05; outline: none; }
.resume__btn--top:hover, .resume__btn--top:focus-visible { background: #afc7dc; color: #21190d; scale: 1.05; outline: none; }
.resume__btn:active { scale: 0.97; }
/* the sheet has landed: Download shows beside it */
.resume.is-ready .resume__btn--download { opacity: 1; visibility: visible; transition-delay: 0s; }
/* scrolled to the very end: Download slides to the middle, Back to top comes in beside it */
.resume__actions.is-end .resume__btn--download { translate: var(--to-centre, 0) 0; }
.resume.is-ready .resume__actions.is-end .resume__btn--top { opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0.18s, 0s, 0.18s, 0s, 0s, 0s; }
/* phones: the sheet fills the width there, so the buttons wait for a phone design */
@media (max-width: 1023.98px) { .resume__actions { display: none; } }
@media (prefers-reduced-motion: reduce) { .resume__btn { transition: opacity 0.2s ease, visibility 0s; } }
