/*
Theme Name: Stockbridge Creative Co.
Theme URI: https://www.stockbridgecreativeco.com
Author: Stockbridge Creative Co.
Description: Custom block theme for Stockbridge Creative Co. Navy, terracotta and cream; Georgia headlines, Arial body. On first activation it creates the site pages, the Journal, the menu and the site icon.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: Proprietary
Text Domain: stockbridge-creative
*/

/* Most styling lives in theme.json. This file holds the few rules theme.json cannot express. */

.sc-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 0.75rem;
}
.has-navy-background-color .sc-eyebrow,
.has-terracotta-background-color .sc-eyebrow {
	color: var(--wp--preset--color--cream);
	opacity: 0.85;
}

/* Price line on service cards */
.sc-price {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.25rem;
	line-height: 1;
	color: var(--wp--preset--color--navy);
	margin: 0.25rem 0 0.25rem;
}
.sc-price small {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	color: var(--wp--preset--color--slate);
	margin-left: 0.25rem;
}

/* Cards: hairline border, no shadow */
.sc-card {
	border: 1px solid var(--wp--preset--color--rule);
	background: var(--wp--preset--color--paper);
	height: 100%;
}
.sc-card--feature {
	border-top: 4px solid var(--wp--preset--color--terracotta);
}

/* Check lists */
.sc-list {
	list-style: none;
	padding-left: 0;
}
.sc-list li {
	position: relative;
	padding-left: 1.4em;
	margin-bottom: 0.5em;
}
.sc-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.45em;
	height: 0.45em;
	background: var(--wp--preset--color--terracotta);
	transform: rotate(45deg);
}

/* Numbered steps */
.sc-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 0.5rem;
}

/* Header */
.sc-header .wp-block-site-title a {
	text-decoration: none;
}
.sc-header {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
.sc-brand img {
	display: block;
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--terracotta);
}
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 0.35em;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--wp--preset--color--terracotta);
}

/* Footer links */
.sc-footer a {
	color: var(--wp--preset--color--cream);
	text-decoration: none;
}
.sc-footer a:hover {
	text-decoration: underline;
}
.sc-footer-links {
	list-style: none;
	padding-left: 0;
	margin: 0;
}
.sc-footer-links li {
	margin-bottom: 0.4em;
}

/* Outline button on dark backgrounds */
.has-navy-background-color .wp-block-button.is-style-outline > .wp-block-button__link,
.has-terracotta-background-color .wp-block-button.is-style-outline > .wp-block-button__link {
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cream);
}

/* FAQ */
.sc-faq details {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding: 1.1rem 0;
}
.sc-faq details:last-child {
	border-bottom: 1px solid var(--wp--preset--color--rule);
}
.sc-faq summary {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.2rem;
	cursor: pointer;
	color: var(--wp--preset--color--navy);
}
.sc-faq details p {
	margin-top: 0.75rem;
}

/* Portfolio labels */
.sc-label {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border: 1px solid currentColor;
	padding: 0.2em 0.6em;
	color: var(--wp--preset--color--slate);
}

/* Text-only portfolio tile */
.sc-tile-text {
	aspect-ratio: 9 / 7;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

/* Journal list */
.sc-post-list .wp-block-post {
	border-top: 1px solid var(--wp--preset--color--rule);
	padding-top: 1.5rem;
}

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

@media (max-width: 781px) {
	.sc-hide-mobile {
		display: none !important;
	}
}

/* Full-width sections sit flush against each other and against the header/footer */
.wp-site-blocks > * {
	margin-block-start: 0;
}
.wp-block-post-content > .alignfull,
.wp-block-post-content > .wp-block-group.alignfull + .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Footer rule spans the content width */
.sc-footer .wp-block-separator {
	opacity: 0.35;
	border: 0;
	height: 1px;
}

/* Long email addresses */
.sc-email {
	overflow-wrap: anywhere;
}
