/* BASE & RESET STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: var(--color-paper);
}

/* ACCESSIBILITY & FOCUS */
:focus-visible {
  outline: 2px solid var(--color-clinical-green);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink);
  line-height: 1.25;
}

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-3xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: 1rem;
  color: var(--color-ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-clinical-green-hover);
}

/* CLINICAL TELEMETRY UTILITY */
.telemetry-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.telemetry-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-clinical-green);
}

/* LAYOUT CONTAINER */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.main-content {
  flex: 1 0 auto;
}

/* SECTION STRUCTURE */
.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-line);
}

.section-alt {
  background-color: var(--color-mist-light);
}

.section-header {
  margin-bottom: 2.75rem;
  max-width: 760px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header .section-tag {
  color: var(--color-clinical-green);
  margin-bottom: 0.5rem;
  display: block;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: var(--text-md);
  color: var(--color-ink-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .section {
    padding: 3.5rem 0;
  }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }
}
