/*
Theme Name: I Sign. I Wander.
Theme URI: https://isigniwander.com
Author: Sherrie Beaver
Author URI: https://isigniwander.com
Description: Custom block theme for isigniwander: Deaf identity, travel and social justice. Built on the isigniwander design system (deep plum and wander pink, Anton and Quicksand, soft circle motifs).
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: isigniwander
Tags: block-theme, full-site-editing, blog, one-column, custom-colors, editor-style
*/

/* ---------- Base ---------- */
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 3px; }
:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--wander-pink-text);
	outline-offset: 3px;
}
img { max-width: 100%; height: auto; }

/* ---------- Block styles ---------- */
.is-style-eyebrow {
	font-size: var(--wp--preset--font-size--label) !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--wp--preset--color--wander-pink-text);
}
.iw-band .is-style-eyebrow,
.iw-footer .is-style-eyebrow { color: var(--wp--preset--color--white); }

.wp-block-group.is-style-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--card);
	padding: 1.5rem;
}

.wp-block-button.is-style-ghost .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--deep-plum);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--deep-plum);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
	background: var(--wp--preset--color--deep-plum);
	color: var(--wp--preset--color--white);
}

/* ---------- Header ---------- */
.iw-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--wp--preset--color--paper);
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.admin-bar .iw-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .iw-header { top: 0; } }
.iw-header .iw-logo img { height: 52px; width: auto; display: block; }
@media (max-width: 760px) { .iw-header .iw-logo img { height: 42px; } }
.iw-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--deep-plum);
	padding: 0.5rem 0.75rem;
	border-radius: 999px;
	text-decoration: none;
}
.iw-header .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--blush); }
.iw-header .current-menu-item > .wp-block-navigation-item__content,
.iw-header .wp-block-navigation-item__content[aria-current="page"] {
	background: var(--wp--preset--color--deep-plum);
	color: var(--wp--preset--color--white);
}
.iw-header .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--paper);
	padding: 1.5rem;
}
.iw-header .wp-block-navigation__responsive-container-open,
.iw-header .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--deep-plum); }

/* ---------- Decorative circles ---------- */
.iw-bleed { position: relative; overflow: hidden; }
.iw-bleed > * { position: relative; z-index: 1; }
.iw-bleed::before {
	content: "";
	position: absolute;
	z-index: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--blush);
	width: 32rem;
	aspect-ratio: 1;
	pointer-events: none;
}
.iw-bleed--tr::before { right: -14rem; top: -10rem; }
.iw-bleed--bl::before { left: -15rem; bottom: -12rem; }
.iw-bleed--ml::before { left: -16rem; top: 14rem; }

/* ---------- Plum band ---------- */
.iw-band { background: var(--wp--preset--color--deep-plum); color: var(--wp--preset--color--white); }
.iw-band.iw-bleed::before { background: var(--wp--preset--color--plum-glow); width: 26rem; }
.iw-band :where(h1, h2, h3, h4, p) { color: var(--wp--preset--color--white); }
.iw-band .wp-block-group.is-style-card { color: var(--wp--preset--color--ink); }
.wp-block-column > .wp-block-group.is-style-card:only-child { height: 100%; box-sizing: border-box; }
.iw-band .wp-block-group.is-style-card h3 { color: var(--wp--preset--color--deep-plum); }
.iw-band .wp-block-group.is-style-card p { color: var(--wp--preset--color--muted); font-size: 1.05rem; }

/* ---------- Hero photo ---------- */
.iw-hero-photo { position: relative; max-width: 460px; margin-left: auto !important; }
.iw-hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: var(--wp--custom--radius--template); width: 100%; position: relative; z-index: 1; }
.iw-hero-photo::before {
	content: "";
	position: absolute;
	width: 70%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--wander-pink);
	left: -16%;
	bottom: 2rem;
	z-index: 0;
}
.iw-hero-photo::after {
	content: "";
	position: absolute;
	z-index: 2;
	right: -14px;
	top: -14px;
	width: 92px;
	height: 92px;
	border-radius: 50%;
	background: var(--wp--preset--color--deep-plum) var(--iw-mark) center / 54% no-repeat;
}
.iw-hero-photo figcaption { position: relative; z-index: 1; }
@media (max-width: 781px) {
	.iw-hero-photo { margin-left: 0 !important; max-width: 380px; }
	.iw-hero-photo::after { right: 8px; width: 72px; height: 72px; }
}

/* ---------- Photos ---------- */
.iw-photo img { border-radius: var(--wp--custom--radius--template); width: 100%; object-fit: cover; }
.iw-photo--wide img { max-height: 620px; }

