/* MMI Alma — blog front, topic pages and articles, after Alma's blog and article layouts. */

/* ---------- Stories ---------- */
.story__media { display: block; overflow: hidden; border-radius: 4px; background: var(--cream); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease); }
.story:hover .story__media img { scale: 1.05; }
.story__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-ink); }
.story__title { font-family: var(--serif-text); font-weight: 400; color: var(--ink); }
.story__title a { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .5s var(--ease); }
.story:hover .story__title a, .story__title a:focus-visible { background-size: 100% 1px; }
.story__dek { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--text); }

/* Alma's blog shapes: 16:9 photos with 4px corners, 27/38 and 22/31 light serif titles, 16/24 thumbnail titles. */
.story--feature .story__media { aspect-ratio: 16 / 9; margin-bottom: 8px; }
.story--feature .story__title { margin-top: 4px; font-family: var(--serif); font-weight: 300; font-size: 27px; line-height: 38px; letter-spacing: -.3px; }
.story--feature .story__dek { margin-top: 4px; font-size: 16px; line-height: 24px; }
.story--card .story__media { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.story--card .story__title { margin-top: 4px; font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 31px; }
.story--text { padding-top: 14px; border-top: 1px solid var(--line); }
.story--text .story__title { margin-top: 4px; font-size: 17px; line-height: 1.35; }
.story--row { display: grid; grid-template-columns: minmax(0, 1fr) 80px; gap: 16px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.story--row .story__media { order: 2; aspect-ratio: 1; }
.story--row .story__title { margin-top: 4px; font-size: 17px; line-height: 1.35; }
.story--thumb { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 20px; }
.story--thumb .story__media { aspect-ratio: 16 / 9; }
.story--thumb .story__title { font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 24px; }

/* ---------- Title bar ---------- */
.blog-bar { padding: 48px 0; background: var(--wine); }
.blog-bar__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 36px; }
.blog-bar__title { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 55px; letter-spacing: -.88px; color: var(--white); text-decoration: none; }
.blog-bar__topics ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.blog-bar__topics a { position: relative; font-size: 16px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .8); }
.blog-bar__topics a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.blog-bar__topics a:hover::after, .blog-bar__topics a[aria-current]::after { transform: scaleX(1); }
.blog-bar__topics a:hover, .blog-bar__topics a[aria-current] { color: var(--rose); }
.blog-bar__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; }
.blog-search { display: flex; flex: 1; align-items: center; max-width: 300px; min-width: 0; height: 48px; border: 1px solid transparent; border-radius: 4px; background: var(--white); }
.blog-search input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; background: none; font-size: 15px; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(244, 169, 196, .35); }
.blog-search button { display: grid; place-items: center; width: 48px; height: 100%; border: 0; background: none; color: var(--burgundy); }
.blog-search .icon { width: 19px; height: 19px; }
.blog-bar__updates { height: 48px; border-radius: 4px; font-size: 16px; }

/* ---------- Front: featured, latest, picks ---------- */
/* Alma's intro: a 568px bordered lead card beside two 308px columns. */
.blog-top { padding: 48px 0 64px; }
.blog-top__grid { display: grid; grid-template-columns: minmax(0, 568px) minmax(0, 308px) minmax(0, 308px); gap: 48px; }
.blog-top__lead .story--feature { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--sand); }
.blog-top__lead .story--feature .story__media { margin-bottom: 0; aspect-ratio: 566 / 318; }
.blog-top__lead .story--feature .story__body { display: grid; gap: 12px; padding: 16px 24px; }
.blog-top__lead .story--feature .story__title, .blog-top__lead .story--feature .story__dek { margin-top: 0; }
.blog-top__col { display: grid; gap: 16px; align-content: start; }
.blog-top__label { font-size: 16px; line-height: 19px; font-weight: 500; color: var(--ink); }

