/*
Theme Name: Adrian Ashdown
Theme URI: https://adrianashdown.uk/
Author: Adrian Ashdown
Description: Personal blog theme for adrianashdown.uk. Dark navy header and article hero, light reading area, navy with teal and amber accents.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adrian-ashdown
*/

/* ---------- Header ---------- */
.aa-header {
	background: var(--wp--preset--color--navy-deep);
	color: var(--wp--preset--color--white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding: 14px 32px;
}
.aa-header-inner { max-width: 1200px; margin: 0 auto; gap: 16px 32px; }
.aa-brand {
	display: inline-flex; align-items: center; gap: 12px;
	color: var(--wp--preset--color--white); text-decoration: none;
	font-family: var(--wp--preset--font-family--heading); font-size: 20px; font-weight: 500;
}
.aa-brand svg { width: 34px; height: 34px; flex: 0 0 34px; }
.aa-brand:hover, .aa-brand:focus { color: var(--wp--preset--color--white); }

.aa-nav { font-family: var(--wp--preset--font-family--heading); font-size: 16px; gap: 8px 28px; }
.aa-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--pale); text-decoration: none;
	padding: 10px 0; border-bottom: 3px solid transparent;
}
.aa-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--white); }
.aa-nav .current-menu-item > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white); font-weight: 500;
	border-bottom-color: var(--wp--preset--color--teal);
}
.aa-nav .aa-nav-cta > .wp-block-navigation-item__content {
	background: var(--wp--preset--color--teal-light);
	color: var(--wp--preset--color--navy-deep);
	font-weight: 600; padding: 10px 22px; border-radius: 6px; border-bottom: 0;
}
.aa-nav .aa-nav-cta > .wp-block-navigation-item__content:hover { background: #99F6E4; }
.aa-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy-deep); color: var(--wp--preset--color--white);
}
.aa-nav .wp-block-navigation__responsive-container-open,
.aa-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--white); }

/**** CUSTOM NAV-SUB-MENU STYLES ****/
.aa-nav li.wp-block-navigation-submenu li.wp-block-navigation-link a.wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}
.aa-nav li.wp-block-navigation-submenu li.wp-block-navigation-link a.wp-block-navigation-item__content:visited {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}
.aa-nav li.wp-block-navigation-submenu li.wp-block-navigation-link a.wp-block-navigation-item__content:hover {
	background-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--teal);
}



/* ---------- Dark hero (article and page headers) ---------- */
.aa-hero {
	position: relative;
	background-color: var(--wp--preset--color--navy-deep);
	/*
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 360'%3E%3Cpolygon points='260,90 60,360 460,360' fill='%2314B8A6'/%3E%3Cpolygon points='420,190 300,360 540,360' fill='%23F5A524'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: 540px 360px;
	*/
	color: var(--wp--preset--color--white);
	padding: 72px 32px 88px;
}
.aa-hero > * { max-width: 1200px; }
.aa-hero h1, .aa-hero .wp-block-post-title, .aa-hero .wp-block-query-title {
	color: var(--wp--preset--color--white);
	/*max-width: 760px; */
	margin-top: 0;
	font-size: clamp(2.2rem, 4.5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.01em;
}
.aa-eyebrow, .aa-eyebrow a {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 15px; font-weight: 500; letter-spacing: 0.08em;
	color: var(--wp--preset--color--teal-light); text-decoration: none;
}
.aa-eyebrow::before {
	content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 12px;
	background: var(--wp--preset--color--amber); vertical-align: -1px;
}
.aa-standfirst, .aa-standfirst p {
	/*max-width: 640px; */
	font-family: var(--wp--preset--font-family--heading);
	font-size: 21px; line-height: 1.5; color: var(--wp--preset--color--pale);
}
.aa-standfirst .wp-block-post-excerpt__more-text { display: none; }
.aa-meta { font-family: var(--wp--preset--font-family--heading); font-size: 15px; color: var(--wp--preset--color--muted-on-dark); }

@media (max-width: 860px) {
	.aa-hero { background-size: 300px 208px; padding-bottom: 200px; }
}

/* ---------- Light body and article ---------- */
.aa-body { background: var(--wp--preset--color--mist); padding: 0 32px 72px; }
.aa-article {
	max-width: 820px; margin: 0 auto !important; background: var(--wp--preset--color--white);
	border-radius: 0 0 10px 10px; padding: 56px 64px;
	box-sizing: border-box;
}
@media (max-width: 700px) { .aa-body { padding: 0 0 56px; } .aa-article { padding: 36px 22px; border-radius: 0; } }

.aa-article .wp-block-post-content > * + * { margin-top: 1.3em; }
.aa-article .wp-block-post-content h2 { margin-top: 1.8em; }
.aa-article ul { padding-left: 1.2em; }
.aa-article ul li::marker { color: var(--wp--preset--color--amber); }

/* Pull quote */
.aa-pullquote { border: 0 !important; padding: 0 !important; margin: 2em 0 !important; }
.aa-pullquote::before {
	content: "\201C"; display: block; height: 36px;
	font-family: var(--wp--preset--font-family--heading); font-size: 72px; line-height: 0.85;
	color: var(--wp--preset--color--teal);
}
.aa-pullquote p { font-size: 26px; line-height: 1.45; font-style: italic; color: var(--wp--preset--color--navy); }

/* Key takeaways */
.aa-takeaways {
	background: rgba(245, 165, 36, 0.12); border-radius: 10px; padding: 28px 32px !important;
	font-family: var(--wp--preset--font-family--heading); font-size: 17px; line-height: 1.55;
}
.aa-takeaways .aa-takeaways-label {
	font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--wp--preset--color--navy); margin: 0;
}
.aa-takeaways .aa-takeaways-label::before {
	content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 10px;
	background: var(--wp--preset--color--amber); vertical-align: -1px;
}
.aa-takeaways ul { margin: 12px 0 0; }

