/*
 * The Village Square: pieces shared by its blocks, the coming soon pages and the post templates.
 * Cards (.vcard in .vgrid), corner chips (.vchips), the empty note (.vempty), page links (.vpager)
 * and the plum sign-up band (.vsign).
 */

/* Cards in a grid. The whole card is clickable through its title link. */
.vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.vgrid > li { display: flex; }
.vcard { position: relative; flex: 1; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--white); color: var(--brown); }
.vcard--line { border: 1px solid var(--line); }
.vcard__ph { height: 220px; overflow: hidden; background: var(--plum-7); }
.vcard__ph img { width: 100%; height: 100%; object-fit: cover; }
.vcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 26px; }
.vcard__label { font-family: var(--caps); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); line-height: 1.5; }
.vcard__title { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--plum); }
.vcard__link { color: var(--plum); text-decoration: none; }
.vcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 22px; }
.vcard__link:focus-visible { outline: none; }
.vcard__link:focus-visible::after { outline: 3px solid var(--brown); outline-offset: -3px; }
.vcard:hover .vcard__link { color: var(--plum); }
.vcard__text { font-size: 16px; line-height: 1.6; }

/* Hover, in the site's gold: the edge turns gold, a gold thread draws across under the photo,
   a soft gold wash rises behind the words, and a gold arrow circle turns into place in the
   photo's corner. Motion only when the visitor has not asked for less of it. */
.vcard { isolation: isolate; }
.vcard__body { position: relative; z-index: 0; }
.vcard__body::before, .vcard__body::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.vcard__body::before { top: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left center; z-index: 1; }
.vcard__body::after { inset: 0; z-index: -1; background: rgba(249, 192, 73, .16); opacity: 0; }
.vcard:hover, .vcard:focus-within { border-color: var(--gold); }
.vcard:hover .vcard__body::before, .vcard:focus-within .vcard__body::before { transform: scaleX(1); }
.vcard:hover .vcard__body::after, .vcard:focus-within .vcard__body::after { opacity: 1; }
.vcard__ph { position: relative; }
.vcard__ph::after { content: ""; position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23563239' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 20px no-repeat; opacity: 0; transform: scale(.6); pointer-events: none; }
.vcard:hover .vcard__ph::after, .vcard:focus-within .vcard__ph::after { opacity: 1; transform: rotate(-45deg); }
.vcard__meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 1.5; }
.vcard__meta svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: no-preference) {
	.vcard { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
	.vcard:hover, .vcard:focus-within { transform: translateY(-6px); box-shadow: 0 24px 48px rgba(86, 50, 57, .16); }
	.vcard__ph img { transition: transform .9s var(--ease); }
	.vcard:hover .vcard__ph img, .vcard:focus-within .vcard__ph img { transform: scale(1.06); }
	.vcard__body::before { transition: transform .7s var(--ease) .05s; }
	.vcard__body::after { transition: opacity .5s var(--ease); }
	.vcard__title, .vcard__label, .vcard__text { transition: transform .5s var(--ease); }
	.vcard:hover .vcard__title, .vcard:focus-within .vcard__title { transform: translateX(8px); }
	.vcard:hover .vcard__label, .vcard:hover .vcard__text { transform: translateX(4px); }
	.vcard__ph::after { transition: opacity .35s var(--ease), transform .5s var(--ease); }
}

/* Corner chips: links that the Village Square script turns into toggle buttons. */
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchips .chip { border-color: var(--plum); background: transparent; font-size: 13px; text-decoration: none; }
.vchips .chip:hover { background: var(--plum-7); color: var(--plum); }
.vchips .chip[aria-pressed="true"], .vchips .chip[aria-current] { background: var(--plum); color: var(--white); }
[aria-busy="true"] [data-sq-results] { opacity: .55; }

/* A gentle note when a corner has nothing in it yet. */
.vempty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(32px, 5vw, 64px); border-radius: 24px; background: var(--white); border: 1.5px dashed var(--grey); }
.vempty__text { max-width: 560px; }
.vempty__h { margin-bottom: 8px; font-family: var(--serif); font-size: 30px; line-height: 1.15; color: var(--plum); }

/* Page links. */
.vpager { margin-top: 48px; }
.vpager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vpager .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--plum); font-family: var(--caps); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.vpager a.page-numbers:hover { border-color: var(--plum); }
.vpager .page-numbers.current { background: var(--plum); border-color: var(--plum); color: var(--white); }
.vpager .page-numbers.dots { border-color: transparent; background: transparent; }
.vpager svg { width: 16px; height: 16px; }

/* The plum sign-up band. */
.vsign { padding-bottom: clamp(72px, 9vw, 112px); }
.vsign--space { padding-top: clamp(72px, 9vw, 112px); }
.vsign .wrap { max-width: calc(1184px + 2 * var(--gutter)); }
.vsign__box { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background-color: var(--plum); background-image: repeating-linear-gradient(90deg, rgba(249, 192, 73, .10) 0 2px, transparent 2px 18px); color: var(--white); }
.vsign__intro { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vsign__intro .h-panel { font-weight: 400; }
.vsign__sun { width: 64px; height: 64px; }
.vsign__text { color: rgba(255, 255, 255, .86); }
.vsign__form { flex: 1 1 420px; min-width: 0; }
.vsign .form { gap: 14px; }
.vsign .form input[type="email"] { min-height: 54px; padding: 0 22px; border-radius: 28px; }
.vsign .check { font-size: 16px; }
.vsign .check .opt { color: var(--gold); }
.vsign .form-note { font-size: 15px; color: rgba(255, 255, 255, .86); }
.vsign .form-note a { color: var(--gold); font-weight: 600; }
.vsign .btn--gold { color: var(--brown); }
@media (max-width: 600px) {
	.vsign__box { border-radius: 22px; gap: 28px; }
	.vsign__intro, .vsign__form { flex-basis: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
	.vsign__sun { animation: zzBreathe 2.2s ease-in-out .6s 2; }
}
