/*
Theme Name: Brianne The LPN
Author: Brianne
Description: Study guides, tutoring and a blog for LPN students, from Brianne The LPN.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brianne-the-lpn
*/

:root {
	--cream: #FCF7F1;
	--cotton: #FAF8F4;
	--choc: #422F0E;
	--lavender: #F9D4F8;
	--twilight: #AECFD0;
	--umbrella: #FFD094;
	--shower: #EA5E86;
	--tomato: #EF6545;
	--corn: #F7E9B2;
	--mint: #DDF2B8;
	--tang: #F49625;
	--bali: #037F71;
	--bahamas: #57B1A9;
	--shortcake: #FEC4C1;
	--radius: 28px;
	--font-head: "Poppins", "Avenir Next", "Trebuchet MS", sans-serif;
	--font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--choc);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--bali);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--choc);
}

:focus-visible {
	outline: 3px solid var(--bali);
	outline-offset: 3px;
}

h1,
h2,
h3 {
	font-family: var(--font-head);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.04;
	letter-spacing: 0.01em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.5rem, 10vw, 4.75rem);
}

h2 {
	font-size: clamp(1.9rem, 6.5vw, 3rem);
}

h3 {
	font-size: 1.3rem;
	line-height: 1.12;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: min(100% - 2.5rem, 1120px);
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - 2.5rem, 760px);
}

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

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 100;
	background: var(--choc);
	color: var(--cotton);
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
}

.skip-link:focus {
	top: 1rem;
	color: var(--cotton);
}

/* Colors */

.bg-cream { background: var(--cream); }
.bg-lavender { background: var(--lavender); }
.bg-twilight { background: var(--twilight); }
.bg-umbrella { background: var(--umbrella); }
.bg-corn { background: var(--corn); }
.bg-mint { background: var(--mint); }
.bg-shortcake { background: var(--shortcake); }
.bg-bahamas { background: var(--bahamas); }
.bg-bali { background: var(--bali); color: var(--cotton); }

/* Buttons and labels */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.7rem 1.6rem;
	border: 2px solid var(--choc);
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.15;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
	transform: translateY(-3px);
}

.btn--dark {
	background: var(--choc);
	color: var(--cotton);
}

.btn--dark:hover {
	color: var(--cotton);
	box-shadow: 0 5px 0 var(--tang);
}

.btn--light {
	background: transparent;
	color: var(--choc);
}

.btn--light:hover {
	color: var(--choc);
	box-shadow: 0 5px 0 var(--choc);
}

.btn--cotton {
	background: var(--cotton);
	border-color: var(--cotton);
	color: var(--choc);
}

.btn--cotton:hover {
	color: var(--choc);
	box-shadow: 0 5px 0 var(--tang);
}

.btn--small {
	min-height: 44px;
	padding: 0.5rem 1.2rem;
	font-size: 0.82rem;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem;
}

.btn-row--spaced {
	margin-top: 1.75rem;
}

.pill {
	display: inline-block;
	margin: 0 0 1.1rem;
	padding: 0.4em 1em;
	border-radius: 999px;
	background: var(--tang);
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.lead {
	font-size: 1.2rem;
	max-width: 44ch;
}

/* Header */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--cream);
	border-bottom: 2px solid var(--choc);
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0 1rem;
	min-height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
}

.brand:hover {
	color: var(--choc);
}

.brand__mark {
	flex: none;
}

.brand__the {
	position: relative;
	top: -0.12em;
	padding: 0.25em 0.65em;
	border-radius: 999px;
	background: var(--choc);
	color: var(--cotton);
	font-size: 0.6em;
	letter-spacing: 0.1em;
}

