/* DoseSentry Ghost theme
   Colors and fonts sourced directly from brand-assets/README.md — the same
   palette PageBuilder sampled from the logo for the main dosesentry.com site.
   Do not introduce new colors here; if the main site changes, update this file
   to match rather than letting the two drift apart. */

:root {
    --ds-blue: #306BB7;        /* Lead brand blue — logo, headers, primary CTAs */
    --ds-mint: #B0E0E0;        /* Pale mint/teal accent from the mark */
    --ds-navy: #1A237E;        /* Optional deep accent */
    --ds-light-bg: #EFF4FB;    /* Marketing/light background — confirmed via code extraction (aliceblue) */
    --ds-dark-bg: #121214;     /* Dark plates */
    --ds-white: #FFFFFF;
    --ds-text: #1F2937;        /* Body text, near-black gray, not logo-red */
    --ds-text-dark: #111827;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ds-text);
    background: var(--ds-light-bg);
    line-height: 1.6;
}

a { color: var(--ds-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---- Header, matching the main site's nav pattern ---- */

.site-header {
    border-bottom: 1px solid #E5E7EB;
    background: var(--ds-white);
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo-img {
    height: 36px;
    width: auto;
}

.site-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-signin {
    color: var(--ds-text-dark);
    font-weight: 500;
}

.site-subscribe-btn {
    background: var(--ds-blue);
    color: var(--ds-white);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
}

.site-subscribe-btn:hover {
    background: var(--ds-navy);
    text-decoration: none;
    color: var(--ds-white);
}

/* ---- Post feed / homepage ---- */

.post-feed-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 24px;
}

.post-feed-header h1 {
    font-size: 2.4rem;
    color: var(--ds-text-dark);
    margin: 0;
}

.post-feed {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 64px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
}

.post-card {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    overflow: hidden;
    background: var(--ds-white);
    transition: box-shadow 0.15s ease;
}

.post-card:hover { box-shadow: 0 4px 16px rgba(48, 107, 183, 0.12); }

.post-card-image { width: 100%; height: 180px; object-fit: cover; }

.post-card-content { padding: 20px; }

.post-card-tag {
    display: inline-block;
    background: var(--ds-mint);
    color: var(--ds-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.post-card-title { font-size: 1.25rem; margin: 0 0 8px; }
.post-card-title a { color: var(--ds-text-dark); }
.post-card-title a:hover { color: var(--ds-blue); text-decoration: none; }

.post-card-excerpt { color: #4B5563; font-size: 0.95rem; margin: 0 0 14px; }

.post-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: #6B7280;
}

/* ---- Single post page ---- */

.post-full { max-width: 720px; margin: 0 auto; padding: 56px 24px; }

.post-full-tag {
    display: inline-block;
    background: var(--ds-mint);
    color: var(--ds-navy);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.post-full-title {
    font-size: 2.4rem;
    color: var(--ds-text-dark);
    margin: 0 0 20px;
    line-height: 1.15;
}

.post-full-meta {
    display: flex;
    gap: 14px;
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.post-full-image { margin: 0 0 32px; border-radius: 12px; overflow: hidden; }
.post-full-image img { width: 100%; }

.post-full-content { font-size: 1.1rem; }
.post-full-content h2 { color: var(--ds-text-dark); margin-top: 2.2em; }
.post-full-content h3 { color: var(--ds-text-dark); margin-top: 1.8em; }
.post-full-content a { color: var(--ds-blue); text-decoration: underline; }

/* Required Ghost editor width classes — used when an image or card inside a
   post is set to "wide" or "full" width in the Ghost editor (Koenig). Every
   theme must style these or wide/full content looks broken. */

.kg-width-wide {
    width: 100%;
    max-width: 1040px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.kg-width-full img { width: 100%; }

/* ---- Footer, matching the main site ---- */

.site-footer {
    background: var(--ds-dark-bg);
    color: #C5CBD6;
    margin-top: 64px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 32px;
}

.site-footer-brand { padding-right: 24px; }

.site-footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.site-footer-logo img { height: 36px; width: auto; }

.site-footer-tagline { color: #8B93A7; margin: 0; }

.site-footer-col h4 {
    color: var(--ds-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.site-footer-col a {
    display: block;
    color: var(--ds-mint);
    margin-bottom: 12px;
}

.site-footer-col a:hover { color: var(--ds-white); text-decoration: none; }

.site-footer-legal-row {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 24px 40px;
    border-top: 1px solid #2A2E3A;
}

.site-footer-legal { font-size: 0.85rem; color: #6B7280; margin: 20px 0 0; }

@media (max-width: 640px) {
    .site-footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .site-header-inner { flex-wrap: wrap; }
    .post-feed-header h1 { font-size: 1.8rem; }
    .post-full-title { font-size: 1.8rem; }
}
