/* =============================================================
   Fernando Raymond Blog — main stylesheet
   Luxury gold + dark navy magazine aesthetic.
   1. Tokens & base   2. Layout & utilities   3. Header
   4. Hero slider     5. Homepage sections    6. Archive & cards
   7. Single post     8. Sidebar & widgets    9. Footer
   10. Dark mode      11. Animations          12. Responsive
   ============================================================= */

/* The HTML [hidden] attribute must always win over display: flex/grid/block
   on toggled elements (search overlay, back-to-top, mobile nav, TOC). */
[hidden] { display: none !important; }

/* ---------- 1. Tokens & base ---------- */
:root {
	--gold: #D4AF37;
	--gold-dark: #b8952b;
	--navy: #07121F;
	--navy-soft: #0c1a2b;
	--dark: #121212;
	--white: #FFFFFF;
	--light: #F8F8F8;
	--grey: #777777;
	--grey-light: #e7e7e7;

	--font-display: 'Playfair Display', Georgia, serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--font-script: 'Great Vibes', cursive;

	--container: 1200px;
	--radius: 6px;
	--shadow-soft: 0 10px 40px rgba(7, 18, 31, 0.10);
	--shadow-card: 0 6px 24px rgba(7, 18, 31, 0.08);
	--transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);

	--bg: var(--white);
	--bg-alt: var(--light);
	--text: var(--dark);
	--text-muted: var(--grey);
	--border: var(--grey-light);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 0.6em;
	color: inherit;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
p a, .entry-content a { color: var(--gold-dark); }
p a:hover, .entry-content a:hover { color: var(--dark); }

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	left: 1rem; top: -100px;
	z-index: 999;
	background: var(--gold);
	color: var(--navy);
	padding: 0.6rem 1rem;
	border-radius: var(--radius);
	transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- 2. Layout & utilities ---------- */
.container {
	width: min(var(--container), 92vw);
	margin-inline: auto;
}

.section { padding: 5.5rem 0; }

.eyebrow {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold-dark);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0 0 1rem;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--light { color: var(--gold); }
.eyebrow-rule { display: inline-block; width: 44px; height: 1px; background: currentColor; opacity: 0.6; }

.section-title {
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
	color: var(--dark);
}
.section-title .line { display: block; }
.section-title .line--gold,
.line--gold { color: var(--gold); }
.section-title--light { color: var(--white); }
.section-title--small { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	margin-bottom: 2.75rem;
	flex-wrap: wrap;
}
.section-head .section-title { margin-bottom: 0; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
	padding: 0.85rem 1.7rem;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--dark); color: var(--white); }
.btn--dark { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--gold); color: var(--navy); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.55); }
.btn--outline:hover { background: var(--white); color: var(--navy); }
.btn--outline-dark { background: transparent; color: var(--dark); border-color: var(--border); }
.btn--outline-dark:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Button ripple */
.btn--ripple .ripple {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
	transform: scale(0);
	animation: ripple 0.6s ease-out;
	pointer-events: none;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid transparent;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background var(--transition), color var(--transition);
}
.icon-btn:hover { background: rgba(212, 175, 55, 0.15); color: var(--gold); }

/* Image zoom on hover */
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.img-zoom:hover img { transform: scale(1.05); }

