/**
 * SRS DIGITAL CATALOGUE v2 - BASE & RESET STYLES
 */

/* 1. Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--srs-text-primary);
  background-color: var(--srs-bg-canvas);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 2. Typography Styles */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--srs-text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); }
h4 { font-size: var(--text-md); }

p {
  color: var(--srs-text-body);
  line-height: 1.6;
}

small, .text-muted {
  color: var(--srs-text-muted);
  font-size: var(--text-sm);
}

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

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  font-size: inherit;
  transition: all var(--transition-fast);
}

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

/* 3. Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
  }
}

/* 4. Common Interactive Badges & Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--srs-teal-deep);
  color: var(--srs-text-inverse);
  font-weight: 600;
  font-size: var(--text-sm);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--srs-gold-deep);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--srs-teal-header);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-primary:active {
  transform: translateY(0);
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background-color: var(--srs-gold-badge-bg);
  color: var(--srs-gold-badge-txt);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--srs-gold-line);
}
