/* The LTD Insights Newsletter — Everett letterhead system */

:root {
    --ink: #0e1a2e;
    --navy: #173056;
    --gold: #b08a3e;
    --gold-soft: #d9c38a;
    --ivory: #f3ece0;
    --page: #fbf7f0;
    --rule: #d4c7ad;
    --text: #1c1a16;
    --muted: #6f675b;
    --shadow: 0 18px 50px rgba(14, 26, 46, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    background: #e7dfd0;
}

body {
    margin: 0;
    padding: 3rem 1.25rem 3rem;
    font-family: "Libre Baskerville", Georgia, serif;
    background:
        radial-gradient(ellipse at 50% 0%, #f4ecdf 0%, #e7dfd0 58%, #d9d0bf 100%);
    color: var(--text);
    line-height: 1.75;
}

.container {
    max-width: 780px;
    margin: 0 auto;
    background: var(--page);
    border: 1px solid #c9b896;
    box-shadow:
        0 0 0 6px var(--page),
        0 0 0 7px #c9b896,
        var(--shadow);
}

.header {
    background: var(--page);
    color: var(--ink);
    padding: 2.6rem 1.75rem 1.5rem;
    text-align: center;
}

.header h1 {
    margin: 0;
    font-family: "Cormorant Garamond", "Palatino Linotype", serif;
    font-size: clamp(1.85rem, 4.6vw, 2.55rem);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--ink);
    line-height: 1.15;
}

.header p {
    margin: 0.9rem 0 0;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.header::after {
    content: "";
    display: block;
    width: 72px;
    height: 0;
    margin: 1.3rem auto 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-top: 3px;
}

.entry {
    padding: 1.6rem 2.35rem 2rem;
    background: transparent;
    border-bottom: 1px solid var(--rule);
}
.entry p:has(a[href*="LWYD"]) {
    text-align: center;
}

.entry .date-header {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: var(--muted);
    text-align: center;
    font-size: 1.35rem;
    font-weight: 500;
    margin: 0.15rem 0 1rem;
    letter-spacing: 0.04em;
}

.entry h2:not(.date-header) {
    display: block;
    background: transparent;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.75rem, 3.2vw, 2.2rem);
    font-weight: 500;
    text-align: center;
    margin: 2.3rem 0 0.3rem;
    padding: 0.2rem 0 0.4rem;
}

.entry h2:not(.date-header)::after {
    content: "";
    display: block;
    width: 36px;
    height: 1px;
    margin: 0.55rem auto 0;
    background: var(--gold);
}

.entry h2:not(.date-header)::before {
    content: "";
    display: block;
    width: 100%;
    height: 0;
    margin: 0 auto 1.4rem;
    border-top: 1px solid var(--rule);
}

.entry .date-header + h2 {
    margin-top: 0.2rem;
}

.entry .date-header + h2::before {
    content: none;
    display: none;
    border: 0;
    padding: 0;
    margin: 0;
}

.entry h3 {
    color: var(--navy);
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
    margin: 1.1rem 0 0.55rem;
    padding-bottom: 0;
    border-bottom: none;
}

.entry p {
    line-height: 1.8;
    margin: 0.75rem 0;
    font-size: 1.02rem;
}

.entry a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
    font-weight: 400;
}

.highlight {
    background: #f3ead9;
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--navy);
    margin: 1rem 0;
}

.quote {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-style: italic;
    color: #4a463e;
    margin: 1.1rem 0;
    padding: 0.75rem 1.15rem;
    border-left: 3px solid var(--gold);
    background: #f3ead9;
}

.separator {
    display: none;
}

.footer {
    background: var(--ink);
    color: #efe7d8;
    text-align: center;
    padding: 1.35rem 1rem 1.5rem;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.footer p {
    margin: 0.25rem 0;
    line-height: 1.7;
}

.footer a {
    color: var(--gold-soft);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    body {
        padding: 0;
        background: var(--page);
    }

    .container {
        border: 0;
        box-shadow: none;
    }

    .header {
        padding: 2.1rem 1.2rem 1.2rem;
    }

    .header h1 {
        letter-spacing: 0.03em;
        font-size: 1.7rem;
    }

    .entry {
        padding: 1.4rem 1.2rem 1.55rem;
    }
}
