/*
Theme Name: Twenty Twenty-Five Child
Template: twentytwentyfive
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+Garamond:wght@500;600;700&display=swap');

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.wp-block-post-content,
.wp-block-post-content p,
.wp-block-post-content li {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 21px;
    line-height: 1.7;
    color: #2a2520;
}

h1, .entry-title, .post-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
}

h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    text-align: left;
    color: #5e3307;
    font-size: 30px;
    margin-top: 1.4em;
    margin-bottom: 0.3em;
    line-height: 1.2;
    padding-bottom: 0.4em;
}

h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    font-size: 24px;
    color: #5e3307;
    margin-top: 1.2em;
    margin-bottom: 0.3em;
    line-height: 1.25;
}

h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: #5e3307;
}

.aligncenter,
img.aligncenter,
.wp-block-image.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.wp-block-image.aligncenter img {
    margin: 0 auto;
}

blockquote {
    background: transparent;
    border: none;
    border-top: 1px solid #a88b3d;
    border-bottom: 1px solid #a88b3d;
    text-align: center;
    max-width: 75%;
    margin: 3em auto;
    padding: 1.5em 1em;
    font-style: italic;
    font-size: 21px;
    line-height: 1.6;
    color: #6b3d2a;
    font-family: 'EB Garamond', Georgia, serif;
}

blockquote::before {
    content: "❦";
    display: block;
    text-align: center;
    color: #a88b3d;
    font-size: 28px;
    line-height: 1;
    margin-bottom: 0.8em;
    font-style: normal;
}

blockquote::after {
    content: "";
    display: none;
}

table {
    background-color: #f2eee1;
    border: 1px solid #ffe0ad;
    padding: 5px;
    font-size: 17px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

td {
    border: 1px solid #d1d1d1;
}

@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}

div.yoast-breadcrumbs,
div.yoast-breadcrumbs a,
div.yoast-breadcrumbs span {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

div.yoast-breadcrumbs a:hover {
    color: #ffd059;
}

/* RELATED PAGES */
.td-related-pages {
    background: #f2f2f2;
    padding: 60px 60px 70px;
    margin-top: 0;
}

.td-related-title {
    text-align: center;
    color: #5e3307;
    margin-bottom: 40px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
}

.td-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
}

.td-related-item {
    background: #f7f2e8;
    border: 1px solid #d6c9a8;
    border-radius: 6px;
    padding: 28px 24px 32px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.td-related-item:hover {
    background: #efe8d6;
    border-color: #a88b3d;
    box-shadow: 0 3px 10px rgba(0,0,0,0.10);
    text-decoration: none;
}

.td-related-item-title {
    color: #5e3307;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.td-related-item:hover .td-related-item-title {
    color: #93278f;
}

@media (max-width: 1024px) {
    .td-related-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .td-related-pages { padding: 40px 20px 50px; }
    .td-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .td-related-grid { grid-template-columns: repeat(1, 1fr); }
}