/* The photograph is the complete, usable experience; motion is an enhancement. */
.maru-card {
  min-width: 0;
  align-self: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #e5ded0;
  border-radius: 46% 46% 28px 28px / 38% 38% 28px 28px;
  background: #f0ebe1;
  box-shadow: 0 18px 54px -38px #5b503d65;
}

.maru-portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 46% 46% 18px 18px;
  background: #eae0d1;
}

.maru-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.maru-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .24s ease;
}

.maru-portrait[data-portrait-state="ready"] .maru-canvas { opacity: 1; }

.maru-caption { padding: 19px 18px 8px; }
.maru-caption-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.maru-identity { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; row-gap: 4px; min-width: 0; }
.maru-intro { grid-column: 1 / -1; color: #777d6b; font: 8px 'DM Mono', monospace; letter-spacing: .16em; }
.maru-name { color: var(--ink, #33392f); font: 500 32px/1.25 'Playfair Display', Georgia, serif; letter-spacing: -.025em; }
.maru-role { color: #757968; font-size: 11px; line-height: 1.5; }

.maru-pause {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #656e59;
  font: inherit;
  font-size: 10px;
  text-decoration: underline;
  text-decoration-color: #b5baa8;
  text-underline-offset: 4px;
  cursor: pointer;
}

.maru-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 10px; row-gap: 4px; padding-top: 13px; margin-top: 14px; border-top: 1px solid #dbd8ca; }
.maru-greet { min-height: 44px; padding: 10px 15px; border: 1px solid #d3d5c5; border-radius: 28px; background: #f8f6ef; color: var(--olive, #515e49); font: inherit; font-size: 11px; cursor: pointer; }
.maru-catalog { display: inline-flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 44px; padding: 8px 0; color: var(--olive, #515e49); font-size: 11px; font-weight: 600; line-height: 1.5; text-decoration: none; }
.maru-catalog span { font-size: 20px; font-weight: 400; }
.maru-pause, .maru-greet, .maru-catalog { transition: background-color .2s, color .2s; }

@media (hover: hover) {
  .maru-pause:hover { background: #e6e4d8; }
  .maru-greet:hover { background: #e5e9dd; color: #38452f; }
  .maru-catalog:hover { color: #283823; text-decoration: underline; text-underline-offset: 5px; }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .maru-caption { padding-inline: 9px; }
  .maru-identity { column-gap: 10px; }
  .maru-role { font-size: 10px; }
  .maru-actions { column-gap: 8px; }
  .maru-greet { font-size: 10px; padding-inline: 12px; }
  .maru-catalog { font-size: 10px; gap: 8px; }
}

@media (max-width: 640px) {
  .maru-card { padding: 10px; border-bottom-left-radius: 23px; border-bottom-right-radius: 23px; }
  .maru-caption { padding: 17px 9px 5px; }
  .maru-identity { column-gap: 12px; }
  .maru-name { font-size: 29px; }
  .maru-role { font-size: 10px; }
  .maru-actions { padding-top: 10px; margin-top: 11px; }
  .maru-greet { font-size: 10px; padding-inline: 13px; }
  .maru-catalog { font-size: 10px; gap: 9px; }
}

@media (max-width: 370px) {
  .maru-caption { padding-inline: 6px; }
  .maru-identity { column-gap: 9px; }
  .maru-role { font-size: 9px; }
  .maru-actions { justify-content: center; }
  .maru-catalog { flex-basis: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .maru-canvas, .maru-pause, .maru-greet, .maru-catalog { transition: none; }
}
