/* Vangenfestivalen – theme styles on top of theme.json.
 * The 2027 profile from vangenfestivalen.no: sand ground, pink header, navy type and footer,
 * coral accents, the 70s soundwaves, Champ for headings and Inter for text.
 */

:root {
	--vf-sand: var(--wp--preset--color--sand);
	--vf-lys-sand: var(--wp--preset--color--lys-sand);
	--vf-rosa: var(--wp--preset--color--rosa);
	--vf-korall: var(--wp--preset--color--korall);
	--vf-marine: var(--wp--preset--color--marine);
	--vf-champ: var(--wp--preset--font-family--champ);
	--vf-header-h: 72px;
}

body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
::selection { background: var(--vf-rosa); color: var(--vf-marine); }
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--vf-korall); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { text-wrap: balance; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Champ is a display face: it carries the brand in headings, buttons and labels only. */
.wp-element-button, .wp-block-button__link { text-decoration: none; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: inherit; padding-block: calc(0.85rem - 2px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--vf-marine); color: var(--vf-lys-sand); border-color: var(--vf-marine); }

/* ---------- Header: the pink bar ---------- */
.vf-site-header { position: sticky; top: 0; z-index: 50; }
.vf-header { box-shadow: 0 2px 14px rgb(25 40 71 / 0.18); min-height: var(--vf-header-h); display: flex; align-items: center; }
.vf-header > .wp-block-group { width: 100%; }
.vf-logo { display: block; line-height: 0; }
.vf-logo img { width: clamp(96px, 9vw, 128px); height: auto; }
.vf-nav-inline { font-family: var(--vf-champ); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.12em; text-transform: uppercase; }
.vf-nav-inline a { text-decoration: none; padding-block: 0.5rem; }
.vf-nav-inline a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.vf-header-ctas { gap: 0.75rem; }
.vf-header-ctas .wp-block-button__link { font-size: 0.8125rem; padding: 0.7rem 1.25rem; }
.vf-btn-volunteer .wp-block-button__link { padding-block: calc(0.7rem - 2px); }
.vf-nav-menu .wp-block-navigation__responsive-container-open { padding: 8px; color: var(--vf-marine); }
.vf-nav-menu .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.vf-nav-menu .wp-block-navigation__responsive-container.is-menu-open { padding: clamp(1.5rem, 5vw, 4rem); }
.vf-nav-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.4em; }
.vf-nav-menu .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	font-family: var(--vf-champ); font-weight: 900; font-size: clamp(2.25rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: 0.02em;
}
.vf-nav-menu .wp-block-navigation__responsive-container.is-menu-open a:hover { color: var(--vf-rosa); }
@media (max-width: 860px) {
	.vf-nav-inline, .vf-btn-volunteer { display: none !important; }
	.vf-header-right { gap: 0.75rem !important; }
}

/* ---------- Front page hero: soundwaves either side, the 10-year lockup in the middle ---------- */
.vf-hero {
	position: relative; overflow: clip;
	min-height: min(calc(100svh - var(--vf-header-h)), 980px);
	display: grid; place-items: center;
	padding: clamp(5rem, 12vh, 9rem) var(--wp--style--root--padding-left);
}
.vf-wave { position: absolute; top: -6%; height: 112%; width: auto; max-width: none; pointer-events: none; user-select: none; }
.vf-wave--left { left: 0; translate: -52% 0; }
.vf-wave--right { right: 0; translate: 52% 0; }
.vf-hero-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); text-align: center; }
.vf-lockup { width: min(56vw, 640px); height: auto; }
.vf-date { width: clamp(72px, 7vw, 108px); height: auto; }
.vf-hero-cta {
	margin-top: 0.5rem; display: inline-block;
	font-family: var(--vf-champ); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--vf-marine); background: var(--vf-rosa); border-radius: 999px; padding: 0.95rem 2rem; text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}
