/* ═══════════════════════════════════════════════════════════════
   GLEN THEME — BASE GLOBAL STYLES
   Reset, typography baseline, utility classes.
   Page-specific styles live in their own CSS files.
   ═══════════════════════════════════════════════════════════════ */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: rgba(0, 0, 0, 0.85);
    background: #fff;
}

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

a {
    color: inherit;
}

/* Skip link */
.gt-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #000;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0 0 4px 4px;
    z-index: 99999;
    text-decoration: none;
    transition: top 100ms;
}
.gt-skip-link:focus {
    top: 0;
}

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

/* Main content — clears the fixed header */
.gt-main {
    padding-top: var(--gt-nav-height, 64px);
}

body.admin-bar .gt-main {
    /* Admin bar handled by WP body class */
}

/* Default page content */
.gt-page {
    max-width: 900px;
    margin-inline: auto;
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
}

.gt-page h1,
.gt-page h2,
.gt-page h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.2;
}

/* 404 */
.gt-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 4rem clamp(1.5rem, 5vw, 4rem);
    font-family: var(--font-sans);
}

.gt-404 h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(0, 0, 0, 0.85);
}

.gt-404 p {
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 2rem;
}

.gt-404__link {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: var(--c-orange);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    transition: background-color var(--dur-fast) var(--ease);
}

.gt-404__link:hover {
    background: var(--c-orange-hover);
}

/* Footer */
.gt-footer {
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.gt-footer__inner {
    max-width: 1200px;
    margin-inline: auto;
}

.gt-footer__copy {
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: rgba(0, 0, 0, 0.45);
    margin: 0;
}
