/*!
 * newyorktimes.css
 * Main stylesheet for the New York Times reprints
 * Author: Marketing Operations
 * Version: 1.0.0
 * Created: 2025-09-04
 * Updated: 
 * Description: Standard CSS template header for project styles
 * -------------------------------------------------------------
 */

@import url("//construct.wrightsmedia.com/npm/foundation/6.9.0/foundation.min.css");
@import url("//construct.wrightsmedia.com/brands/nytimes/css/variables.css");

body {
    background-color: var(--color-secondary);
    color: var(--color-content-secondary);
    font-family: var(--font-family-base);
}

.sample-bg {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="diagtext" width="100%" height="100%"><style type="text/css">text { fill: %23D6D6D6; font-family: Avenir, Arial, Helvetica, sans-serif; }</style><defs><pattern id="text1" patternUnits="userSpaceOnUse" width="400" height="200"><text y="30" font-size="40" id="name">SAMPLE</text></pattern><pattern xlink:href="%23text1"><text y="120" x="200" font-size="30" id="text2"/></pattern><pattern id="combo" xlink:href="%23text1" patternTransform="rotate(-45)"><use xlink:href="%23name"/><use xlink:href="%23text2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23combo)"/></svg>');
}

header {
    background-color: var(--color-secondary);
    height: 2.875rem;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    padding: 0.5rem 0.938rem 0.188rem;
    border-bottom: 0.063rem solid var(--border-light);
}

.logo-white header {
    background-color: transparent;
    border-bottom: none;
}

.nyt-logo {
    display: block;
    margin: 0 auto;
}

.full-height {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}

.full-height video {
    object-fit: cover;
    height: 100vh;
    width: 100vw;
}

.article-section-header {
    text-align: center;
}

.article-section-title {
    color: var(--color-signal-breaking);
    font-family: var(--nyt-btf-nytcheltenhamregular);
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.article-section-subtitle {
    color: var(--color-content-primary);
    font-family: var(--nyt-btf-nytcheltenhamregular);
    text-transform: uppercase;
    letter-spacing: 0.075rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

.border-title::before {
    content: '';
    display: block;
    margin: 0.75rem auto 1.75rem;
    background-color: #EBEBEB;
    width: 4.5rem;
    height: 0.063rem;
}

.article-date {
    color: var(--color-content-secondary);
    font-family: var(--nyt-btf-nytfranklinmedium);
    font-weight: var(--nyt-btf-fw-medium);
    font-size: 0.813rem;
    text-align: center;
    margin-bottom: 2rem;
}

.image-caption {
    font-family: var(--nyt-btf-nytfranklinmedium);
    font-size: 0.813rem;
    color: var(--color-content-quarternary);
    line-height: 1.063rem;
    letter-spacing: 0.008rem;
    margin-top: 0.625rem;
}

.page-subheading {
    display: block;
    text-align: center;
    margin: 0 auto 1.25rem;
}

h1 {
    font-family: var(--nyt-btf-nytcheltenhamcond);
    color: var(--color-primary);
    font-size: 3.563rem;
    line-height: 3.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1.125rem;
    text-align: center;
}

h2 {
    color: var(--color-grey);
    font-family: var(--font-proxima-nova-bold);
    font-size: 1.5rem;
    line-height: 2.25rem;
}

h3 {
    font-family: var(--font-proxima-nova-semibold);
    font-weight: 600;
    font-size: 1.938rem;
    line-height: 1.75rem;
}

.grid-container {
    max-width: 53.125rem;
    margin: 0 auto;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

main {
    /* padding-top: 1.25rem; */
    padding-bottom: 1.25rem;
    margin-top: 6.25rem;
}

/* p {
    text-wrap: pretty;
} */

.byline {
    border-top: 0.063rem solid #EBEBEB;
    border-bottom: 0.063rem solid #EBEBEB;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
    padding-top: 0.938rem;
    padding-bottom: 1.125rem;
}

.byline-author {
    font-family: var(--nyt-btf-nytfranklinbold);
    font-weight: var(--nyt-btf-fw-bold);
}

.byline-author-bio {
    margin-bottom: 0.25rem;
    font-family: var(--nyt-btf-nytfranklinlight);
    font-weight: var(--nyt-btf-fw-medium);
}

.byline-author, .byline-author-bio {
    margin-top: 0.188rem;
}

.article-content p {
    font-family: var(--font-family-base);
    font-size: 1.25rem;
    line-height: 1.875rem;
    color: var(--color-content-secondary);
}

.author-bio p {
    font-family: var(--nyt-btf-nytfranklinlight);
    font-weight: var(--nyt-btf-fw-medium);
    line-height: 1.375rem;
}

.article-disclaimer {
    border-top: 0.063rem solid #EBEBEB;
    border-bottom: 0.063rem solid #EBEBEB;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
    padding-top: 0.75rem;
}

.article-disclaimer p {
    font-family: var(--nyt-btf-nytfranklinlight);
    font-weight: var(--nyt-btf-fw-medium);
    font-size: 0.813rem;
    line-height: 1.125rem;
}

.article-disclosure {
    font-family: var(--nyt-imperial-italic);
    font-weight: var(--nyt-btf-fw-normal);
    margin: 1.5rem 1.25rem 0 1.25rem;
}

footer {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    padding: 3rem 0;
    text-align: center;
    border-top: 0.063rem solid var(--border-light);
}

footer p {
    font-family: var(--nyt-btf-nytfranklinmedium);
    font-weight: var(--nyt-btf-fw-medium);
    font-size: 0.875rem;
    line-height: 1rem;
    margin: 0.625rem auto 0;
    max-width: 40rem;
    text-align: center;
}

footer .copyright {
    font-family: var(--nyt-btf-nytfranklinlight);
    font-weight: var(--nyt-btf-fw-medium);
    font-size: 0.688rem;
    line-height: 1rem;
    margin: 0.625rem auto 0;
    text-align: center;
    color: #666;
}

/* Roadblock styles */
.roadblock {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f7f7f7;
    height: 100vh;
}

.roadblock header {
    position: relative;
    border-bottom: none;
    background-color: transparent;
}
        
.roadblock main {
    width: 100%;
    max-width: 53.125rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.875rem;
    margin-bottom: 1.875rem;
    background-color: var(--color-secondary);
    padding: 1.25rem;
    box-shadow: 0 0.25rem 0.375rem rgba(0, 0, 0, 0.1);
}

.roadblock-content-box {
    padding: 1.25rem;
    border: 0.063rem dashed var(--color-lightgrey);
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.roadblock-title {
    font-family: var(--nyt-imperial-regular);
    font-size: 2rem;
    line-height: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 1.875rem;
}

.roadblock-text p {
    text-align: center;
    font-size: 1.25rem;
    line-height: 1.75rem;
}

/* Media Queries */
@media screen and (max-width: 48rem) {
    h1 {
        font-size: 2.5rem;
        line-height: 2.75rem;
    }

    h2 {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }

    .article-hero {
        width: 100%;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .article-hero .image-caption {
        margin-left: 1.25rem;
    }

    .byline {        
        font-size: 0.813rem;
        line-height: 1rem;
    }

    .byline .byline-author {
        line-height: 1.063rem;
    }

    .article-content p {
        font-size: 1.125rem;
        line-height: 1.563rem;
    }
}