/**
 * Krannon Archaeology — typography system (v1.3.6).
 *
 * Defines a small, controlled set of CSS variables that map to the
 * Customizer typography choices and to the new Greek-supporting font
 * stacks (Cormorant Garamond, Source Serif 4, Inter). Existing rules
 * that already use --krannon-serif and --krannon-sans keep working,
 * since those are aliased to the new variables when the system is
 * active.
 */

:root {
    --krannon-font-display: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    --krannon-font-heading: "Cormorant Garamond", "EB Garamond", Georgia, "Times New Roman", serif;
    --krannon-font-body:    "Source Serif 4", "EB Garamond", Georgia, serif;
    --krannon-font-ui:      "Inter", "Noto Sans", "Noto Sans Greek", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --krannon-logo-letter-spacing: .08em;
    --krannon-logo-text-transform: uppercase;
    --krannon-logo-font-weight: 500;
}

/* -------------------------------------------------------------------------
 * Headline / display surfaces
 * --------------------------------------------------------------------- */

.krannon-section-hero-title,
.krannon-editorial-home-title,
.krannon-page-title,
h1, h2, h3,
.krannon-sec-title,
.krannon-editorial-card-title,
.krannon-latest-post-title {
    font-family: var(--krannon-font-heading);
}

.krannon-eyebrow,
.krannon-editorial-card-label,
.krannon-latest-post-date {
    font-family: var(--krannon-font-ui);
}

/* -------------------------------------------------------------------------
 * Body copy
 * --------------------------------------------------------------------- */

body,
p,
.krannon-rich,
.krannon-section-hero-lead,
.krannon-editorial-card-text,
.krannon-latest-post-excerpt,
.krannon-sec-intro {
    font-family: var(--krannon-font-body);
}

/* -------------------------------------------------------------------------
 * UI surfaces — menus, buttons, breadcrumbs, local navigation, eyebrows
 * --------------------------------------------------------------------- */

.krannon-button,
.krannon-editorial-home-button,
button,
input[type="submit"],
.krannon-breadcrumbs,
.krannon-local-nav,
.krannon-menu,
.menu,
.krannon-kicker,
.krannon-editorial-card-cta,
.krannon-latest-post-more {
    font-family: var(--krannon-font-ui);
}

/* -------------------------------------------------------------------------
 * Site title / logo
 * --------------------------------------------------------------------- */

.krannon-site-title,
.site-title,
.krannon-logo-text {
    font-family: var(--krannon-font-display);
    letter-spacing: var(--krannon-logo-letter-spacing);
    font-weight: var(--krannon-logo-font-weight);
}

body.krannon-logo-uppercase .krannon-site-title,
body.krannon-logo-uppercase .site-title,
body.krannon-logo-uppercase .krannon-logo-text {
    text-transform: var(--krannon-logo-text-transform);
}

body:not(.krannon-logo-uppercase) .krannon-site-title,
body:not(.krannon-logo-uppercase) .site-title,
body:not(.krannon-logo-uppercase) .krannon-logo-text {
    text-transform: none;
}

/* -------------------------------------------------------------------------
 * Greek-language tuning for the display serif. Cormorant Garamond renders
 * a touch tall in Greek; a small line-height correction keeps headlines
 * compact without affecting Latin-only sites.
 * --------------------------------------------------------------------- */

:lang(el) .krannon-section-hero-title,
:lang(el) .krannon-editorial-home-title,
:lang(el) .krannon-page-title,
:lang(el) h1.krannon-section-hero-title {
    line-height: 1.08;
}
