/* ==========================================================================
   See The Flow — theme styles
   --------------------------------------------------------------------------
   Colours, fonts and sizes come from theme.json as CSS variables:
     var(--wp--preset--color--primary)      Flow Teal
     var(--wp--preset--color--primary-dark) Deep Teal
     var(--wp--preset--color--surface)      soft grey-blue background
     var(--wp--preset--color--muted)        grey text
   Change a colour once in Appearance → Editor → Styles and it updates
   everywhere below. All custom classes start with "stf-" so you can find
   them easily, and add them to any block under Advanced → Additional CSS class.
   ========================================================================== */

/* ---------- Base ---------- */

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

::selection {
	background: var(--wp--preset--color--marker);
	color: var(--wp--preset--color--contrast);
}

:where(a):focus-visible,
:where(button):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Outline button style (Button block → Styles → Outline) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	border: 1.5px solid currentColor;
	color: var(--wp--preset--color--contrast);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--contrast);
}

/* ---------- Header ---------- */

.stf-header {
	/* Solid background: a backdrop-filter here would trap the mobile menu inside the header bar. */
	background: var(--wp--preset--color--base);
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding-top: 0.9rem;
	padding-bottom: 0.9rem;
	position: sticky;
	top: 0;
	z-index: 50;
}

/* Keep the sticky header below the WordPress admin bar when logged in */
.admin-bar .stf-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .stf-header {
		top: 46px;
	}
}

.stf-header__inner {
	gap: 1.5rem;
}

.stf-header__right {
	gap: 1.25rem;
}

.stf-header .wp-block-site-title {
	margin: 0;
}

/* Small "Hire me" button in the header */
.stf-header__cta .wp-block-button__link {
	padding: 0.55em 1.1em;
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	overflow-y: auto;
	padding: 2rem 1.5rem;
}

/* Keep the menu's close button below the WordPress admin bar when logged in */
.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
	top: 46px;
}

@media (min-width: 783px) {
	.admin-bar .wp-block-navigation__responsive-container.is-menu-open {
		top: 32px;
	}
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: var(--wp--preset--font-size--large);
	gap: 1.25rem;
}

/* ---------- Sections ---------- */

