/**
 * Base styles for GMU Libraries Theme
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-normal);
  color: var(--gmu-black);
  background-color: var(--gmu-white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-32);
  color: var(--gmu-primary-green, #005239);
  display: block;
  width: fit-content;
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--gmu-accent-yellow, #ffc733);
}

h2 {
  font-size: var(--font-size-22);
}

h3 {
  font-size: var(--font-size-20);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

a {
  color: var(--gmu-primary-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

/* Utility Classes */
.container {
  width: 100%;
  margin: 0;
  padding: 0 3%;
}

.content-width {
  max-width: var(--content-width);
  margin: 0 auto;
}

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

.text-center {
  text-align: center;
}

/* Focus styles for accessibility */
*:focus-visible {
  outline: 2px solid var(--gmu-accent-yellow);
  outline-offset: 2px;
}
