/* ======================================================
   GLOBAL TYPOGRAPHY SYSTEM
   Legacy Protection Services
====================================================== */

:root {
    /* Font Families */
    --font-primary: 'Open Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;

    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    /* Refined Type Scale */
    --font-xs: 0.75rem;        /* 12px */
    --font-sm: 0.875rem;       /* 14px */
    --font-base: 1rem;         /* 16px */
    --font-md: 1.0625rem;      /* 17px */
    --font-lg: 1.25rem;        /* 20px */
    --font-xl: 1.5rem;         /* 24px */
    --font-xxl: clamp(1.75rem, 1.2vw + 1.4rem, 2.25rem);
    --font-xxxl: clamp(2.1rem, 2vw + 1.5rem, 3rem);

    /* Line Heights */
    --line-tight: 1.2;
    --line-normal: 1.65;
    --line-loose: 1.8;

    /* Letter Spacing */
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.04em;
}

/* Body */
body {
    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-normal);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-tight);
    letter-spacing: var(--letter-spacing-tight);
    margin-top: 0;
    margin-bottom: 0.75em;
    color: var(--color-black);
}

h1 {
    font-size: var(--font-xxxl);
}

h2 {
    font-size: var(--font-xxl);
}

h3 {
    font-size: var(--font-xl);
}

h4 {
    font-size: var(--font-lg);
}

h5 {
    font-size: var(--font-md);
}

h6 {
    font-size: var(--font-base);
}

p {
    font-size: var(--font-base);
    line-height: var(--line-normal);
    margin-top: 0;
    margin-bottom: 1.1em;
}

small {
    font-size: var(--font-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease;
}

a:hover,
a:focus {
    color: var(--color-primary);
    text-decoration: none;
}

ul,
ol {
    margin-bottom: 1.25em;
    padding-left: 20px;
}

li {
    margin-bottom: 0.45em;
}

img {
    max-width: 100%;
    height: auto;
}