.stf-section {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.stf-section--alt {
	background: var(--wp--preset--color--surface);
}

.stf-section--tint {
	background: var(--wp--preset--color--tint);
}

.stf-section-intro {
	margin-bottom: var(--wp--preset--spacing--50);
	max-width: 680px;
}

/* Section intros sit left-aligned with the content, like an editor's page. */
.stf-section-intro.has-text-align-center,
.stf-center {
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.stf-cta .stf-center,
.stf-cta.stf-center {
	text-align: center;
}

/* Short label above a section heading */
.stf-eyebrow {
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 0.6rem;
}

.stf-lead {
	color: var(--wp--preset--color--muted);
	font-size: 1.25rem;
	line-height: 1.55;
	max-width: 60ch;
}

.stf-note {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Hero ---------- */

.stf-hero {
	background: var(--wp--preset--color--base);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--60);
}

.stf-hero h1 {
	font-weight: 450;
	letter-spacing: -0.025em;
	line-height: 1.04;
	max-width: 14ch;
}

.stf-hero .stf-lead {
	max-width: 58ch;
}

.stf-hero__cols {
	gap: var(--wp--preset--spacing--60);
}

.stf-hero__side {
	position: relative;
}

.stf-hero__photo {
	margin: 0;
}

/* Large, frameless photo: the person is the hero. */
.stf-hero__photo img {
	aspect-ratio: 5 / 6;
	border-radius: 22px;
	object-position: 60% 40%;
	height: auto !important;
	max-width: 100%;
	object-fit: cover;
	width: 100% !important;
}

.stf-hero__name {
	color: var(--wp--preset--color--muted);
	font-size: 0.95rem;
	margin-top: 1rem;
}

.stf-hero__name strong {
	color: var(--wp--preset--color--contrast);
	display: block;
	font-size: 1.05rem;
}

/* Handwritten notes (used twice at most on a page) */
.stf-hand {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--hand);
	font-size: 1.85rem;
	line-height: 1.1;
}

.stf-hero__note {
	background: var(--wp--preset--color--base);
	border-radius: 12px;
	left: -2.5rem;
	margin: 0;
	padding: 0.35rem 0.9rem 0.5rem;
	position: absolute;
	top: 12%;
	transform: rotate(-4deg);
}

.stf-hero__note::after {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40' fill='none' stroke='%231D2026' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6c18 2 34 10 44 26'/%3E%3Cpath d='M40 31l9 2 1-9'/%3E%3C/svg%3E") no-repeat center / contain;
	content: "";
	height: 34px;
	position: absolute;
	right: -46px;
	top: 70%;
	width: 52px;
}

@media (max-width: 781px) {
	.stf-hero__photo img {
		aspect-ratio: 4 / 3;
	}

	.stf-hero__note {
		left: 0.75rem;
		top: 0.75rem;
	}
}

.stf-hero .wp-block-buttons {
	margin-top: 2rem;
}

/* Row of small facts under the hero */
.stf-stats {
	gap: 1.25rem 0;
	margin-top: var(--wp--preset--spacing--50);
}

.stf-stats > .stf-stat {
	padding-right: 1.75rem;
}

.stf-stats > .stf-stat + .stf-stat {
	border-left: 1px solid var(--wp--preset--color--border);
	padding-left: 1.75rem;
}

.stf-stat {
	margin: 0;
}

.stf-stat strong {
	color: var(--wp--preset--color--contrast);
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.45rem;
	font-weight: 550;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.stf-stat {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
}

/* ---------- Cards (services, steps, portfolio) ---------- */

.stf-cards {
	gap: 1.5rem;
}

.stf-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 1.75rem;
}

.stf-card > :first-child {
	margin-top: 0;
}

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

.stf-card p {
	color: var(--wp--preset--color--muted);
}

.stf-card .stf-card__link {
	font-weight: 600;
	margin-top: 1rem;
}

.stf-card .stf-card__link a {
	text-decoration: none;
}

/* Number badge for "How it works" steps */
.stf-step-num {
	align-items: center;
	background: var(--wp--preset--color--tint);
	font-family: var(--wp--preset--font-family--display);
	border-radius: 999px;
	color: var(--wp--preset--color--primary-dark) !important;
	display: inline-flex;
	font-weight: 600;
	height: 2.5rem;
	justify-content: center;
	margin-bottom: 0.75rem;
	width: 2.5rem;
}

/* Lists with tick marks (packages, features) */
.stf-checklist {
	list-style: none;
	padding-left: 0;
}

.stf-checklist li {
	padding-left: 1.75rem;
	position: relative;
}

.stf-checklist li + li {
	margin-top: 0.5rem;
}

.stf-checklist li::before {
	color: var(--wp--preset--color--primary);
	content: "✓";
	font-weight: 800;
	left: 0;
	position: absolute;
}

/* ---------- Pricing packages ---------- */

.stf-price {
	display: flex;
	flex-direction: column;
}

.stf-price .wp-block-buttons {
	margin-top: auto;
	padding-top: 1.5rem;
}

.stf-price__amount {
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 550;
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: 0.5rem 0 0;
}

/* The featured package is the one dark card on the page. */
.stf-price--featured {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: #DCE5EE;
	position: relative;
}

.stf-price--featured h3,
.stf-price--featured .stf-price__amount {
	color: var(--wp--preset--color--base) !important;
}

.stf-price--featured p,
.stf-price--featured .stf-note {
	color: #B9C6D3 !important;
}

.stf-price--featured .stf-checklist li::before {
	color: #F0A68B;
}

.stf-price--featured .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.stf-price--featured .wp-block-button__link:hover {
	background: #D7623D;
	color: var(--wp--preset--color--white);
}

.stf-badge {
	background: var(--wp--preset--color--primary);
	border-radius: 6px;
	color: var(--wp--preset--color--white) !important;
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 0.75rem;
	padding: 0.2rem 0.6rem;
	width: fit-content;
}

/* ---------- Call-to-action band ---------- */

.stf-cta {
	background: var(--wp--preset--color--contrast);
	border-radius: 16px;
	color: var(--wp--preset--color--base);
	padding: var(--wp--preset--spacing--60) var(--wp--preset--spacing--50);
	text-align: center;
}

.stf-cta h2,
.stf-cta p {
	color: var(--wp--preset--color--base);
}

.stf-cta p {
	opacity: 0.9;
}

.stf-cta .wp-block-buttons {
	justify-content: center;
	margin-top: 1.5rem;
}

.stf-cta .wp-block-button__link {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.stf-cta .wp-block-button__link:hover {
	background: #D7623D;
	color: var(--wp--preset--color--white);
}

/* ---------- Dark "ink" section (How it works) ---------- */

.stf-section--ink {
	background: var(--wp--preset--color--contrast);
	color: #C7D2DE;
}

.stf-section--ink h2,
.stf-section--ink h3 {
	color: var(--wp--preset--color--base);
}

.stf-section--ink .stf-eyebrow {
	color: var(--wp--preset--color--marker);
}

.stf-section--ink .stf-lead,
.stf-section--ink .stf-card p {
	color: #B9C6D3;
}

.stf-section--ink .stf-card {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.14);
}

/* ---------- Service cards with icons ---------- */

.stf-services .stf-card {
	border-radius: 14px;
	padding: 2rem;
}

.stf-icon {
	color: var(--wp--preset--color--primary);
	display: inline-block;
	margin-bottom: 0.75rem;
}

.stf-icon svg {
	display: block;
}

/* ---------- Flow Checker sample (homepage tools section) ---------- */

.stf-markup__note {
	margin: 0 0 0.5rem auto;
	text-align: right;
	transform: rotate(-3deg);
	width: fit-content;
}

.stf-markup {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	margin: 0;
	overflow: hidden;
}

.stf-markup__bar {
	align-items: center;
	background: var(--wp--preset--color--surface);
	border-bottom: 1px solid var(--wp--preset--color--border);
	display: flex;
	font-size: 0.9375rem;
	font-weight: 650;
	justify-content: space-between;
	padding: 0.75rem 1.25rem;
}

.stf-markup__score b {
	color: #9A6200;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
}

.stf-markup__text {
	font-size: 1.125rem;
	line-height: 1.9;
	margin: 0;
	padding: 1.25rem 1.25rem 0.5rem;
}

.stf-markup__notes {
	display: grid;
	font-size: 0.9375rem;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0.75rem 1.25rem 1.25rem;
}

.stf-markup__notes li span {
	margin-right: 0.5rem;
}

/* Same colours as the Flow Checker itself */
.stf-mk-long { background: #FFF3B0; }
.stf-mk-pass { text-decoration: underline wavy #2563EB; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-skip-ink: none; }
.stf-mk-wordy { background: #FFF7ED; border-radius: 3px; box-shadow: inset 0 0 0 1.5px #D97706; padding: 0 0.1em; }
.stf-mk-hard { background: #F1E6FB; border-bottom: 2px dotted #7A3EB1; }
.stf-mk-filler { color: #6B625A; text-decoration: line-through; text-decoration-color: #8C8177; text-decoration-thickness: 1.5px; }

/* ---------- Blog ---------- */

.stf-page-header {
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: var(--wp--preset--spacing--40);
}

.stf-post-card {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
}

.stf-post-card .wp-block-post-featured-image {
	border-radius: 12px;
	margin-bottom: 0.5rem;
	overflow: hidden;
}

.stf-post-card .wp-block-post-featured-image img {
	transition: transform 0.3s ease;
}

.stf-post-card:hover .wp-block-post-featured-image img {
	transform: scale(1.03);
}

.stf-post-card .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	margin: 0;
}

.stf-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.wp-block-query-pagination {
	font-weight: 600;
	gap: 1rem;
	margin-top: var(--wp--preset--spacing--50);
}

.wp-block-query-pagination a {
	text-decoration: none;
}

/* Single post */
.stf-post-meta {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	gap: 0.5rem 1rem;
}

.stf-post-meta a {
	text-decoration: none;
}

.single .wp-block-post-featured-image img {
	border-radius: 14px;
}

.wp-block-post-content h2 {
	margin-top: 2.5rem;
}

.wp-block-post-content h3 {
	margin-top: 2rem;
}

.wp-block-post-content a {
	text-underline-offset: 3px;
}

/* Box at the end of every post */
.stf-post-cta {
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 12px;
	margin-top: var(--wp--preset--spacing--50);
	padding: 1.5rem 1.75rem;
}

.stf-post-cta h3 {
	margin-top: 0;
}

.stf-post-cta p {
	color: var(--wp--preset--color--muted);
}

/* ---------- Free tools ---------- */

.stf-tool {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 14px;
	padding: 1.5rem;
}

.stf-tool textarea {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	box-sizing: border-box;
	font: inherit;
	min-height: 240px;
	padding: 1rem;
	resize: vertical;
	width: 100%;
}

.stf-tool textarea:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}

/* ---------- Contact ---------- */

.stf-contact-box {
	background: var(--wp--preset--color--surface);
	border-radius: 14px;
	padding: 1.75rem;
}

/* Basic styling so common form plugins blend in */
.stf-form input[type="text"],
.stf-form input[type="email"],
.stf-form input[type="url"],
.stf-form select,
.stf-form textarea {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 8px;
	box-sizing: border-box;
	font: inherit;
	padding: 0.7rem 0.9rem;
	width: 100%;
}

/* ---------- Footer ---------- */

.stf-footer {
	background: var(--wp--preset--color--contrast);
	color: #C9D3DE;
	font-size: var(--wp--preset--font-size--small);
	margin-top: var(--wp--preset--spacing--60);
	padding-top: var(--wp--preset--spacing--60);
	padding-bottom: 2rem;
}

/* Pages that end with a full section (homepage, landing pages) don't need extra space */
main:has(.stf-section:last-child) + footer .stf-footer {
	margin-top: 0;
}

.stf-footer h2,
.stf-footer h3,
.stf-footer .wp-block-site-title a {
	color: var(--wp--preset--color--base);
}

.stf-footer h3 {
	font-size: 1rem;
	letter-spacing: -0.01em;
}

.stf-footer a {
	color: #C9D3DE;
	text-decoration: none;
}

.stf-footer a:hover {
	color: var(--wp--preset--color--base);
	text-decoration: underline;
}

.stf-footer ul {
	list-style: none;
	padding-left: 0;
}

.stf-footer li + li {
	margin-top: 0.4rem;
}

.stf-quote {
	border-left: 3px solid var(--wp--preset--color--accent);
	color: #E6ECF2;
	font-style: italic;
	padding-left: 0.9rem;
}

.stf-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	gap: 0.75rem 2rem;
	margin-top: var(--wp--preset--spacing--50);
	padding-top: 1.5rem;
}

.stf-footer__bottom p {
	margin: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.stf-card {
		padding: 1.4rem;
	}

	.stf-cta {
		border-radius: 0;
		margin-left: calc(var(--wp--style--root--padding-left) * -1);
		margin-right: calc(var(--wp--style--root--padding-right) * -1);
	}
}

/* Respect people who turn off animations */
@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}

/* Section intros line up with the wide content below them. */
.stf-section > .stf-section-intro.stf-center {
	max-width: var(--wp--style--global--wide-size) !important;
}

.stf-section > .stf-section-intro.stf-center > * {
	max-width: 680px;
}

/* Wide single boxes (like the trial offer) use a soft fill instead of an outline. */
.stf-section > .alignwide.stf-card {
	background: var(--wp--preset--color--surface);
	border-color: transparent;
}

.stf-section--alt > .alignwide.stf-card {
	background: var(--wp--preset--color--white);
}

.stf-price--featured .stf-badge {
	color: var(--wp--preset--color--contrast) !important;
}

/* Hero facts: three even columns with thin dividers. */
.stf-hero .stf-stats {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, auto));
	justify-content: start;
}

