.site {
	min-height: 100vh;
	overflow-x: clip;
}

.site-main {
	background: var(--myco-color-bg);
}

.myco-container {
	width: min(calc(100% - 2rem), var(--myco-container));
	margin-inline: auto;
}

.myco-container--wide {
	width: min(calc(100% - 2rem), var(--myco-container-wide));
}

.myco-container--content {
	width: min(calc(100% - 2rem), var(--myco-container-content));
}

.myco-container--narrow {
	width: min(calc(100% - 2rem), 56rem);
	margin-inline: auto;
}

.section {
	padding: var(--myco-space-4xl) 0;
}

.section--surface {
	background: var(--myco-color-surface);
}

.section--dark {
	background: linear-gradient(160deg, var(--myco-color-primary) 0%, var(--myco-color-primary-deep) 100%);
	color: rgba(255, 255, 255, 0.78);
}

.section-heading {
	max-width: 780px;
	margin-bottom: var(--myco-space-2xl);
}

.section-heading p:last-child {
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-lg);
}

.section-heading--center {
	margin-inline: auto;
	text-align: center;
}

.section-heading--invert h2 {
	color: var(--myco-color-white);
}

.section-heading--invert p:last-child {
	color: rgba(255, 255, 255, 0.72);
}

.section-eyebrow {
	margin-bottom: var(--myco-space-sm);
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.section-heading--invert .section-eyebrow {
	color: var(--myco-color-accent-soft);
}

.page-hero {
	padding: var(--myco-space-3xl) 0 var(--myco-space-2xl);
	background: var(--myco-color-surface);
	color: var(--myco-color-text);
	border-bottom: 1px solid var(--myco-color-border);
}

.page-hero--compact {
	padding-bottom: var(--myco-space-2xl);
}

.page-hero--center {
	display: grid;
	place-items: center;
	text-align: center;
	padding-block: var(--myco-space-4xl);
}

.page-hero p,
.page-hero__description {
	max-width: 720px;
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-lg);
}

.page-hero--center p {
	margin-inline: auto;
}

/* Buttons */

.myco-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.9rem;
	padding: 0.75rem 1.1rem;
	border: 1px solid transparent;
	border-radius: var(--myco-radius-md);
	background: var(--myco-color-accent-ink);
	color: var(--myco-color-white);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background var(--myco-transition), border-color var(--myco-transition);
}

.myco-button:hover {
	background: var(--myco-color-primary);
	color: var(--myco-color-white);
}

.myco-button--secondary {
	background: transparent;
	border-color: currentColor;
	color: var(--myco-color-accent-ink);
}

.myco-button--secondary:hover {
	background: var(--myco-color-surface);
	color: var(--myco-color-accent-ink);
}

/* White-on-orange needs the darker ink shade to clear 4.5:1; the identity
 * orange (#f26b0f) only reaches 3.05:1. Hover goes darker still, never lighter. */
.myco-button--accent {
	background: var(--myco-color-accent-ink);
	border-color: var(--myco-color-accent-ink);
	color: var(--myco-color-white);
}

.myco-button--accent:hover {
	background: var(--myco-color-accent-ink-hover);
	border-color: var(--myco-color-accent-ink-hover);
	color: var(--myco-color-white);
}

.myco-button--ghost {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.4);
	color: var(--myco-color-white);
}

.myco-button--ghost:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--myco-color-white);
	color: var(--myco-color-white);
}

.myco-button--whatsapp {
	background: var(--myco-color-whatsapp);
	border-color: var(--myco-color-whatsapp);
	color: var(--myco-color-whatsapp-ink);
}

.myco-button--whatsapp:hover {
	background: var(--myco-color-whatsapp-hover);
	border-color: var(--myco-color-whatsapp-hover);
	color: var(--myco-color-whatsapp-ink);
}

.myco-button--lg {
	min-height: 3.25rem;
	padding: 0.9rem 1.6rem;
	font-size: var(--myco-font-size-base);
}

/* On dark sections the ghost button sits on navy; on light ones it needs ink. */
.cta-band__actions .myco-button--ghost,
.home-hero__actions .myco-button--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	color: var(--myco-color-white);
}

/* Cards and grids */

/* `auto-fill`, not `auto-fit`: a category with one or two products would
 * otherwise have its cards stretched across the whole 1240px row, blowing a
 * single product shot up to full width. auto-fill keeps the empty column
 * tracks, so a short row lines up with a full one. */
.archive-grid {
	display: grid;
	gap: var(--myco-space-lg);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.card-post,
.empty-state {
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-lg);
	background: var(--myco-color-white);
	box-shadow: var(--myco-shadow-soft);
}

.card-post {
	position: relative;
	overflow: hidden;
	transition: transform var(--myco-transition-slow), box-shadow var(--myco-transition-slow),
		border-color var(--myco-transition-slow);
}

