/*
Theme Name: Studio Lumi (demo)
Theme URI: https://lumi.lukaszzychal.dev/
Author: Łukasz Zychal
Description: Motyw blokowy (FSE) fikcyjnego salonu Studio Lumi, etap 2 ścieżki "od wizytówki do SaaS". Tokeny wyglądu z wizytówki A1 w theme.json. Demo, dane fikcyjne.
Version: 0.3.0
Requires at least: 6.5
Requires PHP: 8.4
License: MIT
Text Domain: lumi
*/

/* Style poza theme.json: tylko to, czego theme.json nie wyrazi. */
.lumi-demo-banner { text-transform: uppercase; letter-spacing: 0.08em; }
.lumi-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.lumi-header > * { margin-block: 0; } /* baner demo i pasek nawigacji w jednym <header> bez dodatkowego odstępu */
.lumi-footer a { color: inherit; }
.lumi-hero { border-radius: 8px; overflow: hidden; }
.lumi-hero p { max-width: 40rem; }
/* Tekst na zdjęciu: przyciemnienie mocniejsze po stronie tekstu (kontrast AA), zdjęcie po prawej zostaje jasne. Kolor z palety (inverse). */
.lumi-hero .wp-block-cover__background { background: linear-gradient(90deg, rgb(61 44 37 / .9) 0%, rgb(61 44 37 / .8) 45%, rgb(61 44 37 / .2) 100%) !important; opacity: 1 !important; }
@media (max-width: 781px) {
	.lumi-hero .wp-block-cover__background { background: linear-gradient(0deg, rgb(61 44 37 / .9) 0%, rgb(61 44 37 / .78) 55%, rgb(61 44 37 / .3) 100%) !important; }
}
.lumi-hero h1 { max-width: 22ch; }
.wp-block-navigation a { text-decoration: none; }
.wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Gallery: one column on phones, two on tablets, the uneven 12-column rhythm of the A1 site on desktop. */
.lumi-gallery__grid { display: grid; gap: 1rem; margin-top: 2rem; }
.lumi-gallery__grid > * { margin: 0; }
.lumi-gallery__grid figure { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--wp--preset--color--surface-low); }
.lumi-gallery__grid img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.lumi-gallery__grid figcaption { margin: 0; padding: 1rem; text-align: left; color: inherit; font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--title); line-height: 1.3; }
.lumi-gallery__grid figcaption em { font-family: var(--wp--preset--font-family--sans); font-size: var(--wp--preset--font-size--label); font-style: normal; color: var(--wp--preset--color--ink-muted); }
@media (min-width: 640px) { .lumi-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.lumi-gallery__grid { grid-template-columns: repeat(12, 1fr); }
	.lumi-gallery__grid figure:nth-child(6n + 1), .lumi-gallery__grid figure:nth-child(6n + 5) { grid-column: span 5; }
	.lumi-gallery__grid figure:nth-child(6n + 2), .lumi-gallery__grid figure:nth-child(6n) { grid-column: span 3; }
	.lumi-gallery__grid figure:nth-child(6n + 3), .lumi-gallery__grid figure:nth-child(6n + 4) { grid-column: span 4; }
	.lumi-gallery__grid img { aspect-ratio: auto; height: 18rem; }
}

.lumi-privacy { margin-block: .25rem 0; font-size: var(--wp--preset--font-size--small); }

/* Articles: the same quiet rows as the price list. */
.lumi-articles ul { margin: 0; padding: 0; list-style: none; }
.lumi-articles li { padding-block: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.lumi-articles li > * { margin-block: 0 .375rem; }
.lumi-articles h2 a { text-decoration: none; }
.lumi-articles h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lumi-article .wp-block-image img { width: 100%; height: auto; border-radius: 8px; }
.lumi-article h2 { font-size: var(--wp--preset--font-size--heading-md); margin-top: 2rem; }