/* Glassmorphism */
.glass {
	background: rgba(255, 255, 255, 0.65);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ---------- 3. Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	color: var(--white);
	transition: background var(--transition), box-shadow var(--transition);
}
.site-header--transparent {
	position: fixed;
	inset-inline: 0;
	background: linear-gradient(to bottom, rgba(7, 18, 31, 0.85), rgba(7, 18, 31, 0));
}
.site-header--transparent.is-scrolled,
.site-header.is-scrolled {
	position: fixed;
	inset-inline: 0;
	background: rgba(7, 18, 31, 0.97);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.site-logo-text,
.footer-logo {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1.35rem;
	letter-spacing: -0.01em;
	color: var(--white);
	line-height: 1.15;
}
.logo-gold { color: var(--gold); }
.logo-script { font-family: var(--font-script); font-weight: 400; font-size: 1.2em; color: var(--white); }

.custom-logo-link img { max-height: 48px; width: auto; }

.main-nav .nav-menu {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a {
	font-size: 0.92rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.85);
	padding-bottom: 4px;
	border-bottom: 2px solid transparent;
	transition: color var(--transition), border-color var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: var(--gold);
	border-bottom-color: var(--gold);
}
.main-nav .sub-menu {
	position: absolute;
	background: var(--navy-soft);
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0.6rem 0;
	border-radius: var(--radius);
	min-width: 200px;
	box-shadow: var(--shadow-soft);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.main-nav .sub-menu a { display: block; padding: 0.5rem 1.2rem; border: 0; }

.header-actions { display: flex; align-items: center; gap: 0.4rem; }
.header-cta { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

/* Hamburger */
.menu-toggle { display: none; }
.hamburger { display: inline-flex; flex-direction: column; gap: 5px; }
.hamburger span { width: 20px; height: 2px; background: currentColor; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
	background: var(--navy);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-nav .mobile-menu { list-style: none; margin: 0; padding: 1rem 4vw 1.5rem; }
.mobile-nav a { display: block; padding: 0.75rem 0; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav .sub-menu { list-style: none; padding-left: 1.25rem; }

/* Search overlay */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(7, 18, 31, 0.97);
	color: var(--white);
	display: flex;
	align-items: flex-start;
	padding-top: 14vh;
	animation: fadeIn 0.3s ease;
}
.search-overlay-inner { position: relative; width: min(720px, 92vw); }
.search-close { position: absolute; top: -3.5rem; right: 0; font-size: 1.2rem; color: var(--white); }
.overlay-search-form { display: flex; gap: 0.75rem; }
.overlay-search-form input {
	flex: 1;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--gold);
	color: var(--white);
	font-size: 1.6rem;
	font-family: var(--font-display);
	padding: 0.5rem 0;
}
.overlay-search-form input:focus { outline: none; }
.live-search-results { margin-top: 1.5rem; }
.live-search-results a {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.9);
}
.live-search-results a:hover { color: var(--gold); }
.live-search-results .result-date { color: var(--grey); font-size: 0.85rem; white-space: nowrap; }
.live-search-results mark { background: transparent; color: var(--gold); }


.main-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
}
.main-nav ul a {
  padding: 0 10px 3px 10px;
  transition: all 130ms linear;
}
.main-nav ul a:hover {
  padding: 0 10px 5px 10px;
  color: #d4af37;
  border-bottom: 2px solid #d4af37;
  transition: all 130ms linear;
}
/* ---------- 4. Hero slider ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); }
.hero-slider { position: relative; min-height: 92vh; overflow: hidden; }

.hero-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0.9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide-media {
	position: absolute;
	inset: 0;
	will-change: transform;
}
.hero-slide-media img {
	width: 100%; height: 110%;
	object-fit: cover;
	object-position: 73% center;
}
.hero-slide-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(7, 18, 31, 0.95) 18%, rgba(7, 18, 31, 0.72) 42%, rgba(7, 18, 31, 0.18) 75%);
}

.hero-slide-content {
	position: relative;
	z-index: 2;
	max-width: 640px;
	margin-left: max(4vw, calc((100vw - var(--container)) / 2));
	padding: 8rem 0 6rem;
}
.hero-title {
	font-size: clamp(2.4rem, 5.2vw, 4.2rem);
	font-weight: 500;
	margin-bottom: 1.25rem;
}
.hero-title .line { display: block; opacity: 0; transform: translateY(24px); animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-slide.is-active .hero-title .line:nth-child(1) { animation-delay: 0.15s; }
.hero-slide.is-active .hero-title .line:nth-child(2) { animation-delay: 0.3s; }
.hero-slide.is-active .hero-title .line:nth-child(3) { animation-delay: 0.45s; }
.hero-slide.is-active .hero-title .line:nth-child(4) { animation-delay: 0.6s; }
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }

.hero-text {
	max-width: 420px;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 2rem;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(7, 18, 31, 0.4);
	color: var(--white);
	font-size: 1.4rem;
	cursor: pointer;
	transition: background var(--transition), border-color var(--transition);
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero-arrow--prev { left: 1.5rem; }
.hero-arrow--next { right: 1.5rem; }

.hero-dots {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex;
	gap: 0.6rem;
}
.hero-dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	border: 1px solid var(--gold);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background var(--transition);
}
.hero-dot.is-active { background: var(--gold); }

/* ---------- 5. Homepage sections ---------- */

/* Featured logos */
.featured-logos { background: var(--navy); color: var(--white); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.featured-logos-inner {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	padding: 1.6rem 0;
	flex-wrap: wrap;
}
.featured-logos-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin: 0;
	white-space: nowrap;
}
.featured-logos-list {
	display: flex;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.featured-logo {
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.55);
	filter: grayscale(1);
	transition: color var(--transition), transform var(--transition);
}
.featured-logo:hover { color: var(--white); transform: translateY(-2px); }

/* About */
.about-grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	gap: 4.5rem;
	align-items: center;
}
.about-media { position: relative; padding-bottom: 3rem; }
.about-image { border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-image img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; }
.experience-badge {
	position: absolute;
	left: -2.5rem;
	bottom: 6rem;
	background: var(--navy);
	color: var(--white);
	padding: 1.4rem 1.8rem;
	border-radius: var(--radius);
	box-shadow: var(--shadow-soft);
	border-left: 3px solid var(--gold);
	text-align: center;
}
.experience-number { display: block; font-family: var(--font-display); font-size: 2.2rem; line-height: 1; }
.experience-label { display: block; font-size: 0.68rem; letter-spacing: 0.18em; margin-top: 0.4rem; color: rgba(255, 255, 255, 0.8); }
.signature {
	position: absolute;
	right: 1rem;
	bottom: 0;
	font-family: var(--font-script);
	font-size: 2.2rem;
	color: var(--gold);
	margin: 0;
}
.about-content p { color: var(--text-muted); }
.about-content .btn { margin-top: 1rem; }