.vf-hero-cta:hover { background: var(--vf-marine); color: var(--vf-lys-sand); }
@media (max-width: 700px) {
	.vf-wave { height: 90%; top: 5%; }
	.vf-wave--left { translate: -68% 0; }
	.vf-wave--right { translate: 68% 0; }
	.vf-lockup { width: min(80vw, 420px); }
}

/* ---------- Artist cards ---------- */
.vf-lineup { padding-block: 0 var(--wp--preset--spacing--60); }
.vf-artists .wp-block-post-template { gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.vf-artist-card {
	position: relative; display: grid; overflow: clip; border-radius: 6px; background: var(--vf-marine); isolation: isolate;
	--pad: clamp(0.85rem, 1.6vw, 1.25rem);
}
/* Image, name and "Les mer" share one grid cell; the name's link stretches over the whole card. */
.vf-artist-card > * { grid-area: 1 / 1; margin: 0 !important; }
.vf-artist-card .wp-block-post-featured-image img { display: block; width: 100%; transition: scale .5s cubic-bezier(.2,.7,.2,1); }
.vf-artist-card::after { content: ""; grid-area: 1 / 1; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgb(25 40 71 / 0.55), rgb(25 40 71 / 0) 38%, rgb(25 40 71 / 0) 62%, rgb(25 40 71 / 0.6)); }
.vf-artist-name {
	z-index: 1; align-self: start; padding: var(--pad);
	font-family: var(--vf-champ); font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1; letter-spacing: 0.02em; color: var(--vf-lys-sand);
}
.vf-artist-name a { color: inherit; text-decoration: none; }
.vf-artist-name a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.vf-artist-name a:focus-visible { outline: none; }
.vf-artist-card:has(a:focus-visible) { outline: 3px solid var(--vf-korall); outline-offset: 3px; }
.vf-artist-card:has(a:hover) img, .vf-artist-card:has(a:focus-visible) img { scale: 1.04; }
.vf-artist-more {
	z-index: 1; align-self: end; padding: var(--pad); pointer-events: none;
	font-family: var(--vf-champ); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vf-lys-sand);
}
@media (max-width: 900px) { .vf-artists .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vf-artists .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- Front page sections below the lineup ---------- */
.vf-front-content { margin-top: 0 !important; }
.vf-front-content > * { margin-block: 0 !important; }
.vf-display { font-weight: 900 !important; font-size: clamp(2.5rem, 6.5vw, 6rem) !important; line-height: 1 !important; letter-spacing: 0.01em !important; margin: 0 !important; }
.vf-dance { background: var(--vf-sand); padding-block: 0 var(--wp--preset--spacing--60); }
/* «Vil du danse i Vangen?» sits in a pink window, like the 2027 social frame. */
.vf-dance-window { border-radius: clamp(20px, 2.8vw, 40px); padding: clamp(4rem, 12vw, 10rem) var(--wp--preset--spacing--40); display: grid; justify-items: center; gap: var(--wp--preset--spacing--40); }
.vf-dance-window .wp-block-buttons { margin: 0 !important; }
.vf-welcome { background: var(--vf-sand); padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60); text-align: center; }
.vf-welcome::before { content: ""; display: block; width: clamp(60px, 7vw, 90px); aspect-ratio: 1; margin: 0 auto var(--wp--preset--spacing--30); background: var(--vf-korall); -webkit-mask: url("../img/pause.svg") center / contain no-repeat; mask: url("../img/pause.svg") center / contain no-repeat; }
.vf-statement { min-height: min(80vh, 760px); display: grid; place-items: center; padding-block: var(--wp--preset--spacing--60); }
.vf-playlist { padding-block: var(--wp--preset--spacing--60); }
.vf-playlist .wp-block-embed { margin: 0 !important; }

