/* ============================================================
   Medication Diary - site styles
   Built on top of Bootstrap 5.

   Design discipline (per landing_page_guidance.md):
   - Serif headlines (Source Serif 4), sans body (Inter)
   - Generous line height, readable on phone in poor lighting
   - Lower density than fashionable; white space is a feature
   - Quiet color palette; LED ring colors (green/yellow/red) as accents only
   - Almost no animation
   ============================================================ */


/* -- Typography ------------------------------------------------- */

:root {
    --md-text: #1a1a1a;
    --md-text-muted: #5a5a5a;
    --md-bg: #ffffff;
    --md-bg-soft: #f5f4f0;     /* off-white, slightly warm */
    --md-border: #e3e1dc;
    --md-accent-green: #4a7c3a;
    --md-accent-yellow: #c89e2c;
    --md-accent-red: #b04036;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--md-text);
    background: var(--md-bg);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.serif {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

h1.serif, .display-4.serif {
    font-weight: 400;
    letter-spacing: -0.02em;
}

h2.serif {
    font-size: 2rem;
    line-height: 1.2;
}

@media (min-width: 992px) {
    h2.serif {
        font-size: 2.5rem;
    }
}

h3.serif {
    font-weight: 600;
}

.lead {
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--md-text);
    font-weight: 400;
}


/* -- Layout density -------------------------------------------- */

.py-lg-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 7rem !important;
        padding-bottom: 7rem !important;
    }
}

section p {
    margin-bottom: 1.25rem;
}


/* -- Background tones ------------------------------------------ */

.bg-light {
    background-color: var(--md-bg-soft) !important;
}


/* -- Navbar ---------------------------------------------------- */

.navbar-brand {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.nav-link {
    color: var(--md-text);
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--md-text);
    text-decoration: underline;
    text-underline-offset: 0.3em;
}


/* -- Buttons --------------------------------------------------- */

.btn {
    border-radius: 4px;
    padding: 0.6rem 1.25rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
}

.btn-dark {
    background: var(--md-text);
    border-color: var(--md-text);
}

.btn-dark:hover {
    background: #000;
    border-color: #000;
}

.btn-outline-dark {
    color: var(--md-text);
    border-color: var(--md-text);
}


/* -- Hero placeholder ------------------------------------------ */

.hero-visual-placeholder,
.device-visual-placeholder {
    background: var(--md-bg-soft) !important;
    border: 1px dashed var(--md-border) !important;
}


/* -- Device cards ---------------------------------------------- */

.device-card {
    border-color: var(--md-border) !important;
    background: var(--md-bg) !important;
    transition: none;
}


/* -- Scenario cards (hard moments) ----------------------------- */

.scenario-card {
    border-color: var(--md-border) !important;
}

.scenario-label {
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 0.7rem;
}


/* -- Callout (ambient indicator) ------------------------------- */

.callout {
    border-color: var(--md-accent-green) !important;
    background: var(--md-bg-soft) !important;
}


/* -- "What we're not" list ------------------------------------- */

.not-item {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--md-border);
}

.not-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}


/* -- Forms ----------------------------------------------------- */

.form-control {
    border-radius: 4px;
    border-color: var(--md-border);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--md-text);
    box-shadow: none;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
}


/* -- Newsletter card ------------------------------------------- */

.newsletter-card {
    background: var(--md-bg-soft) !important;
}


/* -- Footer ---------------------------------------------------- */

footer {
    font-size: 0.95rem;
}

footer a {
    color: var(--md-text);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

footer ul.list-unstyled li {
    margin-bottom: 0.4rem;
}

footer address {
    font-style: normal;
    line-height: 1.7;
}


/* -- Subtle: no aggressive animation --------------------------- */

* {
    transition-duration: 0.15s;
}


/* -- Mobile typography refinements ----------------------------- */

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1.serif, .display-4.serif {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1.1rem;
    }
}