/*
Theme Name: Marcos Yáñez Editorial
Theme URI: https://example.com/
Author: OpenAI
Description: Minimal editorial WordPress theme for Watches, Aviation and Music, connected by technology.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: marcos-yanez-editorial
*/

:root{
    --paper:#f5f1e9;
    --ink:#11100f;
    --muted:#6f6a63;
    --line:#cfc8bd;
    --white:#fff;
}

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    background:var(--paper);
    color:var(--ink);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

a{
    color:inherit;
    text-decoration:none;
}

img{
    max-width:100%;
    height:auto;
}

.screen-reader-text{
    position:absolute!important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}


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

.site-header{
    min-height:76px;
    border-bottom:1px solid var(--line);
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
    padding:0 42px;
    position:sticky;
    top:0;
    z-index:20;
    background:rgba(245,241,233,.97);
    backdrop-filter:blur(8px);
}

.brand{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:28px;
    letter-spacing:.04em;
}

.main-nav ul{
    list-style:none;
    display:flex;
    gap:42px;
    margin:0;
    padding:0;
}

.main-nav a,
.socials a{
    font-size:12px;
    font-weight:600;
    letter-spacing:.18em;
}

.socials{
    justify-self:end;
    display:flex;
    gap:20px;
    align-items:center;
}

.socials .dashicons{
    font-size:17px;
    width:17px;
    height:17px;
}


/* =========================================================
   MASTHEAD
========================================================= */

.masthead{
    text-align:center;
    padding:48px 32px 28px;
}

.masthead h1{
    margin:0;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:400;
    font-size:clamp(56px,7.2vw,110px);
    line-height:.95;
    letter-spacing:-.03em;
}

.masthead p{
    margin:24px 0 0;
    font-size:12px;
    font-weight:600;
    letter-spacing:.35em;
}

.masthead-rule{
    display:inline-block;
    width:74px;
    border-top:1px solid #7b756e;
    margin-top:22px;
}


/* =========================================================
   FEATURED STORIES
========================================================= */

.featured-stories{
    width:100%;
    border-top:1px solid var(--line);
    border-bottom:1px solid var(--line);
}


/* =========================================================
   WATCHES HERO
========================================================= */

.featured-hero{
    position:relative;
    width:100%;
    min-height:560px;
    overflow:hidden;
    background:#080808;
}

.featured-hero-image{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center 47%;
    background-repeat:no-repeat;
    transform:scale(1.001);
}

.featured-hero-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,.90) 0%,
            rgba(0,0,0,.72) 27%,
            rgba(0,0,0,.30) 52%,
            rgba(0,0,0,.04) 78%,
            rgba(0,0,0,0) 100%
        );
}

.featured-hero-link{
    position:absolute;
    inset:0;
    z-index:2;
}

.featured-hero-copy{
    position:relative;
    z-index:3;
    color:#fff;
    width:46%;
    max-width:650px;
    min-height:560px;
    padding:80px 0 70px 48px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    pointer-events:none;
}

.featured-hero-copy .eyebrow{
    font-size:11px;
    font-weight:600;
    letter-spacing:.20em;
    margin-bottom:18px;
}

.featured-hero-copy h2{
    margin:0;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:400;
    font-size:clamp(46px,4.3vw,70px);
    line-height:.98;
    letter-spacing:-.015em;
}

.featured-hero-copy h2 a{
    color:#fff;
}

.story-rule{
    width:55px;
    border-top:1px solid rgba(255,255,255,.9);
    margin:25px 0 18px;
}

.read-time{
    font-size:11px;
    font-weight:600;
    letter-spacing:.24em;
}


/* =========================================================
   AVIATION + MUSIC
========================================================= */

.featured-row{
    display:grid;
    grid-template-columns:42% 58%;
    min-height:430px;
    background:var(--paper);
}

.featured-row + .featured-row{
    border-top:1px solid var(--line);
}

.featured-row-reverse{
    grid-template-columns:58% 42%;
}

.featured-row-reverse .featured-row-image{
    order:1;
}

.featured-row-reverse .featured-row-copy{
    order:2;
}

.featured-row-image{
    display:block;
    min-height:430px;
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
}

.featured-row-copy{
    min-height:430px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    padding:58px 62px;
}

.featured-row-copy .eyebrow{
    font-size:10px;
    font-weight:600;
    letter-spacing:.20em;
    margin-bottom:17px;
}

.eyebrow.dark{
    color:var(--ink);
}

.featured-row-copy h2{
    margin:0;
    max-width:560px;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-weight:400;
    font-size:clamp(34px,3.1vw,49px);
    line-height:1.02;
    letter-spacing:-.01em;
}

.featured-row-copy h2 a{
    color:var(--ink);
}

