/**
 * DaysAndDates.com - Modern CSS Reset & Baseline
 * Standards-compliant, fluid, zero-layout-shift foundation
 */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  color-scheme: light dark;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background-color: var(--bg-app);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  position: relative;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* GPU Hardware-Accelerated Ambient Backdrop (Eliminates mobile scroll repaint lag) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -10;
  background-image: var(--bg-gradient-mesh);
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
  transform: translateZ(0);
  will-change: transform;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* Media handling */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Typography resets */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

/* Form controls */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-size: clamp(16px, 1rem, 1.125rem);
}

button {
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Lists */
ul,
ol {
  list-style: none;
}

/* Selection */
::selection {
  background-color: var(--brand-primary-glow);
  color: var(--brand-primary);
}

/* Custom modern scrollbars */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-app);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.45);
}