.nav-toggle {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 1.1rem;
	border: 2px solid var(--choc);
	border-radius: 999px;
	background: transparent;
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.site-nav {
	display: none;
	width: 100%;
	padding: 0 0 1.25rem;
}

.site-nav.is-open,
.no-js .site-nav {
	display: block;
}

.site-nav ul {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
}

.site-nav li a {
	display: flex;
	align-items: center;
	min-height: 48px;
	border-bottom: 1px solid rgba(66, 47, 14, 0.2);
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.site-nav li a:hover {
	color: var(--bali);
}

@media (min-width: 860px) {
	.nav-toggle {
		display: none;
	}

	.site-nav,
	.site-nav.is-open,
	.no-js .site-nav {
		display: flex;
		align-items: center;
		gap: 1.5rem;
		width: auto;
		padding: 0;
	}

	.site-nav ul {
		display: flex;
		gap: 1.5rem;
		margin: 0;
	}

	.site-nav li a {
		min-height: 44px;
		border: 0;
		font-size: 0.9rem;
	}
}

/* Hero */

.hero {
	padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
	display: grid;
	gap: 2.75rem;
	align-items: center;
}

@media (min-width: 900px) {
	.hero__grid {
		grid-template-columns: 1fr 1fr;
	}
}

.hero__chip {
	display: inline-block;
	padding: 0.04em 0.2em 0.08em;
	border-radius: 0.26em;
	background: var(--tang);
	transform: rotate(-2deg);
}

.hero__lead {
	max-width: 40ch;
	margin-bottom: 1.75rem;
	font-size: 1.2rem;
}

.mosaic {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.mosaic__tile {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 0.75rem;
	min-height: 116px;
	padding: 0.85rem;
	border-radius: 22px;
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: clamp(0.78rem, 3.5vw, 0.92rem);
	line-height: 1.08;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: none;
	overflow-wrap: break-word;
	min-width: 0;
	transition: transform 0.15s ease;
}

.mosaic__tile:hover {
	color: var(--choc);
	transform: translateY(-4px) rotate(-1.5deg);
}

.mosaic__no {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.18em;
}

.mosaic__plus {
	position: absolute;
	top: -34px;
	right: -8px;
	width: 46px;
	height: 46px;
	transform: rotate(12deg);
	pointer-events: none;
}

@media (min-width: 560px) {
	.mosaic {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.mosaic__tile {
		min-height: 0;
		aspect-ratio: 1 / 1.08;
		font-size: 0.9rem;
	}

	.mosaic__plus {
		top: -26px;
		right: -12px;
		width: 62px;
		height: 62px;
	}
}

/* Sections */

.section {
	padding: clamp(3.5rem, 9vw, 6rem) 0;
}

.section--corn { background: var(--corn); }
.section--twilight { background: var(--twilight); }
.section--shortcake { background: var(--shortcake); }

.section--bali {
	background: var(--bali);
	color: var(--cotton);
}

.section--bali :focus-visible,
.site-footer :focus-visible {
	outline-color: var(--tang);
}

.split {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 860px) {
	.split {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}
}

/* Cards */

.cards {
	display: grid;
	gap: 1rem;
	margin-top: 1.75rem;
}

@media (min-width: 760px) {
	.cards--3 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

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

.card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.6rem;
	border-radius: var(--radius);
	color: var(--choc);
}

.card--outline {
	border: 2px solid var(--choc);
}

.card h3 {
	margin-bottom: 0.5rem;
}

.card h3 a {
	color: var(--choc);
	text-decoration: none;
}

.card h3 a:hover {
	color: var(--bali);
}

.card p {
	margin: 0;
}

.card__num {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	border-radius: 50%;
	background: var(--shower);
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.4rem;
}

.card__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: auto;
	padding-top: 0.8rem;
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.card__link:hover {
	color: var(--bali);
}

.post-card__image {
	display: block;
	width: 100%;
	margin-bottom: 1rem;
	border-radius: 18px;
	overflow: hidden;
}

.post-card__image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card__meta {
	margin-bottom: 0.5rem !important;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Sign-up form */

.signup {
	display: grid;
	gap: 1rem;
	padding: 1.6rem;
	border-radius: var(--radius);
	background: var(--cream);
	color: var(--choc);
}

.signup-frame {
	padding: 1rem;
	border-radius: calc(var(--radius) + 10px);
}

.field label {
	display: block;
	margin-bottom: 0.35rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.field input {
	width: 100%;
	min-height: 52px;
	padding: 0 1rem;
	border: 2px solid var(--choc);
	border-radius: 14px;
	background: #fff;
	color: var(--choc);
	font: inherit;
}

.signup__status {
	margin: 0;
	font-weight: 700;
}

.signup__status:empty {
	display: none;
}

.signup__note {
	margin: 0;
	font-size: 0.88rem;
}

.admin-note {
	margin: 0;
	padding: 0.75rem 1rem;
	border: 2px dashed var(--choc);
	border-radius: 14px;
	font-size: 0.88rem;
}

/* Study guides */

.guides {
	display: grid;
	gap: 1rem;
	margin-top: 1.75rem;
}

@media (min-width: 560px) {
	.guides {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.guides {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.guide {
	display: flex;
	flex-direction: column;
	min-height: 230px;
	padding: 1.5rem;
	border-radius: var(--radius);
	color: var(--choc);
}

.guide__no {
	margin: 0 0 0.7rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.guide h3,
.bundle h3 {
	margin-bottom: 0.5rem;
}

.guide p {
	margin: 0 0 1.2rem;
}

.guide__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
}

.guide__price {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.35rem;
}

.guide__soon {
	padding: 0.4em 0.95em;
	border: 2px solid currentColor;
	border-radius: 999px;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.76rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.bundle {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 1rem;
	padding: 1.75rem;
	border-radius: var(--radius);
	background: var(--choc);
	color: var(--cotton);
}

.bundle p:last-child {
	margin: 0;
}

.bundle .guide__foot {
	margin-top: 0;
}

/* About */

.about {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 800px) {
	.about {
		grid-template-columns: 320px 1fr;
		gap: 3.5rem;
	}
}

.about__photo {
	display: grid;
	place-items: center;
	width: 100%;
	max-width: 320px;
	aspect-ratio: 4 / 5;
	border: 2px solid var(--choc);
	border-radius: var(--radius);
	background: var(--bahamas);
	overflow: hidden;
}

.about__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about__initial {
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 9rem;
	line-height: 1;
}

/* Page headers and content */

.page-hero {
	padding: clamp(2.5rem, 7vw, 4.5rem) 0;
	border-bottom: 2px solid var(--choc);
	background: var(--corn);
}

.page-hero--mint { background: var(--mint); }
.page-hero--bahamas { background: var(--bahamas); }
.page-hero--twilight { background: var(--twilight); }
.page-hero--shortcake { background: var(--shortcake); }
.page-hero--umbrella { background: var(--umbrella); }
.page-hero--lavender { background: var(--lavender); }
.page-hero--corn { background: var(--corn); }

.page-hero h1 {
	margin-bottom: 0;
	font-size: clamp(2.2rem, 8vw, 4rem);
}

.page-hero h1.page-hero__title--post {
	font-size: clamp(1.9rem, 6vw, 3rem);
}

.page-hero .lead {
	margin: 1rem 0 0;
}

.page-hero .btn-row {
	margin-top: 1.5rem;
}

.entry-content {
	max-width: 720px;
}

.entry-content--intro {
	font-size: 1.2rem;
}

.entry-content h2 {
	margin-top: 1.7em;
	font-size: clamp(1.5rem, 5vw, 2rem);
}

.entry-content h3 {
	margin-top: 1.5em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3rem;
}

.entry-content li {
	margin-bottom: 0.4em;
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 1.25rem 1.5rem;
	border-radius: 22px;
	background: var(--corn);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content img,
.entry-image img {
	border-radius: 22px;
}

.entry-image {
	margin-bottom: 2rem;
}

.entry-content table {
	display: block;
	width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(66, 47, 14, 0.35);
	text-align: left;
}

.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.88rem; }

.post-cta,
.tutoring-cta {
	margin-top: 2.5rem;
	padding: 1.75rem;
	border-radius: var(--radius);
}

.post-cta h2,
.tutoring-cta h2 {
	font-size: clamp(1.5rem, 5vw, 2rem);
}

.tutoring-cta__email {
	margin: 1rem 0 0;
	font-size: 0.95rem;
}

/* Post navigation, pagination, comments */

.post-navigation {
	margin-top: 2.5rem;
}

.post-navigation .nav-links {
	display: grid;
	gap: 0.75rem;
}

.post-navigation a {
	color: var(--choc);
	font-weight: 700;
}

.pagination {
	margin-top: 2.5rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.9rem;
	border: 2px solid var(--choc);
	border-radius: 999px;
	color: var(--choc);
	font-family: var(--font-head);
	font-weight: 600;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--choc);
	color: var(--cotton);
}

.comments {
	margin-top: 3rem;
}

.comments__title,
.comment-reply-title {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	text-transform: uppercase;
}

.comment-list {
	padding: 0;
	list-style: none;
}

.comment-list .children {
	padding-left: 1.25rem;
	list-style: none;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1.25rem;
	border: 2px solid var(--choc);
	border-radius: 22px;
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid var(--choc);
	border-radius: 14px;
	background: #fff;
	color: var(--choc);
	font: inherit;
}

.comment-form input[type="submit"] {
	min-height: 52px;
	padding: 0.7rem 1.6rem;
	border: 2px solid var(--choc);
	border-radius: 999px;
	background: var(--choc);
	color: var(--cotton);
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

/* Footer */

.site-footer {
	padding: 3.5rem 0 2rem;
	background: var(--choc);
	color: var(--cotton);
}

.site-footer a {
	color: var(--cotton);
}

.site-footer a:hover {
	color: var(--umbrella);
}

.site-footer__grid {
	display: grid;
	gap: 2rem;
}

@media (min-width: 760px) {
	.site-footer__grid {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

.site-footer__brand {
	font-family: var(--font-head);
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.site-footer__heading {
	margin-bottom: 0.5rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.footer__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.site-footer__fine {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(250, 248, 244, 0.3);
	font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
