/* GLOBAL STYLES - Resets, Base Typography, Prose. Images */
/*********************************************************/


/* =================== */
/* [[[ SPACE RESET ]]] */
/* =================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

/* ======================== */
/* [[[ BASE BODY STYLES ]]] */
/* ======================== */

body {

  font-family: var(--font-main);
  font-weight: 350;
  font-style: normal;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Sticky Footer & Layout Setup */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  /* Prevent horizontal scroll from 100vw elements */
}



/* ======================== */
/* [[[ BASE TYPOGRAPHY ]]] */
/* ======================== */

h1 {
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1.2em;
  color: var(--color-accent-dark);
}

h2 {
  font-weight: 650;
  font-size: 2.2rem;
  line-height: 1.2em;
  color: var(--color-accent-dark);
}

h3 {

  font-weight: 650;
  font-size: 1.8rem;
  line-height: 1.2em;
  color: var(--color-accent);
}

h4 {
  font-weight: 650;
  font-size: 1.4rem;
  line-height: 1.2em;
  color: var(--color-accent);
}

p,
li {
  font-size: 1.2rem;
  line-height: 1.35em;
  color: var(--color-primary-dark);
}


address,
figcaption {
  color: var(--color-accent-dark);
  font-style: italic;
}

b {
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--color-accent);
}

a {
  font-size: 1.2rem;
  font-weight: 450;
  color: var(--color-accent);
}

strong {
  font-size: 1.2rem;
  font-weight: 620;
  color: var(--color-primary);
}

.text-small {
  font-size: 1.05rem;
}

.text-accent {
  color: var(--color-accent);
}

.text-accent-dark {
  color: var(--color-accent-dark);
}

.text-white {
  color: var(--color-white);
}

.text-ux-label {
  font-size: 1.5rem;
}

mark {
  border-radius: 3px;
  padding: 0.1em;
}

mark.mark--blue {
  background: linear-gradient(100deg, hsla(189.9, 100%, 50%, 0.5), hsla(189.9, 100%, 50%, 0.2));
}

mark.mark--purple {
  background: linear-gradient(100deg, hsla(239, 100%, 73%, 0.5), hsla(239, 100%, 73%, 0.2));
}

mark.mark--violet {
  background: linear-gradient(100deg, hsla(272, 100%, 48%, 0.5), hsla(272, 100%, 48%, 0.2));
}


/* ========================= */
/* [[[ PARAGRAPH MARGINS ]]] */
/* ========================= */

.prose {
  max-width: 75ch;
  /* Reading container width */
}

.prose p {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.prose>*:first-child {
  margin-top: 0;
}

.prose>*:last-child {
  margin-bottom: 0;
  /* Prevent double spacing with the Container's row-gap */
}

/* ======================= */
/* [[[ HEADING MARGINS ]]] */
/* ======================= */


.prose h1,
.prose h2 {
  margin-bottom: 0.3rem;
}

.prose h3 {
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
}

.prose h4 {
  margin-top: 1.4rem;
  margin-bottom: 0.3rem;
}

/* ======================= */
/* [[[ LIST FORMATTING ]]] */
/* ======================= */

.prose ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
  list-style-type: disc;
}

.prose ul>li {
  margin-bottom: 0.8rem;
}

/* Ordered list with counters */
.prose ol {
  counter-reset: section;
  list-style-type: none;
  margin-bottom: 1.5rem;
  padding-left: 0;
}

.prose ol>li {
  position: relative;
  counter-increment: section;
  margin-bottom: 1rem;
  padding-left: 3rem;
  /* Hanging indent space for numbers */
}

/* Numbering logic: 3, 3.1, 3.1.1 */
.prose ol>li::before {
  content: counters(section, ".") ".";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
}

.prose ol ol {
  margin-top: 1rem;
  /* Vertical spacing for nested lists */
  margin-bottom: 0;
}

.prose li {
  /* Generic reset for non-OL items */
  list-style-position: outside;
}


/* ==================== */
/* [[[ IMAGE STYLES ]]] */
/* ==================== */

/* Ensures images are responsive and do not exceed their container's width */
img {
  max-width: 100%;
  height: auto;
}

hr {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid var(--color-accent-medium);
}