/* Home page (FLO-979). Ported from docs/design/home.html. Tokens come from theme.json.
   The two :where() rules below work around theme.json: WordPress names the h2 and h3 sizes --h-2 and --h-3,
   so the element styles that ask for --h2 and --h3 fall back to 14px. Remove them when theme.json is fixed. */

.st-home { --st-gutter: var(--wp--custom--gutter); }
.st-home > * { margin-block: 0; }
.st-home :where(h2) { font-size: var(--wp--preset--font-size--h-2); }
.st-home :where(h3) { font-size: 1.25rem; }
.st-wrap { max-width: var(--wp--style--global--wide-size, 72rem); margin-inline: auto; }
.st-section { padding: clamp(48px, 7vw, 88px) var(--st-gutter); } /* side padding and margin come from style.css (full-bleed bands) */
.st-section--subtle { background: var(--st-subtle); }
.st-home .st-section-head { align-items: flex-end; }
.st-home .st-section-head .wp-block-buttons { margin: 0; }
.st-eyebrow, .st-home-eyebrow { font-size: var(--wp--preset--font-size--xs); font-weight: 600; letter-spacing: 0.02em; color: var(--st-ink-2); margin: 0; }
.st-home .price { font-family: var(--wp--preset--font-family--mono); font-weight: 700; }

/* Small pill button: core button block and the plugin's plain links */
.st-btn-sm .wp-block-button__link, .st-btn-small { padding: 7px 14px; font-size: var(--wp--preset--font-size--xs); }
.st-btn-small { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--wp--custom--radius--pill); background: var(--st-ink); color: var(--wp--preset--color--canvas); font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background var(--st-ease), transform var(--st-ease); }
.st-btn-small:hover { background: var(--st-ink-hover); color: var(--wp--preset--color--canvas); text-decoration: none; }
.st-btn-small.added { background: var(--wp--preset--color--success); }
.st-btn-small.loading { opacity: 0.6; }
.st-home .added_to_cart { display: none; }

/* Hero */
.st-hero { padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.st-chip { display: inline-block; text-align: center; padding: 4px 12px; margin: 0 0 16px; background: var(--st-subtle); border: 1px solid var(--st-hairline); border-radius: 18px; font-size: var(--wp--preset--font-size--xs); line-height: 1.5; color: var(--st-ink-2); }
.st-chip strong { color: var(--st-ink); }
.st-hero__title { max-width: none; margin: 0 auto; font-family: var(--wp--preset--font-family--cindie-mono); font-weight: 400; font-size: min(3.25rem, calc((100vw - 3rem) / 21.5)); line-height: 1.25; letter-spacing: 0; overflow-wrap: normal; }
.st-lead { font-size: var(--wp--preset--font-size--lead); color: var(--st-ink-2); max-width: 40rem; margin: 16px auto 0; }
.st-hero__cta { margin-top: 24px; gap: 10px; }
.st-hero__cta .wp-block-button__link { box-sizing: border-box; min-width: 12rem; border: 1px solid transparent; text-align: center; }
/* Both hero buttons the same size: the outline style gets less padding from core, so set one height for both (Sirla: "Nupud sama suureks"). */
.st-hero__cta .wp-block-button.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 10px 24px; }
.st-hero__cta .is-style-outline .wp-block-button__link { border-color: var(--wp--preset--color--hairline-dark); }
.st-btn-dot .wp-block-button__link::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--st-ink); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.st-btn-dot .wp-block-button__link:hover::before { background: var(--wp--preset--color--canvas); }

