/* ==========================================================================
   CLOUD PUBLICATIONS — TYPOGRAPHY
   Base type scale, headings, body copy, links.
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--cp-header-height) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--cp-background);
    color: var(--cp-text);
    font-family: var(--cp-font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cp-font-heading);
    color: var(--cp-primary);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.028em;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.6rem, 4.6vw, 4rem); }
h2 { font-size: clamp(2rem, 3.1vw, 2.85rem); }
h3 { font-size: clamp(1.2rem, 1.5vw, 1.4rem); letter-spacing: -0.02em; }

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

a {
    color: var(--cp-secondary);
    text-decoration: none;
    transition: color var(--cp-transition);
}

a:hover { color: var(--cp-accent); }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

strong { font-weight: 600; color: var(--cp-primary); }

.container {
    max-width: 1240px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Accessibility — skip link & focus states */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1.5rem;
    z-index: 2000;
    padding: 0.85rem 1.4rem;
    border-radius: var(--cp-radius-sm);
    background-color: var(--cp-primary);
    color: var(--cp-white);
    font-weight: 600;
    transition: top var(--cp-transition);
}

.skip-link:focus {
    top: 1.25rem;
    color: var(--cp-white);
}

:focus-visible {
    outline: 3px solid var(--cp-accent);
    outline-offset: 3px;
    border-radius: 4px;
}