/* About TrendLife — editorial page built on the theme's tokens (--ink, --paper, --linen, --stone, --taupe, --deep, --blue, --f-display, --f-serif, --f-sans, --wrap, --gutter).
   Layout: a cover-style opening, a dated story told down a single rule, the print covers as evidence,
   the manifesto for what's next, the founder in his own words, then a dark call-to-action band. */

.tla { --tla-rule: var(--stone, #d8cdbc); color: var(--ink, #1c1a17); }
.tla > * { margin: 0; }
.tla .tla-wrap { max-width: calc(var(--wrap, 1200px) + var(--gutter, 24px) * 2); margin-inline: auto; padding-inline: var(--gutter, 24px); }
.tla .tla-narrow { max-width: calc(760px + var(--gutter, 24px) * 2); }
.tla h1, .tla h2, .tla h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.05; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
.tla p { font-family: var(--f-serif); font-size: 1.125rem; line-height: 1.7; margin: 0; }
.tla .tla-kicker { font-family: var(--f-sans); font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--deep); margin: 0 0 1rem; }
.tla section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.tla section + section { border-top: 1px solid var(--tla-rule); }

/* Opening */
.tla .tla-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); }
.tla .tla-hero .tla-wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.tla .tla-hero h1 { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: .98; margin-bottom: 1.5rem; }
.tla .tla-hero h1 em { font-style: italic; color: var(--deep); }
.tla .tla-hero p { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); color: var(--taupe); max-width: 34em; }
.tla .tla-hero__stack { position: relative; aspect-ratio: 4 / 5; max-width: 420px; justify-self: end; width: 100%; }
.tla .tla-hero__stack img { position: absolute; width: 62%; height: auto; box-shadow: 0 20px 50px rgba(28,26,23,.22); }
.tla .tla-hero__stack img:nth-child(1) { left: 0; top: 8%; transform: rotate(-5deg); }
.tla .tla-hero__stack img:nth-child(2) { left: 19%; top: 0; transform: rotate(1deg); z-index: 2; }
.tla .tla-hero__stack img:nth-child(3) { right: 0; top: 12%; transform: rotate(6deg); }

/* Numbers */
.tla .tla-stats { padding-block: 0; border-top: 1px solid var(--tla-rule); border-bottom: 1px solid var(--tla-rule); }
.tla .tla-stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.tla .tla-stats li { padding: 1.75rem 1rem; text-align: center; }
.tla .tla-stats li + li { border-left: 1px solid var(--tla-rule); }
.tla .tla-stats strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; font-variant-numeric: lining-nums; }
.tla .tla-stats span { display: block; margin-top: .5rem; font-family: var(--f-sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }

/* Story timeline */
.tla .tla-head { display: grid; gap: .25rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); max-width: 40ch; }
.tla .tla-head h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); }
.tla .tla-timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--ink); margin-left: 7.5rem; }
.tla .tla-timeline li { position: relative; padding: 0 0 2.75rem 2.25rem; max-width: 46rem; }
.tla .tla-timeline li:last-child { padding-bottom: 0; }
.tla .tla-timeline li::before { content: ""; position: absolute; left: -5px; top: .65rem; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); }
.tla .tla-timeline li.is-now::before { background: var(--deep); border-color: var(--deep); }
.tla .tla-timeline time { position: absolute; left: -7.5rem; top: 0; width: 6rem; text-align: right; font-family: var(--f-display); font-size: 1.75rem; line-height: 1; font-variant-numeric: lining-nums; }
.tla .tla-timeline time.is-range { font-size: 1.375rem; top: .2rem; }
.tla .tla-timeline h3 { font-size: 1.625rem; margin-bottom: .5rem; }
.tla .tla-timeline p { color: #3d3833; }

/* Print covers */
.tla .tla-archive { background: var(--linen); }
.tla .tla-covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 1.5rem); }
.tla .tla-covers a { display: block; text-decoration: none; color: var(--ink); }
.tla .tla-covers img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 1703; object-fit: cover; box-shadow: 0 10px 28px rgba(28,26,23,.16); transition: transform .4s var(--ease, ease); }
.tla .tla-covers a:hover img { transform: translateY(-4px); }
.tla .tla-covers span { display: block; margin-top: .75rem; font-family: var(--f-sans); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--taupe); }
.tla .tla-archive__more { margin-top: 2rem; font-family: var(--f-sans); font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.tla .tla-archive__more a { color: var(--deep); text-underline-offset: 5px; }

/* What's next */
.tla .tla-next .tla-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.tla .tla-next .tla-head { margin-bottom: 1.25rem; }
.tla .tla-next__lead p + p { margin-top: 1rem; }
.tla .tla-pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); }
.tla .tla-pillars li { padding: 1.5rem 1.5rem 1.75rem 0; border-bottom: 1px solid var(--tla-rule); }
.tla .tla-pillars li:nth-child(even) { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--tla-rule); }
.tla .tla-pillars h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.tla .tla-pillars p { font-size: 1rem; line-height: 1.6; color: #3d3833; }

/* Founder */
.tla .tla-founder .tla-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tla .tla-founder__photo { margin: 0; position: sticky; top: 90px; }
.tla .tla-founder__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--linen); }
.tla .tla-founder__media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-self: start; }
.tla .tla-founder__media .tla-founder__photo { grid-column: 1 / -1; position: static; }
.tla .tla-founder__thumb { margin: 0; }
.tla .tla-founder__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: var(--linen); }
.tla .tla-founder__thumb figcaption { margin-top: .5rem; font-family: var(--f-sans); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--taupe); }
.tla .tla-founder__photo.is-avatar img { filter: grayscale(.15); }
.tla .tla-founder h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); margin-bottom: .35rem; }
.tla .tla-founder__role { font-family: var(--f-sans); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); margin-bottom: 2rem; }
.tla .tla-founder__body p + p { margin-top: 1.1rem; }
.tla .tla-quote { margin: 2.25rem 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--deep); }
.tla .tla-quote p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.25; color: var(--ink); }
.tla .tla-founder__facts { list-style: none; margin: 2.25rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--tla-rule); display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-family: var(--f-sans); font-size: .875rem; color: var(--taupe); }
.tla .tla-founder__facts strong { color: var(--ink); font-weight: 500; }
.tla .tla-founder__sign { margin-top: 2rem; font-family: var(--f-display); font-style: italic; font-size: 1.75rem; }