.stf-hero .stf-stat strong {
	font-size: 1.3rem;
}

@media (max-width: 600px) {
	.stf-hero .stf-stats {
		grid-template-columns: 1fr;
	}

	.stf-stats > .stf-stat + .stf-stat {
		border-left: 0;
		border-top: 1px solid var(--wp--preset--color--border);
		padding: 1rem 0 0;
	}
}

/* Service icons sit in a soft clay circle. */
.stf-icon {
	align-items: center;
	background: var(--wp--preset--color--tint);
	border-radius: 50%;
	display: inline-flex;
	height: 56px;
	justify-content: center;
	width: 56px;
}

.stf-hero .stf-stats {
	align-items: start;
}

@media (max-width: 781px) {
	.stf-hero__note::after {
		display: none;
	}
}

/* "Get a quote" on single-service cards: a link-sized line, not a big price. */
.stf-card:not(.stf-price) .stf-price__amount {
	color: var(--wp--preset--color--primary) !important;
	font-family: inherit;
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	margin-top: 1.25rem;
}

.stf-about__photo {
	margin: 0;
}

.stf-about__photo img {
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	object-fit: cover;
	width: 100%;
}

/* ---------- Brand: S mark + name ---------- */

.stf-brand {
	align-items: center;
	color: var(--wp--preset--color--contrast);
	display: inline-flex;
	gap: 0.6rem;
	text-decoration: none;
}

