/* Berita — Tsurayya Editorial Newsroom */

.news-page {
    --news-paper: #f8f3e9;
    --news-ink: #18221f;
    --news-red: #a34e33;
    background: var(--news-paper);
}

.news-label {
    margin: 0;
    color: var(--teal);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.news-label--light {
    color: var(--gold-soft);
}

/* Masthead */
.news-hero {
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    background:
        radial-gradient(circle at 77% 38%, rgba(45, 125, 117, .33), transparent 31%),
        var(--teal-night);
    color: #fff;
}

.news-hero__texture {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image:
        linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,.22) .5px, transparent .7px);
    background-size: 25% 100%, 5px 5px;
    pointer-events: none;
}

.news-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: 40px;
}

.news-hero__masthead {
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
    border-top: 1px solid rgba(255,255,255,.2);
    border-bottom: 1px solid rgba(255,255,255,.2);
}

.news-hero__masthead p {
    margin: 0;
    color: rgba(255,255,255,.57);
    font-size: .59rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.news-hero__masthead span,
.news-hero__masthead i {
    color: var(--gold);
    font-style: normal;
}

.news-hero__title {
    padding: clamp(75px, 10vw, 145px) 0 100px;
}

.news-hero__title .news-label {
    color: var(--gold-soft);
}

.news-hero h1 {
    max-width: 1120px;
    margin: 30px 0 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 7.6vw, 8.8rem);
    font-weight: 500;
    letter-spacing: -.06em;
    line-height: .88;
}

.news-hero h1 em {
    color: var(--gold-soft);
    font-weight: 500;
}

.news-hero__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    padding: 0 0 62px 31%;
}

.news-hero__bottom p {
    max-width: 480px;
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: .91rem;
    line-height: 1.8;
}

.news-scroll-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    min-width: 188px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.45);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
}

.news-scroll-link span {
    transition: transform .3s var(--ease);
}

.news-scroll-link:hover span,
.news-scroll-link:focus-visible span {
    transform: translateY(4px);
}

.news-ticker {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,.2);
    background: var(--gold);
    color: var(--teal-night);
}

.news-ticker__track {
    display: flex;
    width: max-content;
    align-items: center;
    min-height: 58px;
    gap: 28px;
    animation: newsTicker 28s linear infinite;
}

.news-ticker span {
    font-family: var(--serif);
    font-size: 1.08rem;
    white-space: nowrap;
}

.news-ticker i {
    font-style: normal;
}

@keyframes newsTicker {
    to { transform: translateX(-50%); }
}

/* Featured story */
.featured-news {
    padding: 125px 0 145px;
    background: var(--news-paper);
}

.featured-news__heading {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.featured-news__heading > p:last-child {
    margin: 0;
    color: var(--ink-soft);
    font-size: .65rem;
    text-transform: uppercase;
}

.featured-story > a {
    display: grid;
    grid-template-columns: minmax(0, 1.23fr) minmax(340px, .77fr);
    align-items: stretch;
    min-height: 620px;
    background: var(--paper);
}

.featured-story figure {
    position: relative;
    min-height: 620px;
    margin: 0;
    overflow: hidden;
}

.featured-story figure::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(6,47,48,.65));
    content: "";
}

.featured-story figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82);
    transition: transform .8s var(--ease), filter .5s ease;
}

.featured-story:hover figure img {
    filter: saturate(1);
    transform: scale(1.025);
}

