
/* =========================================================
   RESUME PLUS — MULTI-PURPOSE UX / ACCESSIBILITY LAYER
   Loaded after page-specific and readability styles.
========================================================= */
:root {
  --rp-focus: #6b55df;
  --rp-body-size: 16px;
  --rp-body-leading: 1.9;
}
html { font-size: 16px; scroll-padding-top: 96px; }
body { font-size: var(--rp-body-size); line-height: var(--rp-body-leading); }
p { line-height: 1.9; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--rp-focus);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: 10px; right: 10px; z-index: 1000;
  padding: 11px 16px; border-radius: 12px; background: #17133d;
  color: #fff; transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
img { max-width: 100%; }
img[loading="lazy"] { content-visibility: auto; }
:where(.btn, button, .filter-btn, .icon-btn) { touch-action: manipulation; }
:where(.btn, .filter-btn) { min-height: 44px; }
:where(input, select, textarea) { min-height: 46px; }
:where(.field input, .field textarea, .search-input) { font-size: 16px; }
:where(.nav a, .footer-links a) { padding-block: 6px; }
:where(.project-card, .service-card, .feature-card, .testimonial-card) {
  overflow-wrap: anywhere;
}
.site-footer { margin-top: 0; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.back-top { cursor: pointer; }
.back-top:focus-visible { opacity: 1; visibility: visible; }

/* Keep text legible across the five distinct demo styles. */
.hero-copy p, .section-head p, .about-copy p,
.project-content p, .blog-content p, .content-card p,
.timeline-item p, .service-card p, .testimonial-card p {
  font-size: max(15px, 1rem);
}
.hero-note, .hero-kicker, .project-meta, .breadcrumbs,
.article-meta, .copyright, .footer-copy {
  font-size: max(13px, .84rem);
}
@media (max-width: 760px) {
  html { scroll-padding-top: 78px; }
  .section-head { margin-bottom: 30px; }
  .section-head p, .about-copy p, .project-content p,
  .blog-content p, .content-card p { font-size: 15.5px; }
  .nav { max-height: min(72vh, 520px); overflow-y: auto; }
  .footer-links { gap: 10px 18px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: clamp(32px, 9vw, 42px); }
  .hero-actions .btn { width: 100%; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