/* ---------- Topic bands ---------- */
/* Alma's topic band: a 3px rule, a 27/36 title with an italic line, then a 392px lead story and rows of 112 x 63 thumbnails. */
.topic-band { padding: 0 0 64px; }
/* Two bands sit on Dusty Blush, so the long blog index keeps Dara's light/blush rhythm. */
.topic-band--tint { margin-bottom: 64px; padding-top: 48px; background: var(--dusty-blush); }
.topic-band--tint .topic-band__head { border-top-color: rgba(61, 16, 32, .12); }
/* The fourth and fifth topics sit on Deep Wine and Burgundy, so the index alternates light, blush and dark as Dara's document asks. */
.topic-band--dark { margin-bottom: 64px; padding-top: 48px; }
.topic-band--dark .topic-band__head { border-top-color: rgba(255, 255, 255, .2); }
.topic-band--dark :is(.story__title, .topic-band__title a) { color: var(--white); }
.topic-band--dark :is(.topic-band__dek, .story__dek) { color: rgba(255, 255, 255, .8); }
.topic-band--dark :is(.topic-band__all, .story__eyebrow) { color: var(--rose); }
.topic-band--dark :is(.story--row, .story--text) { border-top-color: rgba(255, 255, 255, .2); }
.topic-band__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.topic-band--aside .topic-band__layout { grid-template-columns: minmax(0, 1fr) 300px; }
.topic-band__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 40px; padding-top: 16px; border-top: 3px solid var(--line); }
.topic-band__title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 36px; letter-spacing: -.3px; }
.topic-band__title a { text-decoration: none; }
.topic-band__dek { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 31px; color: var(--muted); }
.topic-band__all { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--plum); text-decoration: none; }
.topic-band__all .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.topic-band__all:hover .icon { transform: translateX(4px); }
.topic-band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; }
.topic-band__list { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; align-content: start; }
.topic-band--aside .topic-band__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.topic-band--aside .topic-band__list { grid-column: auto; grid-template-columns: minmax(0, 1fr); }

.side-promo { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; align-self: stretch; padding: 32px 24px; border-radius: 4px; background: var(--burgundy); color: var(--white); }
.side-promo__title { font-family: var(--serif); font-weight: 300; font-size: 27px; line-height: 38px; color: var(--white); }
.side-promo__title em { color: var(--rose); }
.side-promo p:not(.side-promo__title) { font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.side-promo .avatar-stack { margin: auto 0 4px; }
.side-promo .btn { height: 48px; padding: 0 16px; border-radius: 4px; font-size: 16px; }
.side-promo .avatar-stack img { width: 56px; height: 56px; }

/* Alma's in-feed promos: a 247px band, a 205px square tile and a 27/36 title. */
.promo-banner { display: flex; align-items: center; justify-content: center; gap: 48px; min-height: 247px; margin: 0 0 64px; padding: 21px 36px; border-radius: 4px; background: var(--promo); }
.promo-banner > div { flex: 0 1 443px; }
.promo-banner--berry { background: var(--burgundy); }
.promo-banner--center { justify-content: center; text-align: center; flex-direction: column; gap: 12px; padding: 40px; background: var(--rose); }
/* In the stacked layout the copy keeps its own height; the 443px basis is a width in the row layout. */
.promo-banner--center > div { flex: none; }
.promo-banner__art { display: grid; place-items: center; flex: none; width: 205px; height: 205px; border-radius: 4px; background: var(--white); color: var(--plum); }
.promo-banner__art .icon { width: 64px; height: 64px; animation: bob 6s ease-in-out infinite; }
.promo-banner__title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 36px; }
.promo-banner p:not(.promo-banner__title) { margin-top: 8px; font-size: 18px; line-height: 27px; color: var(--text); }
.promo-banner--center p:not(.promo-banner__title) { color: var(--ink); }
.promo-banner--berry p:not(.promo-banner__title) { color: rgba(255, 255, 255, .9); }
.promo-banner .btn { flex: none; height: 48px; padding: 0 16px; }
@keyframes bob { 50% { transform: translateY(-6px); } }

/* ---------- Topic pages and later pages ---------- */
.blog-list { padding: 24px 0 72px; }
.blog-list__head { margin-bottom: 36px; }
.blog-list__title { font-family: var(--serif); font-weight: 300; font-size: 52px; letter-spacing: -1px; color: var(--plum); }
.blog-list__dek { margin-top: 6px; font-family: var(--serif-text); font-style: italic; font-size: 22px; color: var(--muted); }
.blog-list__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; }
.blog-list__grid .story--card .story__title { font-size: 22px; }
.empty { font-size: 18px; }

/* ---------- Article ---------- */
/* The article sits on Dusty Blush, with the photo bridging an Deep Wine band.
   The title card and the reading column are white sheets of the same width, so the text stays easy to read. */