.featured-row-copy p{
    max-width:470px;
    margin:20px 0 0;
    color:#36322e;
    font-size:14px;
    line-height:1.65;
}

.dark-rule{
    width:42px;
    border-top:1px solid #8b857c;
    margin:23px 0 15px;
}

.dark-time{
    color:var(--ink);
    font-size:10px;
    font-weight:600;
    letter-spacing:.20em;
}

.read-story{
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
    margin-top:23px;
    padding:14px 18px;
    min-width:145px;
    background:var(--ink);
    color:#fff;
    font-size:9px;
    font-weight:600;
    letter-spacing:.16em;
    transition:opacity .2s ease;
}

.read-story:hover{
    opacity:.78;
}

.read-story span{
    font-size:16px;
    line-height:1;
}


/* =========================================================
   PILLARS
========================================================= */

.pillars{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    padding:32px 36px 28px;
}

.pillar{
    text-align:center;
    padding:0 28px;
    min-height:102px;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.pillar+.pillar{
    border-left:1px solid var(--line);
}

.icon{
    font-size:26px;
    margin-bottom:14px;
}

.pillar p{
    margin:0;
    font-size:10px;
    line-height:1.65;
    letter-spacing:.16em;
}

.pillar strong{
    font-weight:600;
}


/* =========================================================
   LATEST STORIES
========================================================= */

.latest{
    padding:0 38px 72px;
}

.section-rule{
    border-top:1px solid var(--line);
}

.latest h3{
    text-align:center;
    font-size:13px;
    letter-spacing:.35em;
    margin:30px 0 14px;
}

.tiny-rule{
    width:48px;
    border-top:1px solid var(--line);
    margin:0 auto 38px;
}

.story-list{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:36px;
}

.story-list article{
    border-top:1px solid var(--line);
    padding-top:18px;
}

.tag{
    font-size:10px;
    letter-spacing:.2em;
    font-weight:600;
}

.story-list h4{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:30px;
    font-weight:500;
    line-height:1.05;
    margin:12px 0;
}

.story-list p{
    color:var(--muted);
    line-height:1.7;
    font-size:14px;
}

.story-meta{
    font-size:10px;
    letter-spacing:.14em;
    color:var(--muted);
    margin-top:16px;
}


/* =========================================================
   ABOUT
========================================================= */

.about{
    border-top:1px solid var(--line);
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:60px;
    padding:56px 42px;
    align-items:end;
}

.about h3{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:42px;
    font-weight:400;
    line-height:1;
    margin:8px 0 0;
}

.about p{
    color:var(--muted);
    max-width:620px;
    line-height:1.8;
}


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

.site-footer{
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:24px 42px;
    font-size:11px;
    letter-spacing:.08em;
}


/* =========================================================
   ARTICLES
========================================================= */

.content-wrap{
    max-width:980px;
    margin:0 auto;
    padding:64px 28px 90px;
}

.article-header{
    text-align:center;
    max-width:860px;
    margin:0 auto 40px;
}

.article-header .tag{
    margin-bottom:16px;
}

.article-header h1{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:clamp(48px,6vw,78px);
    line-height:.98;
    font-weight:400;
    margin:0;
}

.article-deck{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:25px;
    color:var(--muted);
    line-height:1.25;
    margin:24px auto 0;
    max-width:760px;
}

.article-meta{
    margin-top:22px;
    font-size:11px;
    letter-spacing:.16em;
    color:var(--muted);
}

.article-hero{
    width:100%;
    aspect-ratio:16/9;
    object-fit:cover;
    margin:0 0 42px;
}

.entry-content{
    max-width:760px;
    margin:0 auto;
    font-family:Georgia,"Times New Roman",serif;
    font-size:19px;
    line-height:1.8;
}

.entry-content h2,
.entry-content h3{
    font-family:"Cormorant Garamond",Georgia,serif;
    line-height:1.05;
}

.entry-content h2{
    font-size:44px;
    margin-top:56px;
}

.entry-content h3{
    font-size:34px;
    margin-top:42px;
}

.entry-content p{
    margin:0 0 1.45em;
}

.entry-content blockquote{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:32px;
    line-height:1.2;
    border-left:1px solid var(--ink);
    margin:42px 0;
    padding:0 0 0 28px;
}


/* =========================================================
   ARCHIVES
========================================================= */

.archive-title{
    text-align:center;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:64px;
    font-weight:400;
    margin:0 0 14px;
}

.archive-intro{
    text-align:center;
    color:var(--muted);
    margin:0 0 54px;
}

.archive-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:34px;
}

.archive-card{
    border-top:1px solid var(--line);
    padding-top:16px;
}

.archive-card img{
    width:100%;
    aspect-ratio:4/3;
    object-fit:cover;
}

.archive-card h2{
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:32px;
    line-height:1.05;
    font-weight:500;
    margin:14px 0 10px;
}

