/* Direction: Stoop — cool mist-grey paper, white cards on long soft shadows,
   rounded geometric headings, one vivid violet for hearts and the Post button */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #e9edf3;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --border: #dbe2ec;
  --border-strong: #a8a8b4;
  --ink: #171d2b;
  --muted: #5b6680;
  --accent: #7c3aed;
  --accent-hover: #6931c9;
  --accent-ink: #ffffff;
  --accent-text: #6128d2;
  --accent-strong: #5b21b6;
  --accent-soft: #ece3ff;
  --accent-border: #b89cf0;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #d0e0dd;
  --success-strong: #116d34;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #e3dbd7;
  --warning-strong: #994607;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #e3d4d9;
  --danger-strong: #b91c1c;
  --chart-1: #7c3aed;
  --chart-2: #ee2096;
  --chart-3: #894201;
  --chart-4: #858b1d;
  --chart-5: #0b6451;
  --chart-6: #0a92c6;

  --font-display: "Outfit", "Trebuchet MS", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --display-weight: 600;
  --display-tracking: -0.015em;
  --radius-card: 24px;
  --radius-btn: 999px;
  --radius-input: 18px;
  --shadow-card: 0 22px 44px -28px rgba(18, 24, 40, 0.38);
  --card-pad: 1.5rem;
  --x-tint-a: #d7e7f8;
  --x-tint-b: #dbeee3;
  --x-tint-c: #f7e8d7;
  --x-tint-d: #f3dcea;
  --x-tint-ink: #1b2130;
  --x-on-photo: #ffffff;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #0a0514;
  --surface: #231e2c;
  --surface-2: #161220;
  --border: #2c2835;
  --border-strong: #54505b;
  --ink: #e9edf3;
  --muted: #90909a;
  --accent: #7c3aed;
  --accent-hover: #9058f0;
  --accent-ink: #ffffff;
  --accent-text: #a171f1;
  --accent-strong: #a171f1;
  --accent-soft: #231144;
  --accent-border: #3d1d76;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0c201d;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2f1612;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #310a16;
  --danger-strong: #d16969;
  --chart-1: #8242f4;
  --chart-2: #f62c9c;
  --chart-3: #c36208;
  --chart-4: #8b920f;
  --chart-5: #20957a;
  --chart-6: #1c98cd;
}

/* Stoop motion: posts fade in, hearts pop, replies slide in, cards lift */

@keyframes stoop-fade {
  from { opacity: 0.35; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}
.post-in { animation: stoop-fade 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }

@keyframes stoop-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.5); }
  65% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.heart-pop { display: inline-flex; animation: stoop-pop 0.42s ease-out; }

@keyframes stoop-slide {
  from { opacity: 0.4; transform: translateX(-14px); }
  to { opacity: 1; transform: none; }
}
.comment-in { animation: stoop-slide 0.36s cubic-bezier(0.22, 1, 0.36, 1) both; }

.lift { transition: transform 0.28s ease, box-shadow 0.28s ease; }
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 56px -30px rgba(14, 20, 36, 0.45);
}

/* The friendly empty state shows only when the column holds nothing else */
#feed > .stoop-empty { display: none; }
#feed > .stoop-empty:only-child { display: block; }

.avatar-ring { box-shadow: 0 0 0 3px var(--surface), 0 12px 22px -16px rgba(14, 20, 36, 0.55); }

html.reduced-motion .post-in,
html.reduced-motion .heart-pop,
html.reduced-motion .comment-in { animation: none; }
html.reduced-motion .lift:hover { transform: none; }
