/*
Theme Name:  Blocksy Child
Template:    blocksy
Description: Child theme dla Blocksy – krzysztof-turek.com
Version:     1.0
*/

/* ================================================
   GLOBALNE KOLORY – override Blocksy
   ================================================ */

/* Paleta Blocksy – nadpisuje błękity */
:root {
    --theme-palette-color-1: #1a1a18;
    --theme-palette-color-2: #3d3d39;
    --theme-palette-color-3: #8b6e52;
    --theme-palette-color-4: #e8e2d9;
    --theme-palette-color-5: #f7f4ef;
    --theme-palette-color-6: #f7f4ef;
    --theme-palette-color-7: #3d3d39;
    --theme-palette-color-8: #1a1a18;
}

/* Linki globalne */
a {
    color: #8b6e52;
}
a:hover {
    color: #3d3d39;
}

/* Przyciski */
.wp-block-button__link,
.ct-button,
button[type="submit"],
input[type="submit"] {
    background-color: #1a1a18 !important;
    color: #f7f4ef !important;
    border-color: #1a1a18 !important;
}

.wp-block-button__link:hover,
.ct-button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #8b6e52 !important;
    border-color: #8b6e52 !important;
    color: #fff !important;
}

/* Header */
.site-header a,
#header a,
.ct-menu a {
    color: #1a1a18 !important;
}

.site-header a:hover,
#header a:hover,
.ct-menu a:hover {
    color: #8b6e52 !important;
}

/* Footer */
#footer a,
.site-footer a {
    color: #8b6e52 !important;
}

#footer a:hover,
.site-footer a:hover {
    color: #e8e2d9 !important;
}

/* Focus i zaznaczenie */
*:focus {
    outline-color: #8b6e52 !important;
}

::selection {
    background: #8b6e52;
    color: #fff;
}

/* Copyright w stopce */
.ct-footer-copyright,
.ct-footer-copyright a,
[data-column="copyright"] {
    color: rgba(247, 244, 239, 0.45) !important;
}

/* Copyright w stopce – mocniejszy selector */
#footer .ct-container .ct-footer-copyright,
#footer .ct-footer-copyright {
    color: rgba(247, 244, 239, 0.55) !important;
}

/* Copyright w stopce – nadpisanie zmiennej Blocksy */
#footer {
    --theme-text-color: rgba(247, 244, 239, 0.55);
}

/* Footer – kolor tekstu (Blocksy używa --theme-text-color dziedziczonego z :root) */
[data-footer*="type-1"] .ct-footer {
    --theme-text-color: rgba(247, 244, 239, 0.55);
    --theme-link-initial-color: #8b6e52;
    --theme-link-hover-color: #e8e2d9;
}

/* Footer copyright – bije main.min.css Blocksy */
#footer .ct-footer-copyright {
    color: rgba(247, 244, 239, 0.55) !important;
}

/* Entry cards – tło i cień */
body[data-prefix="blog"] .entries[data-cards="boxed"] .entry-card {
    background-color: #ffffff !important;
    box-shadow: 0px 4px 20px rgba(26, 26, 24, 0.08) !important;
}

/* ================================================
   LOKALNE FONTY – @font-face
   ================================================ */

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/cormorant-300.woff2")
        format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/cormorant-400.woff2")
        format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/cormorant-300i.woff2")
        format("woff2");
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/cormorant-400i.woff2")
        format("woff2");
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/jost-300.woff2")
        format("woff2");
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/jost-400.woff2")
        format("woff2");
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/jost-500.woff2")
        format("woff2");
}

@font-face {
    font-family: "Jost";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/wp-content/themes/blocksy-child/fonts/jost-600.woff2")
        format("woff2");
}
