:root {
    --max-width: 1200px;
    --radius: 14px;
    --gap: 16px;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
}

/* App layout: header + nav + scrollable main + footer */
#page {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

/* Only the content area scrolls */
.page-main {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


#wrapper {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 24px;
}


.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 16px;
}

nav.site-nav,
footer.site-footer{
    position: relative;
}

nav.site-nav::before,
footer.site-footer::before{
    content:"";
    position:absolute;
    left:0; right:0; top:0;
    height:3px;
    background: linear-gradient(90deg, #1f8a5b, #6b4fe6);
    opacity: 0.85;
}


/* Logo: 80% of header height, vertically centered via flex */
header.site-header .site-logo {
    height: 80%;
    width: auto;
    display: block;
}

/* Brand layout */
header.site-header .brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

/* Yellow text with black shadow */
header.site-header .brand-title,
header.site-header .brand-subtitle {
    margin: 0;
    color: #ffd400;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.85);
}

/* Responsive title */
header.site-header .brand-title {
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(1.4rem, 3.6vw, 3rem);
    letter-spacing: 0.2px;
}

/* Responsive subtitle */
header.site-header .brand-subtitle {
    font-weight: 650;
    line-height: 1.2;
    font-size: clamp(0.95rem, 1.6vw, 1.35rem);
    opacity: 0.98;
}

/* Mobile tweak: reduce left padding so it doesn't crush content */
@media (max-width: 700px) {
    header.site-header {
        padding-left: 16px;
        gap: 14px;
        height: 200px;
    }

    header.site-header .site-logo {
        height: 70%;
    }
}




nav.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

nav.site-nav a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.content-card {
    border-radius: var(--radius);
    padding: 18px;
}

.content-card h1, .content-card h2, .content-card h3 {
    margin-top: 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    font-size: 0.95rem;
}