.article2 { background: var(--dusty-blush); }
.article-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--wine) 0, var(--wine) 340px, transparent 340px); }
.article-hero__inner { display: flex; flex-direction: column; align-items: center; max-width: calc(1062px + var(--gutter) * 2); }
.article-hero__media { width: 100%; aspect-ratio: 1062 / 597; overflow: hidden; border-radius: 8px; background: var(--cream); }
.article-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.article-hero__card { position: relative; width: min(750px, calc(100% - 106px)); margin-top: -170px; padding: 32px 40px; border-radius: 8px; background: var(--white); box-shadow: 0 8px 24px rgba(61, 16, 32, .08); animation: cardIn 1.1s var(--ease) .15s both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(32px); } }
.article-hero__eyebrow { display: flex; gap: 8px; font-size: 16px; line-height: 19px; font-weight: 500; color: var(--gold-ink); }
.article-hero__eyebrow a { text-decoration: none; }
.article-hero__eyebrow a:hover { text-decoration: underline; }
.article-hero__title { margin-top: 16px; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 55px; letter-spacing: -.88px; color: var(--plum); text-wrap: balance; }
.article-hero__dek { margin-top: 16px; font-size: 18px; line-height: 27px; color: var(--text); }
.article-hero--plain .article-hero__card { margin: 0; }

.article2__layout { display: grid; grid-template-columns: 217px minmax(0, 750px) 217px; gap: 48px; justify-content: center; padding-bottom: 64px; }
.article2__body { grid-column: 2; grid-row: 1; padding: 48px 56px 56px; border-radius: 8px; background: var(--white); }
.article-rail { grid-column: 3; grid-row: 1; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.article-rail dl { display: grid; gap: 18px; margin: 0; }
.article-rail dt, .article-rail__label { font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); }
.article-rail dd { margin: 2px 0 0; font-size: 15px; color: var(--ink); }
.article-rail__label { margin-top: 28px; }
.article-rail__share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.article-rail__share a, .article-rail__share button { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); color: var(--plum); transition: background-color .25s, color .25s, border-color .25s; }
.article-rail__share a:hover, .article-rail__share button:hover { border-color: var(--plum); background: var(--plum); color: var(--white); }
.article-rail__share li { position: relative; }
.article-rail__share .icon { width: 16px; height: 16px; }
.article-rail__copied { position: absolute; left: 50%; top: calc(100% + 6px); translate: -50% 0; white-space: nowrap; font-size: 12px; color: var(--plum); }

.prose--article2 { font-family: var(--serif); font-weight: 300; font-size: 20px; line-height: 35px; color: var(--ink); }
.prose--article2 > p:first-child::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--serif); font-size: 68px; line-height: .8; color: var(--plum); }
.prose--article2 h2 { margin-top: 54px; font-family: var(--serif); font-weight: 500; font-size: 36px; line-height: 48px; letter-spacing: -.5px; color: var(--ink); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose--article2 h3 { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.prose--article2 blockquote { margin: 1.8em 0; padding: 28px 32px; border: 0; border-radius: 8px; background: var(--promo); font-family: var(--serif); font-style: normal; font-weight: 300; font-size: 26px; line-height: 1.4; color: var(--plum); }
.prose--article2 .article-figure { margin: 24px 0 40px; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 4px; }
.article-figure img { width: 100%; height: 100%; object-fit: cover; }
.inline-promo { display: flex; align-items: center; gap: 24px; margin: 40px 0; padding: 20px; border-left: 3px solid var(--gold); border-radius: 0 4px 4px 0; background: var(--burgundy); font-family: var(--sans); font-weight: 400; }
.inline-promo__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 29px; color: var(--white); }
.inline-promo p:not(.inline-promo__title) { margin-top: 4px !important; font-size: 16px; line-height: 24px; color: rgba(255, 255, 255, .9); }
.inline-promo .btn { flex: none; height: 48px; padding: 0 16px; border-radius: 4px; font-size: 16px; }

.article-faq { margin-top: 48px; padding-top: 48px; }
.article-faq__title { margin-bottom: 24px; font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 19px; }
.article-faq .faq__list { border-top: 0; display: grid; gap: 12px; }
.article-faq .faq-item { border: 1px solid var(--line); border-radius: 4px; }
.article-faq .faq-item__q button { padding: 16px; font-size: 16px; line-height: 24px; font-weight: 500; }
.article-faq .faq-item__q .icon { width: 24px; height: 24px; padding: 4px; }
.article-faq .faq-item__a { padding: 6px 16px 16px; font-size: 16px; line-height: 24px; }

.take-action { margin-top: 48px; padding: 16px; border-radius: 8px; background: var(--plum-grad); color: var(--white); }
.take-action .eyebrow { margin-bottom: 4px; color: var(--blush); }
.take-action__title { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 29px; }
.take-action p:not(.eyebrow) { margin-top: 16px; font-size: 18px; line-height: 27px; color: rgba(255, 255, 255, .86); }
.take-action__buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.take-action .btn { height: 48px; padding: 0 16px; border-radius: 4px; }
.take-action .btn--solid { background: var(--white); color: var(--plum); }
.take-action .btn--light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .5); }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.article-tags a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; text-decoration: none; }
.article-tags a:hover { border-color: var(--plum); color: var(--plum); }

