/* Base Styles */
body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--color-text);
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.92), rgba(243, 246, 242, 0.96)),
        repeating-linear-gradient(90deg, rgba(22, 61, 70, 0.035) 0 1px, transparent 1px 36px),
        var(--color-bg);
    overflow-x: clip;
    font-variant-numeric: tabular-nums;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.36;
    background-image:
        repeating-linear-gradient(0deg, rgba(13, 38, 44, 0.02) 0 1px, transparent 1px 5px),
        repeating-linear-gradient(90deg, rgba(13, 38, 44, 0.018) 0 1px, transparent 1px 7px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: var(--space-md);
    letter-spacing: 0;
    text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); border-bottom: none; padding-bottom: 0; }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
    max-width: 70ch;
    text-wrap: pretty;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/* Sections */
.section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-4xl);
}

.section-bg {
    background:
        linear-gradient(180deg, rgba(255, 254, 250, 0.94), rgba(250, 251, 245, 0.94)),
        var(--color-bg-white);
}

.section-alt {
    background:
        linear-gradient(135deg, rgba(232, 238, 232, 0.92), rgba(244, 247, 242, 0.92)),
        var(--color-bg-alt);
    border-block: 1px solid rgba(22, 61, 70, 0.08);
}

.section-title-wrap {
    text-align: left;
    margin-bottom: var(--space-2xl);
    max-width: 780px;
    margin-left: 0;
    margin-right: auto;
}

.section-title-wrap h2 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--space-sm);
    position: relative;
    display: inline-block;
}

.section-title-wrap h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    transform: none;
    width: 88px;
    height: 2px;
    background-color: var(--color-secondary);
}

.section-subtitle {
    font-size: var(--fs-lg);
    color: var(--color-text-light);
    margin-top: var(--space-lg);
    margin-left: 0;
}

a,
button,
input,
textarea,
select,
.btn,
.tab-link,
.accordion-header {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.tab-link:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-bg-white);
    clip: auto !important;
    clip-path: none;
    color: var(--color-primary);
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    box-shadow: var(--shadow-md);
}
