/*
Theme Name: Pelican Twenty Twenty-Four Bridge
Description: A modern, WordPress Twenty Twenty-Four inspired theme for Pelican.
Version: 2.0.1
*/

:root {
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--contrast: #000000;
    --wp--preset--color--primary: var(--brand, #0d6efd);
    --wp--preset--color--secondary: #6c757d;
    --wp--preset--color--tertiary: #f0f0f0;
    --wp--preset--gradient--vivid: linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%);
    --wp--preset--font-size--normal: 1rem;
    --wp--preset--font-size--medium: 1.25rem;
    --wp--preset--font-size--large: 1.75rem;
    --wp--preset--font-size--x-large: 2.25rem;
    --wp--font-family--system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --wp--font-family--heading: var(--wp--font-family--system);
    --wp--custom--spacing--small: 0.75rem;
    --wp--custom--spacing--medium: 1.5rem;
    --wp--custom--spacing--large: 3rem;
    --wp--custom--border-radius: 8px;
    --wp--custom--box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@media (prefers-color-scheme: dark) {
    :root {
        --wp--preset--color--base: #111111;
        --wp--preset--color--contrast: #ffffff;
        --wp--preset--color--tertiary: #222222;
        --wp--custom--box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    }
}

body {
    background-color: var(--wp--preset--color--base);
    color: var(--wp--preset--color--contrast);
    font-family: var(--wp--font-family--system);
    font-size: var(--wp--preset--font-size--normal);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--font-family--heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--wp--custom--spacing--small);
}

h1.entry-title { font-size: var(--wp--preset--font-size--x-large); }
h2 { font-size: var(--wp--preset--font-size--large); }
h3 { font-size: var(--wp--preset--font-size--medium); }

a { color: var(--wp--preset--color--primary); text-decoration: none; transition: opacity 0.2s ease; }
a:hover { opacity: 0.8; }

.site { display: flex; flex-direction: column; min-height: 100vh; }
.site-header { padding: var(--wp--custom--spacing--small) 0; background-color: var(--wp--preset--color--base); border-bottom: 1px solid var(--wp--preset--color--tertiary); }
.site-branding .site-title { font-weight: 700; color: var(--wp--preset--color--contrast); }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--wp--custom--spacing--medium); }
.main-navigation a { color: var(--wp--preset--color--secondary); font-weight: 500; }
.site-content { flex-grow: 1; }
.content-area { padding: var(--wp--custom--spacing--large) 0; }
.entry, .post, .page { margin-bottom: var(--wp--custom--spacing--large); }
.entry-header { margin-bottom: var(--wp--custom--spacing--medium); }
.entry-content p { margin-bottom: var(--wp--custom--spacing--small); }
.widget-area { padding-left: var(--wp--custom--spacing--large); }
.widget { margin-bottom: var(--wp--custom--spacing--medium); background-color: var(--wp--preset--color--tertiary); padding: var(--wp--custom--spacing--medium); border-radius: var(--wp--custom--border-radius); box-shadow: var(--wp--custom--box-shadow); }
.widget-title { font-size: var(--wp--preset--font-size--medium); margin-bottom: var(--wp--custom--spacing--small); }
.widget ul { list-style: none; padding: 0; }
.btn-primary { background-color: var(--wp--preset--color--primary); color: var(--wp--preset--color--base); padding: 0.75rem 1.5rem; border-radius: var(--wp--custom--border-radius); font-weight: 500; display: inline-block; }
.site-footer { padding: var(--wp--custom--spacing--medium) 0; background-color: var(--wp--preset--color--tertiary); color: var(--wp--preset--color--secondary); font-size: 0.9rem; }

/* Alignment utilities like WordPress */
.alignfull{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.alignwide{max-width:min(1200px,90vw);margin-left:auto;margin-right:auto}

/* Home layout fixes */
.home .site-main .content-area { flex: 0 0 100%; max-width: 100%; padding-top: var(--wp--custom--spacing--large); }
.home .site-main .widget-area { display: none !important; }
.post-home .alignwide { margin-left: auto; margin-right: auto; }
/* Avoid double horizontal paddings if nested containers appear */
.home .entry-header > .container, .home .entry-content > .container:first-child { padding-left: 0; padding-right: 0; }

/* Cards */
.post .entry-summary, .post .entry-content { color: var(--wp--preset--color--secondary); }
