:root {
  --background: 42 33% 96%;
  --foreground: 24 18% 11%;
  --primary: 22 43% 32%;
  --secondary: 38 29% 84%;
  --muted: 36 18% 66%;
  --destructive: 2 64% 45%;
  --border: 34 20% 80%;
  --card: 40 34% 92%;
  --shadow-sm: 0 8px 18px hsl(24 18% 11% / 0.08);
  --shadow-md: 0 18px 44px hsl(24 18% 11% / 0.13);
  --shadow-lg: 0 30px 80px hsl(24 18% 11% / 0.22);
  --transition-fast: 160ms ease;
  --transition-smooth: 360ms cubic-bezier(.2,.8,.2,1);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
}
.dark {
  --background: 24 15% 8%;
  --foreground: 38 35% 92%;
  --primary: 31 52% 68%;
  --secondary: 24 13% 16%;
  --muted: 31 12% 62%;
  --destructive: 2 70% 62%;
  --border: 27 12% 24%;
  --card: 25 14% 12%;
  --shadow-sm: 0 8px 18px hsl(0 0% 0% / 0.2);
  --shadow-md: 0 18px 44px hsl(0 0% 0% / 0.32);
  --shadow-lg: 0 30px 80px hsl(0 0% 0% / 0.5);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: max(16px, 1rem); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid hsl(var(--primary));
  outline-offset: 3px;
}
.bg-1 { background: hsl(var(--background)); }
.bg-2 { background: hsl(var(--card)); }
.bg-3 { background: hsl(var(--secondary)); }
.bg-4 { background: hsl(var(--primary)); }
.text-primary { color: hsl(var(--foreground)); }
.text-secondary { color: hsl(var(--muted)); }
.text-tertiary { color: hsl(var(--primary)); }
.accent { color: hsl(var(--primary)); }
.editorial-title { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.055em; }
.safe-bottom { padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)); }
.safe-top { padding-top: env(safe-area-inset-top); }
.masonry { column-count: 1; column-gap: 1rem; }
@media (min-width: 640px) { .masonry { column-count: 2; } }
@media (min-width: 1024px) { .masonry { column-count: 3; } }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }
.fade-in { animation: fadeIn var(--transition-smooth) both; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: scale(1); } }
genmb-uploader { display: block; min-height: 220px; border-radius: var(--radius-lg); overflow: hidden; }
