/**
 * reset.css
 * -----------------------------------------------------------------------------
 * A modern, minimal CSS reset.
 * Inspired by Andy Bell's modern-normalize + Josh Comeau's reset.
 * ----------------------------------------------------------------------------- */

*, *::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%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: var(--font-primary);
  background-color: var(--color-bg-primary);
  color: var(--color-text);
  overflow-x: hidden;
}

/* Block-level defaults */
article, aside, details, figcaption, figure,
footer, header, main, nav, section, summary {
  display: block;
}

/* Media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form elements inherit font */
input, button, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

/* Button reset */
button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* Anchor reset */
a {
  color: inherit;
  text-decoration: none;
}

/* List reset */
ul, ol {
  list-style: none;
}

/* Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Heading defaults */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

p, li, blockquote { text-wrap: pretty; }

/* Focus visibility — accessibility */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Remove default fieldset look */
fieldset { border: none; }

/* Better default for dialog */
dialog {
  padding: 0;
  border: none;
  background: none;
}

/* Hide scrollbar but keep functionality (where supported) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}
*::-webkit-scrollbar-thumb:hover { background: var(--color-muted); }

/* Selection */
::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion media query — used by app.js too */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
}
