/**
 * base.css
 * Delicatessen Salvatore
 *
 * Global reset and foundational element styles.
 * Loaded after variables.css and before layout, components, utilities, animations, and responsive styles.
 */

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

/* Margin / Padding Reset */
* {
  margin: 0;
  padding: 0;
}

/* HTML & Body */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* Typography - Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-tight);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

/* Typography - Body Text */
p {
  color: var(--color-text);
  margin-bottom: var(--space-2);
  max-width: 68ch;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary);
}

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

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

li {
  list-style: none;
}

/* Buttons & Inputs */
button,
input,
textarea,
select {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
}

/* Focus Styles */
:focus {
  outline: none;
}

:focus-visible {
  border-radius: var(--radius-sm);
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Horizontal Rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-5) 0;
}

/* Strong / Em */
strong {
  font-weight: var(--font-weight-semibold);
}

em {
  font-style: italic;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    transition-duration: 0.01ms;
  }
}
