/*
 * Stories page (/stories/): the opening picture stays in place while
 * the sheet of stories slides over it.
 *
 * Read off the earlier page as it was shown, at every width; the
 * breakpoints are that page's own (650, 700, 1024 and 1100px).
 */

html body.tcg-st-page {
    background-color: #f1eee8;
}

/* the closing slides over the picture too */
body.tcg-st-page .tcg-home-closing {
    position: relative;
    z-index: 10;
}

.tcg-st {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    background-color: #f1eee8;
    color: #111;
}


/* ---------------------------------------------------------
   OPENING PICTURE
--------------------------------------------------------- */

.tcg-st .tcg-st-hero {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
    width: 100vw;
    max-width: none;
    height: 100vh;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background-color: #444;
}

.tcg-st .tcg-st-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
    vertical-align: top;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(25%) contrast(.9) brightness(.72);
    transform: scale(1.015);
}

.tcg-st .tcg-st-hero__shade {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .18) 45%, rgba(0, 0, 0, .04) 100%);
}

.tcg-st .tcg-st-hero__content {
    position: absolute;
    left: 4vw;
    bottom: 15vh;
    z-index: 5;
    width: auto;
    max-width: 760px;
    color: #fff;
    transform: none;
}

.tcg-st .tcg-st-hero__label {
    display: block;
    margin: 0 0 22px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: #fff;
}

.tcg-st .tcg-st-hero__title {
    display: block;
    margin: 0;
    padding: 0;
    font-family: Michroma, "Arial Narrow", sans-serif;
    font-size: clamp(38px, 3.9vw, 68px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: .045em;
    text-transform: inherit;
    white-space: nowrap;
    color: #fff;
    transform: none;
    transform-origin: left center;
}

/* a dashed rule under the title */
.tcg-st .tcg-st-hero__title::after {
    content: "";
    display: block;
    width: 115px;
    height: 3px;
    margin: 28px 0 0;
    background-image: linear-gradient(90deg, #fff 0, #fff 38%, transparent 38%, transparent 49%, #fff 49%, #fff 65%, transparent 65%, transparent 76%, #fff 76%, #fff 100%);
}

.tcg-st .tcg-st-hero__line {
    max-width: 470px;
    margin: 24px 0 0;
    overflow-wrap: break-word;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: .01em;
    color: #fff;
}


/* ---------------------------------------------------------
   THE SHEET OF STORIES
--------------------------------------------------------- */

.tcg-st .tcg-st-sheet {
    position: relative;
    z-index: 10;
    display: block;
    width: calc(100% - 28px);
    margin: calc(100vh - 36px) 14px 0;
    padding: 52px clamp(36px, 4vw, 76px) 100px;
    border-radius: 22px 22px 0 0;
    background-color: #f1eee8;
    box-shadow: rgba(0, 0, 0, .08) 0 -14px 40px;
}

.tcg-st .tcg-st-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0 0 28px;
    color: #111;
}

.tcg-st .tcg-st-label span {
    position: relative;
    flex: 0 0 auto;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.tcg-st .tcg-st-label i {
    position: relative;
    display: block;
    width: 46px;
    height: 1px;
    background-color: rgba(17, 17, 17, .45);
}

.tcg-st .tcg-st-label small {
    position: relative;
    font-family: Michroma, "Helvetica Neue", Arial, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: .08em;
    opacity: .52;
}

.tcg-st .tcg-st-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 34px 22px;
    padding: 0;
    counter-reset: tcg-story;
}

.tcg-st .tcg-st-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 16px;
    background-color: #e9e4dd;
    box-shadow: none;
    counter-increment: tcg-story;
    transition: transform .28s ease, box-shadow .28s ease;
}

.tcg-st .tcg-st-card:first-child {
    grid-column: span 2;
}

.tcg-st .tcg-st-card:hover {
    transform: translateY(-3px);
    box-shadow: rgba(0, 0, 0, .055) 0 12px 28px;
}

.tcg-st .tcg-st-card__image {
    position: relative;
    display: block;
    width: 100%;
    height: 340px;
    overflow: hidden;
    background-color: #d8d3ca;
    text-decoration: none;
    transition: all .1s ease;
}