/* Counters */
.counters-section { background: var(--navy); color: var(--white); padding: 3.5rem 0; }
.counters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 2rem;
	text-align: center;
}
.counter-number {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 3.2vw, 2.8rem);
	color: var(--gold);
	line-height: 1.1;
}
.counter-label { display: block; font-weight: 600; margin-top: 0.5rem; }
.counter-sub { display: block; font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin-top: 0.2rem; }

/* Post cards */
.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}
.post-card {
	background: var(--bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow-card);
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
}
.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 48px rgba(7, 18, 31, 0.14);
}
.post-card-media { position: relative; display: block; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.cat-badge {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	z-index: 2;
	background: var(--gold);
	color: var(--navy);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.35rem 0.75rem;
	border-radius: 3px;
}
.post-card-body { padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card-title { font-size: 1.25rem; margin: 0; }
.post-card-title a:hover { color: var(--gold-dark); }
.post-card-excerpt { color: var(--text-muted); font-size: 0.94rem; margin: 0; flex: 1; }
.post-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.82rem;
	color: var(--text-muted);
}

/* Category cards */
.categories-section { background: var(--bg-alt); }
.category-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}
.category-card {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.category-card:hover {
	border-color: var(--gold);
	transform: translateY(-4px);
	box-shadow: var(--shadow-card);
}
.category-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.category-count { font-size: 0.82rem; color: var(--text-muted); }

/* Newsletter */
.newsletter-section { background: var(--dark); color: var(--white); padding: 5rem 0; }
.newsletter-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: 4rem;
	align-items: center;
}
.newsletter-media { border-radius: var(--radius); }
.newsletter-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.newsletter-text { color: rgba(255, 255, 255, 0.8); max-width: 480px; }
.newsletter-form { display: flex; gap: 0; max-width: 520px; margin-top: 1.5rem; }
.newsletter-form input {
	flex: 1;
	border: 0;
	border-radius: var(--radius) 0 0 var(--radius);
	padding: 0.95rem 1.2rem;
	font-size: 0.95rem;
	font-family: var(--font-body);
}
.newsletter-form input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.newsletter-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); margin-top: 0.75rem; }

/* Testimonials */
.testimonials-section { background: var(--bg-alt); }
.testimonial-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(320px, 420px);
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
}
.testimonial-card {
	scroll-snap-align: start;
	border-radius: var(--radius);
	padding: 2rem;
	margin: 0;
	box-shadow: var(--shadow-card);
}
.testimonial-quote { font-family: var(--font-display); font-size: 1.15rem; font-style: italic; }
.testimonial-card footer { color: var(--text-muted); font-size: 0.9rem; }

/* Instagram & videos */
.instagram-feed { border-radius: var(--radius); overflow: hidden; }
.videos-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; }
.video-featured iframe, .video-card iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: 0;
	border-radius: var(--radius);
	background: var(--navy);
}
.video-cards { display: grid; gap: 1.5rem; }

