/**
 * Homepage-specific overrides only.
 * Shared base is in design-system/base.css and design-system/utilities.css.
 */

/* DSv2 Wave 1: when a section-mast is the first child of .section-gap, the mast
   owns its own top spacing (margin-top: var(--space-16/-20)). Drop the legacy
   .section-gap top padding so the editorial chrome rhythm isn't doubled. */
.section-gap:has(> .container > .section-mast:first-child) {
  padding-top: 0;
}
/* Mast spacing only kicks in starting with section #2 (each .section-gap then
   stacks its own mast top-margin); make sure spacing is preserved between
   consecutive section-gaps. */
@media (min-width: 768px) {
  .section-gap:has(> .container > .section-mast:first-child) {
    padding-top: 0;
  }
}

/* Noise grain overlay for texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.dark-theme body::after { opacity: 0.03; }
.light-theme body::after { opacity: 0.015; }