.tcg-st .tcg-st-card:first-child .tcg-st-card__image {
    height: 650px;
}

.tcg-st .tcg-st-card:nth-child(4) .tcg-st-card__image,
.tcg-st .tcg-st-card:nth-child(7) .tcg-st-card__image {
    height: 410px;
}

.tcg-st .tcg-st-card__image img {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: top;
    object-fit: cover;
    transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}

.tcg-st .tcg-st-card:hover .tcg-st-card__image img {
    transform: scale(1.03);
}

.tcg-st .tcg-st-card__content {
    position: relative;
    min-height: 138px;
    padding: 17px 18px 22px;
    background-color: #e9e4dd;
}

.tcg-st .tcg-st-card:first-child .tcg-st-card__content {
    min-height: 175px;
    padding: 22px 22px 26px;
}

.tcg-st .tcg-st-card__date {
    position: relative;
    display: block;
    margin-bottom: 14px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .03em;
    opacity: .75;
}

.tcg-st .tcg-st-card__title {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 11px;
    max-width: 82%;
    margin: 0;
    font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: .96;
    letter-spacing: -.025em;
    text-transform: inherit;
    color: #000;
}

.tcg-st .tcg-st-card:first-child .tcg-st-card__title {
    max-width: 75%;
    font-size: 30px;
    line-height: .94;
}

/* the story's number before its title: 01 —, 02 — … */
.tcg-st .tcg-st-card__title::before {
    content: "0" counter(tcg-story) " —";
    flex: 0 0 auto;
    font-family: Michroma, "Helvetica Neue", Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .08em;
    opacity: .58;
    transform: translateY(-2px);
}

.tcg-st .tcg-st-card__title a {
    position: relative;
    background-color: transparent;
    color: #111;
    text-decoration: none;
    transition: all .1s ease;
}

.tcg-st .tcg-st-card__arrow {
    position: absolute;
    right: 18px;
    bottom: 22px;
    left: auto;
    background-color: transparent;
    font-size: 20px;
    color: #111;
    text-decoration: none;
    transition: transform .2s ease;
}

.tcg-st .tcg-st-card:hover .tcg-st-card__arrow {
    transform: translateX(4px);
}

.tcg-st .tcg-st-end {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 17, 17, .2);
    font-family: Manrope, Arial, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .07em;
    opacity: .55;
}

.tcg-st .tcg-st-end span {
    position: relative;
}


/* ---------------------------------------------------------
   NARROWER SCREENS
--------------------------------------------------------- */

@media (max-width: 1100px) {

    .tcg-st .tcg-st-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tcg-st .tcg-st-card:first-child .tcg-st-card__image {
        height: 620px;
    }
}

@media (max-width: 1024px) {

    .tcg-st .tcg-st-label span {
        font-size: 10.5px;
    }

    .tcg-st .tcg-st-label small,
    .tcg-st .tcg-st-card__date,
    .tcg-st .tcg-st-end span {
        font-size: 10px;
    }

    .tcg-st .tcg-st-card__arrow {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 700px) {

    .tcg-st .tcg-st-hero__content {
        left: 20px;
        right: 20px;
        bottom: 85px;
    }

    .tcg-st .tcg-st-hero__title {
        font-size: 10vw;
    }

    .tcg-st .tcg-st-sheet {
        width: calc(100% - 12px);
        margin: calc(100vh - 20px) 6px 0;
    }

    .tcg-st .tcg-st-card__image {
        max-height: 600px;
    }
}

@media (max-width: 650px) {

    .tcg-st .tcg-st-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .tcg-st .tcg-st-card:first-child {
        grid-column: auto;
    }

    .tcg-st .tcg-st-card .tcg-st-card__image,
    .tcg-st .tcg-st-card:first-child .tcg-st-card__image,
    .tcg-st .tcg-st-card:nth-child(4) .tcg-st-card__image,
    .tcg-st .tcg-st-card:nth-child(7) .tcg-st-card__image {
        height: 115vw;
        max-height: 610px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tcg-st .tcg-st-card,
    .tcg-st .tcg-st-card__image img,
    .tcg-st .tcg-st-card__arrow {
        transition: none;
    }
}
