/*
Theme Name: Female Founders Journal
Template: generatepress
Version: 1.0.0
Text Domain: ffjournal
*/

:root {
	--fjrn-plum: #3a1838;
	--fjrn-plum-soft: #5b3358;
	--fjrn-blush: #f6e3dc;
	--fjrn-blush-deep: #edcfc4;
	--fjrn-coral: #e8604c;
	--fjrn-coral-dark: #c4442f;
	--fjrn-page: #fffaf7;
	--fjrn-line: rgba(58, 24, 56, 0.22);
	--fjrn-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--fjrn-sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--fjrn-calm: "SOFT" 0, "WONK" 0;
	--fjrn-measure: 42rem;
}

/* Base */

body {
	background: var(--fjrn-page);
	color: var(--fjrn-plum);
	font-family: var(--fjrn-sans);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--fjrn-plum);
	text-decoration-color: var(--fjrn-coral);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover,
a:focus {
	color: var(--fjrn-coral-dark);
}

h1, h2, h3, h4,
.entry-title,
.main-title,
.site-title {
	font-family: var(--fjrn-serif);
	font-variation-settings: var(--fjrn-calm);
	color: var(--fjrn-plum);
	font-weight: 500;
	letter-spacing: -0.005em;
}

h1, .entry-title { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; margin-top: 2.2em; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-top: 1.8em; }

::selection { background: var(--fjrn-blush-deep); }

/* Masthead */

.site-header {
	background: var(--fjrn-page);
	text-align: center;
}

.site-header .inside-header {
	flex-direction: column;
	justify-content: center;
	padding-top: 28px;
	padding-bottom: 6px;
}

.site-branding,
.site-logo {
	margin: 0 auto;
}

.main-title,
.site-title {
	font-size: clamp(1.9rem, 4.6vw, 2.75rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.1;
	margin: 0;
}

.main-title a,
.site-title a {
	color: var(--fjrn-plum);
	text-decoration: none;
}

.site-description {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 6px;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	color: var(--fjrn-plum-soft);
}

.site-description::before,
.site-description::after {
	content: "";
	flex: 1;
	max-width: 150px;
	height: 1px;
	background: var(--fjrn-plum);
	opacity: 0.4;
}

/* Navigation */

.main-navigation,
.main-navigation ul ul {
	background: var(--fjrn-page);
}

.main-navigation .inside-navigation {
	justify-content: center;
	border-bottom: 1px solid var(--fjrn-line);
}

.main-navigation .main-nav ul li a {
	font-family: var(--fjrn-sans);
	font-size: 0.86rem;
	font-weight: 500;
	color: var(--fjrn-plum);
	line-height: 52px;
	text-decoration: none;
	padding-left: 14px;
	padding-right: 14px;
}

.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--fjrn-coral-dark);
	background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	box-shadow: inset 0 -2px 0 var(--fjrn-coral);
}

.menu-toggle,
.main-navigation .menu-toggle {
	color: var(--fjrn-plum);
	font-family: var(--fjrn-sans);
	font-weight: 500;
}

/* Content area */

.separate-containers .inside-article,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
	background: var(--fjrn-page);
}

.single .entry-content,
.page .entry-content,
.single .entry-header,
.page .entry-header {
	max-width: var(--fjrn-measure);
	margin-left: auto;
	margin-right: auto;
}

.home .entry-content,
.page-template-full .entry-content,
.fjrn-wide .entry-content {
	max-width: none;
}

.entry-content > p:first-of-type {
	font-size: 1.12em;
}

.entry-meta,
.cat-links,
.entry-meta a {
	font-size: 0.8rem;
	color: var(--fjrn-coral-dark);
	letter-spacing: 0.03em;
}

.entry-meta .byline,
.entry-meta .author,
.comments-link {
	display: none;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.2em;
}

.entry-content ul li::marker {
	content: "\2013\00a0\00a0";
	color: var(--fjrn-coral);
}

.entry-content li + li {
	margin-top: 0.35em;
}

.entry-content blockquote {
	border-left: 2px solid var(--fjrn-coral);
	margin-left: 0;
	padding-left: 1.2em;
	font-family: var(--fjrn-serif);
	font-variation-settings: var(--fjrn-calm);
	font-style: italic;
	font-size: 1.2em;
}

