/*
Theme Name: JFYelle Hive Lite
Template: hive-lite
Description: Child theme for jfyelle.com based on Hive Lite
*/

/* ==========================================================
   BEDONDAINE — VARIABLES
   ========================================================== */

:root {
    --color-accent: #dd9933;
    --color-background: #ffffff;
    --color-navy: #091634;
    --color-text: #606060;
    --color-heading: #000000;

    --background-texture: url("https://staging.bedondaine.com/wp-content/themes/hive-lite-bbr/images/bg.jpg");
}


/* ==========================================================
   BEDONDAINE — BASE
   Port du thème historique
   ========================================================== */

body {
    font-family: Merriweather, serif;
    font-size: 14pt;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-background);
    background-image: var(--background-texture);
}


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

p {
    font-family: Merriweather, serif;
    font-size: 18.6667px;
    font-weight: 400;
    line-height: 20.2228px;
    color: var(--color-text);
    margin-top: 0;
    margin-bottom: 28px;
}


/* ----- Links ----- */

a {
    color: var(--color-accent);
    text-decoration: none;
}


/* ----- Headings ----- */

h1,
h2,
h3,
h4 {
    font-family: Georgia, serif;
}

h1 {
    font-size: 48.1px;
    font-weight: 400;
    line-height: 62.53px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 24.05px;
    margin-bottom: 14.43px;
}

h2 {
    font-size: 21.671px;
    font-weight: 400;
    line-height: 28.1723px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 21.671px;
}

h3 {
    font-size: 39px;
    font-weight: 700;
    line-height: 54.6px;
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: 0;
}

h4 {
    font-size: 15.8886px;
    font-weight: 400;
    line-height: 20.6552px;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: 27.805px;
}

h5,
h6 {
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
}

h5 {
    font-size: 10.114px;
    line-height: 13.1482px;
    letter-spacing: 1.1px;
    color: var(--color-heading);
    margin-top: 0;
    margin-bottom: 28.8249px;
}

h6 {
    font-size: 10.1114px;
    line-height: 13.1448px;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 28.8175px;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    background-color: var(--color-navy);
    color: var(--color-background);
}

.site-header a {
    color: var(--color-background);
}


/* ==========================================================
   HEADER BRANDING
   ========================================================== */

.site-header {
    padding-top: 30px;
}

.site-branding {
    display: grid;
    grid-template-columns: 240px auto;
    grid-template-rows: auto auto;
    column-gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-bottom: 30px;
}

.site-branding .custom-logo-link {
    grid-column: 1;
    grid-row: 1 / 3;
}

.site-branding .custom-logo {
    display: block;
    width: 240px;
    height: auto;
}

.site-branding .site-title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: 72px;
    line-height: 0.95;
}

.site-branding .site-description {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin: 12px 0 0;
    background: none;
}

.site-branding .site-description-text {
    font-size: 14px;
    letter-spacing: 0.3em;
    color: var(--color-background);
    background-color: var(--color-navy);
}

@media (max-width: 700px) {
    .site-branding {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .site-branding .custom-logo {
        width: 160px;
    }

    .site-branding .site-title {
        font-size: 40px;
        line-height: 1;
        text-align: center;
    }

    .site-branding .site-description {
        margin-top: 0;
        text-align: center;
    }

    .site-branding .site-description-text {
        font-size: 11px;
        letter-spacing: 0.18em;
    }
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.site-header .nav,
.main-navigation ul {
    background-image: var(--background-texture);
}

.main-navigation a {
    color: var(--color-heading);
    transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-accent);
}


/* ==========================================================
   LISTS
   ========================================================== */

ul,
ol,
li {
    font-family: Tinos, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20.2228px;
    color: var(--color-text);
}

ul {
    margin-top: 0;
    margin-bottom: 0;
}

ol {
    margin-top: 0;
    margin-bottom: 19.5px;
}


/* ==========================================================
   QUOTES
   ========================================================== */

blockquote {
    font-family: Tinos, serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20.2228px;
    color: var(--color-heading);
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 19.5px;
    margin-left: 0;
}


/* ==========================================================
   TABLES
   ========================================================== */

table {
    font-family: Tinos, serif;
    font-size: 13px;
    line-height: 20.2228px;
    color: var(--color-text);
}

th {
    font-family: Tinos, serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 20.2228px;
    color: var(--color-text);
}

td {
    font-family: Merriweather, serif;
    font-size: 18.6667px;
    font-weight: 400;
    line-height: 20.2228px;
    color: var(--color-text);
}


/* ==========================================================
   FORMS
   ========================================================== */

input,
textarea,
select {
    font-family: Tinos, serif;
    font-size: 13px;
}

button {
    font-family: Montserrat, sans-serif;
    font-size: 8.6671px;
    font-weight: 700;
    line-height: 11.1433px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-background);
    background-color: var(--color-heading);
}


