/* ==================================================================
   11 - CONTENT
   Blog, pages, sidebar, comments and the 404.

   Everything that is written content rather than commerce. Kept
   separate from 10-woocommerce.css so the shop and the journal can
   be worked on independently.
   ================================================================== */


/* ==================================================================
   PAGE HEADER
   Shared by pages, single posts and archives.
   ================================================================== */

.wo-page-head {
	padding-top: calc(var(--wo-header-offset) + var(--wo-space-6));
	padding-bottom: var(--wo-space-10);
}

.wo-page-head__title {
	font-size: var(--wo-text-4xl);
	margin-bottom: var(--wo-space-4);
}

.wo-page-head__text {
	font-size: var(--wo-text-md);
	color: var(--wo-text-muted);
	max-width: 60ch;
	margin: 0;
}

.wo-page-head--center {
	text-align: center;
}

.wo-page-head--center .wo-page-head__text {
	margin-inline: auto;
}


/* ==================================================================
   BLOG LAYOUT
   ================================================================== */

.wo-blog {
	padding-bottom: var(--wo-section-y);
}

.wo-blog__layout {
	display: grid;
	grid-template-columns: 1fr;   /* sidebar joins at 992px */
	gap: clamp(2rem, 4vw, 3.5rem);
}


/* ------------------------------------------------------------------
   POST CARD
   ------------------------------------------------------------------ */

.wo-post-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;

	background: var(--wo-grad-surface);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-md);
	overflow: hidden;

	transition:
		border-color var(--wo-transition),
		transform var(--wo-transition),
		box-shadow var(--wo-transition);
}

.wo-post-card:hover {
	border-color: var(--wo-primary-line);
	transform: translateY(-4px);
	box-shadow: var(--wo-shadow-lg);
}

.wo-post-card__media {
	display: block;
	background: var(--wo-grad-card);
	overflow: hidden;
}

.wo-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--wo-duration-slow) var(--wo-ease-out);
}

.wo-post-card:hover .wo-post-card__media img {
	transform: scale(1.04);
}

.wo-post-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-3);
	flex: 1 1 auto;
	padding: var(--wo-space-6);
}

.wo-post-card__title {
	font-family: var(--wo-font-display);
	font-size: var(--wo-text-lg);
	font-weight: var(--wo-weight-semibold);
	line-height: 1.25;
	margin: 0;
}

.wo-post-card__title a {
	color: var(--wo-text);
}

.wo-post-card__title a:hover {
	color: var(--wo-primary-hover);
}

.wo-post-card__excerpt {
	font-size: var(--wo-text-sm);
	line-height: var(--wo-leading-normal);
	color: var(--wo-text-muted);
	margin: 0;

	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wo-post-card__body .wo-link-gold {
	margin-top: auto;
	padding-top: var(--wo-space-2);
}


/* ------------------------------------------------------------------
   ENTRY META
   ------------------------------------------------------------------ */

.wo-entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wo-space-2);

	font-size: var(--wo-text-xs);
	color: var(--wo-text-dim);
}

.wo-entry-meta a {
	color: var(--wo-text-muted);
}

.wo-entry-meta a:hover {
	color: var(--wo-primary-hover);
}


/* ==================================================================
   SINGLE POST
   ================================================================== */

.wo-entry {
	padding-bottom: var(--wo-section-y);
}

.wo-entry__header {
	padding-top: calc(var(--wo-header-offset) + var(--wo-space-6));
	margin-bottom: var(--wo-space-8);
}

.wo-entry__title {
	font-size: var(--wo-text-4xl);
	margin-block: var(--wo-space-4);
}

.wo-entry__media {
	margin-bottom: clamp(2rem, 4vw, 3rem);
	border-radius: var(--wo-radius-lg);
	overflow: hidden;
	border: 1px solid var(--wo-line);
}

.wo-entry__media img {
	width: 100%;
	height: auto;
}

/* Long-form body copy sits at a comfortable measure. */
.wo-entry-content {
	max-width: 72ch;
}

.wo-entry-content img,
.wo-entry-content figure {
	border-radius: var(--wo-radius);
	overflow: hidden;
}

.wo-entry-content blockquote {
	margin-block: var(--wo-space-8);
}

/* Tags */
.wo-entry__tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wo-space-2);
	margin-top: var(--wo-space-10);
	padding-top: var(--wo-space-6);
	border-top: 1px solid var(--wo-line);
}

.wo-entry__tags a {
	display: inline-flex;
	align-items: center;
	padding: 0.3125rem var(--wo-space-4);

	font-size: var(--wo-text-xs);
	color: var(--wo-text-muted);

	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-pill);
	transition: background var(--wo-transition), color var(--wo-transition);
}

.wo-entry__tags a:hover {
	color: var(--wo-text);
	background: var(--wo-primary-soft);
	border-color: var(--wo-primary-line);
}


/* ------------------------------------------------------------------
   POST NAVIGATION
   ------------------------------------------------------------------ */

.wo-post-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--wo-gap);
	margin-top: clamp(2.5rem, 5vw, 4rem);
}

.wo-post-nav__link {
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-2);

	padding: var(--wo-space-5) var(--wo-space-6);

	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-md);

	transition: background var(--wo-transition), border-color var(--wo-transition);
}

.wo-post-nav__link:hover {
	background: var(--wo-primary-soft);
	border-color: var(--wo-primary-line);
}

.wo-post-nav__label {
	font-size: var(--wo-text-xs);
	font-weight: var(--wo-weight-semibold);
	letter-spacing: var(--wo-tracking-wide);
	text-transform: uppercase;
	color: var(--wo-gold);
}