/* Tables */

.entry-content .wp-block-table table {
	border-collapse: collapse;
	font-size: 0.92rem;
	width: 100%;
}

.entry-content .wp-block-table th {
	background: var(--fjrn-plum);
	color: var(--fjrn-page);
	font-weight: 500;
	text-align: left;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
	border: 0;
	border-bottom: 1px solid var(--fjrn-line);
	padding: 0.7em 0.8em;
	vertical-align: top;
}

.entry-content .wp-block-table tbody tr:nth-child(even) td {
	background: rgba(246, 227, 220, 0.45);
}

.entry-content .wp-block-table figcaption {
	font-size: 0.8rem;
	color: var(--fjrn-plum-soft);
	text-align: left;
}

/* Note box used for dated facts */

.fjrn-note {
	background: var(--fjrn-blush);
	border-top: 3px solid var(--fjrn-coral);
	padding: 1.1em 1.3em;
	font-size: 0.95rem;
}

.fjrn-note p { margin-bottom: 0.4em; }
.fjrn-note p:last-child { margin-bottom: 0; }

/* Charts */

.fjrn-chart {
	margin: 2em 0;
}

.fjrn-chart svg {
	width: 100%;
	height: auto;
	display: block;
}

.fjrn-chart .fjrn-src {
	font-size: 0.78rem;
	color: var(--fjrn-plum-soft);
	margin-top: 0.5em;
}

/* Homepage: split feature */

.fjrn-feature {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	margin: 8px 0 48px;
}

.fjrn-feature > * {
	margin: 0 !important;
}

.fjrn-feature .fjrn-photo,
.fjrn-card .fjrn-photo {
	aspect-ratio: 4 / 5;
	background: linear-gradient(165deg, #f1c7b5, #b8707a);
	overflow: hidden;
}

.fjrn-feature .fjrn-photo img,
.fjrn-card .fjrn-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fjrn-feature .fjrn-panel {
	background: var(--fjrn-blush);
	padding: clamp(24px, 4vw, 56px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.fjrn-kicker {
	font-family: var(--fjrn-sans);
	font-size: 0.75rem !important;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fjrn-coral-dark);
	margin-bottom: 0.6em !important;
}

.fjrn-feature h2 {
	margin-top: 0;
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	line-height: 1.12;
}

.fjrn-feature h2 a {
	text-decoration: none;
}

.fjrn-readmore a {
	display: inline-block;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--fjrn-page);
	background: var(--fjrn-plum);
	padding: 0.7em 1.2em;
	text-decoration: none;
	border-radius: 0;
}

.fjrn-readmore a:hover {
	background: var(--fjrn-coral-dark);
	color: #fff;
}

/* Homepage: portrait cards with overlapping title */

.fjrn-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	margin-bottom: 56px;
}

.fjrn-cards > * { margin: 0 !important; }