/* ==========================================================
   OLDSTORY CONTENT CONTEXT
   ========================================================== */

.entry-content {
    font-family: Merriweather, serif;
    font-size: 14pt;
    line-height: 1.5;
}

.entry-content blockquote {
    padding: 0 0 0 26px;
}

.entry-content th {
    padding: 4px;
}

.entry-content td {
    font-family: Merriweather, serif;
    font-size: 18.6667px;
    font-weight: 400;
    line-height: 20.2228px;
    padding: 4px;
}

.entry-content ul {
    padding-left: 13px;
}

.entry-content ol {
    padding-left: 14.3px;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.main-navigation a,
.main-navigation ul ul a {
    color: var(--color-heading);
    transition: color 0.2s ease;
}

.main-navigation > ul > li > a {
    font-size: 20px;
}

.main-navigation ul ul a {
    font-size: 16px;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation ul ul a:hover,
.main-navigation ul ul a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-accent);
}


/* ==========================================================
   SIDEBAR
   ========================================================== */

.sidebar,
.widget {
    font-size: 18px;
}

.widget {
    line-height: 1.5;
}

.sidebar a,
.widget a {
    font-size: inherit;
}


/* ==========================================================
   FLASHCARDS / LATEST POSTS
   ========================================================== */

.flashcards li,
.smallcards li {
    font-family: Merriweather, serif;
    font-size: 14pt;
    line-height: 1.5;
}

.flashcards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25em;
    font-size: 18px;
}

.flashcards li,
.smallcards li {
    box-sizing: border-box;
    border: 1px solid lightgray;
    border-radius: 15px;
    background-color: white;
    box-shadow: 2px 2px 6px #f4f4f4;
}

.flashcards li:hover,
.smallcards li:hover {
    background-color: #f8f8f8;
}

.flashcards li {
    padding: 0 25px;
    text-align: justify;
}

.flashcards a,
.flashcards .wp-block-latest-posts__post-title {
    font-size: 18pt !important;
}

.flashcards .wp-block-latest-posts__featured-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}


/* ----- Small cards ----- */

@media only screen and (min-width: 600px) {

    .smallcards li {
        padding: 10px;
        text-align: center;
    }
}


/* ----- Tablet / Mobile ----- */

@media only screen and (max-width: 800px) {

    .flashcards img,
    .smallcards img {
        width: 75px !important;
        height: 75px !important;
        object-fit: cover;
    }
}


/* ----- Mobile ----- */

@media only screen and (max-width: 600px) {

    .flashcards {
        grid-template-columns: 1fr !important;
    }

    .smallcards .wp-block-latest-posts__featured-image {
        display: none !important;
    }
}

body.page .site-content {
    padding-left: 0;
    padding-right: 0;
}


/* ==========================================================
   LAYOUT — PAGES VS POSTS
   Pages sans sidebar; posts conservent le layout Hive
   ========================================================== */

body.page .sidebar {
    display: none;
}

body.page .content-area {
    float: none;
    width: 100%;
    margin-right: 0;
    border: none;
}

body.page .site-main {
    margin-right: 0;
}

body.page .site-main::before {
    display: none;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    background: var(--color-navy);
    color: var(--color-background);
}

.site-footer a {
    color: var(--color-background);
}

.footer-widgets {
    padding: 50px 0 35px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 700px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