.wo-post-nav__title {
	font-family: var(--wo-font-display);
	font-size: var(--wo-text-md);
	color: var(--wo-text);
	line-height: 1.3;
}

.wo-post-nav__link--next {
	text-align: right;
}


/* ==================================================================
   SIDEBAR & WIDGETS
   ================================================================== */

.wo-sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-6);
	min-width: 0;
}

.widget {
	padding: var(--wo-space-6);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-md);
}

.widget__title,
.widget h2,
.widget h3 {
	font-family: var(--wo-font-body);
	font-size: var(--wo-text-xs);
	font-weight: var(--wo-weight-bold);
	letter-spacing: var(--wo-tracking-wider);
	text-transform: uppercase;
	color: var(--wo-gold);
	margin-bottom: var(--wo-space-5);
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-3);
}

.widget ul li {
	font-size: var(--wo-text-sm);
	color: var(--wo-text-muted);
}

.widget ul li a {
	color: var(--wo-text-muted);
	transition: color var(--wo-transition);
}

.widget ul li a:hover {
	color: var(--wo-primary-hover);
}

.widget ul ul {
	margin-top: var(--wo-space-3);
	padding-left: var(--wo-space-4);
	border-left: 1px solid var(--wo-line);
}

.widget select {
	width: 100%;
}

/* Tag cloud */
.wp-block-tag-cloud a,
.tagcloud a {
	display: inline-block;
	margin: 0 var(--wo-space-2) var(--wo-space-2) 0;
	padding: 0.3125rem var(--wo-space-4);

	font-size: var(--wo-text-xs) !important;
	color: var(--wo-text-muted);

	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-pill);
}

.wp-block-tag-cloud a:hover,
.tagcloud a:hover {
	color: var(--wo-text);
	border-color: var(--wo-primary-line);
}


/* ==================================================================
   COMMENTS
   ================================================================== */

.wo-comments {
	margin-top: clamp(3rem, 6vw, 5rem);
	padding-top: var(--wo-space-10);
	border-top: 1px solid var(--wo-line);
}

.wo-comments__title {
	font-size: var(--wo-text-2xl);
	margin-bottom: var(--wo-space-8);
}

.wo-comments__list {
	list-style: none;
	margin: 0 0 var(--wo-space-10);
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-5);
}

.wo-comments__list .children {
	list-style: none;
	margin: var(--wo-space-5) 0 0;
	padding-left: var(--wo-space-6);
	border-left: 1px solid var(--wo-line);
	display: flex;
	flex-direction: column;
	gap: var(--wo-space-5);
}

.wo-comment {
	display: flex;
	gap: var(--wo-space-4);

	padding: var(--wo-space-5);

	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-md);
}

.wo-comment__avatar img {
	width: 42px;
	height: 42px;
	border-radius: var(--wo-radius-circle);
}

.wo-comment__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wo-comment__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--wo-space-2) var(--wo-space-3);
	margin-bottom: var(--wo-space-3);
}

.wo-comment__author {
	font-size: var(--wo-text-sm);
	font-weight: var(--wo-weight-semibold);
	color: var(--wo-text);
}

.wo-comment__date {
	font-size: var(--wo-text-xs);
	color: var(--wo-text-dim);
}

.wo-comment__text {
	font-size: var(--wo-text-base);
	line-height: var(--wo-leading-normal);
	color: var(--wo-text-muted);
}

.wo-comment__text p + p {
	margin-top: var(--wo-space-3);
}

.wo-comment .comment-reply-link {
	display: inline-block;
	margin-top: var(--wo-space-3);
	font-size: var(--wo-text-xs);
	font-weight: var(--wo-weight-semibold);
	color: var(--wo-primary-hover);
}

.comment-respond {
	padding: clamp(1.25rem, 3vw, 2rem);
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--wo-line);
	border-radius: var(--wo-radius-lg);
}

.comment-reply-title {
	font-size: var(--wo-text-xl);
	margin-bottom: var(--wo-space-5);
}

.comment-notes,
.logged-in-as {
	font-size: var(--wo-text-xs);
	color: var(--wo-text-dim);
	margin-bottom: var(--wo-space-5);
}


/* ==================================================================
   404
   ================================================================== */

.wo-404 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;

	min-height: 62vh;
	padding-top: calc(var(--wo-header-offset) + var(--wo-space-8));
	padding-bottom: var(--wo-section-y);
}

.wo-404__code {
	font-family: var(--wo-font-display);
	font-size: clamp(4rem, 16vw, 9rem);
	font-weight: var(--wo-weight-bold);
	font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
	line-height: 0.9;
	color: var(--wo-primary-hover);
	opacity: 0.85;
	margin-bottom: var(--wo-space-4);
}

.wo-404__title {
	font-size: var(--wo-text-2xl);
	margin-bottom: var(--wo-space-4);
}

.wo-404__text {
	font-size: var(--wo-text-md);
	color: var(--wo-text-muted);
	max-width: 46ch;
	margin: 0 auto var(--wo-space-8);
}

.wo-404__search {
	width: min(100%, 420px);
	margin: 0 auto var(--wo-space-8);
}


/* ==================================================================
   PAGE TEMPLATE
   ================================================================== */

.wo-page {
	padding-bottom: var(--wo-section-y);
}

.wo-page__content {
	padding-top: var(--wo-space-4);
}

/* About page and other long reads get a narrower measure. */
.wo-page--narrow .wo-entry-content {
	max-width: 68ch;
	margin-inline: auto;
}