.featured-story figcaption {
    position: absolute;
    z-index: 1;
    bottom: 22px;
    left: 25px;
    color: rgba(255,255,255,.7);
    font-size: .58rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.featured-story__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(50px, 6vw, 90px);
    border: 1px solid var(--line);
    border-left: 0;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: .61rem;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.featured-story h2 {
    margin: 0 0 28px;
    color: var(--teal-deep);
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.2vw, 4.9rem);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.featured-story__copy > p {
    margin: 0;
    color: var(--ink-soft);
    font-size: .88rem;
    line-height: 1.8;
}

.story-read {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    color: var(--teal);
    font-size: .69rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.story-read i {
    font-size: 1rem;
    font-style: normal;
    transition: transform .3s var(--ease);
}

a:hover .story-read i,
a:focus-visible .story-read i {
    transform: translate(3px, -3px);
}

/* Archive */
.news-archive {
    padding: 135px 0 155px;
    background: var(--paper);
}

.news-archive__header {
    display: grid;
    grid-template-columns: 1fr 390px;
    align-items: end;
    gap: 80px;
    margin-bottom: 72px;
}

.news-archive__header h2 {
    margin: 21px 0 0;
    color: var(--teal-deep);
    font-family: var(--serif);
    font-size: clamp(3.5rem, 5.4vw, 6rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .94;
}

.news-archive__header > p {
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: .88rem;
    line-height: 1.8;
}

.news-grid-editorial {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.news-story-card {
    min-width: 0;
    padding: 36px 36px 55px 0;
    border-bottom: 1px solid var(--line);
}

.news-story-card:nth-child(even) {
    padding-right: 0;
    padding-left: 36px;
    border-left: 1px solid var(--line);
}

.news-story-card figure {
    height: clamp(300px, 34vw, 490px);
    margin: 0 0 25px;
    overflow: hidden;
    background: var(--cream-deep);
}

.news-story-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82);
    transition: transform .7s var(--ease), filter .4s ease;
}

.news-story-card:hover figure img {
    filter: saturate(1);
    transform: scale(1.03);
}

.news-story-card .story-meta {
    margin-bottom: 18px;
}

.news-story-card h3 {
    max-width: 560px;
    margin: 0 0 19px;
    color: var(--teal-deep);
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3vw, 3.15rem);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.news-story-card p {
    max-width: 530px;
    margin: 0;
    color: var(--ink-soft);
    font-size: .86rem;
    line-height: 1.75;
}

.news-story-card .story-read {
    margin-top: 35px;
}

.news-empty {
    padding: 70px 0;
    border-top: 1px solid var(--line);
}

.news-empty span {
    color: var(--teal-deep);
    font-family: var(--serif);
    font-size: 2rem;
}

.news-empty p {
    max-width: 500px;
    color: var(--ink-soft);
}

.news-error {
    grid-column: 1 / -1;
    padding: 70px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
}

/* Social follow */
.news-follow {
    overflow: hidden;
    padding: 130px 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(39,118,110,.38), transparent 28%),
        var(--teal-night);
    color: #fff;
}

.news-follow__grid {
    display: grid;
    grid-template-columns: 170px minmax(300px, .82fr) minmax(380px, 1.18fr);
    align-items: center;
    gap: clamp(45px, 7vw, 100px);
}

.news-follow__mark {
    color: rgba(255,255,255,.12);
    font-family: Georgia, serif;
    font-size: 4.6rem;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.news-follow__copy h2 {
    margin: 28px 0 33px;
    font-family: var(--serif);
    font-size: clamp(3.4rem, 5.2vw, 5.8rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .94;
}

.news-follow__copy > p:not(.news-label) {
    max-width: 470px;
    margin: 0;
    color: rgba(255,255,255,.6);
    font-size: .88rem;
    line-height: 1.8;
}

.news-follow__actions {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.news-follow__actions > a:not(.button) {
    border-bottom: 1px solid rgba(255,255,255,.45);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
}

.news-follow__photo {
    margin: 0;
    transform: rotate(1.4deg);
}

.news-follow__photo img {
    width: 100%;
    aspect-ratio: 1.18 / 1;
    border: 8px solid var(--news-paper);
    object-fit: cover;
    filter: saturate(.8);
}

.news-follow__photo figcaption {
    padding-top: 12px;
    color: rgba(255,255,255,.48);
    font-size: .58rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .featured-story > a {
        grid-template-columns: 1fr;
    }

    .featured-story figure {
        min-height: 520px;
    }

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

    .news-follow__grid {
        grid-template-columns: 100px 1fr;
    }

    .news-follow__photo {
        grid-column: 2;
        max-width: 680px;
    }
}

@media (max-width: 760px) {
    .news-hero__masthead p:last-child {
        display: none;
    }

    .news-hero__title {
        padding-block: 75px;
    }

    .news-hero h1 {
        font-size: clamp(3.6rem, 15vw, 6.3rem);
        line-height: .92;
    }

    .news-hero__bottom {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 0;
    }

    .featured-news,
    .news-archive,
    .news-follow {
        padding-block: 92px;
    }

    .featured-story figure {
        min-height: auto;
    }

    .featured-story figure img {
        aspect-ratio: 4 / 3;
    }

    .featured-story__copy {
        padding: 40px 28px;
    }

    .news-archive__header {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .news-grid-editorial {
        grid-template-columns: 1fr;
    }

    .news-story-card,
    .news-story-card:nth-child(even) {
        padding: 34px 0 50px;
        border-left: 0;
    }

    .news-story-card figure {
        height: auto;
    }

    .news-story-card figure img {
        aspect-ratio: 4 / 3;
    }

    .news-follow__grid {
        grid-template-columns: 1fr;
    }

    .news-follow__mark {
        writing-mode: initial;
        transform: none;
    }

    .news-follow__photo {
        grid-column: 1;
    }
}

@media (max-width: 480px) {
    .news-hero__inner {
        padding-top: 22px;
    }

    .news-hero__title {
        padding-block: 62px;
    }

    .news-hero h1 {
        font-size: 3.45rem;
    }

    .news-ticker__track {
        min-height: 50px;
    }

    .featured-news__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .featured-story h2 {
        font-size: 2.45rem;
    }

    .story-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .news-archive__header h2,
    .news-follow__copy h2 {
        font-size: 3.15rem;
    }

    .news-follow__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker__track {
        animation: none;
    }

    .news-follow__photo {
        transform: none;
    }
}