/* ---------- 6. Archive, page heroes & cards ---------- */
.page-hero {
	background: var(--navy);
	color: var(--white);
	padding: 6.5rem 0 3.5rem;
}
.page-hero--large { min-height: 55vh; display: flex; align-items: flex-end; position: relative; overflow: hidden; padding-bottom: 4rem; }
.page-hero--large .container { position: relative; z-index: 2; }
.page-hero-title { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0.3em; }
.page-hero-desc { color: rgba(255, 255, 255, 0.75); max-width: 640px; }
.page-hero--author .author-hero { display: flex; gap: 2rem; align-items: center; }
.page-hero--author img { border-radius: 50%; }

.breadcrumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 1.25rem;
}
.breadcrumbs a:hover { color: var(--gold); }

.archive-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3.5rem;
	padding: 3.5rem 0 5rem;
	align-items: start;
}
.archive-content .post-grid--archive { grid-template-columns: repeat(2, 1fr); }

.archive-toolbar {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
	padding: 2rem 0 0;
}
.archive-search input {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.7rem 1rem;
	font-family: var(--font-body);
	min-width: 240px;
	background: var(--bg);
	color: var(--text);
}
.archive-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; flex: 1; }
.filter-chip {
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.45rem 1rem;
	border: 1px solid var(--border);
	border-radius: 100px;
	transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.is-active {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--white);
}
.view-toggle { display: flex; gap: 0.25rem; }
.view-toggle .is-active { color: var(--gold-dark); }

/* List view */
.post-grid--archive.is-list { grid-template-columns: 1fr !important; }
.post-grid--archive.is-list .post-card { flex-direction: row; }
.post-grid--archive.is-list .post-card-media { width: 320px; flex-shrink: 0; }
.post-grid--archive.is-list .post-card-media img { height: 100%; aspect-ratio: auto; }

.load-more-wrap { text-align: center; margin-top: 3rem; }
.load-more.is-loading { opacity: 0.6; pointer-events: none; }

.pagination, .navigation.pagination { margin-top: 3rem; }
.nav-links { display: flex; gap: 0.5rem; justify-content: center; }
.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px; height: 42px;
	padding: 0 0.75rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	font-weight: 600;
	font-size: 0.9rem;
}
.nav-links .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.nav-links a.page-numbers:hover { border-color: var(--gold); }

/* 404 */
.error-404 { padding: 7rem 0; text-align: center; }
.error-code {
	font-family: var(--font-display);
	font-size: clamp(5rem, 12vw, 9rem);
	color: var(--gold);
	line-height: 1;
	margin: 0;
}
.error-404 .search-form { justify-content: center; margin: 2rem auto; }
.error-404 .page-hero-title { color: var(--dark); }

.no-results { padding: 3rem 0; }

/* ---------- 7. Single post ---------- */
.reading-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 300;
	background: transparent;
}
.reading-progress-bar {
	display: block;
	width: 0;
	height: 100%;
	background: var(--gold);
	transition: width 0.1s linear;
}

.single-hero {
	position: relative;
	background: var(--navy);
	color: var(--white);
	min-height: auto;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}
.single-hero-media { position: absolute; inset: 0; will-change: transform; }
.single-hero-media img { width: 100%; height: 112%; object-fit: cover; }
.single-hero-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(7, 18, 31, 0.95) 10%, rgba(7, 18, 31, 0.35) 60%, rgba(7, 18, 31, 0.5) 100%);
}
.single-hero-content { position: relative; z-index: 2; padding: 2rem 0px 3rem 0; max-width: 100%; }
.single-hero .cat-badge { position: static; display: inline-block; margin-bottom: 1rem; }
.single-title { font-size: clamp(1.9rem, 4.2vw, 3.2rem); }
.single-meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.8);
	flex-wrap: wrap;
}
.single-author { display: inline-flex; align-items: center; gap: 0.5rem; }
.single-author img { border-radius: 50%; }

.single-layout {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 300px;
	gap: 3rem;
	padding: 3.5rem 0 5rem;
	align-items: start;
}
.single-share-rail { position: sticky; top: 110px; }
.single-share-rail .share-buttons { flex-direction: column; }

.share-buttons { display: flex; gap: 0.5rem; }
.share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	transition: all var(--transition);
}
.share-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }

.entry--single { max-width: 760px; }

