/* Homepage cards: soft and tactile (chosen 2026-12-02).
   Borrowed from neumorphism, kept to the cards only:
   - the work area sits on one soft surface colour, cards are raised from it by two static shadows;
   - only things you can click are raised; nothing that cannot be clicked gets a shadow;
   - no borders: edges come from the shadow and the surface colour; text keeps full contrast;
   - hover "presses" the card: one short box-shadow change on hover only, no scroll or idle animation. 
   Loaded with media="not all and (prefers-contrast: more)": high-contrast visitors get the flat site. */
.hp-wrap { --soft-bg: #EEF1F6; --soft-dark: rgba(150, 165, 190, 0.42); --soft-light: rgba(255, 255, 255, 0.95); }
.hp-wrap, .hp-wrap .hp-inner { background: var(--soft-bg); }
body:has(.hp-wrap) .hp-nav { background: rgba(238, 241, 246, 0.92); }

.hp-wrap .hp-case {
  background: var(--soft-bg);
  border: none;
  border-radius: 20px;
  box-shadow: 10px 10px 24px var(--soft-dark), -10px -10px 24px var(--soft-light);
  padding: 12px;
  gap: 0;
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.hp-wrap .hp-case-text { background: transparent; }

/* the cover sits inside the card with rounded corners */
.hp-wrap .hp-case-img { border-radius: 12px; }
.hp-wrap .hp-case-img img { border-radius: 12px; }

.hp-wrap .hp-case:hover {
  transform: translateY(1px);
  box-shadow: 3px 3px 8px var(--soft-dark), -3px -3px 8px var(--soft-light),
              inset 2px 2px 6px rgba(150, 165, 190, 0.18);
}
/* no ring after a mouse click or tap; keyboard users still get one */
.hp-wrap .hp-case:focus:not(:focus-visible) { outline: none; box-shadow: 10px 10px 24px var(--soft-dark), -10px -10px 24px var(--soft-light); }
.hp-wrap .hp-case:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* tags cannot be clicked: flat pills, no shadow */
.hp-wrap .hp-tag {
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  background: #E2E7EF;
}
.hp-wrap .hp-tags { gap: 8px; column-gap: 8px; }
.hp-support-row-3 .hp-tag { letter-spacing: 0.08em; }
.hp-wrap .hp-tag + .hp-tag::before { content: none; }

@media (prefers-reduced-motion: reduce) {
  .hp-wrap .hp-case { transition: none; }
}
