/* Small, responsive gestures throughout Sua's light portfolio. */
body.midnight:not(.page-AI):not(.page-admin) {
  --sua-ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --sua-interaction: 240ms;
  --sua-focus: #a76583;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(a, button, summary, input, textarea, select, [role="button"]) {
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow var(--sua-interaction) ease,
    opacity 180ms ease,
    translate var(--sua-interaction) var(--sua-ease),
    scale var(--sua-interaction) var(--sua-ease);
  -webkit-tap-highlight-color: #eed5df77;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(
    a,
    button,
    summary,
    input,
    textarea,
    select,
    [role="button"]
  ):focus-visible {
  outline: 2px solid var(--sua-focus);
  outline-offset: 4px;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(
    .mini-project,
    .project-case,
    .partner-row,
    .person-entry,
    .reference-skill,
    .mini-notebook > a,
    .board-item > a,
    .experience-row,
    .template-timeline > li
  ) {
  transition:
    translate 320ms var(--sua-ease),
    border-color 220ms ease,
    box-shadow 320ms ease,
    background-color 220ms ease;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(
    .mini-project-image img,
    .capture-open img,
    .partner-portrait img,
    .person-initial,
    .mini-avatar,
    .site-brand img,
    .skill-icon,
    .mini-resume-icon,
    .timeline-icon
  ) {
  transition:
    scale 420ms var(--sua-ease),
    rotate 320ms var(--sua-ease),
    box-shadow 280ms ease,
    border-color 220ms ease;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(h1, h2, p, .sua-eyebrow, .mini-resume-name strong) {
  transition: color 240ms ease;
}
body.midnight:not(.page-AI):not(.page-admin) .mini-section > h2::before {
  transition:
    width 280ms var(--sua-ease),
    background-color 240ms ease;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(.mini-project, .project-case, .partner-row, .person-entry):focus-within {
  border-color: #d7b4c5;
  box-shadow: 0 8px 28px #90536d12;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(
    input:not([type="checkbox"]):not([type="radio"]),
    textarea,
    select
  ):focus {
  border-color: #cb9bb1;
  box-shadow: 0 0 0 4px #f4dfe955;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(input[type="checkbox"], input[type="radio"]) {
  accent-color: var(--sua-focus);
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(
    .mini-project-body h3,
    .mini-inline-link,
    .mini-all-projects,
    .mini-contact,
    .text-link,
    .case-links
  )
  a
  > span,
body.midnight:not(.page-AI):not(.page-admin)
  :is(.mini-inline-link, .mini-all-projects, .text-link)
  > span {
  display: inline-block;
  transition: translate 240ms var(--sua-ease);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-hero h1, .page-intro h1, .mini-section h2):hover {
    color: #70435b;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .mini-section
    > h2:hover::before {
    width: 23px;
    background-color: #c88eaa;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(
      .mini-lead,
      .mini-about,
      .mini-section p,
      .page-description,
      .sua-eyebrow
    ):hover {
    color: #66565f;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.site-nav > a, .nav-more > summary, .nav-dropdown a):hover {
    translate: 0 -2px;
    background-color: #fff2f7;
    color: var(--sua-berry, #90536d);
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(
      button,
      .primary-link,
      .round-arrow,
      .mini-project-actions a,
      .board-btn,
      .board-pager a,
      .board-pager button,
      [role="button"]
    ):not(:disabled):not([aria-disabled="true"]):hover {
    translate: 0 -2px;
    box-shadow: 0 5px 15px #90536d16;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-project, .project-case, .partner-row, .person-entry):hover {
    translate: 0 -5px;
    border-color: #d7b4c5;
    box-shadow: 0 12px 30px #90536d14;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(
      .reference-skill,
      .mini-notebook > a,
      .board-item > a,
      .experience-row,
      .template-timeline > li
    ):hover {
    translate: 0 -2px;
    background-color: #fff8fb;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .reference-skill:hover {
    border-color: #ddbacb;
    box-shadow: 0 5px 15px #90536d0c;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-project, .project-case):hover
    :is(.mini-project-image img, .capture-open img) {
    scale: 1.025;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.partner-row, .person-entry):hover
    :is(.partner-portrait img, .person-initial) {
    scale: 1.045;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .mini-avatar:hover {
    scale: 1.045;
    rotate: 2deg;
    box-shadow:
      0 0 0 7px #fff0f6,
      0 12px 30px #90536d1c;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .site-brand:hover
    img {
    scale: 1.08;
    rotate: -5deg;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .reference-skill:hover
    .skill-icon {
    scale: 1.12;
    rotate: -6deg;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .template-timeline
    > li:hover
    .timeline-icon {
    scale: 1.07;
    rotate: -5deg;
    box-shadow: 0 3px 15px #90536d14;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .mini-resume
    summary:hover {
    background-color: #fff8fb;
    translate: 2px 0;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    .mini-resume
    summary:hover
    .mini-resume-icon {
    scale: 1.08;
    border-color: #dcb6c8;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-tags span, .tag-list > span, .mini-section-badge):hover {
    border-color: #d8b0c3;
    background-color: #fff0f6;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(
      .mini-inline-link,
      .text-link,
      .mini-contact > a,
      .mini-footer a,
      .template-timeline a,
      .mini-resume-detail a
    ):hover {
    color: var(--sua-berry, #90536d);
    text-decoration-color: #b77e99;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-inline-link, .mini-all-projects, .text-link):hover
    > span,
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(.mini-project-body h3, .mini-contact, .case-links)
    a:hover
    > span {
    translate: 3px -2px;
  }
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(
      input:not([type="checkbox"]):not([type="radio"]),
      textarea,
      select
    ):hover {
    border-color: #d5b9c7;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.sua-motion-off)
    body.midnight:not(.page-AI):not(.page-admin)
    :is(button, a, summary, [role="button"]):not(:disabled):not(
      [aria-disabled="true"]
    ):active {
    scale: 0.975;
    translate: 0 1px;
    transition-duration: 90ms;
  }
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(button, [role="button"]):disabled,
body.midnight:not(.page-AI):not(.page-admin) [aria-disabled="true"] {
  cursor: not-allowed;
  translate: none;
  scale: none;
}
body.midnight:not(.page-AI):not(.page-admin)
  :is(.mini-tags span, .tag-list > span, .mini-section-badge) {
  transition:
    background-color 200ms ease,
    border-color 200ms ease;
}
/* A separate overlay clips feedback without changing controls or their layout. */
body.midnight:not(.page-AI):not(.page-admin) .sua-feedback-layer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  overflow: hidden;
}
body.midnight:not(.page-AI):not(.page-admin) .sua-ripple {
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  overflow: hidden;
}
body.midnight:not(.page-AI):not(.page-admin) .sua-ripple::after {
  content: "";
  position: absolute;
  left: var(--ripple-x, 50%);
  top: var(--ripple-y, 50%);
  width: var(--ripple-size, 160px);
  height: var(--ripple-size, 160px);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    #e8a5c05c,
    #e8a5c030 55%,
    transparent 72%
  );
  translate: -50% -50%;
  animation: sua-ripple-out 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes sua-ripple-out {
  from {
    scale: 0;
    opacity: 0.8;
  }
  to {
    scale: 1;
    opacity: 0;
  }
}
@keyframes sua-menu-in {
  from {
    opacity: 0;
    translate: 0 -5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
.sua-motion-off
  body.midnight:not(.page-AI):not(.page-admin)
  *:not(.sua-ambient, .sua-ambient *),
.sua-motion-off
  body.midnight:not(.page-AI):not(.page-admin)
  *:not(.sua-ambient, .sua-ambient *)::before,
.sua-motion-off
  body.midnight:not(.page-AI):not(.page-admin)
  *:not(.sua-ambient, .sua-ambient *)::after {
  animation: none !important;
  transition: none !important;
}
.sua-motion-off body.midnight:not(.page-AI):not(.page-admin) .sua-ripple {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  body.midnight:not(.page-AI):not(.page-admin) *,
  body.midnight:not(.page-AI):not(.page-admin) *::before,
  body.midnight:not(.page-AI):not(.page-admin) *::after {
    animation: none !important;
    transition: none !important;
  }
  body.midnight:not(.page-AI):not(.page-admin) .sua-ripple {
    display: none;
  }
}
