/**
 * Arte Laguna Prize × Culver Arts — page template styles.
 *
 * Same family as the Artist Laureate page: dark grounds, Unbounded eyebrows,
 * Cormorant Garamond italic display titles, DM Sans body. Program accent is
 * Culver Amber (brand primary) rather than the Laureate gold.
 *
 * Contrast rules used here:
 *   - Amber (#F5A623) is used as TEXT only on dark grounds (≥ 8:1 on #0D0D0D/#1A1A1A).
 *   - On light grounds, text is ink (#111) and amber only appears as a fill
 *     behind ink text (≈ 10:1) or as non-text decoration.
 *
 * Motion: no animation at all. Hover transitions and smooth scrolling only
 * apply when the visitor has not asked for reduced motion.
 *
 * @package Culver Arts
 */

:root {
	--alp-amber:      var(--wp--preset--color--ca-amber, #F5A623);
	--alp-amber-dark: var(--wp--preset--color--ca-amber-dark, #D4891A);
	--alp-amber-pale: var(--wp--preset--color--ca-amber-pale, #FEF3DC);
	--alp-ink:        var(--wp--preset--color--ca-ink, #111111);
	--alp-dark:       var(--wp--preset--color--ca-dark, #0D0D0D);
	--alp-dark-2:     var(--wp--preset--color--ca-dark-2, #1A1A1A);
	--alp-dark-3:     var(--wp--preset--color--ca-dark-3, #252525);
	--alp-off-white:  var(--wp--preset--color--ca-off-white, #F5F3EE);
	--alp-muted-dark: rgba(255, 255, 255, 0.72); /* ≥ 9:1 on #0D0D0D */
	--alp-gray:       #595959;                    /* ≥ 6:1 on #F5F3EE, darker than ca-gray for small text */
	--alp-container:  1100px;
	--alp-narrow:     760px;
	--alp-radius:     4px;
	--alp-serif:      var(--wp--preset--font-family--cormorant-garamond, "Cormorant Garamond", serif);
	--alp-sans:       var(--wp--preset--font-family--dm-sans, "DM Sans", sans-serif);
	--alp-label:      var(--wp--preset--font-family--unbounded, "Unbounded", sans-serif);
}

/* ── Astra resets (mirrors the Artist Laureate template) ─────── */
.page-template-page-arte-laguna .entry-title,
.page-template-page-arte-laguna .ast-archive-description,
.page-template-page-arte-laguna .ast-page-title-area,
.page-template-page-arte-laguna .ast-breadcrumbs-wrapper { display: none !important; }

.page-template-page-arte-laguna #content,
.page-template-page-arte-laguna #content > .ast-container,
.page-template-page-arte-laguna .site-main,
.page-template-page-arte-laguna article.page,
.page-template-page-arte-laguna .entry-content {
	max-width: none !important; width: 100% !important;
	padding: 0 !important; margin: 0 !important;
}
.ast-two-container.page-template-page-arte-laguna #content,
.ast-separate-container.page-template-page-arte-laguna #content { display: block !important; }

#alp-page {
	width: 100%; margin: 0; padding: 0; box-sizing: border-box;
	background: var(--alp-dark); color: #fff;
	font-family: var(--alp-sans);
}
#alp-page *, #alp-page *::before, #alp-page *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
	html:has(#alp-page) { scroll-behavior: smooth; }
}

.alp-container {
	max-width: var(--alp-container); width: 100%;
	margin-inline: auto; padding-inline: 1.5rem;
}
.alp-container--narrow { max-width: calc(var(--alp-narrow) + 3rem); }

/* Anchored targets clear the sticky header. */
#alp-page [id] { scroll-margin-top: 7rem; }

/* ── Shared type ──────────────────────────────────────────────── */
.alp-eyebrow {
	font-family: var(--alp-label);
	font-size: 0.66rem; font-weight: 700;
	letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--alp-amber);
	margin: 0 0 1.25rem;
	display: flex; align-items: center; gap: 0.75rem;
}
.alp-eyebrow::before {
	content: ""; display: block; width: 30px; height: 1px;
	background: currentColor; flex-shrink: 0;
}
.alp-eyebrow--ink { color: var(--alp-ink); }

#alp-page .alp-section-title {
	font-family: var(--alp-serif);
	font-weight: 300; font-style: italic;
	font-size: clamp(2.4rem, 5vw, 3.75rem);
	line-height: 1.02; letter-spacing: -0.01em;
	color: inherit; margin: 0 0 1.75rem;
}
.alp-section-title em { font-style: normal; }

#alp-page p { line-height: 1.75; margin: 0 0 1.1rem; }

/* ── Links, buttons, focus ───────────────────────────────────── */
#alp-page a { text-underline-offset: 0.2em; }

#alp-page a:focus-visible,
#alp-page button:focus-visible,
.alp-lightbox button:focus-visible {
	outline: 3px solid var(--alp-amber);
	outline-offset: 3px;
}
/* Light sections: ink focus ring for contrast. */
.alp-announce a:focus-visible,
.alp-prize a:focus-visible,
.alp-residency a:focus-visible,
.alp-involved a:focus-visible,
.alp-connect a:focus-visible,
.alp-partners a:focus-visible { outline-color: var(--alp-ink) !important; }

.alp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 0.8rem 1.6rem;
	border-radius: var(--alp-radius); border: 1px solid transparent;
	font-family: var(--alp-sans); font-size: 0.8rem; font-weight: 700;
	letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none !important;
}
.alp-btn--primary { background: var(--alp-amber); color: var(--alp-ink) !important; border-color: var(--alp-amber); }
.alp-btn--primary:hover { background: #fff; border-color: #fff; }
.alp-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, 0.6); }
.alp-btn--ghost:hover { background: #fff; color: var(--alp-ink) !important; border-color: #fff; }

.alp-arrow-link {
	font-weight: 700; color: inherit !important;
	text-decoration: underline; text-decoration-thickness: 1px;
}
.alp-arrow-link:hover { text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: no-preference) {
	.alp-btn, .alp-gallery__link img, .alp-card { transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease; }
}

/* ══ 1. HERO ═══════════════════════════════════════════════════ */
.alp-hero {
	position: relative; overflow: hidden;
	background: var(--alp-dark);
	min-height: min(88vh, 760px);
	display: flex; align-items: flex-end;
}
.alp-hero__collage {
	position: absolute; inset: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
}
.alp-hero__collage-img {
	width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Scrim keeps text at well above 4.5:1 regardless of the artwork behind it. */
.alp-hero::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(13,13,13,0.94) 0%, rgba(13,13,13,0.86) 45%, rgba(13,13,13,0.45) 100%),
		linear-gradient(0deg, rgba(13,13,13,0.9) 0%, rgba(13,13,13,0) 55%);
}
.alp-hero__inner {
	position: relative; z-index: 1;
	padding-top: 9rem; padding-bottom: 5rem;
}
.alp-hero__eyebrow {
	font-family: var(--alp-label);
	font-size: 0.66rem; font-weight: 700;
	letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--alp-amber);
	margin: 0 0 1.5rem !important;
}
#alp-page .alp-hero__title {
	font-family: var(--alp-serif);
	font-style: italic; font-weight: 300;
	font-size: clamp(3rem, 7.5vw, 6.75rem);
	line-height: 0.95; color: #fff;
	max-width: 13ch; margin: 0 0 1.5rem;
}
.alp-hero__title em { font-style: normal; color: var(--alp-amber); }
.alp-hero__times { font-style: normal; color: var(--alp-amber); padding-inline: 0.1em; }
.alp-hero__line {
	font-family: var(--alp-serif); font-size: clamp(1.4rem, 2.5vw, 1.9rem);
	font-weight: 400; color: var(--alp-muted-dark);
	margin: 0 0 2.25rem !important;
}
.alp-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ══ 2. ANNOUNCEMENT ═══════════════════════════════════════════ */
.alp-announce { background: var(--alp-off-white); color: var(--alp-ink); padding: 5rem 0 4rem; }
.alp-announce__content { font-size: 1.05rem; }
.alp-announce__content > p:first-child,
.alp-announce__content .alp-lead {
	font-family: var(--alp-serif); font-size: clamp(1.55rem, 2.8vw, 2.1rem);
	line-height: 1.3 !important; font-weight: 400;
}
.alp-announce__content a { color: var(--alp-ink); }

/* ══ 3. AT A GLANCE ════════════════════════════════════════════ */
.alp-glance { background: var(--alp-amber); color: var(--alp-ink); padding: 1.6rem 0; }
.alp-glance__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center;
	gap: 0.6rem 0;
	font-family: var(--alp-label); font-size: 0.7rem; font-weight: 700;
	letter-spacing: 0.14em; text-transform: uppercase;
}
.alp-glance__list li { display: flex; align-items: center; }
.alp-glance__list li + li::before {
	content: "·"; margin-inline: 1.1rem; font-size: 1.1rem;
}
.alp-glance__list strong { font-size: 1.1em; margin-right: 0.35em; }