.st-home-video { position: relative; margin: 36px auto 0; max-width: 95%; border-radius: var(--wp--custom--radius--media); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--wp--preset--shadow--media); border: 1px solid rgba(0, 0, 0, 0.1); }
.st-home-video img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; display: block; }
.st-home-video__play { position: absolute; inset: 0; display: grid; place-items: center; text-decoration: none; }
.st-home-play { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; font-size: 1.5rem; padding-left: 4px; color: #000; transition: transform var(--st-ease); }
.st-home-video__play:hover .st-home-play { transform: scale(1.06); }
.st-home-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.st-home-video__watch { position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: var(--wp--custom--radius--pill); background: rgba(255, 255, 255, 0.95); color: #000; font: 600 var(--wp--preset--font-size--xs)/1 var(--wp--preset--font-family--inter); text-decoration: none; }
.st-home-video__watch:hover { background: #fff; }
.st-home-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Shop strip */
.st-home-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--st-gutter) 16px; margin: 0 calc(var(--st-gutter) * -1); scroll-padding: 0 var(--st-gutter); scrollbar-width: none; }
.st-home-strip::-webkit-scrollbar { display: none; }
.st-home-card { flex: 0 0 min(224px, 62vw); scroll-snap-align: start; display: flex; flex-direction: column; background: var(--wp--preset--color--canvas); border: 1px solid var(--st-hairline); border-radius: var(--wp--custom--radius--card); overflow: hidden; transition: border-color var(--st-ease); }
.st-home-card:hover { border-color: var(--st-ink); }
/* Same look as the shop cards (.pcard__media, 16 Nov 2026): no tile behind the picture, so the card's own ground shows in light and dark; every picture whole (contain, blend normal) in the same padded square, so the strip stays level. */
.st-home-card__media { box-sizing: border-box; display: grid; place-items: center; aspect-ratio: 1; background: transparent; padding: var(--st-pcard-air); overflow: hidden; }
.st-home-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: normal; display: block; transition: transform 300ms ease; }
.st-home-card:hover .st-home-card__media img { transform: scale(1.05); }
.st-home-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.st-home-card__title { font-size: var(--wp--preset--font-size--small); font-weight: 700; margin: 0; line-height: 1.3; letter-spacing: 0; }
.st-home-card__title a { text-decoration: none; }
.st-home-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--st-hairline); }
.st-home-card__body .st-home-card__title { margin-bottom: 10px; }

/* Tours */
.st-home-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.st-home-pill { padding: 6px 14px; border-radius: var(--wp--custom--radius--pill); border: 1px solid var(--st-hairline-dark); background: var(--wp--preset--color--canvas); font: 600 var(--wp--preset--font-size--xs)/1 var(--wp--preset--font-family--inter); color: var(--st-ink); cursor: pointer; transition: background var(--st-ease), color var(--st-ease), border-color var(--st-ease); }
.st-home-pill:hover { border-color: var(--st-ink); }
.st-home-pill[aria-pressed="true"] { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); }
.st-home-tour { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid var(--st-hairline); }
.st-home-tour:last-child { border-bottom: 1px solid var(--st-hairline); }
.st-home-tour[hidden] { display: none; }
.st-home-tour h3 { margin: 0; }
.st-home-tour__date { text-align: center; background: var(--st-subtle); border: 1px solid var(--st-hairline); border-radius: 14px; padding: 8px 0; line-height: 1.1; }
.st-home-tour__date b { display: block; font-size: 1.5rem; letter-spacing: -0.02em; }
.st-home-tour__date span { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); font-weight: 600; text-transform: uppercase; }
.st-home-tour__meta { color: var(--st-ink-2); font-size: var(--wp--preset--font-size--small); margin: 2px 0 0; }
.st-home-tour--img { grid-template-columns: 72px 1fr; }
.st-home-tour--img .st-home-tour__img { grid-column: 1 / -1; order: -1; aspect-ratio: 16 / 9; }
.st-home-tour__flag { margin-right: 2px; }
.st-home-tour__img { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--st-subtle); }
.st-home-tour__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-home-tour__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.st-home-seats { font-size: var(--wp--preset--font-size--xs); font-weight: 600; color: var(--st-ink-2); }
.st-home-seats--low { color: var(--st-ink); }
.st-home-empty { margin: 0; padding: 24px; border: 1px solid var(--st-hairline); border-radius: var(--wp--custom--radius--card); background: var(--st-subtle); color: var(--st-ink-2); }
@media (min-width: 720px) {
	.st-home-tour { grid-template-columns: 72px 1fr auto; }
	.st-home-tour--img { grid-template-columns: 72px 160px 1fr auto; }
	.st-home-tour--img .st-home-tour__img { grid-column: auto; order: 0; aspect-ratio: 4 / 3; }
	.st-home-tour__side { grid-column: auto; justify-content: flex-end; gap: 20px; flex-wrap: nowrap; }
}

