/* Upload-ready theme overrides for The City Well */

:root {
    --color-darkgrey: #22201d;
    --color-midgrey: #6f675f;
    --color-lightgrey: #f3eee7;
    --color-secondary-text: #7a7269;
    --color-border: #ddd3c6;
    --color-wash: #eee7de;
    --color-bg: #fcfaf6;
    --color-bg-alt: #f6f1e8;
    --color-accent: #8a6a4a;
    --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: Georgia, "Merriweather", Times, serif;
    --ghost-accent-color: var(--color-accent);
}

body {
    background: var(--color-bg);
    color: var(--color-darkgrey);
    font-family: var(--gh-font-body, var(--font-sans));
    font-size: 1.8rem;
    line-height: 1.72;
}

.site-header {
    background: var(--color-bg-alt);
    color: var(--color-darkgrey);
}

.has-cover .site-header-content {
    background-color: var(--color-accent);
}

.site-title {
    font-weight: 700;
    line-height: 1.08;
}

.site-description {
    line-height: 1.14;
}

.gh-head {
    background-color: var(--color-bg);
}

.gh-head-logo {
    font-family: var(--gh-font-heading, var(--font-serif));
    font-weight: 700;
    letter-spacing: -0.01em;
}

.gh-head-menu .nav a {
    text-underline-offset: 0.18em;
}

.gh-dropdown {
    background-color: var(--color-bg);
    border-radius: 10px;
}

.gh-head-button {
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    letter-spacing: 0;
    padding: 8px 18px;
}

.has-cover .gh-head-button {
    background: var(--color-accent);
    color: #fff;
}

.post-card-image-link {
    margin-bottom: 36px;
}

.post-card-title {
    font-weight: 700;
    line-height: 1.24;
}

.post-card-excerpt {
    font-size: 1.7rem;
    line-height: 1.68;
    margin-top: 14px;
}

.post-card-meta {
    font-size: 1.35rem;
    margin-top: 16px;
}

@media (min-width: 1001px) {
    .post-card-large .post-card-title {
        font-size: 4.1rem;
        line-height: 1.1;
    }

    .post-card-full .post-card-title {
        font-size: 5.6rem;
        line-height: 1;
    }

    .post-card-full .post-card-excerpt {
        font-size: 1.85rem;
        line-height: 1.72;
    }
}

.post-template .article {
    padding: max(9vmin, 52px) 0 max(10vmin, 80px);
}

.post-template .article-header {
    padding: 0 0 max(7.2vmin, 48px);
}

.page-template .article-header {
    padding: max(12vmin, 72px) 0 max(4vmin, 32px);
}

.article-title {
    font-weight: 700;
    line-height: 1.12;
}

.article-excerpt {
    color: var(--color-secondary-text);
    font-size: 2.1rem;
    line-height: 1.62;
    margin-top: 24px;
}

@media (max-width: 767px) {
    .article-excerpt {
        font-size: 1.8rem;
        margin-top: 16px;
    }
}

.gh-canvas,
.kg-width-full.kg-content-wide {
    --main: min(var(--content-width, 760px), 100% - var(--gap) * 2);
    --wide: minmax(0, calc((var(--container-width, 1200px) - var(--content-width, 760px)) / 2));
}

.gh-content > * + * {
    margin-top: max(4.2vmin, 30px);
}

.gh-content > :is(h1, h2, h3, h4, h5, h6) {
    color: var(--color-darkgrey);
    font-family: var(--gh-font-heading, var(--font-serif));
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.22;
}

.gh-content > [id]:not(:first-child) {
    margin: 2.4em 0 0;
}

.gh-content > [id] + * {
    margin-top: 1.8rem !important;
}

.gh-content > h1 {
    font-size: clamp(3.2rem, 4vw, 4.6rem);
}

.gh-content > h2 {
    font-size: clamp(2.8rem, 3.4vw, 3.8rem);
}

.gh-content > h3 {
    font-size: clamp(2.3rem, 2.8vw, 3rem);
}

.gh-content a {
    color: var(--color-accent);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.gh-content > blockquote:not([class]),
.gh-content > dl,
.gh-content > ol,
.gh-content > p,
.gh-content > ul {
    font-family: var(--gh-font-body, var(--font-sans));
    font-size: 1.8rem;
    line-height: 1.75;
}

.gh-content .kg-callout-card .kg-callout-text,
.gh-content .kg-toggle-card .kg-toggle-content > ol,
.gh-content .kg-toggle-card .kg-toggle-content > p,
.gh-content .kg-toggle-card .kg-toggle-content > ul {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.72;
}

.gh-content .kg-product-card .kg-product-card-description > ol,
.gh-content .kg-product-card .kg-product-card-description > p,
.gh-content .kg-product-card .kg-product-card-description > ul {
    line-height: 1.72;
}

.gh-content > blockquote:not([class])::before {
    background: var(--color-accent);
}

.post-card-featured {
    color: var(--color-accent);
}

.gh-content .kg-button {
    align-items: center;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    border-radius: 10px;
    box-shadow: none;
    color: #fff;
    display: inline-flex;
    font-family: var(--gh-font-body, var(--font-sans));
    font-size: 1.7rem;
    font-weight: 600;
    justify-content: center;
    line-height: 1.2;
    min-height: 4.6rem;
    padding: 0.85em 1.5em;
    text-decoration: none !important;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.gh-content .kg-button:hover,
.gh-content .kg-button:focus {
    background: #785b3f;
    border-color: #785b3f;
}

.gh-content .kg-button:focus-visible {
    outline: 2px solid #b99f86;
    outline-offset: 2px;
}

.footer-cta-button span {
    background: var(--color-accent);
}

.site-footer {
    background: #2b2621;
}
