/**
 * reset.css
 * Baseline browser normalization and logical properties configurations.
 */

/* 1. Global Box Sizing Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Remove default margins and padding */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

/* 3. Set core body defaults */
body {
  min-block-size: 100dvb;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-feature-settings: "calt" 1; /* Load contextual alternates on Inter */
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  scrollbar-gutter: stable;
  overflow-x: clip;
}

/* 4. Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
  font-weight: 900; /* Default headings to display weight */
  letter-spacing: -0.02em;
}

/* 5. Modern Media Defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
  aspect-ratio: attr(width) / attr(height);
}

/* 6. Form element reset */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* 7. Anchor resets */
a {
  color: inherit;
  text-decoration: none;
}

/* 8. Make lists styleless by default */
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 9. Accessible Keyboard Focus Styles */
:focus-visible {
  outline: 3px solid var(--text-primary);
  outline-offset: 4px;
}

/* 10. Text selection coloring (Wise Green selection) */
::selection {
  background-color: var(--primary);
  color: #0e0f0c;
}
