/**
 * WellAheadLife base styles
 *
 * Foundational browser rules only.
 * Brand styling is primarily controlled by theme.json.
 */

/* --------------------------------------------------------------
   Box sizing
-------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------
   Document
-------------------------------------------------------------- */

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------
   Content rhythm
-------------------------------------------------------------- */

p,
ul,
ol,
figure,
table {
  margin-top: 0;
}

p,
ul,
ol,
figure,
table {
  margin-bottom: var(--wal-space-6);
}

li {
  margin-bottom: var(--wal-space-2);
}

li::marker {
  color: var(--wal-teal);
}

/* --------------------------------------------------------------
   Responsive media
-------------------------------------------------------------- */

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

figure {
  margin-left: 0;
  margin-right: 0;
}

/* --------------------------------------------------------------
   Tables
-------------------------------------------------------------- */

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

th,
td {
  border: 1px solid var(--wal-border);
  padding: var(--wal-space-3) var(--wal-space-4);
  text-align: left;
  vertical-align: top;
}

/* --------------------------------------------------------------
   Form typography
-------------------------------------------------------------- */

button,
input,
select,
textarea {
  font: inherit;
}

/* --------------------------------------------------------------
   Accessible focus indication
-------------------------------------------------------------- */

:focus-visible {
  outline: 3px solid var(--wal-focus);
  outline-offset: 3px;
}

/* --------------------------------------------------------------
   Reduced-motion preference
-------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
