/*
Theme Name: Hive Fine Art
Theme URI: https://hivefineart.com/
Author: Hive Associates
Description: Lightweight block theme for HIVE : Fine Art. No page builder, no jQuery, self-hosted fonts.
Version: 1.0.1
Requires at least: 6.6
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: hiveart
*/

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.hv-visually-hidden,
.hv-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.skip-link:focus { z-index: 100000; }

/* ---------- Header ---------- */
.hv-site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--wp--preset--color--line); background: var(--wp--preset--color--base); }
.hv-site-header--overlay { position: absolute; inset: 0 0 auto 0; background: transparent; }
.admin-bar .hv-site-header--overlay { top: var(--wp-admin--admin-bar--height, 32px); }
.hv-header__inner { min-height: 74px; align-items: center; gap: 1.5rem; }
.hv-site-title, .hv-site-title a {
	margin: 0; font-family: var(--wp--preset--font-family--grotesk); font-size: clamp(1.15rem, 2vw, 1.58rem);
	font-weight: 400; letter-spacing: -0.01em; text-transform: uppercase; text-decoration: none; color: inherit;
	white-space: nowrap;
}
.hv-nav { font-family: var(--wp--preset--font-family--grotesk); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: -0.005em; gap: clamp(1rem, 2.4vw, 1.6rem); }
.hv-nav a { text-decoration: none; }
.hv-nav a:hover, .hv-nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 4px; }
.hv-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; font-size: 1.4rem; }

/* ---------- Hero ---------- */
.hv-hero.wp-block-cover { min-height: clamp(320px, 52vw, 760px) !important; padding-block: clamp(1.25rem, 3vw, 2.25rem); }
.hv-hero__caption { color: #fff; font-size: 0.95rem; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
.hv-hero video, .hv-hero img { object-fit: cover; }

/* ---------- Sections ---------- */
.hv-section { padding-block: var(--wp--preset--spacing--60); }
.hv-section + .hv-section { padding-top: 0; }
.hv-split { gap: 2rem; }
.hv-split > .wp-block-column:first-child h2,
.hv-split > .wp-block-column:first-child h1 { margin-top: 0; }
.hv-split .hv-copy { max-width: 32rem; }
.hv-copy p { margin-block: 0 1rem; }

/* Artists */
.hv-artists { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 2.2rem); list-style: none; padding: 0; margin: 2rem 0 0; }
.hv-artists a {
	display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: .75rem;
	background: var(--wp--preset--color--tile); text-align: center; text-decoration: underline; text-underline-offset: 3px;
	font-family: var(--wp--preset--font-family--grotesk); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
	transition: background-color .2s ease;
}
.hv-artists a:hover { background: #e2e2e2; text-decoration: none; }

/* Institutions */
.hv-logos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.75rem, 2vw, 2rem); align-items: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.hv-logos a { display: block; transition: opacity .2s ease; }
.hv-logos a:hover { opacity: .65; }
.hv-logos img { display: block; width: 100%; max-width: 132px; margin-inline: auto; }

/* People */
.hv-people { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem 2rem; }
.hv-people h3 { margin: .3rem 0 0; }
.hv-people p { margin: 0 0 1.5rem; }

/* ---------- Contact form ---------- */
.hv-form { display: grid; gap: 1.25rem; font-family: var(--wp--preset--font-family--serif); }
.hv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hv-form label, .hv-form legend { display: block; font-family: var(--wp--preset--font-family--grotesk); font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; margin-bottom: .35rem; }
.hv-form .hv-req { font-family: var(--wp--preset--font-family--serif); text-transform: none; color: var(--wp--preset--color--muted); font-size: .85rem; letter-spacing: 0; }
.hv-form fieldset { border: 0; padding: 0; margin: 0; }
.hv-form input[type=text], .hv-form input[type=email], .hv-form textarea {
	width: 100%; box-sizing: border-box; border: 1px solid #a9a9a9; border-radius: 0; padding: .7rem .8rem;
	font: inherit; font-size: 1rem; background: #fff; color: inherit;
}
.hv-form input:focus, .hv-form textarea:focus { border-color: #000; outline: 1px solid #000; }
.hv-form textarea { min-height: 8rem; resize: vertical; }
.hv-form button {
	justify-self: start; border: 0; cursor: pointer; background: #000; color: #fff; padding: 1rem 1.75rem;
	font-family: var(--wp--preset--font-family--grotesk); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em;
}
.hv-form button:hover { background: #333; }
.hv-form__hp { position: absolute; left: -9999px; }
.hv-form__note { font-size: .85rem; color: var(--wp--preset--color--muted); margin: 0; }
.hv-form__msg { padding: 1rem 1.25rem; border: 1px solid currentColor; margin-bottom: 1rem; }
.hv-form__msg--ok { background: #f3f7f1; }
.hv-form__msg--err { background: #fbf1f1; }

/* ---------- Footer ---------- */
.hv-footer { border-top: 1px solid var(--wp--preset--color--line); padding-block: clamp(2rem, 5vw, 3.5rem); font-size: .9rem; }
.hv-footer__cols { gap: 2rem; }
.hv-footer__brand { gap: .9rem; margin-bottom: .75rem; }
.hv-footer__logo { margin: 0; }
.hv-footer__title, .hv-footer__title a { font-family: var(--wp--preset--font-family--grotesk); font-size: 1.4rem; text-transform: uppercase; text-decoration: none; margin: 0; }
.hv-footer__small { font-family: var(--wp--preset--font-family--grotesk); font-size: .68rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.7; margin: 0 0 0 2.15rem; }
.hv-footer__label { font-family: var(--wp--preset--font-family--grotesk); font-size: .68rem !important; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; margin: .5rem 0 1.25rem; }
.hv-footer p { margin: 0; }
.hv-footer a { text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.hv-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hv-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
	.hv-split > .wp-block-column { flex-basis: 100% !important; }
	.hv-split .hv-copy { max-width: none; }
	.hv-artists { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hv-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hv-form__row { grid-template-columns: 1fr; }
	.hv-people { grid-template-columns: 1fr; }
	.hv-people h3 { margin-top: 0; }
	.hv-footer__small { margin-left: 0; }
	.hv-hero.wp-block-cover { min-height: 72vw !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Hero: subpages (About, What is Lenticular, Contact) – 40% lower ---------- */
.page-id-25 .hv-hero.wp-block-cover,
.page-id-26 .hv-hero.wp-block-cover,
.page-id-27 .hv-hero.wp-block-cover { min-height: clamp(192px, 31.2vw, 456px) !important; }
@media (max-width: 781px) {
	.page-id-25 .hv-hero.wp-block-cover,
	.page-id-26 .hv-hero.wp-block-cover,
	.page-id-27 .hv-hero.wp-block-cover { min-height: 43.2vw !important; }
}