.stf-brand:hover {
	color: var(--wp--preset--color--contrast);
}

.stf-brand__mark {
	display: block;
	height: 38px;
	width: auto;
}

.stf-brand span {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 560;
	letter-spacing: -0.02em;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 420px) {
	.stf-brand__mark {
		height: 32px;
	}

	.stf-brand span {
		font-size: 1.3rem;
	}
}

/* ---------- Built-in contact form ---------- */

.stf-contact {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	padding: clamp(1.25rem, 3vw, 2rem);
}

.stf-field {
	margin: 0 0 1.1rem;
}

.stf-field label {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.stf-optional {
	color: var(--wp--preset--color--muted);
	font-weight: 400;
}

.stf-field input,
.stf-field select,
.stf-field textarea {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 10px;
	box-sizing: border-box;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	padding: 0.75rem 0.9rem;
	width: 100%;
}

.stf-field textarea {
	min-height: 160px;
	resize: vertical;
}

.stf-field input:focus,
.stf-field select:focus,
.stf-field textarea:focus {
	border-color: var(--wp--preset--color--primary);
	outline: 2px solid var(--wp--preset--color--tint);
	outline-offset: 0;
}

.stf-field-row {
	display: grid;
	gap: 0 1rem;
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 600px) {
	.stf-field-row {
		grid-template-columns: 1fr;
	}
}

.stf-form-foot {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin: 0.5rem 0 0;
}

.stf-submit {
	background: var(--wp--preset--color--primary);
	border: 0;
	border-radius: 10px;
	color: var(--wp--preset--color--white);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	padding: 0.95em 1.6em;
}

.stf-submit:hover {
	background: var(--wp--preset--color--primary-dark);
}

/* Honeypot: hidden from people, visible to bots */
.stf-hp {
	height: 1px;
	left: -9999px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.stf-form-msg {
	border-radius: 12px;
	margin-bottom: 1rem;
	padding: 1rem 1.25rem;
}

.stf-form-msg--ok {
	background: #E6F4EA;
	color: #1E5E37;
}

.stf-form-msg--error {
	background: #FDECEA;
	color: #8A2A1C;
}

/* The flowing S mark doubles as the first letter: "See The Flow" */
.stf-brand--merged {
	gap: 0;
}

.stf-brand--merged .stf-brand__mark {
	height: 40px;
}

.stf-brand--merged span {
	margin-left: -2px;
	position: relative;
	top: 3px;
}

@media (max-width: 420px) {
	.stf-brand--merged .stf-brand__mark {
		height: 34px;
	}

	.stf-brand--merged span {
		top: 2px;
	}
}

/* Mobile menu: paper background, large serif links aligned left */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--base) !important;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: flex-start !important;
	padding-top: 2.5rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start !important;
	gap: 0.4rem !important;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.7rem 0;
	width: 100%;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.85rem;
	font-weight: 500;
	letter-spacing: -0.015em;
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
	height: 30px;
	width: 30px;
}

