/* Memoria blog global styles.
   Dark, near-black background with teal + purple accents. Mirrors the
   thememoria.ai site:
     bg        #0a0a0f
     text      #e8e8e8 / #f4f4f8 for headings
     teal      #00d4aa  (primary accent)
     purple    #7c3aed  (secondary accent)
     plum      #1a1032  (blob tint)
     midnight  #14142a  (blob tint)
*/

:root {
  --mo-ink: #f4f4f8;
  --mo-ink-soft: rgba(232, 232, 232, 0.7);
  --mo-ink-faint: rgba(232, 232, 232, 0.45);
  --mo-accent: #00d4aa;      /* teal */
  --mo-accent-2: #7c3aed;    /* purple */
  --mo-bg: #0a0a0f;
  --mo-surface: rgba(255, 255, 255, 0.04);
  --mo-border: rgba(255, 255, 255, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--mo-ink);
  background: var(--mo-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Soft blob gradient background — dark variant ─── */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
  contain: strict;
}
.bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
}
.bg-blobs .blob-1 { width: 620px; height: 620px; background: #00d4aa; top: -12%; left: -10%;  animation: bm1 22s ease-in-out infinite alternate; }
.bg-blobs .blob-2 { width: 520px; height: 520px; background: #7c3aed; bottom: -12%; right: -6%; animation: bm2 26s ease-in-out infinite alternate; }
.bg-blobs .blob-3 { width: 460px; height: 460px; background: #14142a; top: 28%; right: 8%;    animation: bm3 20s ease-in-out infinite alternate; }
.bg-blobs .blob-4 { width: 420px; height: 420px; background: #1a1032; bottom: 12%; left: 14%; animation: bm1 24s ease-in-out infinite alternate-reverse; }

@keyframes bm1 { to { transform: translate(100px, 150px) scale(1.2); } }
@keyframes bm2 { to { transform: translate(-150px, -50px) scale(0.9); } }
@keyframes bm3 { to { transform: translate(50px, -100px) rotate(90deg); } }

/* keep content above the blobs */
body > * { position: relative; z-index: 1; }
body > .bg-blobs { z-index: 0; }

/* ─── Glass cards — dark variant ─── */
.glass-card {
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 212, 170, 0.25);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 212, 170, 0.12);
}

/* Focus ring — teal on dark */
:focus-visible {
  outline: 2px solid rgba(0, 212, 170, 0.6);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(0, 212, 170, 0.3);
  color: #f4f4f8;
}

/* Screen-reader-only helper for accessible labels. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