.archive-card p{
    color:var(--muted);
    line-height:1.65;
    font-size:14px;
}

.pagination{
    margin-top:50px;
}


/* =========================================================
   TABLET
========================================================= */

@media(max-width:980px){

    .site-header{
        grid-template-columns:1fr auto;
        padding:0 24px;
    }

    .main-nav{
        display:none;
    }

    .masthead h1{
        font-size:clamp(48px,9.6vw,78px);
    }

    .featured-hero{
        min-height:520px;
    }

    .featured-hero-copy{
        width:58%;
        min-height:520px;
        padding-left:32px;
        padding-right:20px;
    }

    .featured-row,
    .featured-row-reverse{
        grid-template-columns:1fr 1fr;
    }

    .featured-row-copy{
        padding:44px 36px;
    }

    .pillars{
        grid-template-columns:1fr 1fr;
    }

    .pillar:nth-child(3){
        border-left:0;
        border-top:1px solid var(--line);
        padding-top:26px;
        margin-top:22px;
    }

    .pillar:nth-child(4){
        border-top:1px solid var(--line);
        padding-top:26px;
        margin-top:22px;
    }

    .story-list,
    .archive-grid{
        grid-template-columns:1fr;
    }

    .about{
        grid-template-columns:1fr;
    }

    .socials{
        display:none;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:620px){

    .site-header{
        min-height:64px;
        padding:0 16px;
    }

    .brand{
        font-size:22px;
    }

    .masthead{
        padding:38px 18px 24px;
    }

    .masthead h1{
        font-size:49px;
    }

    .masthead p{
        font-size:9px;
        letter-spacing:.24em;
        line-height:1.6;
    }


    /* WATCH HERO */

    .featured-hero{
        min-height:590px;
    }

    .featured-hero-image{
        background-position:62% center;
    }

    .featured-hero-overlay{
        background:
            linear-gradient(
                0deg,
                rgba(0,0,0,.94) 0%,
                rgba(0,0,0,.70) 32%,
                rgba(0,0,0,.12) 72%,
                rgba(0,0,0,.02) 100%
            );
    }

    .featured-hero-copy{
        position:absolute;
        left:0;
        right:0;
        bottom:0;
        width:100%;
        min-height:auto;
        padding:36px 24px 32px;
        justify-content:flex-end;
    }

    .featured-hero-copy h2{
        font-size:42px;
        line-height:1;
        max-width:95%;
    }


    /* AVIATION / MUSIC */

    .featured-row,
    .featured-row-reverse{
        display:flex;
        flex-direction:column;
        min-height:0;
    }

    .featured-row-image,
    .featured-row-reverse .featured-row-image{
        order:1;
        min-height:320px;
    }

    .featured-row-copy,
    .featured-row-reverse .featured-row-copy{
        order:2;
        min-height:0;
        padding:42px 24px 48px;
    }

    .featured-row-copy h2{
        font-size:36px;
    }

    .featured-row-copy p{
        font-size:14px;
    }


    /* PILLARS */

    .pillars{
        grid-template-columns:1fr;
        padding:20px 22px;
    }

    .pillar{
        padding:22px 0;
    }

    .pillar+.pillar{
        border-left:0;
        border-top:1px solid var(--line);
    }

    .pillar:nth-child(3),
    .pillar:nth-child(4){
        margin-top:0;
    }


    /* OTHER */

    .latest{
        padding:0 22px 54px;
    }

    .about{
        padding:42px 22px;
        gap:20px;
    }

    .site-footer{
        flex-direction:column;
        padding:20px 22px;
    }

    .content-wrap{
        padding:42px 20px 70px;
    }

    .entry-content{
        font-size:18px;
    }

    .article-deck{
        font-size:22px;
    }

    .archive-title{
        font-size:50px;
    }

}
/* Ajuste final portada Rolex */

.featured-hero-copy h2{
    font-size:clamp(40px,3.6vw,58px);
    line-height:1.02;
    max-width:560px;
}

.featured-hero-copy{
    padding:100px 0 55px 42px;
}
/* Rolex hero - texto a la derecha */

.featured-hero-copy{
    width:44%;
    max-width:620px;
    margin-left:auto;
    margin-right:0;
    padding:90px 48px 60px 20px;
    align-items:flex-start;
}

.featured-hero-copy h2{
    font-size:clamp(40px,3.6vw,58px);
    line-height:1.02;
    max-width:560px;
}

.featured-hero-overlay{
    background:linear-gradient(
        270deg,
        rgba(0,0,0,.92) 0%,
        rgba(0,0,0,.70) 28%,
        rgba(0,0,0,.28) 53%,
        rgba(0,0,0,.03) 78%,
        rgba(0,0,0,0) 100%
    );
}
.featured-hero-copy h2{
    font-size:clamp(38px,3.25vw,52px);
    line-height:1.04;
    max-width:520px;
}

/* =========================================================
   NEWSLETTER
========================================================= */

.newsletter-box{
    width:100%;
    padding:72px 42px;
    border-top:1px solid var(--line);
}

.newsletter-inner{
    max-width:760px;
    margin:0 auto;
    text-align:center;
}

.newsletter-inner .eyebrow{
    font-size:10px;
    font-weight:600;
    letter-spacing:.22em;
    margin-bottom:14px;
}

.newsletter-inner h3{
    margin:0;
    font-family:"Cormorant Garamond",Georgia,serif;
    font-size:42px;
    font-weight:400;
    line-height:1.05;
    letter-spacing:-.01em;
}

.newsletter-inner > p{
    max-width:560px;
    margin:18px auto 28px;
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
}


/* JETPACK SUBSCRIBE FORM */

.newsletter-inner .wp-block-jetpack-subscriptions{
    max-width:520px;
    margin:0 auto;
}

.newsletter-inner
.wp-block-jetpack-subscriptions__container{
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:8px;
}

.newsletter-inner input[type="email"]{
    flex:1;
    min-width:0;
    height:48px;
    padding:0 16px;
    border:1px solid var(--line);
    border-radius:0;
    background:transparent;
    color:var(--ink);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:13px;
    outline:none;
}

.newsletter-inner input[type="email"]:focus{
    border-color:var(--ink);
}

.newsletter-inner input[type="email"]::placeholder{
    color:var(--muted);
}

.newsletter-inner button,
.newsletter-inner
.wp-block-jetpack-subscriptions__button{
    min-height:48px;
    padding:0 24px;
    border:1px solid var(--ink);
    border-radius:0;
    background:var(--ink);
    color:#fff;
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:10px;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;
    cursor:pointer;
    transition:opacity .2s ease;
}

.newsletter-inner button:hover,
.newsletter-inner
.wp-block-jetpack-subscriptions__button:hover{
    opacity:.78;
}


/* =========================================================
   NEWSLETTER - MOBILE
========================================================= */

@media(max-width:620px){

    .newsletter-box{
        padding:52px 22px;
    }

    .newsletter-inner h3{
        font-size:36px;
    }

    .newsletter-inner > p{
        font-size:14px;
        margin-bottom:24px;
    }

    .newsletter-inner
    .wp-block-jetpack-subscriptions__container{
        flex-direction:column;
        gap:10px;
    }

    .newsletter-inner input[type="email"],
    .newsletter-inner button,
    .newsletter-inner
    .wp-block-jetpack-subscriptions__button{
        width:100%;
    }

}
/* =========================================================
   HEADER SUBSCRIBE
========================================================= */

.header-actions{
    justify-self:end;
    display:flex;
    align-items:center;
    gap:18px;
}

.subscribe-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:0 14px;
    border:1px solid var(--ink);
    font-size:9px;
    font-weight:600;
    letter-spacing:.16em;
    transition:
        background .2s ease,
        color .2s ease;
}