/* ---------- Page titles and the navy banner ---------- */
.vf-page-title { font-weight: 900; margin-bottom: var(--wp--preset--spacing--50) !important; }
.vf-banner { padding-block: clamp(3.5rem, 9vw, 7rem); }
.vf-banner-title { font-weight: 900; color: var(--vf-lys-sand); display: flex; align-items: center; justify-content: center; gap: 0.2em; margin: 0; }
.vf-banner-title::before, .is-style-pause::before {
	content: ""; width: 0.62em; aspect-ratio: 1; flex: none;
	background: url("../img/pause.svg") center / contain no-repeat;
}
.is-style-pause { display: flex; align-items: center; gap: 0.15em; }
.vf-banner-sub { font-family: var(--vf-champ); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1rem; }
.vf-banner-sub p { margin: 0; }
.vf-banner-content { padding-top: var(--wp--preset--spacing--50); }
.vf-artist-photo { margin-top: var(--wp--preset--spacing--50) !important; }
.vf-artist-photo img { border-radius: 6px; }

/* ---------- Content blocks ---------- */
.wp-block-image img, .wp-block-gallery img { border-radius: 4px; }
.wp-block-image figcaption, .wp-element-caption { font-size: 0.875rem; opacity: 0.8; }
.vf-main .wp-block-heading:not(.vf-page-title):not(.vf-banner-title) { margin-top: var(--wp--preset--spacing--40); }
.vf-main .wp-block-separator { border-color: currentColor; opacity: 0.3; }
.vf-page-image { margin-block: 0 var(--wp--preset--spacing--40) !important; }
.vf-page-image img { border-radius: 6px; }
.vf-banner-content + .vf-page-image, .vf-page-image + .vf-banner-content { padding-top: 0; }
.vf-form-todo, .vf-content-todo { border: 2px dashed currentColor; border-radius: 8px; padding: 1rem 1.25rem; opacity: 0.75; }

/* ---------- News ---------- */
.vf-news .wp-block-post-template { gap: var(--wp--preset--spacing--40) clamp(1rem, 2vw, 1.75rem); margin-top: var(--wp--preset--spacing--50); }
.vf-news .wp-block-post-featured-image img { border-radius: 6px; }
.vf-news-date { font-family: var(--vf-champ); font-weight: 500; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.vf-news-title { font-size: clamp(1.25rem, 2vw, 1.625rem); margin-top: 0.35rem !important; }
.vf-news-title a { text-decoration: none; }
.vf-news-title a:hover { text-decoration: underline; }
.vf-post-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.vf-back { margin-top: var(--wp--preset--spacing--50) !important; font-family: var(--vf-champ); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.875rem; }
.vf-back a { text-decoration: none; }
@media (max-width: 900px) { .vf-news .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .vf-news .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.vf-footer a { color: inherit; }
.vf-footer a:hover { color: var(--vf-rosa); }
.vf-footer-logo img { width: 150px; height: auto; }
.vf-footer-date { font-family: var(--vf-champ); font-weight: 700; font-size: 1.125rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 1.25rem !important; }
.vf-footer-heading { font-family: var(--vf-champ); font-weight: 500; font-size: 0.9375rem !important; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 1rem !important; }
.vf-footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.vf-footer-list a { text-decoration: none; }
.vf-footer-list a:hover { text-decoration: underline; }
.vf-social .wp-social-link svg { width: 26px; height: 26px; }
.vf-sponsors { margin-top: var(--wp--preset--spacing--60) !important; }
.vf-sponsors .wp-block-gallery { gap: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 4vw, 4rem) !important; align-items: center; justify-content: center; }
.vf-sponsors .wp-block-gallery .wp-block-image { width: clamp(96px, 12vw, 150px) !important; flex-grow: 0 !important; }
.vf-sponsors .wp-block-gallery .wp-block-image img { height: 56px !important; width: 100% !important; object-fit: contain !important; border-radius: 0; }
.vf-footer-credit { margin-top: var(--wp--preset--spacing--50) !important; opacity: 0.8; }

@media (prefers-reduced-motion: reduce) {
	.vf-artist-card img, .vf-hero-cta { transition: none; }
}
