/* Base typography and layout primitives (on top of Bootstrap reboot/grid/utilities). Tokens only. */

@font-face {
    font-family: "Plus Jakarta Sans";
    font-style: normal;
    font-display: swap;
    font-weight: 200 800;
    src: url("../fonts/plus-jakarta-sans-latin-wght-normal-ZHdaFJ8.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-feature-settings: "tnum" 0;
}

main {
    flex: 1 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--sj-font-display);
    font-weight: var(--sj-fw-bold);
    line-height: var(--sj-lh-tight);
    letter-spacing: -0.01em;
    margin-bottom: var(--sj-space-3);
}

h1 { font-size: var(--sj-fs-3xl); letter-spacing: -0.02em; }
h2 { font-size: var(--sj-fs-2xl); }
h3 { font-size: var(--sj-fs-xl); }
h4 { font-size: var(--sj-fs-lg); }

p {
    margin-bottom: var(--sj-space-4);
}

a {
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
}

/* Visible, consistent focus for keyboard users only. */
:focus-visible {
    outline: var(--sj-focus-outline);
    outline-offset: 2px;
}

.sj-container {
    width: 100%;
    max-width: var(--sj-container);
    margin-inline: auto;
    padding-inline: var(--sj-gutter);
}

@media (min-width: 768px) {
    :root {
        --sj-gutter: 1.5rem;
    }
}

.sj-section {
    padding-block: var(--sj-space-7);
}

.sj-muted {
    color: var(--sj-text-muted);
}

.sj-price {
    font-variant-numeric: tabular-nums;
}

/* Accessible hiding (labels, live regions). */
.sj-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sj-skip-link {
    position: absolute;
    left: var(--sj-space-4);
    top: -100px;
    z-index: 1000;
    padding: var(--sj-space-2) var(--sj-space-4);
    background: var(--sj-brand);
    color: var(--sj-brand-contrast);
    border-radius: var(--sj-radius-sm);
}

.sj-skip-link:focus {
    top: var(--sj-space-2);
}

.sj-icon {
    vertical-align: -0.125em;
    flex-shrink: 0;
}
