/* =================================================
   BASE (minimal, no Bootstrap overrides)
   Purpose: only global page defaults (html/body/type)
================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;

    color: #101828;
    background: #ffffff;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    display: block;
}

.category-head {
    margin: 8px 0 18px;
}

.category-title {
    margin: 0 0 6px;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.category-sub {
    margin: 0;
    color: #667085;
}


/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin: 0 0 1em;
    color: #334155;
}

small {
    font-size: 0.85em;
    color: #64748b;
}

strong {
    font-weight: 700;
}

/* Links (do not affect header/footer specifics) */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Media */
img,
picture,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
