/* ==========================================================================
   Test to Table — Base Styles
   Reset, typography, and layout foundations.
   ========================================================================== */

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

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

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

/* --- Headings --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }

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

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

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

/* --- Container --- */
.gt-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --- Section --- */
.gt-section {
    padding: 100px 0;
}

.gt-section__header {
    text-align: center;
    margin-bottom: 60px;
}

.gt-section__header h2 {
    margin-bottom: var(--space-md);
}

.gt-section__header p {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Utilities --- */
.gt-text-center { text-align: center; }
.gt-text-secondary { color: var(--color-text-secondary); }
.gt-text-sm { font-size: var(--font-size-sm); }
.gt-text-xs { font-size: var(--font-size-xs); }
.gt-mt-sm { margin-top: var(--space-sm); }
.gt-mt-md { margin-top: var(--space-md); }
.gt-mt-lg { margin-top: var(--space-lg); }
.gt-mb-md { margin-bottom: var(--space-md); }
.gt-mb-lg { margin-bottom: var(--space-lg); }

/* --- Screen reader only --- */
.gt-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
