/*
Theme Name: Mai Mbacke Djamil
Author: Équipe du site Maï Mbacké Djamil
Description: Thème éditorial personnel pour Maï Mbacké Djamil.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mai-mbacke
Tags: block-patterns, full-site-editing, portfolio
*/

:root {
	--ink: #302923;
	--muted: #766b60;
	--paper: #f7f4ee;
	--cream: #eee7db;
	--sand: #d6c5ae;
	--brown: #705745;
	--white: #fff;
	--line: rgba(48, 41, 35, .14);
	--serif: Georgia, "Times New Roman", serif;
	--sans: "Trebuchet MS", Arial, sans-serif;
	--content: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { color: var(--brown); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	z-index: 1000;
	padding: .7rem 1rem;
	background: var(--ink);
	color: var(--white);
}
.skip-link:focus { top: 1rem; }
.wrap { width: min(var(--content), calc(100% - 3rem)); margin-inline: auto; }
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(247, 244, 238, .96);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(12px);
}
.wp-site-blocks { overflow-x: clip; }
.wp-site-blocks > main { min-height: 45vh; }
.header-inner {
	display: flex;
	min-height: 82px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: clamp(.75rem, 2vw, 2rem);
}
.header-inner > .wp-block-site-title { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.header-inner > .wp-block-navigation { flex: 1 1 auto; min-width: 0; justify-content: center; }
.header-inner > .wp-block-group.header-socials { flex: 0 0 auto; margin-left: auto; }
.header-inner > .wp-block-site-title a { color: var(--ink); text-decoration: none; }
.brand { text-decoration: none; line-height: 1.2; }
.brand-name { display: block; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .01em; }
.brand-caption { display: block; margin-top: .25rem; color: var(--muted); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; }
.custom-logo-link img { width: auto; max-height: 54px; }
.main-nav { flex: 1 1 auto; display: flex; min-width: 0; align-items: center; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 1.35rem; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: var(--ink); font-size: .82rem; white-space: nowrap; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav a[aria-current="page"] { color: var(--brown); }
.main-nav a[aria-current="page"]::after { display: block; height: 1px; margin-top: .3rem; background: var(--sand); content: ""; }
.main-nav .wp-block-navigation__container { display: flex; align-items: center; flex-direction: row; gap: clamp(.65rem, 1.4vw, 1.4rem); flex-wrap: nowrap; }
.main-nav .wp-block-navigation__submenu-container { padding: .5rem 1rem; border: 1px solid var(--line); background: var(--paper); }
.header-socials { display: flex; flex: 0 0 auto; align-items: center; gap: .9rem; padding-left: 1.1rem; border-left: 1px solid var(--line); }
.header-socials .wp-block-social-links { gap: .45rem; margin: 0; }
.header-socials .wp-social-link { background: transparent !important; color: var(--ink) !important; }
.header-socials .wp-social-link a { padding: 0; }
.nav-toggle {
	display: none;
	border: 1px solid var(--line);
	border-radius: 2px;
	padding: .55rem .8rem;
	background: transparent;
	color: var(--ink);
	cursor: pointer;
}
.button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.25rem;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: var(--white);
	font-size: .82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.button:hover { border-color: var(--brown); background: var(--brown); color: var(--white); }
.button--light { border-color: var(--line); background: transparent; color: var(--ink); }
.button--light:hover { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button--small { min-height: 40px; padding: .45rem .85rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--brown); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, h4 { margin-top: 0; font-family: var(--serif); font-weight: 400; line-height: 1.13; }
h1 { font-size: clamp(2.7rem, 6vw, 5.35rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.7vw, 3.4rem); letter-spacing: -.025em; }
h3 { font-size: 1.5rem; }
p { margin-top: 0; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--tight { padding-block: 3.4rem; }
.section--cream { background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { max-width: 430px; margin-bottom: .2rem; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-size: .83rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: "↗"; font-size: 1rem; }
.hero { padding-block: clamp(1.5rem, 3vw, 3rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 560px; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-copy { min-width: 0; padding-block: 1.5rem; }
.hero-copy h1 { max-width: 650px; margin-bottom: 1.25rem; font-size: clamp(3rem, 5.1vw, 5rem); }
.hero-copy h1 span { color: var(--brown); }
.hero-copy .lead { max-width: 520px; margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-photo { position: relative; min-width: 0; height: clamp(440px, 42vw, 610px); min-height: 440px; background: var(--cream); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 27%; }
.hero-photo::after { position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border: 1px solid var(--sand); content: ""; }
.mai-home-slider { position: relative; width: 100%; height: 100%; background: #d9cbbb; }
.home-slider-window, .home-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-slide { overflow: hidden; color: var(--white); text-decoration: none; }
.home-slide[hidden] { display: none !important; }
.home-slide::after { position: absolute; inset: 28% 0 0; background: linear-gradient(180deg, transparent 0%, rgba(31, 26, 22, .12) 24%, rgba(31, 26, 22, .78) 100%); content: ""; }
.home-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; transition: transform .65s cubic-bezier(.2,.65,.3,1); }
.home-slide:hover img { transform: scale(1.035); }
.home-slide-copy { position: absolute; right: clamp(1.3rem, 4vw, 3rem); bottom: clamp(2.3rem, 6vw, 4.3rem); left: clamp(1.3rem, 4vw, 3rem); z-index: 1; display: grid; gap: .8rem; }
.home-slide-copy .eyebrow { margin: 0; color: #f2dfc5; }
.home-slide-title { max-width: 560px; font-family: var(--serif); font-size: clamp(1.8rem, 3.1vw, 3rem); line-height: 1.1; }
.home-slide-cta { width: fit-content; margin-top: .2rem; padding-bottom: .25rem; border-bottom: 1px solid rgba(255,255,255,.7); font-size: .8rem; font-weight: 700; }
.home-slider-controls { position: absolute; right: clamp(1.3rem, 4vw, 3rem); bottom: 1rem; left: clamp(1.3rem, 4vw, 3rem); z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.home-slider-dots, .home-slider-arrows { display: flex; align-items: center; gap: .5rem; }
.home-slider-dot { display: grid; width: 28px; height: 32px; place-items: center; border: 0; background: transparent; cursor: pointer; }
.home-slider-dot span { width: 18px; height: 2px; background: rgba(255,255,255,.62); transition: width .2s, background .2s; }
.home-slider-dot.is-active span { width: 28px; background: var(--white); }
.home-slider-arrow { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.2rem; cursor: pointer; transition: background .2s, color .2s; }
.home-slider-arrow:hover { background: var(--white); color: var(--ink); }
.home-slider-dot:focus-visible, .home-slider-arrow:focus-visible, .home-slide:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.hero-note { position: absolute; right: -1rem; bottom: 1.5rem; width: min(260px, 72%); padding: 1.2rem 1.4rem; background: var(--paper); font-family: var(--serif); font-size: 1.05rem; font-style: italic; }
.book-feature { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(2rem, 8vw, 7rem); }
.book-image { display: grid; min-height: 440px; place-items: center; background: #e6dccc; }
.book-image img { width: min(100%, 500px); height: 440px; object-fit: cover; }
.book-image--cover img { width: min(82%, 390px); height: auto; aspect-ratio: 1 / 1.18; object-fit: cover; box-shadow: 0 24px 48px rgba(38, 29, 22, .19); }
.book-copy { max-width: 600px; }
.book-copy h2 { margin-bottom: .9rem; }
.book-subtitle { color: var(--brown); font-family: var(--serif); font-size: 1.15rem; }
.book-copy .lead { color: var(--muted); }
.book-details { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: 1.5rem 0 2rem; color: var(--muted); font-size: .82rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { min-width: 0; border: 1px solid var(--line); background: var(--paper); }
.card-image { display: block; aspect-ratio: 1.42 / 1; overflow: hidden; background: var(--cream); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.card:hover .card-image img { transform: scale(1.035); }
.card-body { padding: 1.4rem 1.45rem 1.55rem; }
.card-meta { display: flex; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .7rem; color: var(--muted); font-size: .72rem; }
.card-body h3 { margin-bottom: .7rem; font-size: 1.35rem; }
.card-body h3 a { text-decoration: none; }
.card-excerpt { margin-bottom: 1rem; color: var(--muted); font-size: .88rem; }
.engagement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.engagement-card { min-height: 205px; padding: 1.7rem; background: var(--paper); text-decoration: none; transition: background .2s; }
.engagement-card:hover { background: #ebe2d4; }
.engagement-number { display: block; margin-bottom: 1.5rem; color: var(--brown); font-size: .7rem; letter-spacing: .1em; }
.engagement-card h3 { margin-bottom: .6rem; font-size: 1.38rem; }
.engagement-card p { margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.engagement-card__link { display: inline-flex; gap: .4rem; margin-top: 1rem; color: var(--brown); font-size: .8rem; font-weight: 700; text-decoration: none; }
.engagement-card__link:hover { text-decoration: underline; }
.quote-band { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--ink); color: var(--paper); }
.quote-band blockquote { max-width: 900px; margin: 0 auto; font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 3rem); line-height: 1.3; text-align: center; }
.quote-band cite { display: block; margin-top: 1.5rem; color: #c8b8a7; font-family: var(--sans); font-size: .75rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.media-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.media-feature img { width: 100%; max-height: 460px; object-fit: cover; }
.page-intro { padding-block: clamp(4rem, 8vw, 7rem) 3rem; }
.page-intro h1 { max-width: 900px; margin-bottom: 1rem; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.page-intro .lead { max-width: 700px; color: var(--muted); font-size: 1.1rem; }
.page-content { max-width: 820px; padding-bottom: 5rem; }
.page-content > * + * { margin-top: 1.3em; }
.page-content h2, .page-content h3 { margin-top: 2em; }
.page-content img { height: auto; }
.split-content { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(2rem, 7vw, 6rem); padding-block: 2rem 6rem; }
.split-content > img { width: 100%; max-height: 640px; object-fit: cover; }
.timeline { border-top: 1px solid var(--line); }
.parcours-content { padding-top: 2rem; }
.photo-gallery { padding-block: 1rem 4rem; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.photo-grid figure { margin: 0; background: var(--cream); }
.photo-grid img { width: 100%; height: 260px; object-fit: cover; }
.photo-grid figcaption { padding: .65rem .8rem; }
.timeline article { display: grid; grid-template-columns: 170px 1fr; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.timeline time { color: var(--brown); font-size: .82rem; font-weight: 700; }
.timeline h2, .timeline h3 { margin: 0 0 .5rem; font-size: 1.4rem; }
.timeline p { margin: 0; color: var(--muted); }
.engagement-intro { max-width: 730px; margin-bottom: 2.5rem; color: var(--muted); }
.engagement-detail { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.engagement-detail h2 { margin-bottom: .7rem; font-size: 1.8rem; }
.engagement-detail p { max-width: 750px; color: var(--muted); }
.book-page-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2.5rem, 8vw, 7rem); }
.book-cover-large { width: 100%; max-width: 490px; margin-inline: auto; box-shadow: 0 22px 55px rgba(38, 29, 22, .16); }
.newsletter-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.newsletter-panel h2 { margin-bottom: .6rem; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.newsletter-panel .lead { margin-bottom: 0; color: var(--muted); }
.form-panel { max-width: 740px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--white); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 700; }
.field input, .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #cfc5b9; border-radius: 0; background: var(--paper); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.field textarea { min-height: 160px; resize: vertical; }
.notice { margin-bottom: 1.5rem; padding: 1rem 1.2rem; background: var(--cream); }
.notice--error { border-left: 3px solid #813b2d; }
.notice--success { border-left: 3px solid #526845; }
.search-form { display: flex; gap: .5rem; }
.search-form input { min-width: 220px; padding: .65rem .8rem; border: 1px solid var(--line); background: var(--white); }
.site-footer { padding-block: 3rem 1.5rem; background: #29241f; color: #f7f4ee; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; }
.site-footer h2 { margin-bottom: .8rem; font-size: 1.5rem; }
.site-footer p, .site-footer a { color: #d2c8bd; }
.footer-links { display: grid; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.2); color: #c1b6aa; font-size: .76rem; }
.pagination { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 3rem; }
.pagination .page-numbers { padding: .45rem .8rem; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { background: var(--ink); color: var(--white); }
.empty-state { padding: 2rem; border: 1px solid var(--line); color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { display: inline-block; padding: .7rem 1.2rem; background: var(--ink); color: var(--white); text-decoration: none; }
.wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.wp-block-post-title a { color: inherit; text-decoration: none; }
.wp-block-post-template.is-layout-grid { gap: 1.4rem; }
.wp-block-post-template.is-layout-grid > li { min-width: 0; padding: 1.3rem; border: 1px solid var(--line); background: rgba(255,255,255,.62); }
.wp-block-post-template.is-layout-grid .wp-block-post-title { margin-block: .7rem; font-family: var(--serif); font-size: 1.3rem; }
.wp-block-post-template.is-layout-grid .wp-block-post-excerpt { color: var(--muted); font-size: .9rem; }
.wp-block-query-pagination { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.section-cream { background: var(--cream); }
.site-footer .wp-block-navigation__container { align-items: flex-start; gap: .4rem; }
.site-footer .wp-block-navigation-item__content { color: #d2c8bd; text-decoration: none; }
.site-footer .wp-block-site-tagline { color: #d2c8bd; }
.mai-contact-form { max-width: 740px; margin-block: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: var(--white); }
.mai-contact-form .field { margin-block: 0 1rem; }
.mai-contact-form .field label { font-size: .82rem; font-weight: 700; }
.mai-contact-form .field input, .mai-contact-form .field textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #cfc5b9; border-radius: 0; background: var(--paper); color: var(--ink); }
.mai-contact-form .field textarea { min-height: 160px; resize: vertical; }
.mai-contact-form .field input:focus, .mai-contact-form .field textarea:focus { outline: 2px solid var(--brown); outline-offset: 1px; }
.mai-contact-trap { position: absolute; left: -10000px; }
.wp-block-image img, .wp-block-cover { border-radius: 0; }
.wp-caption-text, figcaption { color: var(--muted); font-size: .8rem; }

@media (max-width: 1100px) {
	.header-inner { min-height: 74px; }
	.nav-toggle { display: inline-flex; }
	.main-nav { position: static; display: flex; align-items: stretch; padding: 0; border: 0; background: transparent; }
	.main-nav .wp-block-navigation__responsive-container-open { display: flex; border: 1px solid var(--line); border-radius: 2px; padding: .55rem .8rem; background: transparent; color: var(--ink); }
	.main-nav ul { display: grid; gap: 0; }
	.main-nav li { border-bottom: 1px solid var(--line); }
	.main-nav li a { display: block; padding: .7rem 0; }
	.main-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.main-nav .wp-block-navigation__responsive-container.is-menu-open { position: fixed; inset: 0; z-index: 100; display: flex; padding: 5rem 1.5rem 1.6rem; background: var(--paper); }
	.main-nav .wp-block-navigation__responsive-container-content { align-items: stretch; }
	.main-nav .wp-block-navigation__container { width: 100%; align-items: stretch; flex-direction: column; gap: 0; }
	.header-inner { position: relative; }
	.header-socials { gap: .5rem; padding-left: .5rem; }
	.header-socials .wp-block-social-links { gap: .1rem; }
	.hero-grid { min-height: 0; grid-template-columns: 1fr .92fr; gap: 2rem; }
	.hero-photo { height: 520px; min-height: 420px; }
	.home-slide-title { font-size: clamp(1.55rem, 4vw, 2.4rem); }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.wrap { width: min(100% - 2rem, var(--content)); }
	.header-inner { gap: 1rem; }
	.brand-name { font-size: 1.05rem; }
	.brand-caption { font-size: .6rem; }
	.header-inner > .wp-block-site-title { max-width: 52vw; font-size: 1rem !important; line-height: 1.2; }
	.header-socials .wp-block-social-links { display: none; }
	.main-nav .wp-block-navigation__responsive-container.is-menu-open { inset: 0; }
	.hero { padding-top: 1.2rem; }
	.hero-grid, .book-feature, .media-feature, .split-content, .book-page-grid { grid-template-columns: 1fr; }
	.hero-grid { gap: 1rem; padding-block: 1.5rem; }
	.hero-copy { padding-block: .5rem; }
	.hero-copy h1 { font-size: clamp(2.9rem, 12vw, 4.2rem); }
	.hero-copy .lead { max-width: 40rem; }
	.hero-photo { height: clamp(430px, 115vw, 630px); min-height: 420px; margin-right: .5rem; }
	.home-slide-copy { bottom: 3.5rem; }
	.home-slider-controls { bottom: .6rem; }
	.hero-note { right: -.5rem; bottom: 1rem; }
	.section-heading { align-items: start; flex-direction: column; gap: .7rem; }
	.section-heading p { margin: 0; }
	.cards, .engagement-grid { grid-template-columns: 1fr; }
	.photo-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
	.photo-grid img { height: 190px; }
	.engagement-card { min-height: 165px; }
	.book-image { min-height: 340px; }
	.book-image img { height: 340px; }
	.book-image--cover img { width: min(78%, 320px); height: auto; }
	.timeline article { grid-template-columns: 1fr; gap: .45rem; }
	.form-grid { grid-template-columns: 1fr; }
	.field--full { grid-column: auto; }
	.footer-bottom { align-items: stretch; flex-direction: column; }
	.newsletter-panel { align-items: flex-start; flex-direction: column; }
	.search-form input { min-width: 0; flex: 1; }
	.footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* Plein écran : héros-carrousel et sections pleine largeur */
body { overflow-x: clip; }
.is-layout-constrained.hero-grid > *,
.is-layout-constrained.book-feature > *,
.is-layout-constrained.engagement-grid > *,
.engagement-grid > .engagement-card { max-width: none !important; margin: 0 !important; }
.engagement-grid { width: 100%; max-width: none !important; margin-top: 2.5rem !important; }
.engagement-card > * + * { margin-top: .6rem; }
.section-cream { box-shadow: 0 0 0 100vmax var(--cream); clip-path: inset(0 -100vmax); }
.book-feature { padding-block: clamp(3.5rem, 7vw, 6rem); }
.book-feature .book-image { min-height: 480px; }

.hero.hero-grid {
	position: relative;
	display: block;
	width: 100vw;
	max-width: 100vw !important;
	height: calc(100svh - 82px);
	min-height: 600px;
	margin: 0 0 0 calc(50% - 50vw) !important;
	padding: 0;
	overflow: hidden;
	background: var(--ink);
}
.admin-bar .hero.hero-grid { height: calc(100svh - 82px - 32px); }
.hero.hero-grid > .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; background: var(--ink); }
.hero.hero-grid > .hero-photo::after { display: none; }
.hero-photo > p { margin: 0; }
.hero-photo > p:empty { display: none; }
.hero-photo .mai-home-slider { position: absolute; inset: 0; }
.home-slide::before { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(25, 20, 17, .82) 0%, rgba(25, 20, 17, .55) 35%, rgba(25, 20, 17, .1) 65%, transparent 100%); content: ""; }
.home-slide::after { z-index: 1; inset: 55% 0 0; background: linear-gradient(180deg, transparent, rgba(25, 20, 17, .7)); }
.home-slide img { object-position: center 25%; }
.home-slide-copy { z-index: 2; right: max(1.5rem, calc((100vw - 1160px) / 2)); bottom: 6.5rem; left: auto; max-width: 400px; gap: .6rem; }
.home-slide-title { font-size: clamp(1.5rem, 2.2vw, 2.1rem); }
.home-slider-controls { z-index: 4; right: max(1.5rem, calc((100vw - 1160px) / 2)); bottom: 2rem; left: max(1.5rem, calc((100vw - 1160px) / 2)); }
.home-slider-arrow { width: 46px; height: 46px; }
.hero.hero-grid > .hero-copy {
	position: relative;
	z-index: 3;
	max-width: calc(560px + max(1.5rem, (100vw - 1160px) / 2)) !important;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1.5rem 4rem max(1.5rem, calc((100vw - 1160px) / 2));
	color: var(--white);
	pointer-events: none;
}
.hero.hero-grid > .hero-copy a, .hero.hero-grid > .hero-copy button { pointer-events: auto; }
.hero.hero-grid .hero-copy .eyebrow { color: #f2dfc5; }
.hero.hero-grid .hero-copy h1 { color: var(--white); font-size: clamp(3.2rem, 6.5vw, 6.5rem); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero.hero-grid .hero-copy h1 span { color: #e9cfaa; }
.hero.hero-grid .hero-copy .lead { color: rgba(255, 255, 255, .88); font-size: 1.12rem; }
.hero.hero-grid .hero-copy .wp-block-button__link { background: var(--white); color: var(--ink); }
.hero.hero-grid .hero-copy .wp-block-button__link:hover { background: #e9cfaa; color: var(--ink); }

@media (max-width: 900px) {
	.hero.hero-grid { height: calc(100svh - 74px); min-height: 560px; }
	.admin-bar .hero.hero-grid { height: calc(100svh - 74px - 46px); }
	.home-slide::before { background: linear-gradient(180deg, rgba(25, 20, 17, .8) 0%, rgba(25, 20, 17, .35) 50%, rgba(25, 20, 17, .75) 100%); }
	.hero.hero-grid > .hero-copy { max-width: none !important; justify-content: flex-start; padding: 3rem 1.25rem 0; }
	.hero.hero-grid .hero-copy h1 { font-size: clamp(2.8rem, 12vw, 4.2rem); }
	.hero.hero-grid .hero-copy .lead { font-size: 1rem; }
	.home-slide-copy { right: 1.25rem; bottom: 5rem; left: 1.25rem; max-width: none; }
	.home-slide-copy .eyebrow, .home-slide-title { display: none; }
	.home-slider-controls { right: 1.25rem; bottom: 1.25rem; left: 1.25rem; }
	.home-slider-arrow { width: 40px; height: 40px; }
	.book-feature .book-image { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
