/* ===== Blog Amamable (/blog/news/<lang>/) — news and guides about the app =====
   Builds on /site.css (tokens, nav, footer, buttons, .stores). Markup comes from
   tools/website/build-news.mjs — keep class names in sync. */

.news {
    position: relative;
    z-index: 2; /* the CTA card overlaps the footer, like the landing's finale */
    background: var(--bg);
    padding: 120px 0 0; /* under the fixed nav pill */
}

.news h1,
.news h2,
.news h3 {
    font-family: var(--serif);
    font-variation-settings: 'opsz' 144;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

.news-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- index ---------- */

.news-hero {
    max-width: 46rem;
    margin-bottom: clamp(32px, 5vw, 56px);
}

.news-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brand-dark);
    margin-bottom: .9rem;
}

.news-hero h1 {
    font-size: clamp(2.6rem, 1.4rem + 4.2vw, 4.6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.news-hero__lead {
    margin-top: 1.2rem;
    font-size: 1.12rem;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 40rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    font-size: .82rem;
    color: var(--ink-3);
}

.news-tag {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: var(--herb-soft);
    color: var(--herb);
}

.news-tag--news {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-1);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
}

.news-card__media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    padding: 22px 24px 26px;
    flex: 1;
}

.news-card__title {
    font-size: 1.45rem;
    line-height: 1.15;
}

.news-card__title a {
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--brand-dark);
}

.news-card__desc {
    color: var(--ink-2);
    font-size: .96rem;
    line-height: 1.55;
}

.news-card__more {
    margin-top: auto;
    font-weight: 600;
    font-size: .9rem;
    color: var(--brand-dark);
    text-decoration: none;
}

.news-card--featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    margin-bottom: 28px;
}

.news-card--featured .news-card__media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 320px;
}

.news-card--featured .news-card__body {
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
}

.news-card--featured .news-card__title {
    font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.7rem);
    line-height: 1.06;
}

.news-card--featured .news-card__desc {
    font-size: 1.05rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* ---------- post ---------- */

.news-article {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

.news-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .85rem;
    color: var(--ink-3);
    margin-bottom: 1.6rem;
}

.news-crumbs a {
    color: var(--brand-dark);
    font-weight: 600;
    text-decoration: none;
}

.news-article__head h1 {
    margin-top: 1rem;
    font-size: clamp(2.3rem, 1.3rem + 3.4vw, 3.8rem);
    line-height: 1.04;
}

.news-article__lead {
    margin-top: 1.1rem;
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--ink-2);
}

.news-article__media {
    margin: clamp(28px, 4vw, 44px) 0;
}

.news-article__media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--r-xl);
    box-shadow: var(--sh-1);
}

.news-body {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink);
}

.news-body > * + * {
    margin-top: 1.15em;
}

.news-body h2 {
    margin-top: 2.1em;
    font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.2rem);
    line-height: 1.12;
}

.news-body h3 {
    margin-top: 1.7em;
    font-size: 1.35rem;
    line-height: 1.2;
}

.news-body ul,
.news-body ol {
    padding-left: 1.4em;
}

.news-body li + li {
    margin-top: .45em;
}

.news-body li::marker {
    color: var(--brand);
    font-weight: 700;
}

.news-body a {
    color: var(--brand-dark);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.news-note {
    padding: 18px 22px;
    border-radius: var(--r);
    background: var(--herb-soft);
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.6;
}

/* ---------- CTA + more ---------- */

.news-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.4rem;
    margin: clamp(56px, 8vw, 96px) 0 0;
    padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 56px);
    background: var(--surface);
    border-radius: 40px;
    box-shadow: var(--sh-2);
}

.news-cta h2 {
    font-size: clamp(2rem, 1.1rem + 3vw, 3.2rem);
    line-height: 1.04;
}

.news-cta p {
    margin-top: .9rem;
    color: var(--ink-2);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 36rem;
}

.news-cta .stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .7rem;
}

.news-more {
    margin-top: clamp(56px, 8vw, 96px);
    padding-bottom: 8px;
}

.news-more__title {
    font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem);
    margin-bottom: 24px;
}

.news > .news-wrap:last-child,
.news > .news-wrap:only-child {
    padding-bottom: 0;
    margin-bottom: -60px; /* the last card overlaps the footer */
}

@media (max-width: 960px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .news-card--featured { grid-template-columns: 1fr; }
    .news-card--featured .news-card__media img { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
    .news { padding-top: 96px; }
    .news-wrap,
    .news-article { padding: 0 16px; }
    .news-grid { grid-template-columns: 1fr; gap: 20px; }
    .news-card__body { padding: 18px 18px 22px; }
    .news-body { font-size: 1.03rem; }
}