/* Mission, reel and next festival */
.st-mission { display: grid; gap: 32px; grid-template-areas: "text" "reel" "next"; }
.st-mission > .st-mission__text { grid-area: text; }
.st-mission > .st-home-reel { grid-area: reel; }
.st-mission > .st-next { grid-area: next; }
.st-mission__line { font-size: clamp(1.5rem, 2.4vw + 0.8rem, 2.5rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
.st-mission__line em { font-style: normal; color: var(--st-ink-3); }
.st-mission__text .wp-block-buttons { margin-top: 24px; }
.st-mission__text .st-eyebrow { margin-bottom: 8px; }
.st-next { background: var(--wp--preset--color--canvas); border: 1px solid var(--st-hairline); border-radius: var(--wp--custom--radius--card); padding: 24px; display: grid; gap: 12px; align-content: start; }
.st-next > * { margin: 0; }
.st-next__link a { font-weight: 600; color: var(--st-ink); }
.st-home-years { display: flex; flex-wrap: wrap; gap: 6px; }
.st-home-years a { font-size: var(--wp--preset--font-size--xs); font-weight: 600; font-family: var(--wp--preset--font-family--mono); padding: 4px 8px; border: 1px solid var(--st-hairline-dark); border-radius: 8px; text-decoration: none; }
.st-home-years a:hover { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); }

.st-home-reel { position: relative; border-radius: var(--wp--custom--radius--media); overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.st-home-reel__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms ease; }
.st-home-reel__slide[data-on="true"] { opacity: 1; }
.st-home-reel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-home-reel__year { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #000; border-radius: var(--wp--custom--radius--pill); padding: 8px 16px; font: 700 var(--wp--preset--font-size--small)/1 var(--wp--preset--font-family--mono); text-decoration: none; }
.st-home-reel__dots { position: absolute; right: 16px; bottom: 20px; display: flex; gap: 6px; }
.st-home-reel__dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.5); cursor: pointer; }
.st-home-reel__dots button[aria-current="true"] { background: #fff; }
@media (min-width: 900px) {
	.st-mission { grid-template-columns: 1fr 1fr; grid-template-areas: "text next"; gap: 32px 56px; align-items: start; }
	.st-mission:has(.st-home-reel) { grid-template-areas: "text reel" "next reel"; }
	.st-mission .st-home-reel { aspect-ratio: auto; height: 100%; min-height: 440px; }
}

/* Artists */
.st-home-artists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 900px) { .st-home-artists { grid-template-columns: repeat(4, 1fr); } }
.st-home-artist { position: relative; display: block; text-decoration: none; border-radius: var(--wp--custom--radius--card); overflow: hidden; border: 1px solid var(--st-hairline); background: var(--st-subtle); aspect-ratio: 4 / 5; }
.st-home-artist img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.st-home-artist:hover img { transform: scale(1.05); }
.st-home-artist__label { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 16px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0)); }
.st-home-artist__label b { display: block; font-size: 1.0625rem; letter-spacing: -0.01em; }
.st-home-artist__label span { font-size: var(--wp--preset--font-size--xs); opacity: 0.8; }
.st-home-star { position: absolute; top: 12px; left: 12px; background: #fff; color: #000; border-radius: var(--wp--custom--radius--pill); font-size: 11px; font-weight: 700; padding: 4px 10px; }
