/*
Theme Name:        Bees Wot I've Seen
Description:       A child theme for Twenty Twenty-Five. Built for bee and nature photography — black and gold with hexagon motifs throughout.
Template:          twentytwentyfive
Version:           1.0.0
Author:            Bees Wot I've Seen
Text Domain:       bees-wot-ive-seen
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
	/* Palette */
	--bwis-gold:          #F5C518;
	--bwis-gold-light:    #FFD84D;
	--bwis-gold-pale:     #FFF3B0;
	--bwis-amber:         #E8A000;
	--bwis-amber-dark:    #C07800;
	--bwis-black:         #0A0A08;
	--bwis-charcoal:      #1A1A14;
	--bwis-dark:          #252518;
	--bwis-mid:           #3A3A28;
	--bwis-muted:         #6B6B50;
	--bwis-cream:         #FAF6E8;
	--bwis-parchment:     #F2EDD4;
	--bwis-white:         #FEFEF8;

	/* Typography */
	--bwis-font-display:  'Playfair Display', 'Georgia', serif;
	--bwis-font-body:     'Source Serif 4', 'Georgia', serif;
	--bwis-font-mono:     'Courier New', monospace;
	--bwis-font-label:    'Barlow Condensed', 'Arial Narrow', sans-serif;

	/* Spacing */
	--bwis-hex-size:      60px;
	--bwis-gap:           clamp(1rem, 3vw, 2rem);

	/* Effects */
	--bwis-shadow-sm:     0 2px 8px rgba(0,0,0,0.35);
	--bwis-shadow-md:     0 6px 24px rgba(0,0,0,0.45);
	--bwis-shadow-glow:   0 0 20px rgba(245,197,24,0.25);
	--bwis-border:        1px solid rgba(245,197,24,0.2);
	--bwis-radius-hex:    4px;
}

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=Barlow+Condensed:wght@300;400;600;700&display=swap');

/* ============================================================
   GLOBAL OVERRIDES
   ============================================================ */
body {
	background-color: var(--bwis-black);
	color: var(--bwis-cream);
	font-family: var(--bwis-font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--bwis-gold);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}
a:hover {
	color: var(--bwis-gold-light);
	text-shadow: 0 0 12px rgba(245,197,24,0.4);
}

::selection {
	background: var(--bwis-gold);
	color: var(--bwis-black);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.wp-site-blocks header,
.site-header,
header.wp-block-template-part {
	background: var(--bwis-black);
	border-bottom: 2px solid var(--bwis-gold);
	position: relative;
	padding: 1.25rem 0;
}

/* Honeycomb strip across top of header */
.wp-site-blocks header::before,
.site-header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 5px;
	background: repeating-linear-gradient(
		90deg,
		var(--bwis-gold) 0px,
		var(--bwis-gold) 8px,
		var(--bwis-amber) 8px,
		var(--bwis-amber) 16px,
		transparent 16px,
		transparent 20px
	);
}

.wp-site-blocks .site-title,
.site-title,
h1.wp-block-site-title {
	font-family: var(--bwis-font-display);
	font-weight: 900;
	font-size: clamp(1.6rem, 4vw, 2.6rem);
	letter-spacing: -0.02em;
	color: var(--bwis-gold);
	text-shadow: 0 2px 16px rgba(245,197,24,0.3);
}

.wp-block-site-title a {
	color: var(--bwis-gold) !important;
	text-decoration: none;
}

.wp-block-site-tagline {
	font-family: var(--bwis-font-label);
	font-size: 0.8rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bwis-amber);
	opacity: 0.85;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.wp-block-navigation,
