/* Reset, Base Typography & Tables */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: var(--lh-body);
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Headings (Display Font: Poppins) */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-title);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2rem, 3.5vw, var(--fs-article-title));
  line-height: var(--lh-article-title);
  letter-spacing: var(--track-article-title);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, var(--fs-hero-lead));
  line-height: var(--lh-hero-lead);
  letter-spacing: var(--track-hero-lead);
  font-weight: 700;
}

h3 {
  font-size: var(--fs-card-headline);
  line-height: var(--lh-card-headline);
  letter-spacing: var(--track-card-headline);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 600;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
}

/* Tables - High Performance 300 Weight Specification */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: var(--fs-table-cell);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background-color: var(--bg-table-th);
  color: var(--text-table-th);
  font-family: var(--font-display);
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
}

td {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: var(--lh-table-cell);
  color: var(--text-body);
}

tr:hover td {
  background-color: var(--bg-card-hover);
}
