/*
 * Posts, archives and search: the Village Square's reading pages.
 * A hero with crumbs, label and title, a readable 70ch column, the featured image, sharing,
 * and the lists of cards (the cards themselves live in village.css).
 */

/* Hero. */
.vhero__in { display: flex; flex-direction: column; gap: 22px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 5vw, 64px); }
.vhero .eyebrow a { color: inherit; text-decoration: none; }
.vhero .eyebrow a:hover { text-decoration: underline; }
.vhero__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1.06; letter-spacing: -.02em; color: var(--plum); }
.vhero__lead { max-width: 62ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--plum); }
.vhero__lead p + p { margin-top: .8em; }
.vhero .vsearch { margin-top: 6px; }

/* A post. */
.vhero--post .wrap--text { max-width: calc(70ch + 2 * var(--gutter)); }
.vpost__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; color: var(--brown); }
.vpost__figwrap { max-width: calc(1100px + 2 * var(--gutter)); }
.vpost__fig { margin: 0; }
.vpost__fig img { width: 100%; max-height: 640px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; }
.vpost__fig figcaption { margin-top: 12px; text-align: center; }
.vpost__body { max-width: calc(70ch + 2 * var(--gutter)); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(56px, 7vw, 96px); }
.vpost__content { font-size: 19px; line-height: 1.8; }
.vpost__src { margin-top: 40px; }
.vpost__pages { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 32px; font-weight: 600; }
.vpost__pages a, .vpost__pages > span:not(:first-child) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); }
.vpost__foot { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.vpost__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.vpost__tags a { min-height: 44px; text-decoration: none; }
@media (max-width: 600px) {
	.vpost__content { font-size: 18px; }
	.vpost__fig img { border-radius: 20px; aspect-ratio: 4 / 3; }
}

/* Writing inside a post (and simple pages): headings, lists, quotes, images and blocks. */
.entry > * + * { margin-top: 1.1em; }
.entry h2, .entry h3, .entry h4 { font-family: var(--serif); color: var(--plum); line-height: 1.2; }
.entry h2 { margin-top: 1.8em; font-size: clamp(30px, 3vw, 40px); font-weight: 400; }
.entry h3 { margin-top: 1.6em; font-size: clamp(24px, 2.2vw, 30px); }
.entry h4 { margin-top: 1.4em; font-family: var(--caps); font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.entry h2 + *, .entry h3 + *, .entry h4 + * { margin-top: .6em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li + li { margin-top: .4em; }
.entry ul li::marker { color: var(--gold); }
.entry a { color: var(--plum); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry a:hover { color: var(--brown); text-decoration-thickness: 2px; }
.entry strong { font-weight: 600; color: var(--plum); }
.entry blockquote, .entry .wp-block-quote { margin: 1.8em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--gold); font-family: var(--serif); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; color: var(--plum); }
.entry blockquote p + p { margin-top: .6em; }
.entry blockquote cite, .entry .wp-block-quote cite { display: block; margin-top: 14px; font-family: var(--caps); font-size: 13px; font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brown); }
.entry .wp-block-pullquote { margin: 2em 0; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.entry .wp-block-pullquote blockquote { border: 0; padding: 0; margin: 0; }
.entry img { border-radius: 18px; }
.entry figure { margin-top: 1.8em; margin-bottom: 1.8em; }
.entry figcaption { text-align: center; }
.entry .wp-block-image.alignwide, .entry .alignwide { width: min(1100px, 100vw - 2 * var(--gutter)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry .alignleft { float: left; margin: .4em 1.6em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry hr, .entry .wp-block-separator { width: 120px; margin: 2.4em auto; border: 0; border-top: 2px solid var(--gold); }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; background: var(--plum); color: var(--white); font-family: var(--caps); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-decoration: none; }
.entry .wp-block-button__link:hover { background: rgba(86, 50, 57, .86); color: var(--white); }
.entry .wp-block-embed iframe, .entry iframe { max-width: 100%; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry::after { content: ""; display: table; clear: both; }
@media (max-width: 600px) {
	.entry .alignleft, .entry .alignright { float: none; max-width: 100%; margin: 1.4em 0; }
}

/* Sharing. */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.share__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--plum); font-family: var(--caps); font-size: 13px; font-weight: 700; letter-spacing: .1em; cursor: pointer; text-decoration: none; }
.share__btn:hover { border-color: var(--plum); color: var(--plum); }
.share__btn svg { width: 18px; height: 18px; }

/* More from the square, and lists of posts. */
.vmore { background: var(--cream); }
.vmore__hd { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; margin-bottom: 36px; }
.vlist { background: var(--cream); padding-top: clamp(56px, 7vw, 96px); }
.vlist .vchips { margin-bottom: 32px; }
.vlist + .vsign { padding-top: clamp(72px, 9vw, 112px); }

/* The search box. */
.vsearch { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.vsearch input[type="search"] { flex: 1 1 240px; min-width: 0; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--grey); background: var(--white); color: var(--plum); font-size: 17px; }
.vsearch input[type="search"]:focus { border-color: var(--plum); outline: none; box-shadow: 0 0 0 4px rgba(249, 192, 73, .45); }
.vsearch .btn { min-height: 54px; }
.vsearch .btn svg { width: 18px; height: 18px; }
