:root {
    --ink: #20241d;
    --forest: #344431;
    --olive: #70775c;
    --sand: #e8dfcc;
    --cream: #f7f2e8;
    --white: #fffdf8;
    --rust: #a65f3f;
    --line: rgba(32, 36, 29, .16);
    --shadow: 0 18px 50px rgba(31, 35, 27, .16);
    --max: min(1180px, 90vw);
    --wide: min(1440px, 94vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Allura', cursive;
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 1rem;
}
h1 { font-size: clamp(3rem, 6vw, 6.8rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4.2rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: .5rem 0 1.2rem; }
::selection { background: var(--sand); color: var(--ink); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 1000;
    background: var(--white);
    padding: .8rem 1rem;
}
.skip-link:focus { left: 1rem; }
.container { width: var(--max); margin-inline: auto; }
.container-wide { width: var(--wide); margin-inline: auto; }
.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .76rem;
    font-weight: 700;
    color: var(--rust);
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.28rem); max-width: 65ch; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: .85rem 1.3rem;
    border: 1px solid var(--forest);
    background: var(--forest);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .02em;
    transition: .25s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--rust); border-color: var(--rust); }
.btn.light { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.btn.light:hover { background: var(--white); border-color: var(--white); }
.btn.ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn.ghost-light:hover { background: var(--white); color: var(--forest); }
.actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.7rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 242, 232, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav {
    width: var(--max);
    margin: auto;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    text-decoration: none;
    font-family: 'Allura', cursive;
    font-size: 1.3rem;
    white-space: nowrap;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 1.15rem; }
.nav-links > a, .search-button {
    text-decoration: none;
    font-size: .84rem;
    font-weight: 700;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    padding: .35rem 0;
}
.nav-links > a:hover, .search-button:hover, .nav-links > a.is-current { color: var(--rust); }
.nav-links > a.is-current { box-shadow: inset 0 -1px 0 var(--rust); }
.menu-toggle { display: none; background: transparent; border: 0; font-weight: 700; padding: .8rem; }
.language-switcher {
    display: inline-flex;
    gap: .45rem;
    padding-left: .65rem;
    border-left: 1px solid var(--line);
}
.language-switcher a { text-decoration: none; font-size: .72rem; font-weight: 700; opacity: .56; }
.language-switcher a.active, .language-switcher a:hover { opacity: 1; color: var(--rust); }

.blog-hero {
    min-height: min(88vh, 860px);
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    background: var(--forest);
    color: var(--white);
}
.blog-hero-copy {
    padding: clamp(4rem, 8vw, 8rem) max(5vw, calc((100vw - 1180px) / 2));
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-hero-copy h1 { max-width: 8.4ch; }
.blog-hero-copy p { max-width: 55ch; color: #e5e2d8; font-size: clamp(1.08rem,1.6vw,1.3rem); }
.blog-hero .eyebrow { color: #e7b08f; }
.blog-hero-feature { position: relative; min-height: 620px; overflow: hidden; background: #263224; }
.featured-story, .featured-fallback { position: absolute; inset: 0; display: block; text-decoration: none; color: var(--white); }
.featured-story img { width: 100%; height: 100%; object-fit: cover; }
.featured-story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(20,27,19,.76) 100%); }
.featured-overlay { position: absolute; z-index: 2; left: clamp(1.5rem,4vw,4rem); right: clamp(1.5rem,4vw,4rem); bottom: clamp(1.5rem,4vw,4rem); }
.featured-overlay h2 { font-size: clamp(2rem,4vw,4rem); max-width: 12ch; }
.featured-overlay > span:last-child { font-weight: 700; }
.featured-fallback { display: grid; place-items: end start; padding: clamp(2rem,5vw,5rem); background: linear-gradient(135deg,#243021,#56644c); }
.featured-fallback p { font-family: 'Allura', cursive; font-size: clamp(2rem,4vw,4rem); max-width: 8ch; line-height: 1.1; }

.section-heading { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: clamp(2rem,6vw,6rem); margin-bottom: 3rem; }
.section-heading p { max-width: 58ch; margin: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.5rem; }
.post-card { min-width: 0; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.post-card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card-media img { transform: scale(1.025); }
.post-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg,var(--forest),var(--olive)); color: var(--sand); font-family: 'Allura',cursive; font-size: 1.6rem; }
.post-card-content { display: flex; flex: 1; flex-direction: column; padding: clamp(1.35rem,2vw,2rem); }
.post-card-content h2 { font-size: clamp(1.65rem,2.4vw,2.35rem); margin-top: .65rem; }
.post-card-content p { color: #62675b; }
.post-meta { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.post-meta time { color: #6d7267; }
.dot { opacity: .55; }
.read-more { margin-top: auto; padding-top: 1rem; font-weight: 700; }
.pagination-wrap { margin-top: 3rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.pagination a { text-decoration: none; font-weight: 700; }

.archive-hero { padding: clamp(5rem,10vw,10rem) 0; background: var(--forest); color: var(--white); }
.archive-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,6vw,6rem); align-items: end; }
.archive-hero h1 { max-width: 10ch; }
.archive-hero .lead { color: #dedfd5; }

.article-header { padding: clamp(5rem,10vw,10rem) 0 clamp(4rem,7vw,7rem); background: var(--forest); color: var(--white); }
.article-header-inner { display: grid; }
.article-heading { max-width: 1000px; }
.article-heading h1 { font-size: clamp(3rem,6vw,6.3rem); max-width: 15ch; }
.article-deck { max-width: 60ch; color: #dedfd5; font-size: clamp(1.12rem,1.8vw,1.42rem); }
.light-meta, .light-meta time, .light-meta a { color: #e7b08f; text-decoration: none; }
.article-feature { margin-top: clamp(-2rem,-3vw,-3.5rem); position: relative; z-index: 2; }
.article-feature img { width: 100%; max-height: 820px; object-fit: cover; box-shadow: var(--shadow); }
.article-feature figcaption { margin-top: .75rem; color: #6c7166; font-size: .82rem; text-align: center; }
.article-shell { display: grid; grid-template-columns: 190px minmax(0,760px); gap: clamp(2rem,6vw,7rem); justify-content: center; padding-top: clamp(4rem,8vw,8rem); padding-bottom: clamp(4rem,8vw,8rem); }
.article-aside { font-size: .83rem; color: #62675b; }
.article-aside-sticky { position: sticky; top: 110px; }
.authors a, .article-tags a { text-decoration: none; }
.article-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.article-tags a { display: inline-block; padding: .3rem .5rem; border: 1px solid var(--line); }
.page-content-wrap { max-width: 820px; padding-top: clamp(4rem,8vw,8rem); padding-bottom: clamp(4rem,8vw,8rem); }
.article-footer { margin-bottom: clamp(4rem,8vw,8rem); padding: clamp(2rem,5vw,4rem); background: var(--sand); display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.article-footer h2 { font-size: clamp(2rem,3vw,3.4rem); }
.comments-section { margin-bottom: clamp(4rem,8vw,8rem); }

.gh-content { font-size: 1.08rem; min-width: 0; }
.gh-content > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.gh-content > p, .gh-content > ul, .gh-content > ol { margin-top: 0; margin-bottom: 1.5rem; }
.gh-content h2 { margin-top: 2.8rem; font-size: clamp(2rem,3vw,3rem); }
.gh-content h3 { margin-top: 2.2rem; }
.gh-content a { color: var(--rust); text-underline-offset: .18em; }
.gh-content blockquote { margin-top: 2rem; margin-bottom: 2rem; padding: .5rem 0 .5rem 1.7rem; border-left: 2px solid var(--rust); font-family: 'Allura',cursive; font-size: clamp(1.5rem,2.6vw,2.35rem); line-height: 1.35; }
.gh-content figure, .gh-content .kg-width-wide { max-width: 1000px; }
.gh-content .kg-width-full { max-width: none; width: min(100vw - 2rem, 1400px); margin-left: 50%; transform: translateX(-50%); }
.gh-content img { height: auto; }
.gh-content figcaption { text-align: center; font-size: .8rem; color: #6d7267; margin-top: .6rem; }
.gh-content pre { overflow: auto; padding: 1.2rem; background: #1f271d; color: #f8f5ed; border-radius: 2px; }
.gh-content code { font-size: .9em; }
.gh-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: .8rem 1rem; text-align: left; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 3rem auto; }
.gh-content .kg-button-card .kg-btn { background: var(--forest); color: var(--white); border-radius: 0; font-weight: 700; }
.gh-content .kg-callout-card { border-radius: 0; }
.gh-content .kg-bookmark-card a { text-decoration: none; color: inherit; }

.site-footer { background: #222a20; color: #eeeadf; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; }
.footer-grid p { max-width: 46ch; color: #c8cdc1; }
.footer-links { display: grid; gap: .65rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #e7b08f; }
.footer-brand img { filter: brightness(0) invert(1); }
.legal { border-top: 1px solid rgba(255,255,255,.16); margin-top: 3rem; padding-top: 1.5rem; font-size: .8rem; color: #bfc4b8; }

.error-page { min-height: 70vh; display: grid; align-items: center; padding: 6rem 0; }

.reveal { animation: rise .8s ease-out both; }
.reveal:nth-child(2) { animation-delay: .12s; }
.reveal:nth-child(3) { animation-delay: .24s; }
.reveal:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
    .nav-links { gap: .8rem; }
    .nav-links > a, .search-button { font-size: .78rem; }
    .post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 850px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 82px;
        background: var(--cream);
        padding: 1.5rem 5vw 2rem;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 30px rgba(31,35,27,.12);
    }
    .nav-links.open { display: flex; }
    .language-switcher { border-left: 0; padding-left: 0; padding-top: .5rem; }
    .blog-hero { grid-template-columns: 1fr; }
    .blog-hero-feature { min-height: 52vh; order: -1; }
    .blog-hero-copy { padding: 4rem 5vw; }
    .blog-hero-copy h1 { max-width: none; }
    .section-heading, .archive-hero-inner, .article-footer { grid-template-columns: 1fr; }
    .article-shell { grid-template-columns: 1fr; max-width: 760px; }
    .article-aside { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
    .article-aside-sticky { position: static; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    h1 { font-size: clamp(2.7rem,13vw,4.3rem); }
    .post-grid { grid-template-columns: 1fr; }
    .article-feature { width: 100%; margin-top: 0; }
    .article-feature img { box-shadow: none; }
    .brand { font-size: 1.1rem; }
    .brand img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* MASDECOSTA LIVE-SITE SYNC 2026-09-14 — v1.1.0 */
body { font-family: Arial, sans-serif; line-height: 1.7; }
h1, h2, h3, h4, h5, h6 { font-family: 'Allura', cursive; font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(3.75rem, 8.75vw, 8.375rem); }
h2 { font-size: clamp(2rem, 4vw, 4rem); }
h3 { font-size: 1.5rem; }

.btn { border-color: var(--rust); background: var(--rust); color: #fff; }
.btn:hover { background: var(--rust); border-color: var(--rust); filter: brightness(1.08); transform: translateY(-1px); }
.btn.light { background: var(--sand); border-color: var(--sand); color: var(--ink); filter: none; }
.btn.light:hover { background: var(--white); border-color: var(--white); color: var(--ink); filter: none; }

.site-header { position: relative; z-index: 50; }
.nav { min-height: 132px; }
.site-header .brand { position: relative; width: 247px; height: 132px; flex: 0 0 247px; overflow: hidden; gap: 0; }
.site-header .brand img { position: absolute; width: 306.3px; height: 213.6px; max-width: none; max-height: none; left: -31.2px; top: -33.4px; object-fit: fill; }
.nav-links { gap: 1.1rem; }
.language-switcher { border-left-color: #aaa; padding-left: 1rem; }

.post-card { border: 0; border-top: 3px solid var(--rust); }
.post-card-placeholder { font-family: 'Allura', cursive; font-size: 2.35rem; }
.featured-fallback { background: linear-gradient(180deg, rgba(20,27,19,.05), rgba(20,27,19,.72)), url('../images/hero-horse.jpg') center 35% / cover no-repeat; }
.featured-fallback p { font-family: 'Allura', cursive; font-size: clamp(3rem, 6vw, 6rem); line-height: 1.08; }
.gh-content blockquote { font-family: 'Allura', cursive; font-size: clamp(2rem, 3.5vw, 3.3rem); }

.site-footer { background: var(--forest); color: #fff; }
.footer-grid p { color: #ece9df; }
.footer-brand { display: inline-block; width: 190px; text-decoration: none; }
.footer-brand img { width: 190px; height: auto; filter: none; }
.legal { color: #d7d9d1; }

.social { display: flex; gap: .5rem; }
.social a { --brand: var(--sand); position: relative; width: 34px; height: 34px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; color: var(--sand); transition: .18s ease; font-size: .78rem; font-weight: 700; text-decoration: none; }
.social a:hover { transform: scale(1.2); color: #fff; background: var(--brand); border-color: var(--brand); z-index: 3; }
.social a:hover::after { content: attr(data-label); position: absolute; right: 120%; white-space: nowrap; background: var(--ink); color: #fff; padding: .25rem .5rem; border-radius: 3px; font-size: .65rem; }
.social-facebook { --brand: #1877f2 !important; }
.social-youtube { --brand: #f00 !important; }
.social-instagram { --brand: #e4405f !important; }
.social-linkedin { --brand: #0a66c2 !important; }
.social-whatsapp { --brand: #25d366 !important; }
.social-phone { --brand: #2196f3 !important; }
.social-email { --brand: #ea4335 !important; }
.floating { position: fixed; z-index: 45; right: 14px; top: 164px; flex-direction: column; padding: .45rem; background: rgba(52,68,49,.88); border-radius: 24px; }
.footer-social { margin-top: 1rem; flex-wrap: wrap; }
.footer-social a:hover::after { display: none; }

@media (max-width: 1080px) {
    .nav-links { gap: .65rem; }
    .nav-links > a, .search-button { font-size: .76rem; }
}

@media (max-width: 850px) {
    .nav { gap: .5rem; min-height: 132px; }
    .nav-links { top: 132px; }
    .site-header .brand { width: 247px; height: 132px; flex-basis: 247px; }
    .site-header .brand img { width: 306.3px; height: 213.6px; left: -31.2px; top: -33.4px; }
    .floating { right: 6px; top: 149px; }
    .social a { width: 30px; height: 30px; }
}

@media (max-width: 380px) {
    .site-header .brand { width: 178px; height: 95px; flex-basis: 178px; }
    .site-header .brand img { width: 220.5px; height: 153.7px; left: -22.4px; top: -24px; }
    .nav { min-height: 95px; }
    .nav-links { top: 95px; }
    .floating { top: 112px; }
}
