/*
Theme Name: WomenTaste
Theme URI: https://womentaste.com
Description: Calm, warm reading theme for womentaste.com: plain answers about intimate health. Off-white paper, plum links, a sage "When to see a doctor" box, serif headings and the Atkinson Hyperlegible body font.
Version: 1.0.2
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Author: WomenTaste
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womentaste
*/

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--plum);
	outline-offset: 2px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Header and footer ---------- */
.wt-header {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wt-logo a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.6rem;
	line-height: 1;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.wt-logo a::before {
	content: "";
	width: 26px;
	height: 26px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 3c5 4 7 8 7 12a7 7 0 0 1-14 0c0-4 2-8 7-12z' fill='none' stroke='%236B2D5C' stroke-width='2'/%3E%3Cpath d='M13 9v14' stroke='%236B2D5C' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wt-header .wp-block-navigation a {
	text-decoration: none;
}
.wt-header .wp-block-navigation a:hover {
	color: var(--wp--preset--color--plum);
	text-decoration: underline;
}
.wt-footer {
	border-top: 1px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-soft);
}
.wt-footer a {
	color: var(--wp--preset--color--ink-soft);
}

/* ---------- Homepage ---------- */
.wt-hero-art {
	width: 100%;
	max-width: 300px;
	height: auto;
	margin-inline: auto;
	display: block;
}
.wt-search .wp-block-search__inside-wrapper {
	border: 1.5px solid var(--wp--preset--color--ink);
	border-radius: 8px;
	overflow: hidden;
	background: var(--wp--preset--color--white);
	padding: 0;
}
.wt-search .wp-block-search__input {
	border: 0;
	padding: 14px 16px;
	font-size: 1.05rem;
}
.wt-search .wp-block-search__button {
	margin: 0;
	border-radius: 0;
	padding: 0 22px;
}

/* Topic list: categories that have posts. "Uncategorized" (ID 1) is hidden. */
.wt-topics ul.wp-block-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	column-gap: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}
.wt-topics .cat-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
	padding: 10px 0;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 1.15rem;
}
.wt-topics .cat-item-1 {
	display: none;
}
.wt-topics .cat-item a {
	display: block;
	padding: 6px 0;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
}
.wt-topics .cat-item a:hover {
	color: var(--wp--preset--color--plum);
	text-decoration: underline;
}

.wt-post-list .wp-block-post {
	padding: 22px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.wt-post-list .wp-block-post:first-child {
	padding-top: 0;
}
.wt-post-list .wp-block-post-title a {
	text-decoration: none;
	color: var(--wp--preset--color--ink);
}
.wt-post-list .wp-block-post-title a:hover {
	color: var(--wp--preset--color--plum);
	text-decoration: underline;
}
.wt-post-list .wp-block-post-terms a {
	font-weight: 700;
	text-decoration: none;
}
.wt-post-list .wp-block-post-excerpt {
	color: var(--wp--preset--color--ink-soft);
}
.wt-post-list .wp-block-post-excerpt__more-link {
	display: none;
}

.wt-how {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	align-self: start;
}
.wt-how ol {
	padding-left: 20px;
	color: var(--wp--preset--color--ink-soft);
}
.wt-how li + li {
	margin-top: 8px;
}

/* ---------- Article ---------- */
.wt-crumb {
	color: var(--wp--preset--color--ink-soft);
}
.wt-crumb a {
	color: var(--wp--preset--color--ink-soft);
}
.wt-single .wp-block-post-title {
	text-wrap: balance;
}
.wt-checked {
	color: var(--wp--preset--color--ink-soft);
	font-size: var(--wp--preset--font-size--small);
	margin: 0 0 24px;
}
.wt-answer {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	padding: 20px 22px;
	margin: 0 0 32px;
	max-width: 680px;
	font-size: 1.15em;
}
.wt-answer > p {
	margin: 0;
}
.wt-answer > p + p {
	margin-top: 12px;
}
.wt-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--wp--preset--color--plum);
	margin-bottom: 6px;
}
.wt-article {
	display: grid;
	grid-template-columns: minmax(0, 680px);
	gap: 0 64px;
}
.wt-body > h2 {
	scroll-margin-top: 24px;
}
.wt-toc {
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	padding: 4px 18px;
	margin-bottom: 24px;
	font-size: var(--wp--preset--font-size--small);
}
.wt-toc summary {
	cursor: pointer;
	font-weight: 700;
	padding: 12px 0;
}
.wt-toc ol {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}
.wt-toc a {
	display: block;
	padding: 7px 0 7px 12px;
	border-left: 2px solid var(--wp--preset--color--line);
	color: var(--wp--preset--color--ink-soft);
	text-decoration: none;
}
.wt-toc a:hover {
	color: var(--wp--preset--color--plum);
	border-left-color: var(--wp--preset--color--plum);
}
.wt-side {
	order: -1;
}
@media (min-width: 1024px) {
	.wt-article {
		grid-template-columns: minmax(0, 680px) 240px;
	}
	.wt-side {
		order: 0;
	}
	.wt-toc {
		position: sticky;
		top: 24px;
		border: 0;
		padding: 0;
	}
	/* On wide screens the list is always shown; the toggle is for phones. */
	.wt-toc summary {
		pointer-events: none;
		list-style: none;
	}
	.wt-toc summary::-webkit-details-marker {
		display: none;
	}
}

.wt-doctor {
	background: var(--wp--preset--color--sage-bg);
	border-radius: 8px;
	padding: 4px 26px 20px;
	margin: 40px 0;
}
.wt-doctor > h2 {
	color: var(--wp--preset--color--sage-ink);
	display: flex;
	align-items: center;
	gap: 10px;
}
.wt-doctor > h2::before {
	content: "";
	width: 22px;
	height: 22px;
	flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v18M3 12h18' stroke='%232F5D45' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wt-doctor > :last-child {
	margin-bottom: 0;
}
.wt-sources {
	border-top: 1px solid var(--wp--preset--color--line);
	margin-top: 40px;
}
.wt-sources li {
	font-size: var(--wp--preset--font-size--small);
}
/* Finger-sized tap targets (at least 24px tall, spaced apart). */
.wt-sources li a,
.wt-crumb a,
.wt-post-list .wp-block-post-terms a,
.wt-footer a {
	display: inline-block;
	padding: 6px 0;
}
.wt-madeby > p {
	margin: 0;
}
.wt-madeby {
	background: var(--wp--preset--color--paper-2);
	border-radius: 8px;
	padding: 18px 20px;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink-soft);
}
.wt-madeby em {
	font-style: normal;
}

/* ---------- Lists and pagination ---------- */
.wp-block-query-pagination {
	margin-top: var(--wp--preset--spacing--50);
}

@media (max-width: 781px) {
	/* Decoration only; on phones the topics matter more than the drawing. */
	.wt-hero-art {
		display: none;
	}
}