/* Tags */
.aa-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2em; font-family: var(--wp--preset--font-family--heading); }
.aa-tags .wp-block-post-terms__separator { display: none; }
.aa-tags a {
	font-size: 14px; color: var(--wp--preset--color--teal-deep); text-decoration: none;
	border: 1.5px solid var(--wp--preset--color--teal-deep); border-radius: 999px; padding: 6px 14px;
}
.aa-tags a:hover { background: var(--wp--preset--color--teal-deep); color: var(--wp--preset--color--white); }

/* Author box */
.aa-author {
	margin-top: 2em; border-top: 1px solid #E1E6EF; padding-top: 28px; gap: 20px;
	font-family: var(--wp--preset--font-family--heading);
}
.aa-author-mark {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
	background: var(--wp--preset--color--navy); display: flex; align-items: center; justify-content: center;
}
.aa-author-mark svg { width: 34px; height: 34px; }
.aa-author-name { margin: 0; font-size: 17px; font-weight: 600; color: var(--wp--preset--color--navy); }
.aa-author-bio { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--slate); }

/* ---------- Article cards ---------- */
.aa-more { max-width: 1000px; margin: 64px auto 0 !important; }
.aa-listing { max-width: 1200px; margin: 0 auto !important; padding-top: 56px; }
.aa-more-heading { font-size: 24px; margin-bottom: 24px; }
.aa-card {
	background: var(--wp--preset--color--white); border-radius: 10px; overflow: hidden; height: 100%;
	display: flex; flex-direction: column;
}
.aa-card .wp-block-post-featured-image { margin: 0; }
.aa-card .wp-block-post-featured-image img { display: block; width: 100%; height: auto; }
.aa-card-body { padding: 20px 22px 24px; font-family: var(--wp--preset--font-family--heading); }
.aa-card-cat a { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--wp--preset--color--teal-deep); text-decoration: none; }
.aa-card-title { font-size: 20px; line-height: 1.3; margin: 8px 0; }
.aa-card-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.aa-card-title a:hover { color: var(--wp--preset--color--teal-deep); }
.aa-card-excerpt p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--wp--preset--color--ink); }
.aa-card-excerpt .wp-block-post-excerpt__more-text { display: none; }
.aa-pagination { margin-top: 40px; font-family: var(--wp--preset--font-family--heading); }

/* ---------- Footer ---------- */
.aa-footer {
	background: var(--wp--preset--color--navy-deep); color: var(--wp--preset--color--muted-on-dark);
	border-top: 4px solid var(--wp--preset--color--teal); padding: 40px 32px 48px;
	font-family: var(--wp--preset--font-family--heading); font-size: 15px;
}
.aa-footer-inner { max-width: 1200px; margin: 0 auto; gap: 20px; }
.aa-footer p { margin: 0; }
.aa-footer a { color: var(--wp--preset--color--teal-light); text-decoration: none; margin-left: 24px; }
.aa-footer a:first-child { margin-left: 0; }
.aa-footer a:hover { text-decoration: underline; }

/* ---------- Accessibility ---------- */
:where(a, button, input):focus-visible { outline: 3px solid var(--wp--preset--color--amber); outline-offset: 3px; }

/*---- CUSTOM BLOG FILTER ----*/
.wp-block-archives-dropdown select {
	font-size: 1.0em;
	padding:5px;
	
}
.wp-block-categories-dropdown select {
	font-size: 1.0em;
	padding:5px;
	
}