/* ══ 4. MEET THE ARTISTS ═══════════════════════════════════════ */
.alp-artists { background: var(--alp-dark); padding: 6rem 0; }
.alp-artists__intro { max-width: 60ch; color: var(--alp-muted-dark); font-size: 1.05rem; }
.alp-artists__intro strong { color: #fff; }
.alp-artists__grid {
	list-style: none; margin: 3rem 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
}
.alp-artist > article {
	height: 100%; display: flex; flex-direction: column;
	background: var(--alp-dark-2); border: 1px solid var(--alp-dark-3);
	border-radius: var(--alp-radius); overflow: hidden;
}
.alp-artist__portrait { aspect-ratio: 4 / 5; overflow: hidden; background: var(--alp-dark-3); }
.alp-artist__portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alp-artist__body { padding: 1.75rem 1.5rem 2rem; display: flex; flex-direction: column; flex: 1; }
#alp-page .alp-artist__name {
	font-family: var(--alp-serif); font-weight: 400; font-size: 2rem;
	line-height: 1.1; color: #fff; margin: 0 0 0.35rem;
}
.alp-artist__location {
	font-family: var(--alp-label); font-size: 0.62rem !important; font-weight: 700;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--alp-amber); margin: 0 0 1.25rem !important;
}
.alp-artist__bio { color: var(--alp-muted-dark); font-size: 0.95rem; }
.alp-artist__links {
	list-style: none; margin: 0.25rem 0 1.5rem; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
}
.alp-artist__links a {
	color: var(--alp-amber) !important; font-weight: 700; font-size: 0.9rem;
	text-decoration: underline; text-decoration-thickness: 1px;
	display: inline-block; padding-block: 0.35rem; /* 44px-ish target with line-height */
}
#alp-page .alp-artist__gallery-title {
	font-family: var(--alp-label); font-size: 0.6rem; font-weight: 700;
	letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--alp-muted-dark); margin: auto 0 0.75rem;
}
.alp-gallery {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem;
}
.alp-gallery__link { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 2px; background: var(--alp-dark-3); }
.alp-gallery__link img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alp-gallery__link:hover img { opacity: 0.8; }

