/*
Theme Name:  Baskerville Child
Template:    baskerville
Text Domain: baskerville-child
Version:     1.0.0
Description: Thème enfant de Baskerville aux couleurs de WP Nantes (charte commune WP Nantes et SEO Nantes).
Author:      SeoMix
Author URI:  https://www.seomix.fr/
License:     GNU General Public License version 2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* -------------------------------------------------------------------------- */
/* 1. Brand tokens                                                            */
/* -------------------------------------------------------------------------- */

:root {
	--wpnantes-nuit: #101C33;
	--wpnantes-nuit-fonce: #0B1426;
	--wpnantes-nuit-clair: #1D2B47;
	--wpnantes-papier: #F6F3EC;
	--wpnantes-titan: #FFC233;
	--wpnantes-texte: #2A3346;
}

/* -------------------------------------------------------------------------- */
/* 2. Base                                                                    */
/* -------------------------------------------------------------------------- */

body {
	background: var(--wpnantes-papier);
	color: var(--wpnantes-texte);
	font-family: 'Poppins', 'Roboto', sans-serif;
}

/* Yellow text fails contrast on light backgrounds: links stay dark and underlined. */
body a,
body a:hover {
	color: var(--wpnantes-nuit);
}

.post-content a,
.widget-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.post-content a:hover,
.widget-content a:hover {
	text-decoration-thickness: 3px;
	text-decoration-color: var(--wpnantes-titan);
}

::selection {
	background: var(--wpnantes-titan);
	color: var(--wpnantes-nuit);
}

:focus-visible {
	outline: 3px solid var(--wpnantes-titan);
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--wpnantes-nuit);
}

/* -------------------------------------------------------------------------- */
/* 3. Dark surfaces: header, navigation, footer                               */
/* -------------------------------------------------------------------------- */

.bg-dark { background-color: var(--wpnantes-nuit); }
.bg-graphite { background-color: var(--wpnantes-nuit-clair); }

.wpnantes-header {
	padding: 48px 0 40px;
	background-color: var(--wpnantes-nuit);
	background-image: none;
}

.wpnantes-logo {
	margin: 0;
	text-align: center;
	line-height: 1;
}

.wpnantes-logo .logo img {
	display: block;
	width: auto;
	height: 80px;
	max-height: none;
}

.wpnantes-header .blog-description {
	margin: 18px 0 0;
	color: var(--wpnantes-papier);
	font-size: 1em;
	font-weight: 500;
	text-shadow: none;
}

.navigation {
	border-top: 1px solid rgba(246, 243, 236, 0.12);
	border-bottom: 4px solid var(--wpnantes-titan);
}

.main-menu > li > a,
.main-menu ul a {
	color: var(--wpnantes-papier);
}

.main-menu li:hover > a,
.main-menu ul a:hover,
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
	color: var(--wpnantes-titan);
}

.main-menu ul li,
.main-menu ul ul li,
.main-menu ul ul ul li {
	background: var(--wpnantes-nuit-clair);
}

.footer a,
.footer a:hover,
.post-link a,
.post-link a:hover {
	color: var(--wpnantes-titan);
}

.footer .widget-content { color: #C9CED8; }

.credits.bg-dark { background-color: var(--wpnantes-nuit-fonce); }

.credits p,
.credits a {
	color: var(--wpnantes-papier);
}

.credits a:hover {
	color: var(--wpnantes-titan);
}

/* -------------------------------------------------------------------------- */
/* 4. Accent colour: parent teal replaced by Titan yellow with dark text      */
/* -------------------------------------------------------------------------- */

.blog-title a:hover,
.post-header .post-title a:hover,
.posts .post-meta a:hover,
.single .post-meta a:hover,
.comment-header cite a:hover,
.pingbacklist .pingback a:hover,
.author-info h4 a:hover,
#wp-calendar a,
.wp-calendar-nav a:hover,
#wp-calendar tfoot a:hover {
	color: var(--wpnantes-nuit);
	text-decoration: underline;
}

.widget-content ul li:before {
	color: var(--wpnantes-nuit);
}

.post-link,
.button,
input[type="submit"],
input[type="reset"],
input[type="button"],
.form-submit #submit,
.archive-nav a {
	background: var(--wpnantes-nuit);
	color: var(--wpnantes-papier);
}

.button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.form-submit #submit:hover,
.archive-nav a:hover,
.post-content fieldset legend,
.comment-actions a:hover,
.author-links a:hover,
.author-info .author-links a:hover,
.tagcloud a:hover,
.footer .tagcloud a:hover,
.dribbble-shot:hover,
.flickr_badge_image a:hover {
	background-color: var(--wpnantes-titan);
	color: var(--wpnantes-nuit);
}

.post-content .has-accent-color { color: var(--wpnantes-nuit); }
.post-content .has-accent-background-color { background-color: var(--wpnantes-titan); }

/* Post lists: the date is plain text (see baskerville_meta() in functions.php). */
.posts .post-meta .post-date {
	display: block;
	float: left;
	padding: 20px 0 20px 24px;
	background: url(../baskerville/assets/images/icons/1x/clock-g.png) no-repeat left center;
	background-size: 18px auto;
	color: #5C6475;
	font-size: 0.8em;
	font-weight: 700;
}

.posts .post-meta .post-date + a { margin-left: 20px; }

.posts .post-meta a { color: #5C6475; }

/* "Nos meetups" archive: meetups without a dedicated post (category-meetups.php). */
.wpnantes-recent-meetups {
	margin-bottom: 30px;
	padding: 30px 34px;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.wpnantes-recent-meetups h2 {
	margin: 0 0 8px;
	color: var(--wpnantes-nuit);
	font-size: 1.3em;
	font-weight: 700;
}

.wpnantes-recent-meetups__intro {
	margin: 0 0 18px;
	color: #5C6475;
	font-size: 0.85em;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/* 5. Headings                                                                */
/* -------------------------------------------------------------------------- */

.post-title,
.post-header .post-title a,
.widget-title {
	color: var(--wpnantes-nuit);
}

.footer .widget-title {
	color: var(--wpnantes-papier);
}
