/**
 * Ninagrafie Content – Typography Presets
 * V1.2 / Block 0.5
 *
 * Die Werte sind bewusst als Design-Tokens angelegt. Ein spaeterer
 * Plugin-Konfigurator kann diese Variablen zentral ueberschreiben.
 */

:root {
    --ninagrafie-color-text: #222222;
    --ninagrafie-color-muted: #6f6a66;
    --ninagrafie-color-bordeaux: #6b2039;
    --ninagrafie-color-olive: #4f6840;
    --ninagrafie-color-beige: #e8ded1;
    --ninagrafie-color-ivory: #fbf7ee;

    /* Standard-Kontext = Ninagrafie. Projekt-/CPT-Kontexte ueberschreiben diesen Wert. */
    --ninagrafie-color-context: var(--ninagrafie-color-bordeaux);

    --ninagrafie-font-editorial: Georgia, "Times New Roman", serif;
    --ninagrafie-font-handwritten: "Allura", "Segoe Script", "Brush Script MT", cursive;
}


/* =========================================================
 * KONTEXTFARBE
 * Struktur- und Zitat-Elemente koennen die aktuelle Contentquelle/CPT-Farbe
 * verwenden, ohne dass das Typografie-Modul projektspezifische Logik braucht.
 * ========================================================= */

.ninagrafie-source-journal {
    --ninagrafie-color-context: #8f5c61;
}

.ninagrafie-source-revierblicke,
body.single-revierblicke {
    --ninagrafie-color-context: #4f6840;
}

.ninagrafie-source-spurenblicke,
body.single-spurenwerk {
    --ninagrafie-color-context: #87502f;
}

/* =========================================================
 * BASIS
 * ========================================================= */

.ninagrafie-typography {
    box-sizing: border-box;
    font-family: var(--ninagrafie-typography-font-family, inherit);
    color: var(--ninagrafie-typography-color, currentColor);
    font-size: var(--ninagrafie-typography-font-size, 1em);
    font-weight: var(--ninagrafie-typography-font-weight, 400);
    font-style: var(--ninagrafie-typography-font-style, normal);
    text-decoration: var(--ninagrafie-typography-text-decoration, none);
    line-height: var(--ninagrafie-typography-line-height, normal);
    letter-spacing: var(--ninagrafie-typography-letter-spacing, normal);
    text-transform: var(--ninagrafie-typography-text-transform, none);
}

.ninagrafie-typography-block {
    display: block;
    text-align: var(--ninagrafie-typography-text-align, left);
    margin-top: 1.35em;
    margin-bottom: 1.35em;
}

.ninagrafie-typography-inline {
    display: inline;
}

/* =========================================================
 * ACCENT
 * Ruhige Hervorhebung innerhalb oder ausserhalb des Fliesstexts.
 * ========================================================= */

.ninagrafie-typography-accent {
    color: var(--ninagrafie-typography-color, var(--ninagrafie-color-bordeaux));
}

.ninagrafie-typography-accent.ninagrafie-typography-block {
    margin-top: 1em;
    margin-bottom: 1em;
}

/* =========================================================
 * HANDWRITTEN
 * Persoenliche / emotionale Zwischenzeile.
 * ========================================================= */

.ninagrafie-typography-handwritten {
    font-family: var(--ninagrafie-typography-font-family, var(--ninagrafie-font-handwritten));
}

.ninagrafie-typography-handwritten.ninagrafie-typography-block {
    margin-top: 1.15em;
    margin-bottom: 1.15em;
}

/* =========================================================
 * LABEL
 * Redaktionelle Einordnung, Ortsangaben, Fototipps etc.
 * ========================================================= */

.ninagrafie-typography-label {
    white-space: normal;
}

.ninagrafie-typography-label.ninagrafie-typography-block {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

/* =========================================================
 * QUOTE
 * Semantisches blockquote mit bewusst ruhigem Ninagrafie-Akzent.
 * Enfold-Standardwerte werden hier gezielt neutralisiert.
 * ========================================================= */

blockquote.ninagrafie-typography-quote {
    position: relative;
    margin: 1.75em 0;
    padding: 0.15em 0 0.15em 1.15em;
    border: 0;
    border-left: 3px solid var(--ninagrafie-color-context, var(--ninagrafie-color-bordeaux));
    background: transparent;
    quotes: none;
}

blockquote.ninagrafie-typography-quote::before,
blockquote.ninagrafie-typography-quote::after {
    content: none;
}

/* =========================================================
 * EDITORIAL
 * Erzaehlerischer Ruhepunkt; bewusst keine Ueberschrift.
 * ========================================================= */

.ninagrafie-typography-editorial {
    max-width: 30em;
}

.ninagrafie-typography-editorial.ninagrafie-typography-block {
    margin-top: 1.4em;
    margin-bottom: 1.4em;
}

/* =========================================================
 * LEAD
 * Lesbarer Artikel-Einstieg fuer mehrere Saetze.
 * ========================================================= */

.ninagrafie-typography-lead {
    max-width: 46em;
}

.ninagrafie-typography-lead.ninagrafie-typography-block {
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

/* =========================================================
 * RESPONSIVE
 * Preset-Groessen kommen aus CSS Custom Properties im Markup.
 * Nur die bewusst grossen dekorativen Presets werden mobil begrenzt.
 * ========================================================= */

@media (max-width: 767px) {
    .ninagrafie-typography-handwritten {
        font-size: min(var(--ninagrafie-typography-font-size, 1.6em), 1.45em);
    }

    .ninagrafie-typography-editorial {
        font-size: min(var(--ninagrafie-typography-font-size, 1.75em), 1.5em);
    }

    blockquote.ninagrafie-typography-quote {
        margin-top: 1.4em;
        margin-bottom: 1.4em;
        padding-left: 0.9em;
    }
}


/* V1.5 dev.4.32 – block alignment must survive theme/Enfold defaults. */
.ninagrafie-typography.ninagrafie-typography-block {
    text-align: var(--ninagrafie-typography-text-align, left) !important;
}

/* V1.5 dev.4.33 – Enfold-safe explicit block alignment remains driven by the shortcode variable. */
.ninagrafie-typography.ninagrafie-typography-block { text-align:var(--ninagrafie-typography-text-align,left) !important; }
