/*
Theme Name: The Kothes
Theme URI: https://thekothes.com
Description: Child theme of Twenty Twenty-Five for thekothes.com. Warm ivory, garden green and bouquet rose, Literata + Manrope. Adds the "Family member page" pattern and the Family profile template.
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: kothes
*/

/* ---------- Small polish theme.json can't express ---------- */

html { scroll-behavior: smooth; }
.wp-site-blocks > main,
.wp-site-blocks > footer { margin-block-start: 0; }
:target { scroll-margin-top: 6rem; }

/* Rounded, softly shadowed photos everywhere except full-bleed covers */
.wp-block-image:not(.alignfull) img,
.wp-block-post-featured-image img,
.wp-block-gallery .wp-block-image img {
	border-radius: var(--wp--custom--radius--image, 14px);
}
.is-style-kothes-lifted img {
	box-shadow: 0 18px 40px -18px rgba(30, 38, 34, 0.45);
}

/* Header: light frosted bar that stays on top */
.kothes-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.admin-bar .kothes-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .kothes-header { top: 0; position: relative; } }

.kothes-wordmark a { text-decoration: none; }
.kothes-wordmark a::after {
	content: "";
	display: inline-block;
	width: 0.38em;
	height: 0.38em;
	margin-left: 0.12em;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-2);
	vertical-align: 0.05em;
}

/* Eyebrow / kicker text */
.kothes-eyebrow {
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
}

/* Hero cover: gentle gradient so white text always reads */
.kothes-hero .wp-block-cover__background {
	background: linear-gradient(180deg, rgba(20, 28, 24, 0.15) 0%, rgba(20, 28, 24, 0.25) 45%, rgba(20, 28, 24, 0.7) 100%) !important;
	opacity: 1 !important;
}

/* Family cards: centred, never stretched wider than a card should be */
.kothes-family-grid .wp-block-post-template {
	grid-template-columns: repeat(auto-fit, minmax(15rem, 19rem)) !important;
	justify-content: center;
}
.kothes-family-grid .wp-block-post {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.kothes-family-grid .wp-block-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -24px rgba(30, 38, 34, 0.45);
}
.kothes-family-grid .wp-block-post-featured-image img { border-radius: 0; }
.kothes-family-grid .wp-block-post-title a { text-decoration: none; }

/* Skill / tag chips */
.kothes-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding-left: 0 !important;
}
.kothes-chips li {
	margin: 0;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	background: var(--wp--preset--color--base-2);
	border: 1px solid var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--small);
}

/* Timeline (work history) */
.kothes-timeline > .wp-block-group {
	position: relative;
	padding-left: 1.75rem;
	border-left: 2px solid var(--wp--preset--color--border);
}
.kothes-timeline > .wp-block-group::before {
	content: "";
	position: absolute;
	left: -7px;
	top: 0.55rem;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent-1);
	box-shadow: 0 0 0 4px var(--wp--preset--color--base);
}

/* Cards used for small info boxes */
.kothes-card {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 18px;
}

/* Footer links */
.kothes-footer a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.kothes-footer a:hover { text-decoration-color: currentColor; }