.table-of-contents {
	background: var(--bg-alt);
	border-left: 3px solid var(--gold);
	border-radius: 0 var(--radius) var(--radius) 0;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2.5rem;
}
.toc-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
.toc-list { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; }
.toc-list a { color: var(--text-muted); }
.toc-list a:hover { color: var(--gold-dark); }

.entry-content { font-size: 1.1rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 2.2em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.8em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
	border-left: 3px solid var(--gold);
	margin: 2em 0;
	padding: 0.5em 0 0.5em 1.5em;
	font-family: var(--font-display);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--text-muted);
}
.entry-content pre {
	background: var(--navy);
	color: #e7e7e7;
	padding: 1.25rem;
	border-radius: var(--radius);
	overflow-x: auto;
	font-size: 0.9rem;
}

.entry-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.entry-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.entry-tags a {
	font-size: 0.78rem;
	background: var(--bg-alt);
	padding: 0.35rem 0.9rem;
	border-radius: 100px;
	color: var(--text-muted);
}
.entry-tags a:hover { background: var(--gold); color: var(--navy); }
.entry-share-bottom { display: flex; align-items: center; gap: 1rem; font-size: 0.85rem; color: var(--text-muted); }

.author-box {
	display: flex;
	gap: 1.5rem;
	background: var(--bg-alt);
	border-radius: var(--radius);
	padding: 2rem;
	margin: 3rem 0;
}
.author-box img { border-radius: 50%; flex-shrink: 0; }
.author-box-name { margin-bottom: 0.25rem; }
.author-box-bio { color: var(--text-muted); font-size: 0.94rem; margin: 0; }

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin: 3rem 0;
}
.post-nav a {
	display: block;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.25rem 1.5rem;
	transition: border-color var(--transition);
}
.post-nav a:hover { border-color: var(--gold); }
.post-nav-next { text-align: right; }
.post-nav-label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.3rem; }
.post-nav-title { font-family: var(--font-display); font-weight: 600; }

.related-posts { margin: 3.5rem 0; }
.related-posts .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.related-posts .post-card-title { font-size: 1.05rem; }

.single-newsletter {
	background: var(--dark);
	color: var(--white);
	border-radius: var(--radius);
	padding: 3rem;
	margin: 3rem 0;
	text-align: center;
}
.single-newsletter .newsletter-form { margin-inline: auto; }

/* Comments */
.comments-area { margin-top: 3rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.comment-list .children { list-style: none; padding-left: 2.5rem; }
.comment-author { display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.8rem; color: var(--text-muted); }
.comment-form input:not([type="submit"]), .comment-form textarea {
	width: 100%;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 0.8rem 1rem;
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
}
.comment-form .submit { background: var(--gold); color: var(--navy); border: 0; font-weight: 600; padding: 0.85rem 1.7rem; border-radius: var(--radius); cursor: pointer; }
.comment-form .submit:hover { background: var(--dark); color: var(--white); }

/* Contact */
.contact-layout {
	display: grid;
	grid-template-columns: 1.3fr 0.7fr;
	gap: 3.5rem;
	padding: 3.5rem 0 5rem;
	align-items: start;
}
.contact-info {
	background: var(--bg-alt);
	border-radius: var(--radius);
	padding: 2rem;
	position: sticky;
	top: 110px;
}
.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 0.4rem 0; }

/* ---------- 8. Sidebar & widgets ---------- */
.site-sidebar { position: sticky; top: 110px; display: grid; gap: 2rem; }
.widget {
	background: var(--bg-alt);
	border-radius: var(--radius);
	padding: 1.75rem;
}
.widget-title {
	font-size: 1.05rem;
	padding-bottom: 0.6rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--gold);
	display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.45rem 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.widget li:last-child { border-bottom: 0; }
.widget a:hover { color: var(--gold-dark); }
.widget .search-form { display: flex; gap: 0.5rem; }
.widget .search-field { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.9rem; background: var(--bg); color: var(--text); }
.widget .tag-cloud-link {
	display: inline-block;
	font-size: 0.8rem !important;
	background: var(--bg);
	padding: 0.3rem 0.8rem;
	border-radius: 100px;
	margin: 0.2rem 0.15rem;
}