/* ==========================================================================
   Article typography (blog posts and pages with long text)
   Works for posts written in the block editor and older classic-HTML posts.
   ========================================================================== */

.wp-block-post-content {
	font-size: 1.125rem;
	line-height: 1.75;
}

.wp-block-post-content > * + * {
	margin-block-start: 1.15em;
}

/* Headings: clear steps in size, more space above than below */
.wp-block-post-content h2 {
	font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.1rem);
	line-height: 1.2;
	margin-block-end: 0.5em;
	margin-block-start: 2.2em;
}

.wp-block-post-content h3 {
	font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.55rem);
	font-weight: 600;
	line-height: 1.3;
	margin-block-end: 0.4em;
	margin-block-start: 1.8em;
}

.wp-block-post-content h4 {
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
	margin-block-end: 0.3em;
	margin-block-start: 1.5em;
}

.wp-block-post-content h2 + *,
.wp-block-post-content h3 + *,
.wp-block-post-content h4 + * {
	margin-block-start: 0;
}

/* Lists */
.wp-block-post-content ul,
.wp-block-post-content ol {
	padding-left: 1.4em;
}

.wp-block-post-content li + li {
	margin-top: 0.4em;
}

.wp-block-post-content li::marker {
	color: var(--wp--preset--color--primary);
}

/* Quotes: an orange-red bar, serif italic text on a soft fill */
.wp-block-post-content blockquote {
	background: var(--wp--preset--color--surface);
	border-left: 4px solid var(--wp--preset--color--primary);
	border-radius: 0 12px 12px 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.55;
	margin-left: 0;
	margin-right: 0;
	padding: 1rem 1.4rem;
}

.wp-block-post-content blockquote p {
	margin: 0;
}

.wp-block-post-content blockquote p + p {
	margin-top: 0.6em;
}

.wp-block-post-content blockquote cite {
	color: var(--wp--preset--color--muted);
	display: block;
	font-family: inherit;
	font-size: 0.9rem;
	font-style: normal;
	margin-top: 0.6em;
}