.fjrn-card .fjrn-photo.fjrn-tone-b { background: linear-gradient(170deg, #d9a38f, #7a3b55); }
.fjrn-card .fjrn-photo.fjrn-tone-c { background: linear-gradient(170deg, #f0d2b8, #b0646b); }
.fjrn-card .fjrn-photo.fjrn-tone-d { background: linear-gradient(170deg, #c88f86, #55264a); }

.fjrn-card .fjrn-label {
	position: relative;
	background: #fff;
	margin: -48px 14px 0 !important;
	padding: 14px 16px 16px;
	border-bottom: 3px solid var(--fjrn-plum);
}

.fjrn-card .fjrn-label p {
	margin: 0;
}

.fjrn-card .fjrn-label h3 {
	font-size: 1.12rem;
	line-height: 1.25;
	margin: 4px 0 0;
}

.fjrn-card .fjrn-label h3 a {
	text-decoration: none;
}

/* Homepage: section heads and topic lists */

.fjrn-sechead {
	display: flex;
	align-items: baseline;
	gap: 14px;
	border-top: 1px solid var(--fjrn-plum);
	padding-top: 12px;
	margin: 0 0 22px !important;
}

.fjrn-sechead h2 {
	margin: 0;
	font-size: 1.5rem;
	font-style: italic;
	font-weight: 400;
}

.fjrn-topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 48px;
	margin-bottom: 56px;
}

.fjrn-topics > * { margin: 0 !important; }

.fjrn-topics h3 {
	font-size: 1.1rem;
	margin: 0 0 6px;
}

.fjrn-topics ul {
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
}

.fjrn-topics ul li {
	border-bottom: 1px solid var(--fjrn-line);
	padding: 9px 0;
	margin: 0;
}

.fjrn-topics ul li::marker { content: none; }

.fjrn-topics ul li a {
	text-decoration: none;
	font-weight: 500;
}

/* Plum band */

.fjrn-band {
	background: var(--fjrn-plum);
	color: var(--fjrn-page);
	padding: 32px clamp(20px, 4vw, 48px);
	margin-bottom: 48px;
}

.fjrn-band p {
	font-family: var(--fjrn-serif);
	font-variation-settings: var(--fjrn-calm);
	font-style: italic;
	font-size: 1.25rem;
	line-height: 1.4;
	margin: 0;
}

.fjrn-band a {
	color: var(--fjrn-page);
	text-decoration-color: var(--fjrn-coral);
}

/* Archive pages */

.archive .page-header,
.blog .page-header {
	text-align: center;
	border-bottom: 1px solid var(--fjrn-line);
}

.archive .page-header .page-title {
	font-style: italic;
	font-weight: 400;
}

.archive .taxonomy-description {
	max-width: 38rem;
	margin: 0 auto;
	font-size: 1rem;
}

.archive .post-image img,
.blog .post-image img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.archive .entry-title,
.blog .entry-title {
	font-size: 1.45rem;
}

.read-more,
.more-link {
	font-weight: 700;
	color: var(--fjrn-coral-dark);
}

/* FAQ blocks use plain details elements */

.entry-content details {
	border-bottom: 1px solid var(--fjrn-line);
	padding: 0.8em 0;
}

.entry-content details summary {
	cursor: pointer;
	font-family: var(--fjrn-serif);
	font-variation-settings: var(--fjrn-calm);
	font-size: 1.1rem;
	font-weight: 500;
	list-style-position: outside;
}

.entry-content details[open] summary {
	margin-bottom: 0.5em;
}

/* Forms */

.fluentform .ff-el-form-control,
input[type="text"],
input[type="email"],
textarea {
	border: 1px solid var(--fjrn-plum-soft);
	border-radius: 0;
	background: #fff;
	font-family: var(--fjrn-sans);
}

.fluentform .ff-btn-submit,
button,
input[type="submit"] {
	background: var(--fjrn-plum) !important;
	color: var(--fjrn-page) !important;
	border-radius: 0 !important;
	font-family: var(--fjrn-sans);
	font-weight: 700;
}

.fluentform .ff-btn-submit:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--fjrn-coral-dark) !important;
}

/* Footer */

.site-footer,
.site-info {
	background: var(--fjrn-plum);
	color: var(--fjrn-blush);
}

.site-info {
	font-size: 0.82rem;
	text-align: center;
	padding: 28px 20px;
}

.site-info a,
.footer-widgets a {
	color: var(--fjrn-page);
}

.footer-widgets {
	background: var(--fjrn-plum);
	color: var(--fjrn-blush);
	font-size: 0.9rem;
}

.footer-widgets .widget-title {
	font-family: var(--fjrn-serif);
	font-variation-settings: var(--fjrn-calm);
	font-style: italic;
	font-weight: 400;
	color: var(--fjrn-page);
	font-size: 1.2rem;
}

.fjrn-footer-links {
	margin-bottom: 8px;
}

.fjrn-footer-links a {
	margin: 0 10px;
	text-decoration: none;
}

/* Small screens */

@media (max-width: 860px) {
	.fjrn-feature {
		grid-template-columns: minmax(0, 1fr);
	}

	.fjrn-feature .fjrn-photo {
		aspect-ratio: 4 / 3;
	}

	.fjrn-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.fjrn-topics {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 560px) {
	body { font-size: 17px; }

	.fjrn-cards {
		grid-template-columns: minmax(0, 1fr);
	}

	.fjrn-card .fjrn-photo {
		aspect-ratio: 3 / 2;
	}

	.site-description::before,
	.site-description::after {
		max-width: 40px;
	}
}

/* Front page keeps its H1 for readers using assistive tech */

.home.page .entry-header {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