/* ---------- 9. Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); margin-top: 0; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 0.8fr 1.1fr;
	gap: 3rem;
	padding: 4.5rem 0 3rem;
}
.footer-logo { font-size: 1.6rem; margin: 0 0 0.75rem; }
.footer-tagline { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }
.footer-heading {
	font-family: var(--font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 1.2rem;
}
.footer-menu, .footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-menu li, .footer-contact li { padding: 0.35rem 0; font-size: 0.94rem; }
.footer-menu a:hover, .footer-contact a:hover { color: var(--gold); }

.social-links { display: flex; gap: 0.6rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	transition: background var(--transition), color var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.social-links--contact a { background: var(--navy); color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.4rem 0;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
	flex-wrap: wrap;
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--gold); }

.back-to-top {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 90;
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 0;
	background: var(--gold);
	color: var(--navy);
	cursor: pointer;
	box-shadow: var(--shadow-soft);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--transition), background var(--transition);
}
.back-to-top:hover { transform: translateY(-4px); background: var(--dark); color: var(--white); }

/* ---------- 10. Dark mode ---------- */
body.dark-mode {
	--bg: #0b1420;
	--bg-alt: #101c2b;
	--text: #e9e9e9;
	--text-muted: #9aa4af;
	--border: #1e2c3d;
}
body.dark-mode .post-card,
body.dark-mode .category-card { background: var(--bg-alt); }
body.dark-mode .section-title,
body.dark-mode .error-404 .page-hero-title { color: var(--text); }
body.dark-mode .glass { background: rgba(16, 28, 43, 0.7); border-color: rgba(255, 255, 255, 0.08); }
body.dark-mode .btn--outline-dark { color: var(--text); }
body.dark-mode .btn--dark { background: var(--gold); color: var(--navy); }
body.dark-mode .btn--dark:hover { background: var(--white); }
.theme-toggle .icon-sun { display: none; }
body.dark-mode .theme-toggle .icon-sun { display: block; }
body.dark-mode .theme-toggle .icon-moon { display: none; }
.eyebrow {
  display: block;
}
/* ---------- 11. Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.reveal { opacity: 1; transform: none; }
	.hero-title .line { opacity: 1; transform: none; animation: none; }
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 1100px) {
	.single-layout { grid-template-columns: minmax(0, 1fr) 280px; }
	.single-share-rail { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.main-nav, .header-cta { display: none; }
	.menu-toggle { display: inline-flex; }
	.about-grid, .newsletter-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.experience-badge { left: 1rem; }
	.archive-layout, .single-layout, .contact-layout { grid-template-columns: 1fr; }
	.site-sidebar, .contact-info { position: static; }
	.post-grid, .related-posts .post-grid { grid-template-columns: repeat(2, 1fr); }
	.category-grid { grid-template-columns: repeat(2, 1fr); }
	.videos-grid { grid-template-columns: 1fr; }
	
}

@media (max-width: 640px) {
	.single-layout {
  padding: 2rem 0 2rem;
}
	.table-of-contents {
  margin-bottom: 1.5rem;
}
	.section { padding: 3.5rem 0; }
	.post-grid, .post-grid--archive, .related-posts .post-grid, .archive-content .post-grid--archive { grid-template-columns: 1fr !important; }
	.hero-slide-content { padding: 7rem 4vw 5rem; margin-left: 0; }
	.hero-slider { min-height: 100svh; }
	.hero-arrow { display: none; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav-next { text-align: left; }
	.footer-grid { grid-template-columns: 1fr; gap: 2rem; }
	.newsletter-form { flex-direction: column; gap: 0.75rem; }
	.newsletter-form input, .newsletter-form .btn { border-radius: var(--radius); width: 100%; justify-content: center; }
	.author-box { flex-direction: column; }
	.single-newsletter { padding: 2rem 1.25rem; }
	.post-grid--archive.is-list .post-card { flex-direction: column; }
	.post-grid--archive.is-list .post-card-media { width: 100%; }
	.category-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.category-card { padding: 1.25rem 1rem; }
	.site-sidebar {
  display: none;
}
	.overlay-search-form input {
  font-size: 16px;
}
	.single-newsletter {
  margin: 0rem 0 0rem 0;
}
	.single-hero-content {
  padding: 2rem 0 3.5rem;
}
	.related-posts {
  margin: 1.5rem 0 2.5rem 0;
}
.eyebrow.eyebrow--gold {
  text-align: center !important;
  display: block;
}
	.page-hero {
  padding: 2.5rem 0 3.5rem;
}
}
