/* ============================================================
   Element Engage — Site Stylesheet
   ============================================================ */

/* ── Reset & base ─────────────────────────────────────────── */

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

html {
    font-size: 16px;
}

body {
    margin: 0;
    background: #fff;
    color: #43454b;
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.75em;
    font-weight: 300;
    color: #131315;
    line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.5em; }

p {
    margin: 0 0 1.25em;
}

ul, ol {
    margin: 0 0 1.25em 1.5em;
    padding: 0;
}

li {
    margin-bottom: 0.35em;
}

a {
    color: #2c5fa8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

code {
    background: #f2f2f2;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ── Layout ────────────────────────────────────────────────── */

.col-full {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2em;
    position: relative;
}

/* ── Header ────────────────────────────────────────────────── */

.site-header {
    background: #2c2d33;
    padding: 1.5em 0 0;
}

.site-branding {
    display: inline-block;
}

.site-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.site-title a {
    color: #fff;
    text-decoration: none;
}

.site-title a:hover {
    color: #ccc;
    text-decoration: none;
}

.site-description {
    margin: 0.15em 0 0;
    color: #9aa0a7;
    font-size: 0.875rem;
}

/* ── Logo ──────────────────────────────────────────────────── */

.site-logo-link {
    position: absolute;
    top: 0;
    right: 2em;
}

.site-logo-link img {
    width: 200px;
    height: auto;
    border-radius: 0;
    border: 15px solid #2c2d33;
}

/* ── Navigation ────────────────────────────────────────────── */

.main-navigation {
    margin-top: 1.25em;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation ul li a {
    display: block;
    padding: 0.75em 1.25em;
    color: #9aa0a7;
    text-decoration: none;
    font-size: 0.95rem;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #fff;
}

button.menu-toggle {
    display: none;
}

/* ── Content ───────────────────────────────────────────────── */

#content {
    padding: 2.5em 0 3em;
}

/* ── Article ───────────────────────────────────────────────── */

.entry-header {
    margin-bottom: 1.5em;
    padding-bottom: 0.75em;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.entry-title {
    margin: 0;
    font-size: 2.25rem;
    font-weight: 300;
}

.entry-content {
    font-size: 1rem;
}

.entry-content a {
    text-decoration: underline;
}

.entry-content a:hover {
    text-decoration: none;
}

/* ── Figures & images ──────────────────────────────────────── */

figure {
    margin: 0 0 1.25em;
}

.alignright {
    float: right;
    margin: 0 0 1.25em 2em;
}

.alignleft {
    float: left;
    margin: 0 2em 1.25em 0;
}

figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.4em;
}

/* ── Button ────────────────────────────────────────────────── */

.button, a.button {
    display: inline-block;
    background: #43454b;
    color: #fff;
    padding: 0.6em 1.4em;
    border-radius: 2px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.button:hover, a.button:hover {
    background: #2c2d33;
    color: #fff;
    text-decoration: none;
}

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
    background: #f3f3f3;
    color: #3b3c3f;
    padding: 1.5em 0;
    font-size: 0.875rem;
    border-top: 1px solid #e2e2e2;
}

/* ── App Lab ───────────────────────────────────────────────── */

.app-note {
    background: #f3f6fb;
    border-left: 3px solid #2c5fa8;
    padding: 0.75em 1em;
    margin: 0 0 1.75em;
    font-size: 0.9rem;
    color: #43454b;
}

.app-note code {
    background: #e4ebf5;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25em;
    margin: 1.5em 0;
}

.app-card {
    display: block;
    padding: 1.4em 1.5em;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.app-card:hover {
    text-decoration: none;
    border-color: #2c5fa8;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
}

.app-card-title {
    margin: 0 0 0.4em;
    font-size: 1.3rem;
    color: #131315;
}

.app-card-desc {
    margin: 0 0 1em;
    font-size: 0.92rem;
    color: #5a5c63;
    line-height: 1.5;
}

.app-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5em;
    font-size: 0.8rem;
}

.app-status {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.7rem;
}

.app-status.ready {
    background: #e3f4e8;
    color: #1f7a3d;
}

.app-status.pending {
    background: #fdf1dd;
    color: #a5670a;
}

/* ── Utilities ─────────────────────────────────────────────── */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 700px) {
    .site-logo-link {
        display: none;
    }

    .main-navigation ul {
        flex-wrap: wrap;
    }

    .main-navigation ul li a {
        padding: 0.6em 1em;
    }

    .alignright, .alignleft {
        float: none;
        margin: 0 0 1.25em;
    }
}
