/*
 * Libra AIMA — Blog. Quiet-luxury editorial: paper background, deep ink,
 * hairline rules, Newsreader for reading, Nunito (the site's own face) for
 * small labels, every photo in grayscale with a faint film grain.
 */
:root {
	--lb-paper: #f7f6f2;
	--lb-paper-2: #efede7;
	--lb-ink: #16171b;
	--lb-ink-2: #3a3c43;
	--lb-muted: #75767c;
	--lb-rule: #d9d6ce;
	--lb-accent: linear-gradient(90deg, #3db5e6, #0d0db5);
	--lb-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--lb-sans: "Nunito", system-ui, -apple-system, sans-serif;
	--lb-wide: 1180px;
	--lb-narrow: 700px;
	--lb-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
body.lb-journal {
	margin: 0;
	background: var(--lb-paper);
	color: var(--lb-ink);
	font-family: var(--lb-serif);
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.lb-journal a { color: inherit; }
.lb-journal img { max-width: 100%; height: auto; display: block; }

/* Small labels */
.lb-eyebrow, .lb-kicker, .lb-meta, .lb-masthead__bar, .lb-masthead__cta, .lb-colophon {
	font-family: var(--lb-sans);
	font-size: 11.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.lb-eyebrow { margin: 0 0 14px; color: var(--lb-muted); font-weight: 800; display: inline-flex; align-items: center; gap: 12px; }
.lb-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--lb-accent); }
.lb-kicker { margin: 0 0 12px; color: var(--lb-muted); font-weight: 800; display: flex; flex-wrap: wrap; gap: 14px; }
.lb-kicker a { text-decoration: none; }
.lb-kicker span + span::before, .lb-kicker a + span::before { content: "—"; margin-right: 14px; color: var(--lb-rule); }
.lb-meta { margin: 14px 0 0; color: var(--lb-muted); font-weight: 600; letter-spacing: .1em; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Masthead */
.lb-masthead { border-bottom: 1px solid var(--lb-ink); background: var(--lb-paper); }
.lb-masthead__bar {
	max-width: var(--lb-wide); margin: 0 auto; padding: 10px 24px;
	display: flex; justify-content: space-between; color: var(--lb-muted); font-weight: 600;
	border-bottom: 1px solid var(--lb-rule);
}
.lb-masthead__main {
	max-width: var(--lb-wide); margin: 0 auto; padding: 22px 24px;
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.lb-masthead__logo img { width: 150px; filter: brightness(0); opacity: .88; }
.lb-masthead__title {
	font-family: var(--lb-serif); font-style: italic; font-weight: 300;
	font-size: 40px; line-height: 1; letter-spacing: -.01em; text-decoration: none;
}
.lb-masthead__cta {
	justify-self: end; text-decoration: none; font-weight: 800; letter-spacing: .14em;
	padding: 10px 16px; border: 1px solid var(--lb-ink); transition: background .25s, color .25s;
}
.lb-masthead__cta:hover { background: var(--lb-ink); color: var(--lb-paper); }

/* Photos: grayscale + faint grain, everywhere */
.lb-figure { position: relative; margin: 0; overflow: hidden; background: var(--lb-paper-2); }
.lb-figure img {
	width: 100%; height: 100%; object-fit: cover;
	filter: grayscale(1) contrast(1.06) brightness(.97);
	transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), filter .6s;
}
.lb-figure::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--lb-grain); opacity: .22; mix-blend-mode: multiply;
}

/* Blog index */
.lb-index { max-width: var(--lb-wide); margin: 0 auto; padding: 56px 24px 80px; }
.lb-index__head { text-align: center; padding-bottom: 40px; margin-bottom: 44px; border-bottom: 1px solid var(--lb-rule); }
.lb-index__title { margin: 0; font-weight: 300; font-size: clamp(48px, 8vw, 96px); line-height: .95; letter-spacing: -.03em; }
.lb-index__deck { margin: 18px auto 0; max-width: 560px; font-size: 19px; line-height: 1.55; font-style: italic; color: var(--lb-ink-2); }
.lb-empty { text-align: center; font-style: italic; color: var(--lb-muted); }

.lb-card__link { display: block; text-decoration: none; }
.lb-card__link:hover .lb-figure img { transform: scale(1.025); filter: grayscale(1) contrast(1.12) brightness(.95); }
.lb-card__title { margin: 0; font-weight: 400; line-height: 1.18; letter-spacing: -.01em; }
.lb-card__link:hover .lb-card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.lb-card--lead { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--lb-rule); }
.lb-card--lead .lb-card__link { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.lb-card--lead .lb-figure { aspect-ratio: 3 / 2; }
.lb-card--lead .lb-card__title { font-size: clamp(30px, 3.4vw, 46px); }
.lb-card__deck { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--lb-ink-2); }

