/* ── Skip to Content (Accessibility) ──────────────────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--cp-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--cp-border-radius);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-to-content:focus {
    top: 16px;
}

/* ── Reset & Typography ───────────────────────────────────────────────────── */

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

html {
    font-size: var(--cp-font-size-base);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--cp-font-body);
    font-size: 1.125rem;
    line-height: var(--cp-line-height);
    color: var(--cp-text);
    background-color: var(--cp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Headings ─────────────────────────────────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cp-font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cp-text);
    margin-bottom: var(--cp-space-md);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ── Body text ────────────────────────────────────────────────────────────── */

p {
    font-size: 1.125rem;
    margin-bottom: var(--cp-space-md);
    line-height: var(--cp-line-height);
}

strong, b { font-weight: 600; }
small { font-size: 0.875rem; }

/* ── Links ────────────────────────────────────────────────────────────────── */

a {
    color: var(--cp-primary);
    text-decoration: none;
    transition: color var(--cp-transition-fast), opacity var(--cp-transition-fast);
}

a:hover,
a:focus-visible {
    color: var(--cp-primary-hover);
    text-decoration: underline;
}

/* ── Images ───────────────────────────────────────────────────────────────── */

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

/* ── Lists ────────────────────────────────────────────────────────────────── */

ul, ol {
    padding-left: var(--cp-space-lg);
    margin-bottom: var(--cp-space-md);
}

li { margin-bottom: var(--cp-space-xs); }

/* ── Selection ────────────────────────────────────────────────────────────── */

::selection {
    background-color: var(--cp-secondary);
    color: var(--cp-text);
}

/* ── Focus ring ───────────────────────────────────────────────────────────── */

:focus-visible {
    outline: 2px solid var(--cp-secondary);
    outline-offset: 2px;
}

/* ── Horizontal rule ──────────────────────────────────────────────────────── */

hr {
    border: none;
    border-top: 1px solid var(--cp-border);
    margin: var(--cp-space-lg) 0;
}

/* ── Blockquote ───────────────────────────────────────────────────────────── */

blockquote {
    border-left: 4px solid var(--cp-secondary);
    padding: var(--cp-space-md) var(--cp-space-lg);
    margin: var(--cp-space-lg) 0;
    font-style: italic;
    font-size: 1.125rem;
    color: var(--cp-text-muted);
    background-color: var(--cp-bg-white);
    border-radius: 0 var(--cp-border-radius) var(--cp-border-radius) 0;
}

/* ── Superscript decoration ──────────────────────────────────────────────── */

.section-label {
    display: inline-block;
    font-family: var(--cp-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cp-secondary);
    margin-bottom: var(--cp-space-md);
}

.section-label--light {
    color: var(--cp-accent);
}
