/* ===== BASE STYLES - RESET AND FOUNDATION ===== */
/* Follows CSS Guidelines for base styles using element selectors */
/* No component-specific styles or utilities in this file */

/* ===== CSS RESET AND BOX MODEL ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* ===== ROOT ELEMENT ===== */
html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== BODY ELEMENT ===== */
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: normal;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== MAIN CONTENT ===== */
main {
  flex: 1;
}

/* ===== TYPOGRAPHY BASE ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  font-style: oblique;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4, h5, h6 { font-size: 1.5rem; }

p, article, section, aside {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-style: normal;
  margin-bottom: var(--spacing-md);
}

blockquote, blockquote p {
  font-family: 'Domine', serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
}

/* ===== LINKS ===== */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

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

/* ===== LISTS ===== */
ul, ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-lg);
}

li {
  margin-bottom: var(--spacing-xs);
}

/* ===== IMAGES ===== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ===== FORMS ===== */
input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== TABLES ===== */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

th, td {
  padding: var(--spacing-sm);
  text-align: left;
  border-bottom: 1px solid var(--border-primary);
}

/* ===== FOCUS STATES ===== */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  .no-print {
    display: none !important;
  }
}
