:root {
    --bg-main: #FBFAF6;
    --bg-surface: #FFFFFF;
    --bg-tint-light: #F1EFE7;
    --bg-tint-dark: #EAE7DE;
    --text-heading: #1A1B18;
    --text-body: #6C6D66;
    --text-muted: #8C8D86;
    --accent-green: #315B3F;
    --accent-blue: #D9E7F0;
    --accent-teal: #315B3F;
    --accent-hover: #264B32;
    --border-subtle: rgba(26, 27, 24, 0.09);
    --border-card: rgba(26, 27, 24, 0.11);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 40px;
    --space-lg: 80px;
    --space-xl: 120px;
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-card: 14px;
    --radius-sm: 8px;
    --glow-color: rgba(49, 91, 63, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
}

body {
    color: var(--text-body);
    font-family: var(--font-sans);
    line-height: 1.8;
    background-color: var(--bg-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.4s ease, opacity 0.4s ease;
}

/* ─── Skip navigation ───────────────────────────────────── */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 10px 20px;
    background: var(--accent-green);
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 0 0 8px 8px;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* ─── Focus visible ─────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
    border-radius: 14px;
}

details summary:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
    border-radius: 8px;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Typography Base */
h1,
h2,
h3,
h4,
.logo {
    color: var(--text-heading);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.05;
    word-break: break-word;
}

.logo {
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(251, 250, 246, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-body);
}

.nav-link:hover {
    color: var(--text-heading);
}

/* Global Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 500;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    box-sizing: border-box;
}

.btn-primary {
    background-color: var(--text-heading);
    color: #FFFFFF !important;
    border: 1.5px solid transparent;
    padding: 15px 28px;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: rgba(15, 23, 42, 0.85);
    transform: translateY(-1px);
}

.btn-nav {
    background-color: var(--text-heading);
    color: #FFFFFF !important;
    padding: 10px 20px;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn-nav:hover {
    background-color: rgba(15, 23, 42, 0.85);
}

/* Global Footer */
footer {
    padding: var(--space-lg) 0;
    background-color: var(--bg-tint-dark);
}

.footer-content,
.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-left {
    text-align: center;
}

.copyright {
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-heading);
}

/* Mobile Layout Base */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-right {
        gap: var(--space-sm);
    }

    .footer-content {
        gap: 24px;
    }

    .footer-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}