nav.wp-block-navigation {
	font-family: var(--bwis-font-label);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.wp-block-navigation a {
	color: var(--bwis-cream) !important;
	text-decoration: none;
	padding: 0.4em 0.8em;
	border-radius: 2px;
	transition: background 0.2s ease, color 0.2s ease;
}
.wp-block-navigation a:hover {
	color: var(--bwis-black) !important;
	background: var(--bwis-gold);
	text-shadow: none;
}

/* ============================================================
   HEXAGON UTILITIES
   A CSS hexagon using clip-path — the thematic shape of the site.
   ============================================================ */
.hex,
.wp-block-image.is-style-hexagon img,
.wp-block-image.is-style-hexagon figure {
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* Image style: apply hex to featured images */
.wp-block-image.is-style-hexagon {
	display: inline-block;
}
.wp-block-image.is-style-hexagon img {
	display: block;
	aspect-ratio: 1 / 1.155; /* correct hex ratio */
	object-fit: cover;
	width: 100%;
}

/* ============================================================
   POST / CARD GRID
   ============================================================ */
.wp-block-query-loop article,
.post,
.type-post {
	background: var(--bwis-charcoal);
	border: var(--bwis-border);
	border-radius: 3px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.wp-block-query-loop article:hover,
.post:hover {
	transform: translateY(-3px);
	box-shadow: var(--bwis-shadow-md), var(--bwis-shadow-glow);
	border-color: var(--bwis-gold);
}

/* Post thumbnail — hex treatment */
.wp-block-post-featured-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.4s ease;
}
article:hover .wp-block-post-featured-image img {
	transform: scale(1.04);
}

/* Post meta */
.wp-block-post-title a {
	font-family: var(--bwis-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--bwis-gold-light) !important;
	text-decoration: none;
}
.wp-block-post-title a:hover {
	color: var(--bwis-white) !important;
}

.wp-block-post-date,
.wp-block-post-author {
	font-family: var(--bwis-font-label);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bwis-muted);
}

/* ============================================================
   SINGLE POST / PAGE
   ============================================================ */
.single .entry-content,
.wp-block-post-content {
	max-width: 720px;
	margin-inline: auto;
}

.entry-title,
.wp-block-post-title {
	font-family: var(--bwis-font-display);
	font-size: clamp(1.8rem, 5vw, 3.5rem);
	font-weight: 900;
	line-height: 1.1;
	color: var(--bwis-gold);
	letter-spacing: -0.025em;
}

/* Pull-quote / blockquote */
blockquote,
.wp-block-quote {
	border-left: 4px solid var(--bwis-gold);
	background: var(--bwis-charcoal);
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border-radius: 0 3px 3px 0;
	font-style: italic;
	color: var(--bwis-cream);
}
blockquote cite,
.wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	font-style: normal;
	font-family: var(--bwis-font-label);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bwis-amber);
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
	font-family: var(--bwis-font-display);
	color: var(--bwis-gold-light);
	line-height: 1.2;
}
h2, .wp-block-heading h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; color: var(--bwis-amber); }

/* Section heading with hex accent */
h2.has-hex-accent::before {
	content: '⬡';
	margin-right: 0.5em;
	color: var(--bwis-gold);
	font-size: 0.8em;
	vertical-align: middle;
}

/* ============================================================
   GALLERY BLOCK — HONEYCOMB LAYOUT
   ============================================================ */
.wp-block-gallery.is-style-honeycomb {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 4px;
}

.wp-block-gallery.is-style-honeycomb .wp-block-image img {
	clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
	aspect-ratio: 1 / 1.155;
	object-fit: cover;
	width: 100%;
	transition: filter 0.3s ease, transform 0.3s ease;
}

.wp-block-gallery.is-style-honeycomb .wp-block-image:hover img {
	filter: brightness(1.15) saturate(1.2);
	transform: scale(1.06);
}

/* Standard gallery — dark frames */
.wp-block-gallery {
	gap: 6px;
}
.wp-block-gallery figure.wp-block-image {
	background: var(--bwis-dark);
	border: 1px solid var(--bwis-mid);
	transition: border-color 0.2s;
}
.wp-block-gallery figure.wp-block-image:hover {
	border-color: var(--bwis-gold);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
.wp-element-button,
button,
input[type="submit"] {
	background: var(--bwis-gold) !important;
	color: var(--bwis-black) !important;
	font-family: var(--bwis-font-label);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	padding: 0.7em 1.6em;
	cursor: pointer;
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--bwis-gold-light) !important;
	box-shadow: 0 4px 16px rgba(245,197,24,0.35);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--bwis-gold) !important;
	border: 2px solid var(--bwis-gold) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--bwis-gold) !important;
	color: var(--bwis-black) !important;
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
	background: var(--bwis-charcoal);
	border: 1px solid var(--bwis-mid);
	color: var(--bwis-cream);
	border-radius: 2px;
	padding: 0.6em 0.9em;
	font-family: var(--bwis-font-body);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--bwis-gold);
	box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}

/* ============================================================
   SEARCH BLOCK
   ============================================================ */
.wp-block-search__input {
	background: var(--bwis-charcoal) !important;
	border: 1px solid var(--bwis-mid) !important;
	color: var(--bwis-cream) !important;
}
.wp-block-search__button {
	background: var(--bwis-gold) !important;
	color: var(--bwis-black) !important;
}

/* ============================================================
   CATEGORIES / TAGS
   ============================================================ */