/* Equal columns: the gap carries the spacing, the hairline sits in it. */
.lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 56px; }
.lb-grid > .lb-card { position: relative; }
.lb-grid > .lb-card:not(:nth-child(3n + 1))::before { content: ""; position: absolute; top: 0; bottom: 0; left: -28px; border-left: 1px solid var(--lb-rule); }
.lb-card--card .lb-figure { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.lb-card--card .lb-card__title { font-size: 23px; }
.lb-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-grid--two > .lb-card::before { display: none; }
.lb-grid--two > .lb-card:nth-child(2n)::before { display: block; }

.lb-pagination { margin-top: 56px; text-align: center; font-family: var(--lb-sans); font-size: 13px; letter-spacing: .1em; }
.lb-pagination .page-numbers { display: inline-block; padding: 6px 10px; text-decoration: none; }
.lb-pagination .current { border-bottom: 1px solid var(--lb-ink); }

/* Article */
.lb-article { padding: 56px 24px 80px; }
.lb-article__head { max-width: var(--lb-narrow); margin: 0 auto; text-align: center; }
.lb-article__head .lb-kicker, .lb-article__head .lb-meta { justify-content: center; }
.lb-article__title { margin: 0; font-weight: 400; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.lb-article__deck { margin: 22px auto 0; font-size: 21px; line-height: 1.5; font-style: italic; font-weight: 300; color: var(--lb-ink-2); text-wrap: pretty; }
.lb-article__figure { max-width: 1040px; margin: 44px auto 0; aspect-ratio: 3 / 2; }

.lb-prose { max-width: var(--lb-narrow); margin: 52px auto 0; font-size: 20px; line-height: 1.75; color: var(--lb-ink); }
.lb-prose > p:first-child::first-letter, .lb-prose > .lb-summary + p::first-letter {
	float: left; font-size: 4.6em; line-height: .82; font-weight: 400; padding: 8px 12px 0 0; color: var(--lb-ink);
}
.lb-prose p { margin: 0 0 1.15em; }
.lb-prose h2 { margin: 2.1em 0 .6em; font-weight: 400; font-size: 32px; line-height: 1.2; letter-spacing: -.015em; }
.lb-prose h2::before { content: ""; display: block; width: 40px; height: 1px; background: var(--lb-ink); margin-bottom: 22px; }
.lb-prose h3 { margin: 1.7em 0 .4em; font-family: var(--lb-sans); font-size: 15px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lb-ink-2); }
.lb-prose ul, .lb-prose ol { margin: 0 0 1.2em; padding-left: 1.2em; }
.lb-prose li { margin-bottom: .45em; padding-left: .2em; }
.lb-prose li::marker { color: var(--lb-muted); }
.lb-prose strong { font-weight: 600; }
.lb-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.lb-prose blockquote { margin: 1.6em 0; padding: 22px 0; border-top: 1px solid var(--lb-ink); border-bottom: 1px solid var(--lb-rule); font-size: 26px; line-height: 1.4; font-style: italic; font-weight: 300; }
.lb-prose img, .lb-prose .wp-block-image img { filter: grayscale(1) contrast(1.06); }
.lb-prose figcaption { font-family: var(--lb-sans); font-size: 12px; color: var(--lb-muted); margin-top: 8px; }

.lb-cta {
	max-width: var(--lb-narrow); margin: 64px auto 0; padding: 36px 0;
	border-top: 1px solid var(--lb-ink); border-bottom: 1px solid var(--lb-rule); text-align: center;
}
.lb-cta .lb-eyebrow { justify-content: center; }
.lb-cta__title { margin: 0 0 8px; font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.lb-cta p { margin: 0 0 22px; color: var(--lb-ink-2); font-size: 18px; }
.lb-button {
	display: inline-block; padding: 14px 26px; background: var(--lb-ink); color: var(--lb-paper) !important;
	font-family: var(--lb-sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
	text-decoration: none; transition: opacity .25s;
}
.lb-button:hover { opacity: .85; }

.lb-more { max-width: 1040px; margin: 80px auto 0; }

/* Colophon */
.lb-colophon { border-top: 1px solid var(--lb-ink); padding: 40px 24px 48px; text-align: center; color: var(--lb-muted); font-weight: 600; letter-spacing: .12em; line-height: 2; }
.lb-colophon p { margin: 0; }
.lb-colophon a { text-decoration: none; margin: 0 10px; }
.lb-colophon a:hover { color: var(--lb-ink); }
.lb-colophon__brand { font-family: var(--lb-serif); font-size: 22px; letter-spacing: 0; text-transform: none; font-style: italic; color: var(--lb-ink); margin-bottom: 6px !important; }
.lb-colophon__small { margin-top: 10px !important; font-size: 10.5px; }

/* Titles and descriptions in the site's own face (Nunito, as on the front
   page); long-form body text stays in the serif for reading comfort. */
.lb-masthead__title, .lb-index__title, .lb-index__deck, .lb-card__title, .lb-card__deck,
.lb-article__title, .lb-article__deck, .lb-prose h2, .lb-cta__title, .lb-colophon__brand {
	font-family: var(--lb-sans); font-style: normal;
}
.lb-masthead__title { font-weight: 300; font-size: 34px; letter-spacing: -.02em; }
.lb-index__title { font-weight: 300; letter-spacing: -.04em; }
.lb-index__deck, .lb-article__deck { font-weight: 400; color: var(--lb-muted); }
.lb-card__title { font-weight: 600; letter-spacing: -.015em; line-height: 1.22; }
.lb-card--lead .lb-card__title { font-weight: 300; letter-spacing: -.025em; line-height: 1.12; }
.lb-article__title { font-weight: 300; letter-spacing: -.03em; line-height: 1.08; }
.lb-prose h2 { font-weight: 600; font-size: 28px; letter-spacing: -.02em; }
.lb-cta__title { font-weight: 600; letter-spacing: -.02em; }
.lb-colophon__brand { font-weight: 300; font-size: 20px; letter-spacing: .02em; }

/* "En resumen" box at the top of an article */
.lb-prose .lb-summary { margin: 0 0 2em; padding: 22px 26px; border-left: 2px solid var(--lb-ink); background: var(--lb-paper-2); font-size: 18px; line-height: 1.65; }
.lb-prose .lb-summary p { margin: 0; }
.lb-prose .lb-summary strong { font-family: var(--lb-sans); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; display: block; margin-bottom: 6px; color: var(--lb-muted); }

@media (max-width: 900px) {
	.lb-card--lead .lb-card__link { grid-template-columns: 1fr; gap: 24px; }
	.lb-grid, .lb-grid--two { grid-template-columns: 1fr; }
	.lb-grid, .lb-grid--two { gap: 32px; }
	.lb-grid > .lb-card { padding-bottom: 32px; border-bottom: 1px solid var(--lb-rule); }
	.lb-grid > .lb-card::before, .lb-grid--two > .lb-card:nth-child(2n)::before { display: none; }
	.lb-masthead__main { grid-template-columns: 1fr auto; }
	.lb-masthead__cta { display: none; }
	.lb-masthead__bar span + span { display: none; }
}
@media (max-width: 600px) {
	.lb-masthead__logo img { width: 118px; }
	.lb-masthead__title { font-size: 28px; }
	.lb-prose { font-size: 18.5px; }
	.lb-prose h2 { font-size: 24px; }
	.lb-article__deck { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	.lb-figure img { transition: none; }
	.lb-card__link:hover .lb-figure img { transform: none; }
}