/* ---------- Post cards ---------- */
.iw-posts .wp-block-post-template { gap: 1.25rem; }
.iw-posts .wp-block-post {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--hairline);
	border-radius: var(--wp--custom--radius--template);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease;
}
.iw-posts .wp-block-post:hover { transform: translateY(-3px); }
.iw-posts .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 9; background: var(--wp--preset--color--deep-plum); position: relative; overflow: hidden; }
.iw-posts .wp-block-post-featured-image:empty::after,
.iw-posts .wp-block-post-featured-image:not(:has(img))::after {
	content: "";
	position: absolute;
	width: 55%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--wp--preset--color--plum-glow);
	right: -18%;
	bottom: -30%;
}
.iw-posts .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.iw-post-card-body { padding: 1.25rem 1.375rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.iw-post-card-body .wp-block-post-title { font-size: 1.625rem; margin: 0; }
.iw-post-card-body .wp-block-post-title a { color: var(--wp--preset--color--deep-plum); text-decoration: none; font-weight: 400; }
.iw-post-card-body .wp-block-post-title a:hover { color: var(--wp--preset--color--wander-pink-text); }
.iw-post-card-body .wp-block-post-excerpt { font-size: 1.05rem; margin: 0; }
.iw-post-card-body .wp-block-post-excerpt__more-text { margin-top: 0.75rem; }
.iw-post-card-body .wp-block-post-excerpt__more-link {
	font-size: 0.9rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}
@media (max-width: 960px) {
	.iw-posts .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.iw-posts .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
}
.iw-posts .wp-block-query-pagination { margin-top: 2rem; font-weight: 700; }

/* ---------- Single post ---------- */
.iw-single-hero img,
.wp-block-post-featured-image.iw-single-hero img { border-radius: var(--wp--custom--radius--template); width: 100%; max-height: 560px; object-fit: cover; }
.iw-single .wp-block-post-content > * + * { margin-block-start: 1.25rem; }
.iw-single .wp-block-post-content h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-block-start: 2.5rem; }
.iw-single .wp-block-post-content h3 { margin-block-start: 2rem; }
.iw-single .wp-block-post-content img { border-radius: var(--wp--custom--radius--template); }
.iw-single .wp-block-post-terms a {
	display: inline-block;
	background: var(--wp--preset--color--blush);
	color: var(--wp--preset--color--deep-plum);
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	font-size: 0.9rem;
	text-decoration: none;
	margin: 0 0.25rem 0.25rem 0;
}
.iw-single .wp-block-post-terms__separator { display: none; }
.iw-post-nav a { text-decoration: none; }

/* ---------- About facts ---------- */
.iw-facts ul { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.9rem; }
.iw-facts li { font-size: 1.05rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--wp--preset--color--hairline); }
.iw-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.iw-facts li strong { display: block; color: var(--wp--preset--color--deep-plum); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.iw-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0 !important; padding: 0; list-style: none; }
.iw-chips li { background: var(--wp--preset--color--blush); color: var(--wp--preset--color--deep-plum); font-weight: 700; padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.95rem; }

/* ---------- Resources ---------- */
.iw-res ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.iw-res li { padding-bottom: 0.75rem; border-bottom: 1px solid var(--wp--preset--color--hairline); font-size: 1.05rem; }
.iw-res li:last-child { border-bottom: 0; padding-bottom: 0; }
.iw-res li span { display: block; color: var(--wp--preset--color--muted); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.iw-email {
	background: var(--wp--preset--color--blush);
	border-radius: var(--wp--custom--radius--card);
	padding: 0.9rem 1rem;
	font-weight: 700;
	word-break: break-all;
}
.iw-email a { color: var(--wp--preset--color--deep-plum); }
.iw-socials { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.iw-socials .wp-block-button__link {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	padding: 0.35rem 1rem;
	background: transparent;
	color: var(--wp--preset--color--deep-plum);
	box-shadow: inset 0 0 0 2px var(--wp--preset--color--deep-plum);
}
.iw-socials .wp-block-button__link:hover { background: var(--wp--preset--color--deep-plum); color: var(--wp--preset--color--white); }
.iw-footer .iw-socials .wp-block-button__link { color: var(--wp--preset--color--white); box-shadow: inset 0 0 0 2px var(--wp--preset--color--white); }
.iw-footer .iw-socials .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--deep-plum); }

/* Form plugins (WPForms, Contact Form 7, Forminator, Jetpack, etc.) */
.iw-contact-form :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea, select) {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.05rem;
	color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper);
	border: 1.5px solid #c9b8c0;
	border-radius: var(--wp--custom--radius--card);
	padding: 0.75rem 0.9rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.iw-contact-form label { font-weight: 700; color: var(--wp--preset--color--deep-plum); font-size: 0.95rem; }
.iw-contact-form :where(input[type="submit"], button[type="submit"]) {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: var(--wp--preset--color--wander-pink);
	color: var(--wp--preset--color--white);
	border: 0;
	border-radius: 999px;
	padding: 0.6rem 1.5rem;
	cursor: pointer;
}
.iw-contact-form :where(input[type="submit"], button[type="submit"]):hover { background: var(--wp--preset--color--deep-plum); }

/* ---------- Footer ---------- */
.iw-footer { background: var(--wp--preset--color--deep-plum); color: var(--wp--preset--color--white); }
.iw-footer.iw-bleed::before { background: var(--wp--preset--color--plum-glow); width: 22rem; right: -9rem; top: -11rem; }
.iw-footer p, .iw-footer a { color: var(--wp--preset--color--white); }
.iw-footer .iw-logo img { width: 220px; max-width: 100%; height: auto; }
.iw-ack { border-top: 1px solid var(--wp--preset--color--plum-glow); padding-top: 1.25rem; font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