.wp-block-tag-cloud a,
.tag-cloud-link {
	font-family: var(--bwis-font-label);
	font-size: 0.8rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--bwis-dark);
	border: 1px solid var(--bwis-mid);
	color: var(--bwis-cream);
	padding: 0.3em 0.7em;
	border-radius: 2px;
	text-decoration: none;
	display: inline-block;
	margin: 2px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.wp-block-tag-cloud a:hover {
	background: var(--bwis-gold);
	color: var(--bwis-black);
	border-color: var(--bwis-gold);
}

/* ============================================================
   SEPARATOR / HR
   ============================================================ */
hr,
.wp-block-separator {
	border: none;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--bwis-gold), var(--bwis-amber), var(--bwis-gold), transparent);
	margin: 3rem auto;
	max-width: 480px;
}

/* Hex separator style */
.wp-block-separator.is-style-wide::after {
	content: ' ⬡ ';
	display: block;
	text-align: center;
	color: var(--bwis-gold);
	font-size: 1.2rem;
	margin-top: -0.9em;
	background: var(--bwis-black);
	width: 2em;
	margin-inline: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.wp-site-blocks footer,
footer.wp-block-template-part {
	background: var(--bwis-charcoal);
	border-top: 2px solid var(--bwis-gold);
	color: var(--bwis-muted);
	font-family: var(--bwis-font-label);
	font-size: 0.82rem;
	letter-spacing: 0.05em;
	padding: 2.5rem 0;
}

footer a {
	color: var(--bwis-amber);
}
footer a:hover {
	color: var(--bwis-gold);
}

/* Honeycomb strip at footer bottom */
.wp-site-blocks footer::after {
	content: '';
	display: block;
	height: 4px;
	background: repeating-linear-gradient(
		90deg,
		var(--bwis-gold) 0px,
		var(--bwis-gold) 8px,
		var(--bwis-amber-dark) 8px,
		var(--bwis-amber-dark) 16px,
		transparent 16px,
		transparent 20px
	);
	margin-top: 2rem;
}

/* ============================================================
   SIDEBAR / WIDGETS
   ============================================================ */
.wp-block-widget-area,
.widget {
	background: var(--bwis-charcoal);
	border: var(--bwis-border);
	border-radius: 3px;
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.widget-title,
.wp-block-heading {
	font-family: var(--bwis-font-label);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bwis-amber);
	border-bottom: 1px solid var(--bwis-mid);
	padding-bottom: 0.6em;
	margin-bottom: 1em;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.wp-block-query-pagination a,
.page-numbers {
	font-family: var(--bwis-font-label);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--bwis-cream);
	background: var(--bwis-charcoal);
	border: var(--bwis-border);
	padding: 0.5em 0.9em;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s, color 0.2s;
}
.wp-block-query-pagination a:hover,
.page-numbers:hover,
.page-numbers.current {
	background: var(--bwis-gold);
	color: var(--bwis-black);
	border-color: var(--bwis-gold);
}

/* ============================================================
   COVER BLOCK
   ============================================================ */
.wp-block-cover {
	border-bottom: 3px solid var(--bwis-gold);
}

.wp-block-cover__inner-container h1,
.wp-block-cover__inner-container h2 {
	text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(245,197,24,0.2);
}

/* ============================================================
   TABLE BLOCK
   ============================================================ */
.wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}
.wp-block-table th {
	background: var(--bwis-dark);
	color: var(--bwis-gold);
	font-family: var(--bwis-font-label);
	font-size: 0.8rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding: 0.7em 1em;
	border-bottom: 2px solid var(--bwis-gold);
	text-align: left;
}
.wp-block-table td {
	padding: 0.65em 1em;
	border-bottom: 1px solid var(--bwis-mid);
	color: var(--bwis-cream);
}
.wp-block-table tr:hover td {
	background: var(--bwis-charcoal);
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */
code,
kbd {
	background: var(--bwis-dark);
	border: 1px solid var(--bwis-mid);
	color: var(--bwis-gold-light);
	font-family: var(--bwis-font-mono);
	font-size: 0.875em;
	padding: 0.1em 0.45em;
	border-radius: 2px;
}

pre code {
	display: block;
	padding: 1.25rem;
	overflow-x: auto;
	border-radius: 3px;
}

/* ============================================================
   SCROLL BAR
   ============================================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bwis-black); }
::-webkit-scrollbar-thumb {
	background: var(--bwis-mid);
	border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--bwis-gold); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--bwis-gold);
	outline-offset: 3px;
}

.skip-link:focus {
	background: var(--bwis-gold);
	color: var(--bwis-black);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.wp-block-gallery.is-style-honeycomb {
		grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	}
}
