/* ============================================================
   ePost Caribbean — Base / Reset / Typography
   ============================================================ */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    color: var(--color-dark);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-dark);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-md); }

p {
    line-height: var(--line-height-relaxed);
    color: var(--color-mid);
}

strong {
    font-weight: var(--font-weight-semibold);
    color: var(--color-dark);
}

/* ── Section headings ── */
.section-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-3);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-dark);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--font-size-md);
    color: var(--color-mid);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* ── Text utilities ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-dark    { color: var(--color-dark); }
.text-mid     { color: var(--color-mid); }
.text-white   { color: var(--color-white); }

/* ── Accessibility ── */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-semibold);
    z-index: var(--z-toast);
    transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); }

/* ── WordPress alignment classes ── */
.alignleft   { float: left; margin-right: var(--space-6); }
.alignright  { float: right; margin-left: var(--space-6); }
.aligncenter { display: block; margin: 0 auto; }
.alignwide   { max-width: 100%; }
.alignfull   { width: 100vw; margin-left: calc(50% - 50vw); }
