/* ============================================================
   PLASH PILATES — Base Styles
   Reset, typography, global utilities, accessibility helpers.
   ============================================================ */

/* ---- Modern Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--ink);
  background-color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: visible;
}

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

a {
  color: var(--rust);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover {
  color: var(--rust-dark);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: var(--weight-bold); }

p {
  margin-bottom: var(--space-4);
}
p:last-child {
  margin-bottom: 0;
}

small {
  font-size: var(--text-sm);
}

strong {
  font-weight: var(--weight-semibold);
}

/* Section labels — sentence case, no ALL CAPS */
.section-label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--olive);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--ink);
  margin-bottom: var(--space-6);
}

.text-muted {
  color: var(--ink-50);
}

.text-rust {
  color: var(--rust);
}

.text-moss {
  color: var(--moss);
}

.text-rose {
  color: var(--rose);
}

/* ---- Focus states ---- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---- Skip navigation (WCAG) ---- */
.skip-nav {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--ink);
  color: var(--ivory);
  font-weight: var(--weight-semibold);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  transition: top var(--t-fast);
}
.skip-nav:focus {
  top: 0;
  box-shadow: none;
}

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

/* ---- Scrollbar styling ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--ink-20);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-50);
}

/* ---- Selection ---- */
::selection {
  background: var(--rust-20);
  color: var(--ink);
}

/* ---- Divider ---- */
.divider {
  border: none;
  border-top: 1px solid var(--ink-10);
  margin: var(--space-6) 0;
}

/* ---- Container ---- */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--page-pad);
}
