/*
Theme Name: pub/archivist - WordPress.com
Theme URI: https://wordpress.com/themes/archivist/
Description: 
Version: 1.0.0
Author: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
    text-wrap: balance;
}
p {
    text-wrap: pretty;
}

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--secondary);
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: .0625em !important;
	text-underline-offset: .15em;
}

/* Masonry for the Poems page only */
.poems-masonry {
  /* Masonry columns */
  column-width: 320px;      /* target card width; browser makes as many cols as fit */
  column-gap: 1.5rem;
}

.poems-masonry .wp-block-post {
  /* Make each card behave as a “tile” */
  display: inline-block;
  width: 100%;
  break-inside: avoid;      /* avoid column breaks inside */
  -webkit-column-break-inside: avoid;
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: .5rem;
  background: var(--wp--preset--color--base, #fff);
}

/* Preserve line breaks in poem content */
.poems-masonry .wp-block-post-content {
  white-space: pre-wrap;
}