/* Call to action */
.tla .tla-cta { background: var(--ink); color: var(--paper); text-align: center; }
.tla .tla-cta h2 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); color: var(--paper); margin-bottom: 1rem; }
.tla .tla-cta p { color: #cfc7bb; max-width: 36em; margin-inline: auto; }
.tla .tla-cta .tla-kicker { color: var(--blue); }
.tla .tla-cta__buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.tla .tla-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 1.5rem; font-family: var(--f-sans); font-size: .8125rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--paper); color: var(--ink); background: var(--paper); transition: background-color .2s, color .2s; }
.tla .tla-btn:hover { background: transparent; color: var(--paper); }
.tla .tla-btn--ghost { background: transparent; color: var(--paper); }
.tla .tla-btn--ghost:hover { background: var(--paper); color: var(--ink); }
.tla a:focus-visible { outline: 2px solid var(--deep); outline-offset: 3px; }
.tla .tla-cta a:focus-visible { outline-color: var(--paper); }

/* Narrow screens */
@media (max-width: 900px) {
	.tla .tla-hero .tla-wrap, .tla .tla-next .tla-wrap, .tla .tla-founder .tla-wrap { grid-template-columns: 1fr; }
	.tla .tla-hero__stack { justify-self: center; max-width: 340px; }
	.tla .tla-founder__photo { position: static; }
	.tla .tla-founder__media { max-width: 480px; }
	.tla .tla-covers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tla .tla-stats ul { grid-template-columns: 1fr 1fr; }
	.tla .tla-stats li:nth-child(3) { border-left: 0; }
	.tla .tla-stats li:nth-child(n+3) { border-top: 1px solid var(--tla-rule); }
}
@media (max-width: 600px) {
	.tla .tla-timeline { margin-left: 0; border-left: 0; }
	.tla .tla-timeline li { padding: 0 0 2.25rem; border-top: 1px solid var(--tla-rule); padding-top: 1.25rem; }
	.tla .tla-timeline li::before { display: none; }
	.tla .tla-timeline time, .tla .tla-timeline time.is-range { position: static; font-size: 1.75rem; display: block; width: auto; text-align: left; margin-bottom: .5rem; color: var(--deep); }
	.tla .tla-pillars { grid-template-columns: 1fr; }
	.tla .tla-pillars li:nth-child(even) { padding-left: 0; border-left: 0; }
	.tla .tla-covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tla .tla-covers img { transition: none; } }
