/*
 * news-timeline.css — styles for news-timeline.html.
 *
 * A design-led alternative to news.html. Same verified content, different
 * argument: the coverage is a three-act story about a company talking its
 * way out of a commodity business.
 *
 * Brand discipline: no new colours and no new typeface. Everything here is
 * the existing palette and avenir-lt-pro from the site's Adobe Fonts kit.
 * The page earns its distinctiveness from structure and scale instead —
 * the vine, the act headings, and a very wide type scale.
 *
 * Namespaced under .tl throughout so it cannot reach styles.css or news.css.
 */

.tl {
    --ink: #353030;
    --cream: #FDF8F4;
    --blush: #FFE9F0;
    --pink: #EF4E92;
    --pink-deep: #E2068A;
    --aqua: #6ECBDA;
    --muted: rgba(53, 48, 48, 0.66);
    --hairline: rgba(53, 48, 48, 0.12);

    --rail: 92px;

    display: block;
    background-color: var(--cream);
    color: var(--ink);
}

.tl :is(h1, h2, h3, p, blockquote, cite, ul, li) {
    margin: 0;
}

/* ----------------------------------------------------------------- hero */

.tl .tlHero {
    background-color: var(--blush);
    padding: 190px 40px 90px;
    text-align: left;
}

@media (min-width: 900px) {
    .tl .tlHero {
        padding: 230px 80px 110px;
    }
}

.tl .tlEyebrow,
.tl .tlActYears,
.tl .tlWhen,
.tl .tlPickup,
.tl .tlMapYears {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.tl .tlEyebrow {
    color: var(--pink-deep);
    margin-bottom: 26px;
}

.tl .tlHero h1 {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.02em;
    max-width: 15ch;
}

.tl .tlHero h1 em {
    font-style: normal;
    color: var(--pink);
}

.tl .tlDeck {
    margin-top: 26px;
    max-width: 44ch;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--muted);
}

/* Chapter map. Doubles as the page's table of contents. */

.tl .tlMap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
}

.tl .tlMap a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 22px;
    border-radius: 10px;
    background-color: #fff;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tl .tlMap a:hover,
.tl .tlMap a:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(226, 6, 138, 0.16);
}

.tl .tlMapName {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--ink);
}

.tl .tlMapYears {
    color: var(--aqua);
}

/* ----------------------------------------------------------------- vine */

.tl .tlVine {
    padding: 0 20px 40px;
    max-width: 1180px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .tl .tlVine {
        padding: 0 60px 60px;
    }
}

.tl .tlAct {
    padding-top: 84px;
}

.tl .tlActHead {
    padding-left: var(--rail);
    padding-bottom: 30px;
    border-bottom: 1px solid var(--hairline);
    margin-bottom: 8px;
}

.tl .tlActYears {
    color: var(--aqua);
    margin-bottom: 10px;
}

.tl .tlActHead h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--pink);
}

.tl .tlActLine {
    margin-top: 14px;
    max-width: 46ch;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--muted);
}

/* --------------------------------------------------------------- entry */

.tl .tlEntry {
    position: relative;
    padding: 40px 0 44px var(--rail);
    border-bottom: 1px solid var(--hairline);
}

.tl .tlAct .tlEntry:last-child {
    border-bottom: none;
}

/* The vine itself: a line down the rail, running behind the nodes. */
.tl .tlEntry::before {
    content: "";
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--aqua), var(--pink));
}

.tl .tlAct:first-child .tlEntry:first-of-type::before {
    top: 46px;
}

.tl .tlAct:last-child .tlEntry:last-child::before {
    bottom: auto;
    height: 46px;
}

/*
 * The signature: node diameter is driven by --pickup, the number of outlets
 * that ran the story. The shape of the vine reports how far each story
 * travelled — the four-outlet cider launch is the fattest grape on it.
 */
.tl .tlNode {
    position: absolute;
    left: 28px;
    top: 46px;
    transform: translateX(-50%);
    width: calc(11px + (var(--pickup) * 4px));
    height: calc(11px + (var(--pickup) * 4px));
    border-radius: 50%;
    background-color: var(--pink);
    box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px rgba(239, 78, 146, 0.28);
}

/* A small highlight, so at larger sizes it reads as fruit rather than a dot. */
.tl .tlNode span {
    position: absolute;
    top: 22%;
    left: 22%;
    width: 26%;
    height: 26%;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
}

.tl .tlWhen {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    margin-bottom: 20px;
}