/* Tables: clear borders, a shaded header row, scroll sideways on phones */
.wp-block-post-content table {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-collapse: separate;
	border-radius: 12px;
	border-spacing: 0;
	font-size: 0.98rem;
	line-height: 1.5;
	width: 100%;
}

/* On phones, wide tables scroll sideways instead of squashing */
@media (max-width: 600px) {
	.wp-block-post-content table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}

.wp-block-post-content table th,
.wp-block-post-content table td {
	border-bottom: 1px solid var(--wp--preset--color--border);
	padding: 0.7rem 1rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-post-content table tr > * + * {
	border-left: 1px solid var(--wp--preset--color--border);
}

.wp-block-post-content table tbody tr:last-child > * {
	border-bottom: 0;
}

.wp-block-post-content table thead th,
.wp-block-post-content table thead td {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

.wp-block-post-content table tbody tr:nth-child(even) {
	background: rgba(243, 237, 229, 0.45);
}

.wp-block-post-content .wp-block-table {
	margin-left: 0;
	margin-right: 0;
}

.wp-block-post-content .wp-block-table figcaption {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	margin-top: 0.5rem;
}

/* Images, code and dividers */
.wp-block-post-content img {
	border-radius: 12px;
}

.wp-block-post-content figcaption {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
	text-align: center;
}

.wp-block-post-content code {
	background: var(--wp--preset--color--surface);
	border-radius: 5px;
	font-size: 0.9em;
	padding: 0.1em 0.35em;
}

.wp-block-post-content pre code {
	background: none;
	padding: 0;
}

.wp-block-post-content hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--border);
	margin: 2.5em auto;
	width: 40%;
}

.wp-block-post-content strong {
	color: var(--wp--preset--color--contrast);
}

/* ---------- Single post layout ---------- */

.stf-post-header {
	padding-bottom: var(--wp--preset--spacing--40);
	padding-top: var(--wp--preset--spacing--60);
}

.stf-post-cat a {
	background: var(--wp--preset--color--tint);
	border-radius: 999px;
	color: var(--wp--preset--color--primary-dark);
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	text-decoration: none;
}

.stf-post-cat .wp-block-post-terms__separator {
	display: none;
}

.stf-post-title {
	font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
	letter-spacing: -0.02em;
	line-height: 1.12;
	margin-top: 0.9rem;
}

.stf-post-meta {
	align-items: center;
	margin-top: 1rem;
}

.stf-post-meta .wp-block-post-author-name {
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
}

.stf-reading-time {
	margin-left: -0.5rem;
}

.stf-reading-time::before {
	content: "·";
	margin-right: 0.5rem;
}

/* Featured image: the width of the text, not the whole screen */
.stf-single .stf-post-hero {
	margin-bottom: var(--wp--preset--spacing--50);
	margin-top: 0.5rem;
}

.stf-single .stf-post-hero img {
	border-radius: 16px;
	max-height: 420px;
	object-fit: cover;
	width: 100%;
}

/* Author box */
.stf-author {
	border-bottom: 1px solid var(--wp--preset--color--border);
	border-top: 1px solid var(--wp--preset--color--border);
	gap: 1.1rem;
	margin-top: var(--wp--preset--spacing--50);
	padding: 1.5rem 0;
}

.stf-author__photo {
	flex-shrink: 0;
	margin: 0;
}

.stf-author__photo img {
	border-radius: 50%;
	object-fit: cover;
}

.stf-author__name {
	font-weight: 700;
	margin: 0;
}

.stf-author__name a {
	color: var(--wp--preset--color--contrast);
}

.stf-author__bio {
	color: var(--wp--preset--color--muted);
	font-size: 0.98rem;
	margin: 0.3rem 0 0;
}

/* Previous / next */
.stf-post-nav {
	gap: 1rem;
	margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--60);
}

.stf-post-nav > * {
	flex: 1 1 260px;
	font-size: 0.98rem;
}

.stf-post-nav a {
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.15rem;
	text-decoration: none;
}

.stf-post-nav a:hover {
	color: var(--wp--preset--color--primary);
}

.stf-post-nav .post-navigation-link-next {
	text-align: right;
}

/* Keep reading */
.stf-related__title {
	margin-bottom: var(--wp--preset--spacing--40);
}

main.stf-single + .stf-related {
	margin-top: 0;
}

.stf-related + footer .stf-footer {
	margin-top: 0;
}