/* The title anchor is stretched over the whole card so the entire box is a
 * click target, while the tab order and the accessible name stay on the one
 * real link — wrapping the whole article in an anchor instead would make the
 * accessible name the card's entire text and destroy the heading semantics.
 *
 * The overlay sits above the card's content so a click anywhere reaches it;
 * the content below stays visible because the overlay is transparent, and the
 * excerpt stays selectable because text selection ignores the overlay. */
.card-post__link::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
}

.card-post:hover,
.card-post:focus-within {
	transform: translateY(-4px);
	border-color: var(--myco-color-accent);
	box-shadow: var(--myco-shadow-lift);
}

.card-post__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--myco-color-surface);
}

.card-post__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--myco-transition);
}

/* Zoom suits a cropped scene, not a `contain`-fitted cut-out: on a product card
 * scaling the image just pushes the mechanism into the padding. Card lift
 * handles the hover feedback there instead. */
.card-post:not(.card-product):hover .card-post__image {
	transform: scale(1.03);
}

.card-post__body {
	padding: var(--myco-space-lg);
}

.card-post__title {
	font-size: 1.35rem;
}

.card-post__title a {
	text-decoration: none;
}

.card-post__excerpt,
.card-post__meta {
	color: var(--myco-color-muted);
}

.card-post__meta,
.single-header__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-xs);
	align-items: center;
	font-size: var(--myco-font-size-sm);
}

/* Product card — shared by the homepage showcase and the product archive, so it
 * lives here in the always-loaded layer rather than in either page-specific
 * sheet. Product shots are studio cut-outs on white, not scenes: `cover` would
 * crop the mechanism itself, so the card frames the whole object with breathing
 * room and lets the white blend into the card. The fixed aspect ratio keeps a
 * grid row even regardless of each source image's proportions. */
/* The media box is a padded frame, and the image sits inside that padding —
 * `height: 100%` on the image would make it the full box and push the object
 * under the padding edge, which is what clipped these shots. Sizing the box
 * with the aspect ratio and letting the image fill the remaining content area
 * keeps the whole mechanism visible. */
.card-product .card-post__media {
	display: grid;
	aspect-ratio: 4 / 3;
	box-sizing: border-box;
	padding: var(--myco-space-md);
	background: var(--myco-color-white);
}

/* `min-height: 0` is load-bearing: a grid item defaults to min-content, so a
 * square source would push the track taller than the 4/3 frame and spill past
 * the padding — which is exactly how these shots were getting clipped. */
.card-product .card-post__image {
	width: 100%;
	height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: contain;
}

.card-product__category {
	margin-bottom: var(--myco-space-2xs);
	color: var(--myco-color-muted);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.card-product .card-post__title {
	font-size: 1.1rem;
}

/* Decorative affordance, not a second link — the card's stretched title anchor
 * already covers it, so it is aria-hidden in the markup. */
.card-product__more {
	margin: var(--myco-space-sm) 0 0;
	color: var(--myco-color-accent-ink);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
}

.card-post:hover .card-product__more {
	text-decoration: underline;
}

.card-post__title a {
	color: inherit;
}

.card-post:hover .card-post__title a,
.card-post:focus-within .card-post__title a {
	color: var(--myco-color-accent-ink);
}

/* Section head for a row of cards — the homepage showcase and the related
 * products row on a product page. Shared, so it lives in the always-loaded
 * layer rather than home.css, which a product page never loads. */
.showcase__head {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-md);
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: var(--myco-space-lg);
	padding-bottom: var(--myco-space-sm);
	border-bottom: 1px solid var(--myco-color-border);
}

.showcase__title {
	margin: 0;
	font-size: 1.4rem;
}

.showcase__all {
	color: var(--myco-color-accent-ink);
	font-size: var(--myco-font-size-sm);
	font-weight: 700;
	text-decoration: none;
}

.showcase__all:hover {
	text-decoration: underline;
}

.entry-categories {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-xs);
	margin-bottom: var(--myco-space-md);
}

.entry-category {
	display: inline-flex;
	padding: 0.28rem 0.58rem;
	border-radius: 999px;
	background: var(--myco-color-surface-strong);
	color: var(--myco-color-text);
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
}

.empty-state {
	max-width: 720px;
	margin-inline: auto;
	padding: var(--myco-space-2xl);
	text-align: center;
}

.pagination-wrap {
	margin-top: var(--myco-space-2xl);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-xs);
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.6rem;
	min-height: 2.6rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--myco-color-border);
	border-radius: var(--myco-radius-md);
	text-decoration: none;
}

.page-numbers.current {
	background: var(--myco-color-primary);
	color: var(--myco-color-white);
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--myco-space-xs);
	margin-bottom: var(--myco-space-lg);
	color: var(--myco-color-muted);
	font-size: var(--myco-font-size-sm);
}

.breadcrumbs a {
	color: var(--myco-color-primary);
}

.breadcrumbs a:hover {
	color: var(--myco-color-accent-ink);
}

.breadcrumbs__sep {
	color: var(--myco-color-muted);
}

/* The trail can reach four levels on a product page; keep the current page
 * readable rather than letting a long title wrap into the separators. */
.breadcrumbs [aria-current="page"] {
	color: var(--myco-color-muted);
}