.tl .tlKind {
    color: var(--pink-deep);
}

.tl .tlKind::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 1px;
    margin-right: 14px;
    vertical-align: middle;
    background-color: var(--hairline);
}

.tl .tlBody {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
}

@media (min-width: 860px) {
    .tl .tlBody.hasMedia {
        grid-template-columns: minmax(0, 1fr) 230px;
        gap: 40px;
    }

    .tl .tlBody.hasMedia .tlMedia {
        grid-column: 2;
        grid-row: 1 / span 4;
    }
}

/* --------------------------------------------------------------- media */

.tl .tlMedia {
    margin: 0;
}

.tl .tlMedia img {
    display: block;
    width: 100%;
    border-radius: 10px;
}

/* Video stills are photographs and crop to a 16:9 frame. */
.tl .tlMedia--still img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Product shots are cut-outs, so they sit on brand pink rather than being
   cropped, and keep their full silhouette. */
.tl .tlMedia--product {
    background-color: var(--blush);
    border-radius: 10px;
    padding: 18px;
}

/* Square, because the cut-outs are a mix of portrait bottles and landscape
   fruit; 4:3 stranded the bottles in the middle of a wide box. */
.tl .tlMedia--product img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.tl .tlMediaCap {
    display: block;
    margin-top: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(53, 48, 48, 0.45);
}

/* ---------------------------------------------------------- the words */

/*
 * The quotes lead. Every press page buries them under a headline; here the
 * headline is the caption and the quote is the content, because what these
 * seven stories have in common is people arguing for the brand out loud.
 */
.tl .tlQuote p {
    font-size: clamp(1.3rem, 2.7vw, 2.3rem);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.tl .tlQuote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: var(--aqua);
}

.tl .tlTitle {
    font-size: 1.02rem;
    font-weight: 900;
    line-height: 1.4;
    color: var(--muted);
}

/* Where no quote is on record, the headline takes the display slot. */
.tl .tlTitle--lead {
    font-size: clamp(1.3rem, 2.7vw, 2.3rem);
    line-height: 1.16;
    letter-spacing: -0.015em;
    color: var(--ink);
    text-wrap: balance;
}

.tl .tlSummary {
    max-width: 54ch;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}

.tl .tlWho {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--aqua);
}

/* ------------------------------------------------------------- outlets */

.tl .tlOutlets {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 20px;
}

.tl .tlPickup {
    color: rgba(53, 48, 48, 0.45);
}

.tl .tlLinks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl .tlLinks a {
    padding: 7px 16px;
    border: 1px solid var(--pink);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--pink-deep);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.tl .tlLinks a:hover,
.tl .tlLinks a:focus-visible {
    background-color: var(--pink);
    color: #fff;
}

/* ---------------------------------------------------------------- also */

.tl .tlAlso {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 110px;
}

@media (min-width: 900px) {
    .tl .tlAlso {
        padding: 0 60px 130px;
        padding-left: calc(60px + var(--rail));
    }
}

.tl .tlAlso h2 {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.tl .tlAlso > p {
    margin-top: 6px;
    margin-bottom: 22px;
    font-size: 0.95rem;
    color: var(--muted);
}

.tl .tlAlso ul {
    list-style: none;
    padding: 0;
}

.tl .tlAlso li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px 20px;
    padding-top: 18px;
    border-top: 1px solid var(--hairline);
    font-weight: 900;
}

/* --------------------------------------------------------------- motion */

/*
 * Entries are visible by default. The reveal only applies once the script
 * confirms IntersectionObserver and that reduced motion is not requested,
 * at which point it adds .tlAnimate to <html>. If the script never runs the
 * page is simply static, never blank — the failure mode WOW.js has.
 */
.tlAnimate .tl [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.tlAnimate .tl [data-reveal].isIn {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .tlAnimate .tl [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* -------------------------------------------------------------- a11y */

.tl a:focus-visible,
.tl .tlMap a:focus-visible {
    outline: 3px solid var(--pink-deep);
    outline-offset: 3px;
}

/* -------------------------------------------------------------- small */

@media (max-width: 899px) {
    .tl {
        --rail: 54px;
    }

    .tl .tlEntry::before {
        left: 15px;
    }

    .tl .tlNode {
        left: 16px;
        top: 40px;
    }

    .tl .tlHero {
        padding-top: 150px;
    }

    .tl .tlAct {
        padding-top: 56px;
    }
}