.subscribe-button:hover{
    background:var(--ink);
    color:#fff;
}


/* keep socials working inside header-actions */

.header-actions .socials{
    justify-self:auto;
}


/* MOBILE */

@media(max-width:980px){

    .header-actions{
        gap:12px;
    }

}

@media(max-width:620px){

    .subscribe-button{
        min-height:30px;
        padding:0 10px;
        font-size:8px;
    }

}
/* =========================================================
   ARTICLE SHARE BUTTONS
========================================================= */

.twh-share{
    display:flex;
    align-items:center;
    gap:14px;
}

/* Share button below date / reading time */
.twh-share-top{
    justify-content:center;
    margin-top:24px;
}

/* Share button at end of article */
.twh-share-bottom{
    max-width:760px;
    margin:60px auto 0;
    padding-top:26px;
    border-top:1px solid var(--line);
}

.twh-share-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:0 18px;

    border:1px solid var(--ink);
    border-radius:0;

    background:transparent;
    color:var(--ink);

    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:10px;
    font-weight:600;
    letter-spacing:.16em;
    text-transform:uppercase;

    cursor:pointer;

    transition:
        background .2s ease,
        color .2s ease,
        opacity .2s ease;
}

.twh-share-button:hover{
    background:var(--ink);
    color:#fff;
}

.twh-share-status{
    font-size:11px;
    color:var(--muted);
}


/* MOBILE */

@media(max-width:620px){

    .twh-share-top{
        margin-top:20px;
    }

    .twh-share-bottom{
        margin-top:45px;
        padding-top:22px;
    }

    .twh-share-button{
        min-height:38px;
        padding:0 15px;
        font-size:9px;
    }

}