/* ==========================================================================
   GistKE Typography System v2  —  loaded LAST so it wins the cascade
   --------------------------------------------------------------------------
   Display : Bricolage Grotesque  (variable: weight 500-800, width 75-100)
             Characterful, tightly-drawn grotesque. Used condensed + heavy for
             headlines so GistKE reads as its own thing, not a template.
   Body    : Plus Jakarta Sans    (variable: weight 500-800)
             Open apertures + sturdy strokes = strong legibility on dark UI,
             and 500 as the floor means nothing ever renders thin.
   ========================================================================== */

html {
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-weight: 500;
    font-feature-settings: "kern", "liga";
}

/* Light mode: antialiased smoothing makes dark-on-light look thinner. */
[data-theme="light"] body {
    -webkit-font-smoothing: subpixel-antialiased;
}

/* ---- Headlines: heavy + condensed, tight tracking ---- */
h1, h2, h3, h4, h5, h6,
.section-title,
[class*="__title"],
[class*="-title"],
.site-title,
.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 82%;
    letter-spacing: -0.012em;
}

h1, .single-post__title { line-height: 1.04; letter-spacing: -0.02em; }
h2, h3 { line-height: 1.12; }

/* Uppercase micro-labels need breathing room back (headlines above are tight) */
.section-title,
.see-all-link,
[class*="__label"],
[class*="__badge"],
[class*="__cat"],
[class*="-badge"],
[class*="-label"] {
    letter-spacing: .08em;
}

/* ---- Article body: the part people actually read ---- */
.single-post__content,
.entry-content {
    font-family: var(--font-body);
    font-weight: 500;
    font-stretch: 100%;
    color: var(--text-primary);
    letter-spacing: -0.003em;
}
.single-post__content p { margin-bottom: 1.15em; }
.single-post__content strong,
.single-post__content b { font-weight: 800; }
.single-post__content a  { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--accent-border); }
.single-post__content a:hover { text-decoration-color: var(--accent); }
.single-post__content blockquote {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 88%;
    font-size: 1.25em;
    line-height: 1.3;
    border-left: 4px solid var(--accent);
    padding-left: 1em;
    margin: 1.4em 0;
}
.single-post__content h2,
.single-post__content h3 { margin: 1.6em 0 .5em; }
.single-post__content > p:first-of-type::first-letter { font-weight: 800; font-stretch: 100%; }

/* ---- Secondary text: heavier so it stays readable ---- */
.single-post__meta,
.single-post__img-caption,
.wp-caption-text,
figcaption,
time,
small { font-weight: 600; }

/* ---- Controls ---- */
button, input, textarea, select { font-weight: 600; font-stretch: 100%; }
input::placeholder, textarea::placeholder { font-weight: 500; opacity: .75; }
.btn, [class*="-btn"], button[type="submit"] {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 85%;
    letter-spacing: .08em;
}

/* ---- Cards ---- */
.card__title, .post-card__title { font-weight: 800; line-height: 1.12; }
.card__excerpt, .post-card__excerpt { font-weight: 500; }

/* ---- Mobile: slightly larger base for outdoor readability ---- */
@media (max-width: 767px) {
    body { font-size: 15px; }
    .single-post__content { font-size: 18px; line-height: 1.7; }
}
