/* assets/css/reset.css */

@layer reset {
  /* Box-sizing Reset */
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  /* HTML & Body Base */
  html {
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
  }

  body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
  }

  /* Zero-specificity heading resets using :where() */
  :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: var(--color-text-main);
  }

  :where(a) {
    color: inherit;
    text-decoration: inherit;
  }

  :where(button) {
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
  }

  :where(img, video) {
    max-width: 100%;
    height: auto;
  }

  /* Zero-specificity fallback lists and structures */
  :where(ul, ol) {
    list-style: none;
  }

  /* Base Focus Styles without !important */
  *:focus-visible {
    outline: 3px solid var(--color-accent, #06b6d4);
    outline-offset: 2px;
  }

  /* Disable outline for mouse clicks */
  *:focus:not(:focus-visible) {
    outline: none;
  }
}