/* Alma's related list: 150 x 84 thumbnails beside 22/31 titles, in the 638px reading column,
   on Burgundy so it reads as its own band after the Dusty Blush article. */
.related { margin-bottom: 64px; padding: 56px 0 64px; background: var(--burgundy); color: var(--white); }
.related .related__title, .related .story__title { color: var(--white); }
.related .story__eyebrow { color: var(--rose); }
.related .story__dek { color: rgba(255, 255, 255, .88); }
.related .container { max-width: calc(638px + var(--gutter) * 2); }
.related__title { margin-bottom: 48px; font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 19px; }
.related__grid { display: grid; gap: 24px; }
.related .story--card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.related .story--card:last-child { padding-bottom: 0; border-bottom: 0; }
.related .story--card .story__media { margin: 0; aspect-ratio: 150 / 84; border-radius: 2px; }
.related .story--card .story__eyebrow { font-size: 12px; line-height: 18px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.blog-top__grid { grid-template-columns: 1fr 1fr; }
	.blog-top__lead { grid-column: 1 / -1; }
	.topic-band--aside .topic-band__layout { grid-template-columns: 1fr; }
	.article2__layout { grid-template-columns: minmax(0, 750px); gap: 32px; }
	.article2__body, .article-rail { grid-column: 1; grid-row: auto; }
	.article-rail { position: static; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(61, 16, 32, .12); }
	.article-rail dl { display: flex; flex-wrap: wrap; gap: 14px 28px; }
	.article-rail__label { display: none; }
	.article-rail__share { margin-top: 0; }
}

@media (max-width: 860px) {
	.blog-bar { padding: 32px 0; }
	.blog-bar__title { font-size: 32px; line-height: 40px; }
	.blog-bar__topics { width: 100%; margin-inline: calc(var(--gutter) * -1); }
	.blog-bar__topics ul { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--gutter); scrollbar-width: none; }
	.blog-bar__topics li { flex: none; }
	.blog-top__grid, .topic-band__grid, .topic-band--aside .topic-band__grid, .blog-list__grid, .related__grid { grid-template-columns: 1fr; gap: 28px; }
	.blog-top__lead .story--feature .story__title, .story--feature .story__title { font-size: 24px; line-height: 33px; }
	.topic-band { padding: 0 0 48px; }
	:is(.topic-band--tint, .topic-band--dark) { margin-bottom: 48px; padding-top: 32px; }
	.topic-band__list { grid-column: auto; grid-template-columns: 1fr; }
	.topic-band__title { font-size: 24px; line-height: 32px; }
	.topic-band__dek { font-size: 18px; line-height: 26px; }
	.topic-band__all { margin-left: 0; width: 100%; }
	.promo-banner { flex-direction: column; align-items: flex-start; gap: 20px; min-height: 0; padding: 24px; margin-bottom: 48px; }
	.promo-banner > div { flex: none; }
	.promo-banner__art { width: 96px; height: 96px; }
	.promo-banner__art .icon { width: 40px; height: 40px; }
	.promo-banner--center { align-items: center; }
	.blog-list__title { font-size: 38px; }
	.article-hero { padding: 20px 0 32px; }
	.article-hero__media { aspect-ratio: 16 / 9; }
	.article-hero__card { width: calc(100% - 24px); margin-top: -48px; padding: 24px 20px; }
	.article-hero__title { font-size: 32px; line-height: 40px; letter-spacing: -.5px; }
	.article-hero__dek { font-size: 16px; line-height: 24px; }
	.article2__layout { padding-top: 8px; padding-bottom: 48px; }
	.article2__body { margin-inline: calc(var(--gutter) * -1); padding: 32px var(--gutter) 40px; border-radius: 0; }
	.prose--article2 { font-size: 18px; line-height: 30px; }
	.prose--article2 h2 { margin-top: 40px; font-size: 28px; line-height: 36px; }
	.prose--article2 blockquote { padding: 22px; font-size: 22px; }
	.inline-promo { flex-direction: column; align-items: flex-start; padding: 20px; }
	.related { margin-bottom: 48px; padding: 40px 0 48px; }
	.related .story--card { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
	.related .story--card .story__title { font-size: 18px; line-height: 26px; }
}