.alp-artists__outro { max-width: 68ch; margin-top: 4rem; color: var(--alp-muted-dark); }
.alp-artists__outro strong { color: #fff; font-family: var(--alp-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.4; }
.alp-artists__outro .alp-arrow-link { color: var(--alp-amber) !important; }

/* ══ 5. ABOUT THE PRIZE ════════════════════════════════════════ */
.alp-prize { background: var(--alp-amber-pale); color: var(--alp-ink); padding: 5.5rem 0; }
.alp-prize__lead {
	font-family: var(--alp-serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem);
	line-height: 1.45 !important;
}
.alp-prize a { color: var(--alp-ink); text-decoration-thickness: 1px; }

/* ══ 6. THE RESIDENCY ═══════════════════════════════════════════ */
.alp-residency { background: var(--alp-off-white); color: var(--alp-ink); padding: 5rem 0; }
.alp-residency__box {
	border: 2px dashed #8C8C8C; border-radius: var(--alp-radius);
	padding: 2.5rem 2rem; background: rgba(255, 255, 255, 0.6);
}
.alp-residency__box p { font-size: 1.1rem; }

/* ══ 7. UPCOMING EVENTS ════════════════════════════════════════ */
.alp-events { background: var(--alp-dark-2); padding: 5.5rem 0; }
.alp-events__empty {
	border-top: 1px solid var(--alp-dark-3); padding-top: 2rem;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.alp-events__empty p { font-family: var(--alp-serif); font-size: 1.6rem; margin: 0 !important; color: #fff; }

/* ══ 8. GET INVOLVED ═══════════════════════════════════════════ */
.alp-involved { background: var(--alp-off-white); color: var(--alp-ink); padding: 6rem 0; }
.alp-involved__cards {
	list-style: none; margin: 0 0 3.5rem; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.alp-card {
	background: #fff; border: 1px solid #DEDAD0; border-top: 4px solid var(--alp-amber);
	border-radius: var(--alp-radius); padding: 1.75rem 1.5rem;
	display: flex; flex-direction: column;
}
#alp-page .alp-card__title { font-family: var(--alp-serif); font-weight: 500; font-size: 1.65rem; margin: 0 0 0.75rem; color: var(--alp-ink); }
.alp-card p { color: #333; font-size: 0.95rem; }
.alp-card .alp-arrow-link { margin-top: auto; }

/* ── Form panels (sponsor + newsletter) ──────────────────────── */
.alp-form-panel {
	background: #fff; color: var(--alp-ink);
	border: 1px solid #DEDAD0; border-radius: var(--alp-radius);
	padding: 2rem 1.75rem;
}
#alp-page .alp-form-panel__title { font-family: var(--alp-serif); font-weight: 500; font-size: 1.75rem; margin: 0 0 0.5rem; color: var(--alp-ink); }
.alp-form-panel__desc { color: #333; }
.alp-form-panel .gform_wrapper .gfield_label,
.alp-form-panel .gform_wrapper .gform-field-label { color: var(--alp-ink) !important; }
.alp-form-panel .gform_wrapper .gform_button {
	background: var(--alp-amber) !important; color: var(--alp-ink) !important;
	border: 0 !important; border-radius: var(--alp-radius) !important;
	min-height: 44px; padding: 0.75rem 1.75rem !important;
	font-family: var(--alp-sans) !important; font-weight: 700 !important;
	letter-spacing: 0.08em; text-transform: uppercase;
}
.alp-form-panel .gform_wrapper .gform_button:hover { background: var(--alp-ink) !important; color: #fff !important; }
.alp-form-panel .gform_wrapper .gform_button:focus-visible { outline: 3px solid var(--alp-ink) !important; outline-offset: 3px; }

/* ══ 9. STAY CONNECTED ═════════════════════════════════════════ */
.alp-connect { background: var(--alp-amber-pale); color: var(--alp-ink); padding: 6rem 0; }
.alp-connect__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.alp-connect a { color: var(--alp-ink); font-weight: 700; }
#alp-page .alp-connect__share-title {
	font-family: var(--alp-label); font-size: 0.62rem; font-weight: 700;
	letter-spacing: 0.2em; text-transform: uppercase; margin: 2rem 0 0.75rem; color: var(--alp-ink);
}
.alp-share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.alp-share a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0.5rem 1rem;
	border: 1px solid var(--alp-ink); border-radius: var(--alp-radius);
	text-decoration: none; font-size: 0.85rem;
}
.alp-share a:hover { background: var(--alp-ink); color: #fff; }

/* ══ 10. PARTNERS ══════════════════════════════════════════════ */
.alp-partners { background: #fff; color: var(--alp-ink); padding: 4rem 0 5rem; }
#alp-page .alp-partners__title {
	font-family: var(--alp-label); font-size: 0.66rem; font-weight: 700;
	letter-spacing: 0.22em; text-transform: uppercase; text-align: center;
	color: var(--alp-ink); margin: 0 0 2rem;
}
.alp-partners__list {
	list-style: none; margin: 0; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2.5rem 4rem;
}
.alp-partners__list li { display: flex; align-items: center; justify-content: center; min-height: 96px; }
.alp-partners__logo { max-height: 96px; width: auto; display: block; }
.alp-partners__logo--ca { max-height: 56px; }
.alp-partners__placeholder {
	display: flex; align-items: center; justify-content: center;
	width: 180px; height: 96px;
	border: 2px dashed #8C8C8C; border-radius: var(--alp-radius);
	font-family: var(--alp-sans); font-weight: 700; color: #4D4D4D;
}

/* ══ LIGHTBOX ══════════════════════════════════════════════════ */
.alp-lightbox {
	width: min(1100px, 94vw); max-height: 94vh;
	padding: 0; border: 0; border-radius: var(--alp-radius);
	background: var(--alp-dark); color: #fff;
}
.alp-lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
html:has(.alp-lightbox[open]) { overflow: hidden; }
.alp-lightbox__inner { display: flex; flex-direction: column; max-height: 94vh; padding: 1rem; gap: 0.75rem; }
.alp-lightbox__figure { margin: 0; display: flex; flex-direction: column; gap: 0.75rem; min-height: 0; flex: 1; }
.alp-lightbox__img { max-width: 100%; max-height: calc(94vh - 9rem); object-fit: contain; margin-inline: auto; display: block; }
.alp-lightbox__caption { font-family: var(--alp-sans); font-size: 0.9rem; line-height: 1.5; color: var(--alp-muted-dark); }
.alp-lightbox__count { color: var(--alp-amber); font-weight: 700; }
.alp-lightbox__controls { display: flex; gap: 0.5rem; justify-content: flex-end; flex-wrap: wrap; }
/* Doubled class + element selector: Astra's global button styles otherwise win. */
.alp-lightbox button.alp-lightbox__btn.alp-lightbox__btn {
	min-height: 44px; min-width: 44px; padding: 0.5rem 1.1rem;
	background: transparent; color: #fff; cursor: pointer;
	border: 1px solid rgba(255, 255, 255, 0.6); border-radius: var(--alp-radius);
	font-family: var(--alp-sans); font-weight: 700; font-size: 0.85rem;
	letter-spacing: 0.06em; text-transform: none; line-height: 1.2;
}
.alp-lightbox button.alp-lightbox__btn.alp-lightbox__btn:hover { background: #fff; color: var(--alp-ink); border-color: #fff; }
.alp-lightbox button.alp-lightbox__btn.alp-lightbox__btn--close { background: var(--alp-amber); color: var(--alp-ink); border-color: var(--alp-amber); }
.alp-lightbox button.alp-lightbox__btn.alp-lightbox__btn--close:hover { background: #fff; border-color: #fff; }
.alp-lightbox button.alp-lightbox__btn[hidden] { display: none; }

/* ══ RESPONSIVE ════════════════════════════════════════════════ */
@media (max-width: 900px) {
	.alp-connect__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.alp-hero { min-height: 0; }
	.alp-hero__collage { grid-template-columns: 1fr 1fr 1fr; opacity: 0.6; }
	/* Text spans the full width here, so the scrim has to be uniform. */
	.alp-hero::after { background: rgba(13, 13, 13, 0.82); }
	.alp-hero__inner { padding-top: 7rem; padding-bottom: 3.5rem; }
	.alp-glance__list { flex-direction: column; align-items: center; text-align: center; }
	.alp-glance__list li + li::before { content: none; }
	.alp-artists, .alp-involved, .alp-connect { padding: 4rem 0; }
	.alp-gallery { grid-template-columns: repeat(3, 1fr); }
	.alp-form-panel { padding: 1.5rem 1.1rem; }
}
